{"version":3,"sources":["shared/assets/images/dashboard.svg","shared/assets/images/campaigns.svg","shared/assets/images/leads.svg","shared/assets/images/tasks.svg","shared/assets/images/call.svg","shared/assets/images/inbox.svg","shared/assets/images/performance.svg","shared/assets/images/marketing.svg","shared/assets/images/settings.svg","shared/assets/images/leadvolt-lightning.svg","shared/assets/images/sidebar-logo.svg","shared/assets/images/auto-calling-a.svg","shared/assets/images/auto-calling-b.svg","shared/assets/images/auto-calling-c.svg","shared/assets/images/filter-grey.svg","shared/assets/images/voicemail.svg","shared/assets/images/mute.svg","shared/assets/images/fax.svg","shared/assets/images/hangup.svg","shared/assets/images/check.svg","shared/assets/images/trash.svg","shared/assets/images/trash-green.svg","shared/assets/images/edit.svg","shared/assets/images/sort.svg","shared/assets/images/performance-green.svg","shared/assets/images/news.svg","shared/components/IconCount.js","modules/user-status/user-status-model.js","shared/components/UserStatus.js","shared/components/ui/Loader.js","modules/user-status/user-status-queries.js","shared/session/session-events.ts","shared/errors.js","shared/validators.js","shared/utils/index.js","modules/user-status/user-status-events.js","modules/user-status/user-status-actions.js","shared/components/toast/components/ToastText.js","shared/components/toast/components/ToastTitle.js","shared/components/toast/components/ToastSuccess.js","shared/components/toast/components/ToastError.js","shared/components/toast/components/ToastInfo.js","shared/components/toast/components/ToastAttention.js","shared/components/toast/components/ToastErrors.js","shared/components/toast/components/ToastWarn.js","shared/css/mixins.js","shared/components/Box.js","modules/notifications/notifications-querys.js","modules/notifications/notifications-store.ts","modules/notifications/notifications-actions.ts","shared/components/toast/components/ToastMessage.js","shared/components/toast/Toast.js","shared/mixins.js","modules/auth/queries.js","modules/my-account/general/general-validators.js","modules/system-settings/system-setting-queries.js","modules/system-settings/system-setting-events.js","modules/system-settings/system-setting-actions.js","modules/auth/auth.actions.js","shared/constants/meta.js","shared/constants/index.js","shared/utils/agency-utils.js","shared/components/dialog/DialogProfile.js","modules/user-status/user-status-utils.js","shared/components/AvatarWithStatus.js","shared/hooks/useAgency.js","shared/utils/company-utils.js","modules/phone-calls/phone-calls-querys.js","modules/phone-calls/twilio.js","modules/phone-calls/phone-calls-model.js","modules/phone-calls/phone-calls-events.js","shared/helpers.js","modules/phone-calls/phone-calls-actions.js","shared/hooks/useUser.js","modules/leads/leads-model.js","modules/leads/lead-details-utils.js","modules/leads/leads-drivers/leads-drivers-utils.js","modules/leads/leads-type-commercial-auto/leads-type-commercial-auto-utils.js","modules/leads/leads-type-auto/leads-type-auto-utils.js","modules/leads/leads-type-life/leads-type-life-utils.js","modules/leads/leads-type-home/leads-type-home-utils.js","modules/leads/leads-type-employee-benefits/leads-type-employee-benefits-utils.js","modules/leads/leads-type-general-liability/leads-type-general-liability-utils.js","modules/leads/leads-type-workers-compensation/leads-type-workers-compensation-utils.js","modules/leads/leads-utils.js","modules/my-account/phone-numbers/phone-numbers-utils.js","modules/phone-calls/phone-calls-utils.js","shared/hooks/useUserStatus.js","modules/phone-calls/phone-calls-hooks.js","modules/phone-calls/Components/DialerPhones.js","modules/phone-calls/Components/Dialer.js","shared/hooks/useInfinityPagination.js","modules/phone-calls/Components/DialerBackdrop.js","modules/phone-calls/Components/DialerButton.js","shared/components/Menu.js","shared/components/ui/text/TextSpacing.js","shared/components/ui/dropdowns/Dropdown.js","shared/components/ui/dropdowns/DropdownOption.js","shared/components/ui/dropdowns/DropdownWrap.js","shared/components/ui/buttons/PrimaryBtn.js","modules/onboarding/components/DialogInvitations.js","shared/constants/agency-invitations.js","shared/constants/company-invitations.js","modules/agency-invitation/agency-invitation-queries.js","modules/agency-invitation/agency-invitation-permissions.js","modules/agency-invitation/agency-invitation-events.js","modules/agency-invitation/agency-invitation-actions.js","modules/my-account/invitations/invitations-queries.js","modules/company-invitation/company-invitation-queries.js","modules/company-invitation/company-invitation-permissions.js","modules/company-invitation/company-invitation-events.js","modules/company/campany-events.js","modules/company-invitation/company-invitation-actions.js","modules/agency/agency-store.js","shared/utils/invitations-utils.js","modules/phone-calls/Components/AutomaticCallsIcon.js","shared/components/ui/StyledBadge.js","modules/notifications/components/NotificationsListItem.js","modules/notifications/notifications-utils.js","modules/notifications/components/NotificationCard.js","modules/notifications/hooks/useNotificationsList.js","modules/notifications/hooks/useNewSMSMessagesNotifications.ts","modules/notifications/NotificationsIcon.js","modules/notifications/hooks/useNotificationsCount.js","modules/chat/chat-events.js","modules/chat/chat-querys.js","modules/chat/chat-actions.js","shared/apollo/index.js","shared/apollo/Apollo.js","modules/chat/ChatIcon.js","shared/components/TopBar.js","shared/components/Breadcrumbs.js","modules/phone-calls/phone-call-recordings/phone-call-recordings-queries.js","shared/utils/storage-utils.js","modules/phone-calls/voice-mail-message/voice-mail-message-events.js","modules/phone-calls/voice-mail-message/voice-mail-message-queries.js","modules/phone-calls/voice-mail-message/voice-mail-message-store.js","modules/phone-calls/voice-mail-message/voice-mail-message-actions.js","modules/phone-calls/Components/VoiceMailMessagesDialog.js","modules/phone-calls/Components/ControlButton.js","modules/phone-calls/Components/VoiceMailButton.js","modules/phone-calls/Components/ControlsPortal.js","modules/phone-calls/Components/CallInfo.js","modules/phone-calls/Components/DialPad.js","modules/leads/leads-notes/leads-notes-queries.js","modules/leads/leads-type-auto/leads-type-auto-queries.js","modules/leads/leads-type-commercial-auto/leads-type-commercial-auto-queries.js","modules/leads/leads-drivers/leads-drivers-queries.js","modules/leads/leads-type-general-liability/leads-type-general-liability-queries.js","modules/leads/leads-type-life/leads-type-life-queries.js","modules/leads/leads-type-home/leads-type-home-queries.js","modules/leads/leads-type-workers-compensation/leads-type-workers-compensation-queries.js","modules/leads/leads-type-employee-benefits/leads-type-employee-benefits-queries.js","modules/leads/leads-history/leads-history-queries.js","modules/leads/leads-queries.js","modules/leads/leads-store.js","modules/leads/leads-validators.js","modules/leads/leads-events.js","modules/leads/leads-actions.js","modules/users/user-utils.js","modules/email/email-queries.js","modules/email/email-store.js","modules/my-account/email/email-queries.js","modules/email/email-validators.js","modules/email/email-model.js","modules/email/email-events.js","modules/email/email-actions.js","modules/agents/agents-queries.js","modules/agents/agents-events.js","modules/agents/agents-actions.js","shared/constants/8base.js","modules/leads/components/forms/TaskForm.js","modules/phone-calls/Components/LeadCallForm.js","modules/users/user-events.js","modules/users/user-queries.js","modules/users/user-actions.js","modules/users/users-hooks.ts","modules/users/components/UserCard.js","modules/phone-calls/Components/PhoneCard.js","modules/phone-calls/Components/TransferCallDialog.js","modules/phone-calls/Components/TransferCallButton.js","modules/phone-calls/Components/CallControls.js","modules/notifications/hooks/usePushNotifications.ts","shared/components/Layout.js","shared/components/ProtectedRoute.js","shared/components/ui/buttons/DeleteBtn.js","shared/components/YesNoDialog.js","modules/company/components/PlanCard.js","shared/components/ui/Icons.js","shared/components/ui/inputs/Label.js","shared/constants/colors.js","shared/stripe/stripe.js","modules/my-account/billing/payment-method/components/PaymentForm.js","modules/company/company-model.js","modules/company/company-queries.js","modules/company/company-validators.js","modules/onboarding/onboarding-validators.js","modules/agents/agents-utils.js","modules/my-account/billing/billing-queries.js","modules/my-account/billing/billing-validators.js","modules/my-account/billing/billing-events.js","modules/my-account/billing/billing-actions.js","modules/onboarding/onboarding-events.js","modules/onboarding/onboarding-actions.js","modules/company/company-actions.js","modules/onboarding/onboarding-hooks.js","modules/company/company-hooks.js","modules/my-account/billing/components/CouponInput.js","modules/onboarding/components/CompanyForm.js","shared/utils/useDebounce.js","modules/onboarding/CreateCompanyView.js","shared/components/ui/MainLoader.js","shared/components/dialog/DecisionDialog.tsx","modules/agency/components/SwitchAgencyView.js","modules/onboarding/InvitationsView.js","shared/hoc/withCompany.js","shared/rollbar/index.js","shared/components/Session.js","shared/components/ui/dropdowns/DropdownBodyOnTable.tsx","shared/components/ui/text/TextEllipsis.js","shared/components/tables/Table.js","shared/components/ui/CustomLink.js","shared/components/ui/Margin.js","shared/components/CardIndicator.js","shared/components/tables/TableHeader.js","shared/components/PaperHeader.js","shared/components/ui/text/Title.js","shared/components/ui/buttons/PlusBtn.js","shared/components/calendar/DayComponent.js","shared/components/calendar/WeekComponent.js","shared/components/ui/SmallLoader.js","shared/components/tables/TableLite.js","shared/graphql/index.js","shared/components/ui/buttons/AuthBtn.js","shared/components/ui/buttons/ButtonIcon.js","shared/components/ui/buttons/ButtonWithoutIcon.js","shared/components/ui/DateBox.js","shared/components/ui/text/TextContact.js","shared/components/ui/text/Text.js","shared/components/ui/PriorityBadge.js","shared/components/ui/TitleDetail.js","shared/components/ui/text/SecondaryTitle.js","shared/components/ui/buttons/CreateButton.js","shared/components/ui/buttons/FilterBtn.js","shared/components/ui/buttons/FilterButtonWithFocus.js","shared/components/ui/buttons/SortBtn.js","shared/components/ui/inputs/SearchInput.js","shared/components/ui/Padding.js","shared/components/tables/TableToolBar.js","shared/components/agents-slider/AgentSlide.js","shared/components/dialog/DialogForm.js","shared/components/agents-slider/AgentsSlider.js","shared/components/SelectMultipleAgents.js","shared/components/ui/inputs/RadioInputField.js","shared/components/ui/dropdowns/DropdownFooter.js","shared/components/ui/dropdowns/DropdownWithCheck/DropdownWithCheck.js","shared/components/ui/text/FormTitle.js","shared/components/ItemFilter.js","shared/components/card/ListCardBody.js","shared/components/ui/selects/SelectInput.js","shared/components/forms/TagsInput.js","shared/components/ui/dropdowns/OptionsDropdown.js","shared/components/ui/dropdowns/SimpleDropdown.js","shared/components/tables/filters/FilterFooter.js","shared/components/tables/filters/FilterCategory.js","shared/components/tables/AgingTableLite.js","shared/auth/index.js","modules/auth/routes/root/index.js","shared/api/index.js","modules/auth/routes/callback/index.js","modules/auth/index.js","modules/dashboard/components/AnnouncementForm.js","modules/announcement/announcement-queries.js","modules/announcement/announcement-validators.js","modules/announcement/announcement-events.js","modules/announcement/announcement-actions.js","modules/announcement/announcement-model.js","modules/dashboard/components/Announcement.js","modules/dashboard/components/Task.js","modules/dashboard/components/TasksByDay.js","modules/campaigns/campaigns-queries.ts","modules/campaigns/campaign-events.ts","modules/campaigns/campaigns-validators.js","modules/campaigns/campaigns-actions.ts","modules/dashboard/dashboard-queries.js","modules/dashboard/dashboard-events.js","modules/dashboard/dashboard-action.js","modules/lead-task/lead-task-queries.js","modules/lead-task/lead-task-validators.js","modules/lead-task/lead-task-events.js","modules/lead-task/lead-task-actions.js","modules/campaigns/campaigns-utils.js","modules/lead-task/lead-task-utils.js","modules/dashboard/dashboard-utils.js","modules/campaigns/components/PriorityCell.js","modules/campaigns/components/StatusCell.js","modules/campaigns/campaigns-cells.js","modules/dashboard/components/TopPerformersSlide.js","modules/metrics/metrics-events.js","modules/metrics/metrics-cells.js","modules/metrics/metrics-queries.js","modules/metrics/metrics-actions.js","modules/metrics/AgingTable.js","modules/metrics/MetricsTable.js","modules/metrics/metrics-utils.js","modules/metrics/MetricsTableWrapper.js","shared/components/forms/FormValues.js","modules/dashboard/components/ReportItem.js","modules/dashboard/components/AgencyReportTabs.js","modules/dashboard/DashboardView.js","shared/components/Typography.js","modules/design-system/components.js","modules/design-system/DesignSystemView.js","modules/campaigns/components/DeleteCampaignProgress.tsx","modules/campaigns/components/DeleteCampaignDialog.tsx","modules/campaigns/components/CampaignListRow.tsx","shared/components/Field.js","modules/campaigns/components/WorkflowAutomationSelect.js","modules/workflow/workflow-automation/workflow-automation-queries.js","modules/workflow/workflow-automation/workflow-automation-events.js","modules/workflow/workflow-automation/workflow-automation-validator.js","modules/workflow/workflow-automation/workflow-automation-actions.js","modules/workflow/workflow-automation/workflow-automation-hooks.ts","modules/vendors/vendors-events.js","modules/vendors/vendors-queries.js","modules/vendors/vendors-validators.js","modules/vendors/vendors-actions.js","modules/my-account/phone-numbers/phone-numbers-events.js","modules/campaigns/components/EnhancedCampaignForm.tsx","modules/campaigns/components/CampaignFilter.js","modules/campaigns/components/CreateCampaignButton.tsx","modules/campaigns/campaigns-model.js","modules/campaigns/components/CampaignListHeader.tsx","modules/campaigns/CampaignsView.tsx","modules/campaigns/campaign-hooks.ts","modules/campaigns/components/CampaignForm.js","modules/campaigns/components/CampaignProgress.js","modules/campaigns/components/DialogDeleteCampaign.js","modules/my-account/phone-numbers/phone-numbers-querys.js","modules/my-account/billing/subscription-plan/subscription-plan-queries.js","modules/my-account/phone-numbers/phone-numbers-actions.js","modules/campaigns/CampaignDetailsView.js","modules/email/components/SearchInput.js","shared/hooks/useURLQuery.js","modules/email/components/EmailListItem.js","modules/email/components/EmailList.js","modules/email/email-utils.js","shared/components/GoogleButton.js","shared/components/MicrosoftButton.js","modules/email/components/EmailForm.js","modules/email/components/EmailDialog.js","modules/email/components/ComposeEmailProvider.js","modules/email/hooks/useEmailList.js","modules/email/components/EmailProfileContext.js","modules/email/components/EmailDetails.js","modules/email/components/ManualEmailsView.js","modules/email/hooks/useGmailList.js","modules/email/components/GmailListItem.js","modules/email/components/GmailList.js","modules/email/components/GmailReplyDialog.js","modules/email/components/GmailDetails.js","modules/email/components/GmailEmailsView.js","modules/email/hooks/useOutlookList.js","modules/email/components/OutlookListItem.js","modules/email/components/OutlookList.js","modules/email/components/OutlookReplyDialog.js","modules/email/components/OutlookDetails.js","modules/email/components/OutlookEmailsView.js","modules/email/Email.js","modules/leads/hooks/useAgencyLeads.js","Welcome.js","modules/leads/leads-history/leads-history-model.js","modules/leads/leads-history/components/containers.js","modules/leads/components/ColumnInfo.js","modules/leads/leads-history/components/interfaces.js","modules/leads/leads-history/components/LeadHistoryItem.js","modules/leads/leads-history/components/NoteHistoryItem.js","modules/leads/leads-history/components/TaskHistoryItem.js","modules/leads/leads-history/components/EmailHistoryItem.js","modules/leads/leads-history/components/CallHistoryItem.js","modules/leads/leads-history/components/SmsHistoryItem.js","modules/leads/leads-history/components/StageHistoryItem.js","modules/leads/leads-history/components/DeletedHistoryItem.js","modules/phone-calls/Components/PhoneNumber.js","modules/leads/leads-stage/leads-stage-queries.js","modules/leads/leads-stage/leads-stage-store.js","modules/leads/leads-stage/leads-stage-action.js","modules/leads/components/LeadCell.js","modules/leads/leads-history/leads-history-utils.js","modules/leads/components/LeadFilter.js","modules/leads/components/LeadsDialog.js","modules/leads/components/forms/LeadForm.js","modules/leads/components/LeadFormDialog.js","modules/my-account/components/Card.js","modules/leads/components/LeadAssignUserDialog.js","modules/leads/components/forms/Message.js","modules/leads/components/forms/MsgForm.js","modules/leads/leads-notes/leads-notes-validators.js","modules/leads/leads-notes/leads-notes-events.js","modules/leads/leads-notes/leads-notes-actions.js","modules/leads/components/forms/NoteForm.js","modules/leads/components/LeadActions.js","modules/leads/LeadsView.js","modules/leads/components/CsvPreviewCell.js","modules/leads/components/LeadsCsvPreviewDialog.js","shared/components/FileUpload.js","modules/leads/components/LeadsCsvUploadDialog.js","modules/leads/components/LeadsCsvStatusUploadDialog.js","modules/leads/components/LeadsCsvDialogs.js","modules/lead-task/lead-task-model.js","modules/lead-task/components/LeadTasksListTable/TableHeader.js","modules/lead-task/components/LeadTasksListTable/RowActions.js","modules/lead-task/components/PriorityCell.js","modules/lead-task/components/LeadTasksListTable/RowCell.js","modules/lead-task/components/LeadTasksListTable/TableRows.js","modules/lead-task/components/LeadTasksListTable/InfoModal.js","modules/lead-task/components/LeadTasksListTable/TableBody.js","modules/lead-task/components/LeadTasksListTable/TableFooter.js","modules/lead-task/components/LeadTasksListTable/OnTopHideShowColumns.js","modules/lead-task/components/DialogDeleteLeadTask.js","modules/lead-task/components/DialogUpdateLeadTaskStatus.js","modules/lead-task/LeadTaskView.js","shared/hoc/withSession.js","modules/calendar/components/dialogs/ChangeTaskStatus.js","modules/calendar/CalendarView.js","modules/leads/leads-history/components/LeadHistorySearch.js","modules/leads/leads-history/leads-history-events.js","modules/leads/leads-history/leads-history-action.js","modules/leads/leads-history/components/LeadHistory.js","modules/leads/leads-recordings/hooks/useLeadRecordings.js","modules/leads/leads-recordings/components/PaginationContainer.js","modules/leads/leads-recordings/components/RecordingItem.js","modules/leads/leads-recordings/components/SideBar.js","modules/leads/leads-recordings/LeadRecordingsDrawer.js","modules/leads/components/LeadDetailsHeader.js","modules/leads/components/forms/LeadAmountForm.js","modules/leads/components/forms/LeadStageForm.js","modules/leads/components/forms/LeadCampaignForm.js","modules/leads/components/forms/LeadAssigneesForm.js","modules/leads/components/forms/LeadInfoCard.js","shared/components/forms/FormFields.js","modules/leads/leads-type-auto/components/LeadTypeAutoForm.js","modules/leads/leads-type-auto/components/LeadTypeAutoDialogForm.js","modules/leads/leads-type-auto/leads-type-auto-events.js","modules/leads/leads-type-auto/leads-type-auto-actions.js","modules/leads/components/PaperInfo.js","modules/leads/leads-type-auto/components/LeadTypeAutoInfo.js","modules/leads/leads-type-commercial-auto/components/LeadTypeCommercialAutoForm.js","modules/leads/leads-type-commercial-auto/components/LeadTypeCommercialAutoDialogForm.js","modules/leads/leads-type-commercial-auto/leads-type-commercial-auto-events.js","modules/leads/leads-type-commercial-auto/leads-type-commercial-auto-actions.js","modules/leads/leads-type-commercial-auto/components/LeadTypeCommercialAutoInfo.js","modules/leads/leads-type-general-liability/components/LeadTypeGeneralLiabilityForm.js","modules/leads/leads-type-general-liability/components/LeadTypeGeneralLiabilityDialogForm.js","modules/leads/leads-type-general-liability/leads-type-general-liability-validators.js","modules/leads/leads-type-general-liability/leads-type-general-liability-events.js","modules/leads/leads-type-general-liability/leads-type-general-liability-actions.js","modules/leads/leads-type-general-liability/components/LeadTypeGeneralLiabilityInfo.js","modules/leads/leads-type-life/components/LeadTypeLifeForm.js","modules/leads/leads-type-life/components/LeadTypeLifeDialogForm.js","modules/leads/leads-type-life/leads-type-life-events.js","modules/leads/leads-type-life/leads-type-life-actions.js","modules/leads/leads-type-life/components/LeadTypeLifeInfo.js","modules/leads/leads-type-home/components/LeadTypeHomeForm.js","modules/leads/leads-type-home/components/LeadTypeHomeDialogForm.js","modules/leads/leads-type-home/leads-type-home-events.js","modules/leads/leads-type-home/leads-type-home-actions.js","modules/leads/leads-type-home/components/LeadTypeHomeInfo.js","modules/leads/leads-type-workers-compensation/components/LeadTypeWorkersCompensationForm.js","modules/leads/leads-type-workers-compensation/components/LeadTypeWorkersCompensationDialogForm.js","modules/leads/leads-type-workers-compensation/leads-type-workers-compensation-events.js","modules/leads/leads-type-workers-compensation/leads-type-workers-compensation-actions.js","modules/leads/leads-type-workers-compensation/components/LeadTypeWorkersCompensationInfo.js","modules/leads/leads-type-employee-benefits/components/LeadTypeEmployeeBenefitsForm.js","modules/leads/leads-type-employee-benefits/components/LeadTypeEmployeeBenefitsDialogForm.js","modules/leads/leads-type-employee-benefits/leads-type-employee-benefits-events.js","modules/leads/leads-type-employee-benefits/leads-type-employee-benefits-actions.js","modules/leads/leads-type-employee-benefits/components/LeadTypeEmployeeBenefitsInfo.js","modules/leads/components/MiniCardNotes.js","modules/leads/components/LeadNotes.js","modules/leads/components/MiniCard.js","modules/leads/components/LeadTasks.js","modules/leads/leads-drivers/components/LeadDriverForm.js","modules/leads/leads-drivers/components/LeadDriverDialogForm.js","modules/leads/leads-drivers/leads-drivers-model.js","modules/leads/leads-drivers/leads-drivers-store.js","modules/leads/leads-drivers/leads-driver-events.js","modules/leads/leads-drivers/leads-drivers-actions.js","modules/leads/leads-drivers/components/LeadDriverInfo.js","modules/leads/LeadDetailsView.js","modules/my-account/invitations/components/Status.js","modules/my-account/invitations/invitation-events.js","modules/my-account/invitations/invitations-actions.js","modules/my-account/invitations/components/InvitationsList.js","modules/my-account/invitations/invitations-model.js","modules/my-account/invitations/components/Invitation.js","modules/my-account/invitations/InvitationsView.js","modules/my-account/company/components/AdminsTableRow.js","modules/my-account/company/components/AdminsTable.js","modules/my-account/company/components/Invitation.js","modules/my-account/company/CompanyView.js","modules/my-account/company-invitations/components/Invitation.js","modules/my-account/company-invitations/CompanyInvitationsView.js","modules/vendors/vendors-model.js","shared/components/tables/CustomTable.js","modules/vendors/components/VendorForm.js","modules/vendors/components/VendorFormDialog.js","modules/vendors/vendors-utils.js","modules/vendors/VendorsView.js","modules/my-account/phone-numbers/components/PhoneStatus.js","modules/my-account/phone-numbers/components/DeleteNumberModal.js","modules/my-account/phone-numbers/components/PhoneNumberPriority.js","modules/my-account/phone-numbers/components/PhoneNumbersList.js","modules/my-account/phone-numbers/phone-numbers-hooks.js","modules/my-account/phone-numbers/components/SearchBarNumbers.js","modules/my-account/phone-numbers/components/AvailablePhoneNumberList.js","modules/my-account/phone-numbers/phone-numbers-model.js","modules/subscription-plan/subscription-plan-item/subscription-plan-item-queries.js","modules/subscription-plan/subscription-plan-item/subscription-plan-item-events.js","modules/subscription-plan/subscription-plan-item/subscription-plan-item-actions.js","modules/subscription-plan/subscription-plan-item/subscription-plan-item-model.js","modules/my-account/phone-numbers/components/AddPhoneNumbers.js","modules/subscription-plan/subscription-plan-item/subscription-plan-item-hooks.js","modules/my-account/phone-numbers/PhoneNumberView.js","modules/my-account/email/email-validators.js","modules/my-account/email/email-events.js","modules/my-account/email/email-actions.js","modules/email/components/TestConnectionButton.js","modules/settings/inbound/inbound-queries.js","modules/settings/outbound/outbound-queries.js","modules/settings/inbound/inbound-store.js","modules/settings/inbound/inbound-model.js","modules/settings/inbound/inbound-validation.js","modules/settings/inbound/inbound-actions.js","modules/settings/inbound/components/InboundForm.js","modules/email/azure-queries.js","modules/email/azure-events.js","modules/email/azure-actions.js","modules/settings/outbound/components/MicrosoftServiceForm.js","modules/settings/inbound/InboundService.js","modules/email/components/GmailServiceItem.js","modules/email/components/OutlookServiceItem.js","modules/email/components/OutboundServiceItem.js","modules/email/components/ChooseServiceDialog.js","modules/email/components/AgencyEmailServiceInfo.js","modules/email/components/AgencyEmailService.js","modules/settings/outbound/outbound-store.js","modules/settings/outbound/outbound-model.js","modules/settings/outbound/outbound-validation.js","modules/settings/outbound/outbound-actions.js","modules/settings/outbound/components/OutboundForm.js","modules/settings/outbound/OutboundService.js","modules/settings/phone-calls/phone-calls-settings/phone-calls-settings-events.js","modules/settings/phone-calls/phone-calls-settings/phone-calls-settings-queries.js","modules/settings/phone-calls/phone-calls-settings/phone-calls-settings-actions.js","modules/settings/phone-calls/components/CampaignListItem.js","modules/settings/phone-calls/components/CampaignsList.js","shared/utils/useList.js","modules/settings/phone-calls/phone-calls-settings/phone-calls-settings-model.js","modules/settings/phone-calls/PhoneCallSettings.js","modules/phone-calls/voice-mail-message/voice-mail-message-model.js","modules/settings/voice-mail-messages/components/VoiceMailMessageItem.js","modules/settings/phone-calls/components/AudioRecorder.js","modules/settings/voice-mail-messages/components/VoiceMailMessageForm.js","modules/settings/voice-mail-messages/components/VoiceMailMessageDialog.js","modules/settings/voice-mail-messages/components/VoiceMailMessagesTable.js","modules/settings/voice-mail-messages/VoiceMailMessages.js","modules/settings/registration-status/components/Container.js","modules/settings/registration-status/components/Card.js","modules/settings/registration-status/components/Icons.js","modules/settings/registration-status/constants.ts","modules/settings/registration-status/components/TrustProductStatus.js","modules/settings/registration-status/components/TrustProductRegistrationRow.jsx","modules/settings/registration-status/components/MessagingProductStatus.tsx","modules/settings/registration-status/components/MessagingProductRegistrationRow.tsx","modules/settings/registration-status/RegistrationStatus.js","shared/hooks/useFetch.ts","modules/my-account/general/general-model.js","modules/my-account/general/components/AgencyRolesTable.tsx","modules/my-account/general/components/RoleTable.tsx","modules/my-account/general/GeneralView.tsx","modules/my-account/email/EmailView.js","modules/my-account/team/components/UsersTableRow.js","modules/my-account/team/team-queries.js","modules/my-account/team/team-validators.js","modules/my-account/team/team-events.js","modules/my-account/team/team-actions.js","modules/my-account/team/components/team-actions/UpdateDetailsForm.js","modules/my-account/team/components/UsersTable.js","modules/my-account/team/components/invite-team-member/Invitation.js","modules/my-account/team/TeamView.js","modules/my-account/components/Layout.js","modules/my-account/billing/subscription-plan/subscription-plan-events.js","modules/my-account/billing/subscription-plan/subscription-plan-validators.js","modules/my-account/billing/subscription-plan/subscription-plan-actions.js","modules/my-account/billing/subscription-plan/components/ChangePlanDialog.js","modules/my-account/billing/subscription-plan/components/NextInvoiceInformation.js","modules/my-account/billing/subscription-plan/components/SubscriptionPlanChanger.js","modules/my-account/billing/payment-method/payment-method-queries.js","modules/my-account/billing/payment-method/payment-method-events.js","modules/my-account/billing/payment-method/payment-method-validators.js","modules/my-account/billing/payment-method/payment-method-actions.js","modules/my-account/billing/payment-method/components/PaymentDialogForm.js","modules/my-account/billing/payment-method/components/PaymentMethodChanger.js","modules/my-account/billing/components/StatusCell.js","modules/my-account/billing/components/BillingHistory.js","modules/my-account/billing/billing-hooks.js","modules/my-account/billing/components/CancelSubscriptionDialog.js","modules/my-account/billing/components/CancelPlanCard.js","modules/my-account/billing/components/RenovateSubscription.js","modules/my-account/billing/BillingView.js","modules/agency/agency-queries.js","modules/agency/agency-validators.js","modules/agency/agency-events.js","modules/agency/agency-actions.js","modules/agency/components/AgencyActions.js","modules/agency/agency-model.js","modules/agency/components/AgencyFilter.js","shared/components/ListInputsEditable.js","modules/agency/components/forms/AgencyForm.js","modules/agency/components/AgencyFormDialog.js","modules/my-account/agency/AgencyView.js","modules/settings/SettingsView.js","modules/phone-calls/phone-call-recordings/phone-call-recordings-actions.js","modules/reports/phone-call-recording/PhoneCallRecordings.js","modules/reports/email-logs/components/LogFilter.js","modules/reports/email-logs/hooks/useAgencyEmails.js","modules/reports/email-logs/components/EmailLogRow.js","modules/reports/email-logs/EmailLogs.js","modules/reports/sms-logs/SmsRow.js","modules/reports/sms-logs/SmsLogs.js","modules/reports/phone-calls-logs/PhoneCallsLogs.js","modules/reports/agent-info/components/AgentsInfoFilter.js","modules/reports/agent-info/components/AgentsInfoHeader.js","modules/reports/agent-info/components/AgentsInfoRow.js","modules/reports/agent-info/AgentsInfo.js","modules/reports/agent-calls/agent-calls-utils.js","modules/reports/agent-calls/components/AgentsCallsFilter.js","modules/reports/agent-calls/components/AgentsCallsHeader.js","shared/utils/moment-utils.js","modules/reports/agent-calls/components/AgentsCallsRow.js","modules/reports/agent-calls/agent-calls-querys.js","modules/reports/agent-calls/agent-calls-actions.js","modules/reports/agent-calls/AgentsCalls.js","gerated/types.ts","modules/reports/agent-calls/agent-calls-hooks.js","modules/reports/phone-calls-logs/InbounCallLogs.js","modules/reports/voicemail/voicemail-events.ts","modules/reports/voicemail/voicemail-actions.ts","modules/reports/voicemail/VoiceMailView.tsx","modules/reports/agent-scores/AgentScoreTable.js","modules/reports/agent-scores/agent-score-events.js","modules/reports/agent-scores/agent-score-queries.js","modules/reports/agent-scores/agent-score-actions.js","modules/reports/agent-scores/agent-score-models.js","modules/reports/agent-scores/AgentScore.js","modules/system-settings/system-setting-models.js","modules/reports/leads-funnel/context/LeadFunnelContext.js","modules/reports/leads-funnel/components/LeadsFunnelFilter.js","modules/reports/leads-funnel/components/LeadsFunnelCampaign.js","modules/reports/leads-funnel/components/LeadsFunnelHeader.js","modules/reports/leads-funnel/leads-funnel-queries.js","modules/reports/leads-funnel/leads-funnel-actions.js","modules/reports/leads-funnel/leads-funnel-hooks.js","modules/reports/leads-funnel/components/LeadsFunnelChart.js","modules/reports/leads-funnel/LeadsFunnel.js","modules/reports/ReportsView.js","shared/components/ModuleSubMenu.js","modules/workflow/workflow-automation/workflow-automation-utils.js","modules/workflow/email-template/email-template-queries.js","modules/workflow/email-template/email-template-validators.js","modules/workflow/email-template/email-template-events.js","modules/workflow/email-template/email-template-actions.js","modules/workflow/email-template/email-template-hooks.js","modules/workflow/sms-template/sms-template-queries.js","modules/workflow/sms-template/sms-template-validator.js","modules/workflow/sms-template/sms-template-events.js","modules/workflow/sms-template/sms-template-action.js","modules/workflow/sms-template/sms-template-hooks.js","modules/workflow/workflow-automation-conditions.js","modules/workflow/workflow-automation/workflow-automation-model.js","modules/workflow/workflow-automation/components/WorkflowAutomationForm.js","modules/workflow/workflow-automation/components/WorkflowAutomationDialog.js","modules/workflow/workflow-automation/WorkflowAutomationView.js","modules/workflow/sms-template/components/SmsTemplateTableItem.js","modules/workflow/sms-template/sms-template-utils.js","modules/workflow/workflow-templates-model.js","modules/workflow/sms-template/components/SmsTemplateEditor.js","modules/workflow/sms-template/components/SmsTemplateForm.js","modules/workflow/sms-template/components/SmsTemplateDialog.js","modules/workflow/sms-template/components/SmsTemplatesTable.js","modules/workflow/sms-template/SmsTemplatesView.js","modules/workflow/email-template/components/TemplateCreator.js","modules/workflow/email-template/email-template-utils.js","modules/workflow/email-template/EmailTemplateView.js","modules/workflow/WorkflowView.js","shared/components/dialog/AppUpdateAvailable.js","webpack:///./src/shared/assets/images/google.svg?34f7","registerServiceWorker.js","webpack:///./src/shared/assets/images/microsoft.svg?70a9","shared/assets/images/reply.svg","webpack:///./src/shared/assets/images/trash.svg?9bf7","shared/assets/images/chat.svg","shared/assets/images/notifications.svg","shared/assets/images/no-notifications.svg","shared/assets/images/invitations.svg","shared/assets/images/landline.svg","shared/assets/images/mobile_phone.svg","App.js","index.js","shared/assets/images/filter-green.svg","shared/assets/images/table-sort-grey.svg","shared/assets/images/trasnfer.svg","shared/assets/images/call-green.svg","shared/assets/images/Search-dark.svg","shared/assets/images/call-phone.svg","shared/assets/images/chevron.svg","shared/assets/images/information.svg","shared/assets/images/left-arrow.svg","shared/assets/images/right-arrow.svg","shared/assets/images/update.svg","shared/assets/images/campaigns-gray.svg","shared/assets/images/alert.svg","shared/assets/images/create-company.svg","shared/assets/images/Billing-information.svg","shared/assets/images/First-Agency-Info.svg","shared/assets/images/Subscription-plan.svg","shared/assets/images/chat-green.svg","shared/assets/images/compose-email-green.svg","shared/assets/images/compose-email-white.svg","shared/assets/images/info.svg","shared/assets/images/tasks-green.svg","shared/assets/images/inbox-green.svg","shared/assets/images/update-grey.svg","shared/assets/images/recording-green.svg","shared/assets/images/call-phone-green.svg","shared/assets/images/chevron-down.svg","shared/assets/documents/campaign-leads-endpoint.md","shared/assets/images/compose-email.svg","shared/assets/images/google.svg","shared/assets/images/microsoft.svg","shared/assets/documents/csv/leads.csv","shared/assets/documents/csv/leads_drivers.csv","shared/assets/documents/csv/leads_auto.csv","shared/assets/documents/csv/leads_auto_with_drivers.csv","shared/assets/documents/csv/leads_commercial_auto.csv","shared/assets/documents/csv/leads_commercial_auto_with_drivers.csv","shared/assets/documents/csv/leads_home.csv","shared/assets/documents/csv/leads_home_with_drivers.csv","shared/assets/documents/csv/leads_life.csv","shared/assets/documents/csv/leads_life_with_drivers.csv","shared/assets/documents/csv/leads_employee_benefits.csv","shared/assets/documents/csv/leads_employee_benefits_with_drivers.csv","shared/assets/documents/csv/leads_general_liability.csv","shared/assets/documents/csv/leads_general_liability_with_drivers.csv","shared/assets/documents/csv/leads_workers_compensation.csv","shared/assets/documents/csv/leads_workers_compensation_with_drivers.csv","shared/assets/documents/csv/leads_ricochet.csv","shared/assets/images/leadvolt-lightning.png"],"names":["module","exports","Container","styled","div","_templateObject","_taggedTemplateLiteral","Span","span","_templateObject2","IconCount","_ref","name","countStyle","props","_objectWithoutProperties","_excluded","count","React","createElement","style","noCountMessage","Icon","Object","assign","size","cursor","Tooltip","message","defaultProps","USER_STATUSES","Status","StatusText","StatusCircle","_templateObject3","color","status","LoaderContainer","Loader","BoostLoader","USER_STATUS_CREATE_MUTATION","gql","USER_STATUS_LIST_QUERY","USER_STATUS_LIST_SUBSCRIPTION","OnSessionFetch","createEvent","OnSessionError","OnSelectedAgencyChange","OnMetaUpdate","OnApolloClient","OnUserUpdate","OnUserUpdateError","OnInvitationsSkipped","OnTokenExpired","apollClient","client","get","Error","ValidationError","_Error2","_inherits","_super2","_createSuper","arr","_this2","_classCallCheck","call","_wrapNativeSuper","isIncludesInOptions","stringToTest","listOptions","includes","isValidString","allowEmpty","arguments","length","undefined","allowNull","whiteSpace","test","isValidNumber","value","allowZero","allowNegative","numberToTest","parseInt","toString","match","isNaN","isValidFloat","decimalPlaces","parseFloat","decimalPart","split","isValidInteger","Number","isInteger","isValidEmail","email","isValidDate","date","moment","isValid","isValidPhoneNumber","number","fileToBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","result","onerror","error","sanitize8BaseEmptyFields","data","keys","forEach","key","Array","isArray","sanitize8BaseReference","connect","id","sanitize8BaseReferences","map","sanitize8BaseReconnects","reconnect","sanitize8BaseDocumentUpdate","downloadUrl","create","unCapitalize","charAt","toLowerCase","slice","createValidations","validations","modelName","messageValid","concat","errorMessages","validation","required","Boolean","type","push","field","numberWithCommas","replace","chunkArray","array","chunkSize","_toConsumableArray","debounce","func","timeout","wait","_len","args","_key","later","apply","clearTimeout","setTimeout","OnUserStatusCreateEvent","OnUserStatusError","OnuserStatuslistEvent","createUserStatus","_asyncToGenerator","_regeneratorRuntime","mark","_callee","userStatus","response","wrap","_context","prev","next","current","user","mutate","mutation","variables","refetchQueries","sent","t0","abrupt","dispatch","log","stop","_x","fetchUserStatuses","_ref2","_callee2","_context2","query","fetchPolicy","_x2","ToastText","Text","ToastTitle","ToastSuccess","title","text","Fragment","ToastError","_ref$text","ToastInfo","ToastAttention","ToastErrors","values","idx","IconWarn","img","ToastWarn","Row","alignItems","src","alert","alt","customScrollBar","css","Box","fullWidth","width","minWidth","height","minHeight","maxHeight","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","marginTop","marginBottom","marginLeft","marginRight","position","top","bottom","left","right","background","borderRadius","boxShadow","border","borderTop","borderBottom","borderLeft","borderRight","overflow","hoverable","hoverColor","display","flexDirection","flexGrow","flexWrap","justifyContent","gap","textAlign","withCustomScroll","NEW_SMS_NOTIFICATIONS_SUBSCRIPTION","QUERY_USER_NOTIFICATION","_templateObject4","UPDATE_NOTIFICATION","_templateObject5","UPDATE_NOTIFICATION_BY_FILTER","_templateObject6","CREATE_USER_PUSH_SUBSCRIPTION","_templateObject7","_templateObject8","OnFetchNotifications","OnFetchNotificationsError","OnNotificationMarkRead","OnNotificationMarkReadError","OnAllNotificationMarkRead","OnAllNotificationMarkReadError","OnServiceWorkerRegistered","markAllNotificationsAsRead","createAction","agency","read","set","filter","equals","markNotificationsAsRead","ids","in","_x3","markNotificationAsRead","_x4","_markNotificationAsRead","_callee4","_context4","fetchNotifications","_ref3","_callee3","page","first","skip","sort","_response$data$user$n","_response$data","_response$data$user","_response$data$user$n2","notifications","_context3","createdAt","userId","notificationRelation","items","notificationsList","console","_x5","_x6","_x7","createUserPushSubscription","_x8","_createUserPushSubscription","_callee5","_context5","endpoint","metadata","ToastMessage","_sms$lead","notification","sms","lead","firstName","receivedFrom","history","useHistory","Column","Paragraph","onClick","_sms$lead2","config","autoClose","toast","POSITION","BOTTOM_LEFT","success","setIsErrorToastShowing","onClose","errors","info","attention","warn","onErrorMixinFC","err","trim","onChangeDataHookMixin","object","newObject","_objectSpread","AgencyFragment","SelectedAgencyFragment","UserFragment","CompanyFragment","AgencyInvitationFragment","CompanyInvitationFragment","AGENCY_INVITATIONS_SUBSCRIPTION","COMPANY_INVITATIONS_SUBSCRIPTION","MetaFragment","_templateObject9","SESSION_QUERY","_templateObject10","SUBSCRIPTION_STATUS","INCOMPLETE_EXPIRED","USER_QUERY","_templateObject11","UPDATE_USER","_templateObject12","updateUserValidator","_templateObject13","_templateObject14","_templateObject15","userData","lastName","timezone","cellPhone","SYSTEM_SETTINGS_QUERY","OnSystemSettings","initialValue","OnSystemSettingsError","fetchSystemSettings","systemSettingsList","fetchUser","_args","updateUser","validate","_args2","avatar","t1","fetchSession","agencyInvitationFilter","createdBy","not_equals","companyInvitationFilter","t2","updateMeta","_ref4","_OnSessionFetch$get","selectedAgency","onboardingStep","userUpdate","skipInvitations","CAMPAIGN_STATUSES","PRIORITIES","DATE_SCHEMA_FORMATS","ADMIN","MANAGER","AGENT","AGENCY_ROLES","PRIORITY_VALUES","PRIORITY_OPTIONS","label","String","TYPE_VALUES","LEAD_TYPE_AUTO","LEAD_TYPE_COMMERCIAL_AUTO","LEAD_TYPE_HOME","LEAD_TYPE_LIFE","LEAD_TYPE_GENERAL_LIABILITY","LEAD_TYPE_WORKERS_COMPENSATION","LEAD_TYPE_EMPLOYEE_BENEFITS","GENDERS","MALE","FEMALE","OTHER","PREFER_NOT_SAYING","MARITAL_STATUSES","WIDOW","SINGLE","MARRIED","MARITAL_STATUSES_OPTIONS","LIST_INITIAL_STATE","loading","LEAD_CSV_FORMATS","LEAD_CSV_FORMAT_OPTIONS","getActiveAgency","session","agencies","getUserAgencies","agencyId","setActiveAgency","find","userAgencyUserRelation","item","getRolesOnSelectedAgency","roles","userAdminRelation","some","c","company","rolesInAgency","userHasAnyRoleInAgency","userRoles","role","getUserAgencyRoles","activeAgency","agencyUser","getUserRolesInAgency","_user$userAgencyUserR","userAgency","_slicedToArray","Dialog","Header","Body","Footer","Button","button","Name","p","Email","JobTitle","StyledLink","Link","StatusLabel","DropDownContainer","HeadDropdown","Chevron","rotate","OptionContainer","Switch","Switch8b","DropdownOption","isBusy","statusOptions","Component","DialogProfile","isOpen","auth","onOutsideClick","callsState","callsAction","showSwitch","_useState","useState","_useState2","isStatusOpen","setStatusOpen","dialogRef","useRef","userAgencyRoles","useEffect","handleClick","event","contains","target","document","addEventListener","removeEventListener","handleLogout","clearStore","localStorage","clear","authClient","logout","useEventSubscription","option","Head","ref","Grid","Layout","inline","columns","Avatar","Dropdown","isHead","chevron","closeOnClickOutside","i","toUpperCase","onChange","inverted","to","compose","withApollo","withAuth","getColorFromStatus","AvatarWithStatusWrap","AvatarStatus","AvatarWithStatus","useAgency","setAgency","useSubscription","getAdminCompanies","relation","isCompanyAvailable","subscription","subscriptions","UNPAID","CANCELED","INCOMPLETE","isCompanyAvailableFromAgencyId","CREATE_PHONE_CALL","CREATE_PHONE_CALL_WITH_LEAD","QUERY_LEADS_PHONES","QUERY_LEAD_STAGES","CREATE_LEAD_DISPOSITION","INBOUND_PHONE_CALLS_LIST","PHONE_CALLS_LIST","PHONE_NUMBERS_QUERY","LEAD_DATA_QUERY","TRANSFER_CALL_MUTATION","PHONE_CALL_PARTICIPANT_SUBSCRIPTION","FETCH_PHONE_CALL_PARTICIPANT","FETCH_LEAD_CALL_CADENCE_AND_AGENCY","_templateObject16","FETCH_CALL_INFO","_templateObject17","CREATE_LEAD_CALL_CADENCE","_templateObject18","UPDATE_LEAD_CALL_CADENCE","_templateObject19","TwilioDevice","Device","require","CALL_TYPES","callControlsDefaultState","show","connection","callId","from","_type","ringing","duration","interval","phoneNumber","calling","inboundCallPreview","campaign","TWILIO_CONFIG","codecPreferences","fakeLocalDTMF","enableRingingState","DEVICE_EVENTS","TWILIO_ERROR_CODES","AUTOMATIC_CALLS_STATUSES","FILTER_DATA","dateStart","dateEnd","aceptedBy","rejectedBy","SORT_OPTIONS","FILTER_CATEGORIES_SHARE","placeholher","identifier","FILTER_CATEGORIES_OUTBOUND","assignedTo","options","FILTER_CATEGORIES_INBOUND","onLeadDispositionCreate","onLeadDispositionCreateError","onPhoneNumberList","onVoiseMailMessageList","onVoiseMailMessageListError","onTransferCall","onTransferCallError","onOnlineUsersList","OnFetchCallParticipant","OnFetchCallParticipantError","OnDeletePhoneCallRecordingEvent","OnDeletePhoneCallRecordingError","OnFetchPhoneCallRecordingsEvent","OnFetchPhoneCallRecordingsError","OnFetchInboundCallsEvent","OnFetchInboundCallsError","OnFetchOutboundCallsEvent","OnFetchOutboundCallsError","OnFetchTwilioTokeError","OnPhoneCallRegistryEvent","OnPhoneCallRegistryError","OnLeadPhonesListEvent","OnLeadPhonesListError","OnLeadStagesListEvent","OnLeadStagesListError","OnCallStartEvent","OnCallStartError","OnPhoneCallFinishedEvent","OnFetchLeadCallCadenceEvent","OnFetchLeadCallCadenceError","OnCreateLeadCallCadenceEvent","OnCreateLeadCallCadenceError","OnUpdateLeadCallCadenceEvent","OnUpdateLeadCallCadenceError","OnFetchCallInfoEvent","OnFetchCallInfoError","getUserToken","JSON","parse","token","getRandomNumber","min","max","shouldRound","random","Math","round","ACTIVE","createPhoneCallRegistry","leadId","fetchLeadCallCadenceAndAgency","_fetchLeadCallCadenceAndAgency","_callee6","resp","_context6","fetchCallInfo","_fetchCallInfo","_callee7","callSid","twilioSubAccountSid","_context7","subAccountSid","createLeadCallCadence","_createLeadCallCadence","_callee8","_context8","updateLeadCallCadence","_updateLeadCallCadence","_callee9","callCadenceId","_context9","fetchLeadPhoneList","limit","_x9","shouldFetchToken","initializeTwilioClient","_x10","_x11","_initializeTwilioClient","_callee10","refetch","_yield$response$json","twiliodev","_args10","_context10","fetch","process","headers","Authorization","json","setup","_fetchLeadStages","_callee11","_context11","_createLeadDisposition","_callee12","amount","callType","rest","newData","_context12","outboundPhoneCall","inboundPhoneCall","stage","createSort","sortData","priority","fetchPhoneCalls","AND","filterData","gte","startOf","toISOString","lte","endOf","_x13","_x14","fetchIboundPhoneCalls","_x15","_x16","fetchPhoneNumbers","_x17","_fetchPhoneNumbers","_callee13","subStatus","_args13","_context13","active","OR","isFree","phoneNumbersList","_fetchLeadDataService","_callee14","_context14","_transferCallService","_callee15","users","phones","_context15","transferCall","_x19","_x20","_x21","_x22","fetchCallParticipant","_ref5","_x23","useUser","_useState2$","setUser","_OnSessionFetch$get2","currentUser","state","TABLE_COLUMNS","Received","property","Contact","AssignedTo","Campaign","LastAction","Priority","ACTIVE_COLUMNS","leadType","leadVendor","hasNotes","SMS_FILTER_DATA","SMS_SORT_OPTIONS","LEAD_TYPE_OPTIONS","FILTER_CATEGORIES_TEXT_TYPES","FILTER_CATEGORIES","middleName","createdAfter","createdBefore","SMS_FILTER_CATEGORIES","GENDER_OPTIONS","BIRTHMONTH_OPTIONS","BIRTHDAY_OPTIONS","getDateOfBirthYears","BIRTHYEAR_OPTIONS","Date","getFullYear","YES_OR_NOT","STATES_OPTIONS","LEAD","gender","birthMonth","birthDay","birthYear","ifsScore","assignees","agents","phone","code","firstAddress","secondAddress","city","zipCode","creditScore","canSeeTaskAndNotesOptions","leadDetailMap","_lead$campaign","address","getLeadType","zip","street1","street2","getLeadPhoneNumbers","checkEmptyColumnValues","row","column","leadLeadTypeAutoRelation","leadLeadTypeCommercialAutoRelation","leadLeadTypeHomeRelation","leadLeadTypeLifeRelation","leadLeadTypeGeneralLiabilityRelation","leadLeadTypeWorkersCompensationRelation","leadLeadTypeEmployeeBenefitRelation","driverCreateMap","driver","isUpdate","checkBoolOrString","string","birthDate","maritalStatus","ageFirstLicensed","licensedState","licenseStatus","fullTimeStudent","education","occupation","creditRating","parseTo","relationshipToApplicant","daytimePhone","eveningPhone","preferredContactNumber","preferredContactTime","makeOfVehicle","modelOfVehicle","yearOfVehicle","ownership","primaryUse","averageOneWayMileage","annualMileage","vehicleParking","antiLockBreaks","securitySystem","salvagedVehicle","yearsAtCurrentResidence","insuranceCompany","continuouslyInsuredYears","continuouslyInsuredMonths","currentInsuranceCompanyYears","currentInsuranceCompanyMonths","insuredPast30Days","yearsInField","policyExpirationDate","howManyIncidentsInThePast5Years","incidentsPast5Years","violationsPast5Years","activityPast5Years","vin","ticketsAccidentsClaimsPast3Years","additionalDrivers","additionalVehicles","completedBehindTheWheel","currentBodilyInjuryCoverages","currentPropertyDamageCoverages","currentCoverageLevel","coverageLevel","currentComprehensiveDeductible","currentCollisionDeductible","fillingRequired","bankruptcyInPast5Years","multiplePolicyDiscount","eNewsletter","suspendedOrRevokedInThePast5Years","dUIDWIInThePast5Years","dateOfDUIDWI","desiredCollisionCoverage","desiredComprehensiveCoverage","averageDaysPerWeekUsed","primaryDriver","leadDriverValidations","leadDriver","NaN","leadCommercialAutoMap","leadCommercialAuto","leadCommercialAutoValidations","businessName","yearsInBusiness","businessType","coverageAmount","payroll","sales","numberOfVehicles","numberOfDrivers","leadCommercialAutoCreateMap","numberOfEmployees","leadAutoMap","leadAuto","leadAutoValidations","alternate","otherInfo","leadAutoCreateMap","leadLifeMap","leadLife","dateGenerated","format","leadLifeValidations","lifeInsuranceInformation","policyType","faceAmount","knownMedicalCondition","smoke","term","heightFeet","heightInches","age","weight","leadLifeCreateMap","dateLeadGenerated","spouse","bankAccount","telemarketerName","callbackTime","beneficiary","spouseAge","driveRecording","leadHomeMap","leadHome","claims","addressLineToBeInsured","cityToBeInsured","stateToBeInsured","zipToBeInsured","addressToBeInsured","leadHomeCreateMap","continuouslyInsured","currentlyInsured","homeUpgrades","newPurchase","ageOfRoof","bathrooms","bedrooms","bestTimeToContact","brushHazardWithin500Feet","burglarAlarm","businessConductedOnPremises","cathedralVaultedCeilings","centralHeatingAir","comments","constructionType","copperWaterPipes","coverageNeededOnContents","coverageNeededOnHouse","credit","currentInsuranceCompany","deadBolts","dob","dogType","dwellingType","enclosedPorchPatio","fencedInPool","fireAlarm","fireExtinguishers","fireHydrantProximity","fireStationProximity","fireplaces","floodPain","foundationType","frequencyOfPayment","garageType","hardwoodFloors","heatType","homeUpgradesDescribed","homeValue","hotTub","indoorSprinklers","insuredSince","mannedSecurityStation","monitoredBurglarAlarm","numberOfClaims","occupancyStatus","policyExpiration","porches","premium","requestedDeductible","requestedLiability","sauna","servicePanelType","smokeDetectors","smokerInHousehold","squareFootage","stories","sumpPump","swimmingPool","tennisCourts","timeAtCurrentResidence","timeAtPreviousResidence","timeWithCurrentCompany","wiringType","woodBurningStove","yearBuilt","leadEmployeeBenefitsMap","leadEmployeeBenefits","leadEmployeeBenefitsValidations","annualPayroll","companyName","natureOfBusiness","leadEmployeeBenefitsCreateMap","leadGeneralLiabilityMap","leadGeneralLiability","leadGeneralLiabilityCreateMap","grossSales","leadWorkersCompensationMap","leadWorkersCompensation","leadWorkersCompensationValidations","leadWorkersCompensationCreateMap","priorityMap","optionList","findPriority","canDeleteLeads","getLeadFullName","getLeadPhoneNumberRelationInput","reduce","acum","curr","parsePhone","parsedPhone","update","delete","LeadPhoneType","MOBILE","disconnect","getLeadFromRowCsv","index","_lead$email","leadTypeFields","leadDrivers","countDrivers","types","indexOf","every","t","join","typePrefix","substr","leadTypeMaps","auto","commercialAuto","life","home","employeeBenefit","generalLiability","workersCompensation","startsWith","attribute","countDriver","startColumn","columnIndex","columnName","keyPhone","_defineProperty","mapLeadTypeRelationName","preprocessDataFromCsv","newCsvColumns","newCsvData","campaignIndex","elem","genderIndexes","hasGenderColumn","e","maritalStatusesIndexes","hasMaritalStatusColumn","datesIndexes","hasDateColumns","priorityIndex","typeIndex","subarr","_","selectedPriority","findPriorityNumber","acending","maxNum","minNum","diference","years","order","year","_lead$leadLeadPhoneNu","leadLeadPhoneNumberRelation","PhoneNumberUtil","getInstance","parseAndKeepRawInput","getNationalNumber","parsePhoneNumber","str","parseSavedNumbers","numbers","purchasedNumbers","failedNumbers","stringify","getPhoneNumbersString","getPhoneNumberStr","formatPhoneNumber","timeFormats","singular","plural","d","formatDuration","formats","depth","_formats","floor","twilioConnectionErrors","parseListToSelectOptions","list","getBestPhoneNumber","selectedNumber","isTollFree","tollFreePrefixes","_parsePhoneNumber","_item$number","_item$number$number","_item$number2","_item$number2$number","randomIndex","getCadenceInterval","subtract","_handleLeadCallCadence","callInfo","_updateLeadCallCadenc","twilioSID","callCadence","startTime","day1","lastCalled","useUserStatus","_useUser","_useQuery","useQuery","subscribeToMore","unsubscribe","updateQuery","userStatusesList","subscriptionData","UserStatus","node","onError","AWAY","useTwilioDeviceSubscription","callback","subscriptionRef","subscriptionCallback","params","on","removeListener","usePhoneCallComponent","isInitialized","ready","setReady","_useState3","_useState4","startingCall","setStartingCall","_useUser2","phoneNumbers","useEvent","isReady","makeCall","useCallback","receiverName","callerNumber","onReady","connectionError","onOffline","usePhoneCallControls","_useState5","_useState6","_useState6$","setState","_useState7","_useState8","muted","setMuted","_useUser3","audioStream","microphoneStream","_useState9","_useState10","showDialPad","setShowDialPad","_useState11","_useState12","isErrorToastShowing","fecthNumbers","setInterval","minutes","clearInterval","onAccept","onCancel","disconnectAll","close","acceptCall","accept","prevState","ignoreCall","ignore","rejectCall","sendDialDigit","digit","sendDigits","muteToggle","mute","handleHangUp","handleVoiceMail","audio","AudioContext","window","webkitAudioContext","mediaStream","setInputTracksFromStream","stream","play","context","track","createMediaElementSource","output","createMediaStreamDestination","handleVoiceMailEnded","getTracks","navigator","mediaDevices","getUserMedia","then","createMediaStreamSource","resume","_call$lead","phoneCallCreate","customParameters","conn","_data$phoneCallPartic","phoneCallParticipant","inboundCall","outboundCall","isCalling","parameters","CallSid","handleLeadCallCadence","start","now","toggleDialPad","closeDialPad","useLeadStages","_useState13","_useState14","_useState14$","setList","fetchLeadStages","leadStagesList","DropdownList","MenuOption","Menu","Item","MenuContainer","forwardRef","setNumber","loadingPaginate","leadName","formatedPhone","callPhoneIconUrl","Dialer","showList","viewNumber","loadingPhoneList","phoneList","_useState4$","setPhoneList","dialerRef","externalRef","numberOfCurrentItems","total","setPage","isNearScreen","setIsNearScreen","element","observer","IntersectionObserver","entries","el","isIntersecting","rootMargin","observe","handleNextPage","prevPage","resetPagination","useInfinityPagination","_ref2$leadsList","leadsList","mappedPhones","num","viewNum","showPhoneList","handleInputChange","filteredPhoneList","filterList","InputField","placeholder","input","onFocus","stretch","DialerPhones","Backdrop","DialerBackdrop","disabled","DialerButton","children","setShow","routes","path","iconUrl","component","List","ul","RouterLink","FakeLink","Li","li","Image","Logo","StyledIcon","StretchedTooltip","withRouter","companyAvailable","route","pathName","location","pathname","routePath","isActive","placement","iconName","TextSpacing","BodyHeader","currentOption","defaultOpen","bodyHeader","showActiveOption","offset","currentOptionValues","DefaultHead","optionsFiltered","DropdownBoost","toggleDropdown","renderOptionsMap","onDisabledClick","DropdownWrap","PrimaryBtn","DialogInvitations","onCloseDialog","onClickAcceptAgencyInvitation","onClickDeclineAgencyInvitation","onClickAcceptCompanyInvitation","onClickDeclineCompanyInvitation","isLoading","agencyInvitations","companyInvitations","invitation","avatarUrl","previewUrl","username","agencyName","header","description","showButtons","Card","Section","offsetY","offsetX","Heading","UPDATE_AGENCY_INVITATION_MUTATION","FIND_ROLES_IN_AGENCY","CREATE_ROLES_IN_AGENCY","UPDATE_ROLES_IN_AGENCY","canAcceptAgencyInvitation","userEmail","canDeclineAgencyInvitation","OnAcceptAgencyInvitationEvent","OnDeclineAgencyInvitationEvent","OnAgencyInvitationError","acceptAgencyInvitation","agencyUsersList","agencyUserRoles","eventData","include","t3","agencyUserUpdate","agencyUserCreate","declineAgencyInvitation","createManagerAgencies","managed","_iterator","_step","_createForOfIteratorHelper","s","n","done","f","finish","agencyUsersUpdate","QUERY_INVITATIONS","CREATE_INVITATION","DELETE_INVITATION","RESEND_INVITATION","CREATE_INVITATION_COMPANY","COMPANY_INVITATION_LIST","DELETE_COMPANY_INVITATION","UPDATE_COMPANY_INVITATION_MUTATION","CREATE_ADMIN_MUTATION","canAcceptCompanyInvitation","canDeclineCompanyInvitation","OnCompanyinvitationListEvent","OnCompanyinvitationError","OnDeclineCompanyinvitationEvent","OnAcceptCompanyinvitationEvent","OnfetchCompanyList","OnCompanyfetched","OnCompanyUpdated","OnCompanyError","OnCreateCompanyInvitationEvent","OnCreateCompanyInvitationError","OnDeleteCompanyInvitationEvent","OnDeleteCompanyInvitationError","OnSubcriptionPlansListEvent","OnSubcriptionPlansListError","fetchCompanyInvitationList","pageSize","queryOffset","userID","createCompanyInvitation","createCompanyInvitationValidator","deleteCompanyInvitation","invitationId","createAdmin","companyId","acceptCompanyInvitation","_invitation$company","agencyCompanyRelation","declineCompanyInvitation","_ref6","_OnSessionFetch$get3","_Flux$DashStore","AgencyStore","_super","_this","addEvent","Flux","DashStore","getPendingInvitations","agencyInvitationsList","companyInvitationsList","pulse","keyframes","IconCountWrap","iconA","iconB","iconC","AutomaticCallsIcon","imgUrl","colorsAndText","1","textColor","bg","2","3","4","5","Badge","StyledBadge","customPriority","colors","NotificationsListItem","timeFromNow","fromNow","formatedDate","_getNotificationInfo","_userTrigger$avatar","userTrigger","disposition","userTriggerName","userTriggerAvatar","NOTIFICATIONS_TYPES_GROUPS","LEADS","url","linkText","NOTIFICATIONS_TYPES","LEAD_ASSIGN","LEAD_UNASSIGN","LEAD_UPDATE","LEAD_EXPIRATION","expiration","expirationDate","created","difference","diff","MAILS","emailId","subject","MAIL_FROM_LEAD","MAIL_RECEIVED","CAMPAIGNS","CAMPAIGN_ASSIGN","CAMPAIGN_UNASSIGN","CAMPAIGN_UPDATE","getNotificationInfo","onLinkClick","areas","area","justifySelf","NotificationCard","unread","updating","setUpdating","markAllAsRead","useMemo","loader","more","variant","content","initialState","useNewSMSMessageNotifications","onSubscriptionData","notificationId","smsObj","Notification","NotificationsIcon","refresh","_notificationsList$co","useNotificationsList","pin","onFetchChannelMembers","onFetchChannelMembersError","onFetchUnreadMessages","onFetchUnreadMessagesError","CHAT_CHANNEL_MEMBER_QUERY","UNREAD_MESSAGES_QUERY","NEW_MESSAGE_SUBSCRIPTION","_fetchChannelsMembers","_fetchUnreadMessages","channels","responses","results","responsesData","channel","lastReadTS","all","WORKSPACE_ENDPOINT","createApolloClient","getToken","httpLink","HttpLink","uri","authLink","setContext","_headers","authorization","errorLink","_error$response$error","graphQLErrors","wsLink","WebSocketLink","connectionParams","workspaceId","environmentName","webSocketImpl","_WebSocket","WebSocketWithoutProtocol","WebSocket","splitLink","definition","getMainDefinition","kind","operation","link","ApolloClient","cache","InMemoryCache","apolloClient","Apollo","apollo","ApolloProvider","ChatIcon","userToken","channelsMembers","setChannelsMembers","unreadCount","setUnreadCount","showChatSidebar","setShowChatSidebar","fetchChannelsMembers","channelMembersList","fetchUnreadMessages","prevCount","messages","messagesList","subcriptionCallback","subscribe","_data$Message","_data$Message$node","Message","_data$Message2","Chat","authToken","isSidebarVisible","onChangeSidebar","BarRow","TitleContainer","AgencyContainer","IconsContainer","Agency","CurrentBadge","TRIALING","handleOnChangeAgency","setAgencyId","getTitle","dialogIsOpen","setDialogIsOpen","setTitle","invitationsCount","setInvitationsCount","dialogInvitationIsOpen","setDialogInvitationIsOpen","setAgencyInvitations","setCompanyInvitations","isLoadingInvitations","setIsLoadingInvitations","setInvitations","_getPendingInvitation","_getPendingInvitation2","pendingAgencyInvitations","pendingCompanyInvitations","agencyInvitationSubcriptionCallback","AgencyInvitation","_data$AgencyInvitatio","previous","companyInvitationSubcriptionCallback","CompanyInvitation","_data$CompanyInvitati","unlisten","listen","handleOnSubscription","useSimpleSubscription","agencyStore","isAgencyEnabled","optionComponent","isEnabled","_useAutomaticCalls","_agency$phoneCallSett","socketRef","_usePhoneCallComponen","_useUser5","_useState15","_useState16","setActive","_useState17","_useState18","statusType","setStatusType","_useState19","_useState20","socket","setSocket","agencySetting","phoneCallSettings","automaticCalls","requestLead","emit","makeCallToLead","tel","startRequesting","socketClient","socketIOClient","lastConnection","getItem","removeAllListeners","onlineUsersCallback","onResponse","useAutomaticCalls","alignContent","emptyLabel","Toast","R","BreadcrumbsContainer","Breadcrumb","routeComponent","matchOptions","exact","ignoreRoutes","Paper","BreadcrumbsBoost","matchPath","FETCH_PHONE_CALL_RECORDINGS","DELETE_PHONE_CALL_RECORDING","FETCH_FILE_UPLOAD_INFO","uploadFile","_info$data$fileUpload","apiKey","policy","signature","form","body","handle","fileUploadInfo","FormData","append","method","filename","OnFetchVoiceMailMessagesEvent","OnFetchVoiceMailMessagesError","OnCreateVoiceMailMessageEvent","OnCreateVoiceMailMessageError","OnUpdateVoiceMailMessageEvent","OnUpdateVoiceMailMessageError","OnDeleteVoiceMailMessageEvent","OnDeleteVoiceMailMessageError","VoiceMailMessageFragment","FETCH_VOICE_MAIL_MESSAGES","CREATE_VOICE_MAIL_MESSAGE","UPDATE_VOICE_MAIL_MESSAGE","DELETE_VOICE_MAIL_MESSAGE","VoiceMailMessageStore","createFilter","byAgency","byName","byUrl","byActive","byProperty","_filter$name","namePredicate","_filter$url","urlPredicate","_filter$active","activePredicate","_filter$user","userPredicate","fetchVoiceMailMessages","orderBy","fetchVoiceMailMessagesForCalls","createVoiceMailMessage","voiceMail","onProgress","uploadedInfo","_args3","dispatchEvent","fileId","updateVoiceMailMessage","_args4","File","deleteVoiceMailMessage","VoiceMailMessagesDialog","_React$Component","open","handleSubmit","onSubmit","selected","_createClass","this","_this$state","shouldCloseOnOverlayClick","scrollable","ActionButton","ControlButton","voicemailIconUrl","sending","VoiceMailButton","onSubmitVoiceMail","onVoiceMailEnded","modalRef","audioRef","handleVoiceMailSubmit","voiceMailMessagesList","controls","hidden","crossOrigin","ControlsPortal","controlsRoot","getElementById","createPortal","propTypes","PropTypes","oneOfType","arrayOf","isRequired","IconPulse","CallInfo","displayName","align","DialPadContainer","section","DialCloseBtn","DialBtn","DialPad","send","rounded","LEAD_NOTE_FRAGMENT","FETCH_LEAD_NOTES","NOTE_CREATE_MUTATION","NOTE_UPDATE_MUTATION","NOTE_DELETE_MUTATION","LEAD_AUTO_FRAGMENT","LEAD_TYPE_AUTO_UPDATE_MUTATION","LEAD_COMMERCIAL_AUTO_FRAGMENT","LEADS_TYPE_COMMERCIAL_AUTO_UPDATE_MUTATION","LEAD_DRIVER_FRAGMENT","FETCH_LEAD_DRIVERS","LEAD_DRIVER_CREATE_MUTATION","LEAD_DRIVER_UPDATE_MUTATION","LEAD_DRIVER_DELETE_MUTATION","LEAD_GENERAL_LIABILITY_FRAGMENT","LEAD_TYPE_GENERAL_LIABILITY_UPDATE_MUTATION","LEAD_LIFE_FRAGMENT","LEAD_TYPE_LIFE_UPDATE_MUTATION","LEAD_HOME_FRAGMENT","LEAD_TYPE_HOME_UPDATE_MUTATION","LEAD_WORKERS_COMPENSATION_FRAGMENT","LEAD_TYPE_WORKERS_COMPENSATION_UPDATE_MUTATION","LEAD_EMPLOYEE_BENEFITS_FRAGMENT","LEAD_TYPE_EMPLOYEE_BENEFITS_UPDATE_MUTATION","LeadHistoryFragment","FETCH_LEAD_HISTORY_QUERY_RESOLVER","AGENT_FRAGMENT","USER_FRAGMENT","LEAD_TASK_FRAGMENT","LEAD_FRAGMENT","LEAD_FRAGMENT_V2","LEAD_HISTORY_FRAGMENT","LEADS_FOR_TASK_LIST_QUERY_V2","LEADS_LIST_QUERY_V2","LEADS_COUNT","LEADS_LIST_LIGHT_QUERY","LEADS_LIST_LIGHT_SUBSCRIPTION","FILTER_OPTIONS_QUERY","LEAD_USERS_UPDATE_MUTATION","LEAD_CREATE_MUTATION","LEAD_UPDATE_MUTATION","LEAD_DELETE_MUTATION","TASK_CREATE_MUTATION","TASK_UPDATE_MUTATION","LEAD_TASK_TYPE_LIST_QUERY","_templateObject20","LEAD_DETAIL_QUERY","_templateObject21","CREATE_SMS_MUTATION","_templateObject22","FETCH_SMS_LIST","_templateObject23","FETCH_LEADS_COUNT_IN_CAMPAIGN","_templateObject24","FETCH_MESSAGES_BY_LEAD","_templateObject25","FETCH_LEAD_RECORDINGS","_templateObject26","ASSIGN_USERS_TO_LEAD","_templateObject27","UPDATE_LEAD","_templateObject28","_templateObject29","FETCH_CAMPAIGNS","_templateObject30","FETCH_LEAD_TASKS","_templateObject31","DELETE_LEAD_PHONE_NUMBERS","_templateObject32","OnFetchLeadEvent","OnFetchLeadEventError","OnUpdateLeadAmount","OnUpdateLeadAmountError","OnFetchCampaigns","OnFetchCampaignsError","OnUpdateLeadCampaign","OnUpdateLeadCampaignError","OnUpdateLeadAssignees","OnUpdateLeadAssigneesError","OnFetchLeadTasks","OnFetchLeadTasksError","OnFetchLeadMessages","OnFetchLeadMessagesError","OnLeadMessageCreate","OnLeadMessageCreateError","OnFetchLeadRecordings","OnFetchLeadRecordingsError","LeadStore","leadMessageValid","driverMessageValid","genderOptions","addressLine1","addressLine2","leadMessage","maritalStatusOptions","createAndUpdateLeadValidator","drivers","_step$value","updateLeadValidator","phoneUtil","isPossibleNumber","createAndUpdateTaskValidator","task","createLeadsFromRicochetColumnValidator","createLeadFromStandardValidator","_step2","_iterator2","createLeadFromRicochetValidator","creationDate","onTaskCreate","onTaskUpdateEvent","OnCsvUploadFinised","OnLeadsListEvent","OnLeadsError","OnFetchSmsListEvent","OnLeadCreateEvent","OnDeleteLeadsResult","OnAssignUserstoLeadEvent","OnAssignUserstoLeadError","OnLeadsUpdateEvent","OnDeleteLeadEvent","OnLeadsChunkBulkCreateEvent","OnValidatedLeadDataForUploadEvent","OnTaskError","OnTaskTypeListEvent","OnTaskTypeListError","search","_filterData$stage","rolesFilter","agencyFilter","stageNameFilter","typeSelectedFilter","typeFilter","is_not_empty","searhArray","word","notesLeadRelation","flat","phoneNumberFromFilter","textFields","leadSource","is_empty","none","fetchLeads","fetchLeadsLight","_responseCount$data","responseCount","responseLeads","fetchUserLeads","fetchFilterOptions","updateLeadUsers","_ref7","userIds","uid","updateLead","_ref8","_getLeadPhoneNumberRe","force","_x12","updateLeadPriority","_ref9","deleteLeads","_ref10","leadList","deleteLead","_ref11","createLead","_ref12","_x18","createTask","_ref13","updateTask","_ref14","fetchLeadTaskTypes","_ref15","fetchLeadDetails","_ref16","updateLeadAmount","_ref17","updateLeadCampaign","_ref18","_callee16","_context16","_x24","_x25","updateLeadAssignees","_ref19","_callee17","_context17","_x26","_x27","fetchAgencyCampaigns","_ref20","_callee18","_context18","_x28","fetchLeadTasks","_ref21","_callee19","_context19","_x29","createSms","_ref22","_callee20","_context20","files","meta","leadPhoneNumber","_x30","createLeads","_ref23","_callee21","csvColumns","csvData","formattedLeads","leadIndex","leads","getListPromises","requestPromise","sizeChunck","chunksLeads","_args21","_context21","chunkLeads","r","importedLead","imported","isLast","totalChunk","catch","ceil","promise","nextChunk","_x31","_x32","_x33","createLeadsFromRicochet","_ref24","_callee22","leadsType","importedLeadId","vehicles","_result","attr","_i","promises","_args22","_context22","col","creation","second","country","_vehicles$order","_vehicles$order2","_vehicles$order3","make","model","toDate","_x34","_x35","_x36","_x37","fetchSMSMessages","_ref25","_callee23","_context23","_x38","_x39","fetchLeadMessages","_ref26","_callee24","_args24","_context24","_x40","assignUsersToLeads","_ref27","_callee26","_context26","_ref28","_callee25","_context25","assigned","_x43","_x41","_x42","fetchLeadRecordings","_x44","_x45","_fetchLeadRecordings","_callee27","_context27","getAssignedUsersLabel","firstUserFullName","firstUser","othersUsers","mapUserToDropdownWithCheck","assignedIds","a","checked","mapUserToMultipleSelect","FETCH_MAILS","FETCH_MAIL","CREATE_EMAIL_MESSAGE","FETCH_EMAIL_CONFIGURATION","FETCH_GMAIL_EMAILS","FETCH_GMAIL_EMAIL","CREATE_GOOGLE_EMAIL","FETCH_OUTLOOK_EMAILS","FETCH_OUTLOOK_EMAIL","CREATE_OUTLOOK_EMAIL","AgencyEmailServiceFragment","FETCH_AGENCY_EMAIL_SERVICES","CREATE_AGENCY_EMAIL_SERVICE","FETCH_AVAILABLE_EMAIL_SERVICES","UPDATE_AGENCY_EMAIL_SERVICE","OnFetchEmails","OnFetchEmailsError","OnFetchEmail","OnFetchEmailError","OnCreateEmail","OnCreateEmailError","OnFetchEmailConfig","OnFetchEmailConfigError","OnFetchGmailList","OnFetchGmailListError","OnFetchGmailItem","OnFetchGmailItemError","OnReplyGoogleEmail","OnReplyGoogleEmailError","OnFetchOutlookEmails","OnFetchOutlookEmailsError","OnFetchOutlookEmail","OnFetchOutlookEmailError","OnCreateOutlookEmail","OnCreateOutlookEmailError","OnReplyOutlookEmail","OnReplyOutlookEmailError","OnFetchAgencyEmailService","OnFetchAgencyEmailServiceError","OnFetchAvailableEmailServices","OnFetchAvailableEmailServicesError","OnSetAgencyEmailService","OnSetAgencyEmailServiceError","USER_SIGNATURE_QUERY","EmailStore","createEmailValidator","cc","LIST_FILTER_OPTIONS","OnUserSignatureEvent","OnUserSignatureError","OnCreateGoogleEmailEvent","OnCreateGoogleEmailError","INBOX","SEND","ARCHIVE","TRASH","createFilterForList","filters","folder","archived","deleted","_fullText","fetchEmails","fetchEmail","fetchAgencyEmails","createNewEmail","ccopy","EMAIL_TYPES","SENT","attachments","fetchUserSignature","fetchEmailConfiguration","_yield$client$query","emailInboundServicesList","emailOutboundServicesList","gmailServicesList","outlookServicesList","_emailInboundServices","inbound","_emailOutboundService","outbound","_gmailServicesList$it","gmail","_outlookServicesList$","outlook","fetchGoogleEmails","after","q","labels","fetchGoogleEmail","_createGoogleEmail","replyGoogleEmail","threadId","fetchOutlookEmails","fetchOutlookEmail","outlookId","createOutlookEmail","replyId","replyOutlookEmail","fetchAgencyEmailService","_response$data$agency","_yield$client$mutate","agencyEmailServiceCreate","agencyEmailServicesList","agencyEmailService","fetchAvailableEmailServices","_yield$client$query2","_yield$client$query2$","b","agencyAvailableEmailServices","setAgencyEmailService","emailService","AGENTS_LIST_QUERY","OnAgentsListEvent","OnAgentsError","fetchAgents","agentsList","SUBSCRIPTIONS_OPERATIONS","formType","TaskContainer","Title","LeadsBox","DateBox","TaskPriority","Description","UserBoxLoader","initialForm","taskTypesReducer","leadTaskTypesList","taskLeadsReducer","TaskForm","setLeadForTask","onSuccess","hasAgents","hasLeads","initialFormState","taskDate","dateStr","setForm","setSearch","setConfig","setService","_usePromise","usePromise","reducer","_usePromise2","taskTypes","loadingTaskTypes","_usePromise3","_usePromise4","fetchedleads","loadingLeads","_usePromise5","onCompleted","currentState","loadingAgents","searchTimeout","handleFormChange","currentForm","usedLeads","taskCreateHandler","leadID","selectedUsers","end","add","summary","organizer","onFormSuccess","DialogForm","createText","onClickCreate","SelectField","selectedLead","selectedType","DateInputField","withTime","Margin","Label","SelectMultipleAgents","disable","defaultValue","TextAreaField","leadField","BaseCard","LeadCallForm","_statusOptions$","_scoresOptions$","addTaskModal","setAddTaskModal","setLoading","carrier","quotedPremium","currentPremium","insurance","notes","handleChange","_useLeadStages","scoresOptions","defaultStatus","defaultScore","fetchLeadDataService","submitForm","newForm","obj","createLeadDisposition","offsetBottom","clearable","OnUsersInAgencyFetch","OnUsersInAgencyFetchError","OnFetchAgents","OnFetchAgentsError","OnFetchManagerAndAgentUsersEvent","OnFetchManagerAndAgentUsersError","OnAdminDeletedEvent","OnAdminDeletedError","FETCH_USERS","MUTATION_DELETE_ADMIN","FETCH_USER_INFORMATION","CREATE_STRIPE_CUSTOMER","fetchManagerAndAgents","fetchAgencyAgents","fetchUsersInAgency","removeAdminFromCompany","admin","fetchUserInfoInAgency","useUsersInAgency","usersList","UserCard","_user$avatar","setSelected","isSelected","Checkbox","PhoneCard","onRemove","modalId","Close","TransferCallDialog","_useModal","useModal","closeModal","region","setRegion","online","onlineUser","useOnlineUsers","setPhones","onAddPhoneNumber","getCountryCode","onRemovePhoneNumber","Modal","ellipsis","BoostIcon","Select","Input","transferIcon","TransferCallButton","openModal","slideIn","slideOut","animateSlideInOut","isLead","Controls","muteIconUrl","padIconUrl","hangupIconUrl","CallControls","animateBack","_usePhoneCallControls","displayToast","setDisplayToast","closeCallback","timeoutId","phoneCallParticipantSubscriptionCallback","PhoneCallParticipant","wasRemovedFromCall","Transition","unmountOnExit","mountOnEnter","fontSize","urlBase64ToUint8Array","base64String","base64","repeat","rawData","atob","outputArray","Uint8Array","charCodeAt","moveLeft","moveRight","animateToLeft","LayoutContainer","LayoutContent","setIsLoading","setStatus","permission","requestPermission","registration","pushSubscription","actualSub","serviceWorker","pushManager","getSubscription","userVisibleOnly","applicationServerKey","usePushNotifications","reload","childrenLayout","TopBar","Breadcrumbs","renderComponent","render","restProps","rendered","ProtectedRoute","renderRoute","_this$props","isAuthorized","_excluded2","Redirect","_this$props2","rProps","_excluded3","Route","StyledBtn","DeleteBtn","YesNoDialog","onYes","onNo","_ref$yesText","yesText","_ref$noText","noText","_ref$isLoading","UserPrice","OthersPrice","BoostRow","Total","BoostText","PlanCard","plan","numberOfSeats","onSelect","onQuantityChange","readOnly","monthlyPrice","capitalizeName","handleSelect","handlePlus","quantity","handleMinus","Radio","selectedValue","isFreeTrial","sizes","xs","sm","md","lg","StyledIconBoost","IconBoost","IconAskInfo","trigger","tooltipPlacement","tooltipText","modifiers","flip","enabled","INFO_SVG","IconCompanyInformation","COMPANY_INFORMATION_SVG","IconBillingInformation","BILLING_INFORMATION_SVG","IconAgencyInformation","AGENCY_INFORMATION_SVG","IconSubscriptionPlan","SUBSCRIPTION_PLAN_SVG","IconInfo","IconTrash","gray","IconUpdateAlt","IconSort","IconLeftArrow","IconRightArrow","IconCallGreen","CALL_GREEN_SVG","IconChatGreen","CHAT_GREEN_SVG","IconComposeEmailGreen","COMPOSE_EMAIL_GREEN_SVG","IconTasksGreen","TASKS_GREEN_SVG","IconPerformanceGreen","IconInboxGreen","INBOX_GREEN_SVG","IconUpdate","IconUpdateGrey","UPDATE_GRAY_SVG","IconSearchDark","SEARCH_DARK_SVG","CustomIconBoost","IconFilterGreen","FILTER_GREEN_SVG","IconFilterGrey","FILTER_GREY_SVG","IconClose","FaTimes","IconRecordingGreen","RECORDING_GREEN_SVG","StyledLabel","BoostLabel","iconStyle","base","CardContainer","PaymentForm","hasFreeTrial","hasMembershipCode","cardHolderName","card","membershipCode","paymentMethodId","last4","expireDate","useOldMethod","handleCardEdit","handleCardUndo","growChildren","rightIcon","CardElement","selectedPlan","taxId","website","subscriptionPlan","agentEmails","managerEmails","adminEmails","coupon","businessPhone","mobilePhone","brandName","postalCode","callerIdName","invoice","companySub","CREATE_COMPANY_MUTATION","companyFragment","COMPANIES_QUERY","FETCH_COMPANY_FOR_BILLING_STATUS","COMPANY_BILLING_SUBSCRIPTION","COMPANY_QUERY","UPDATE_COMPANY_MUTATION","SUBSCRIPTION_PLANS_QUERY","GET_MEMBERSHIP_INFO","createCompanyValidator","isSoleProprietorship","isPossiblePhoneNumber","updateCompanyValidator","onboardingInvitationsValidator","getAssignedAgents","generateInvitationsFromEmails","agentInvitations","managerInvitations","CompanyInvoiceFragment","FETCH_COMPANY_INVOICES","CREATE_COMPANY_SUBSCRIPTION","CREATE_PAYMENT_METHOD","FETCH_PAYMENT_INTENT","FETCH_COUPONS","renewSubscriptionValidator","oldSubscription","stripeCustomerId","OnSubscriptionCanceled","OnSubscriptionCanceledError","OnSubscriptionRenew","OnSubscriptionRenewError","OnUpcomingInvoiceFetch","OnUpcomingInvoiceFetchError","OnValidCouponFetch","OnValidCouponFetchError","OnFetchCompanyInvoicesEvent","OnFetchCompanyInvoicesError","OPEN","INVOICE_STATUS","fetchCompanyInvoices","cancelSubscription","companySubscriptionId","ok","renewCompanySubscription","stripe","elements","paymentMethod","companySubscription","_paymentIntent","paymentIntent","fetchPaymentIntentFromInvoice","stripeInvoiceId","confirmCardPayment","client_secret","payment_method","last_payment_error","createSubscription","latest_invoice","payment_intent","t4","voidInvoice","createPaymentMethod","customerId","cardElement","getElement","createStripePaymentMethod","planId","couponId","subscriptionPlanId","createStripeSubscription","_fetchPaymentIntentFromInvoice","stripePaymentIntent","retrieveUpcomingInvoice","_JSON$parse2","_body$errors","_fetchValidCoupon","_response$data$compan","valid","companySubCouponsList","OnBoardingError","OnCreateCompanyEvent","OnOnBoardingInvitationsCreateError","OnOnBoardingProcessFinished","createCompany","membershipInfo","customer","parentPaymentMethod","resCompany","_invoice","_create","_update","_resCompany","_companySubscription","_invoice3","_paymentIntent3","_result2","_invoice2","_paymentIntent2","_result3","contactPhone","adminCompanyRelation","IFS_SCORES_DEFAULT","twilioBusinessType","userSelectedAgencyRelation","agencyAgencyUserRelation","companyUpdate","companyCreate","invoiceId","t5","createCustomer","line1","line2","t6","t7","billing_details","company_id","t8","t9","t10","t11","t12","withData","createStripeCustomer","finalizeCompanySubscription","createInvitations","_generateInvitationsF","agencyInvs","companyInvs","_invitation","companyIds","createSubscriptionPlansFilter","fetchCompany","filterAdmins","fetchCompanies","fetchSubscriptionPlans","updateCompany","useSubscriptionPlans","setFilter","subscriptionPlansList","useCompany","setCompanyId","startPolling","stopPolling","Company","setCompany","BoostButton","BoostColumn","CouponInput","setText","setCoupon","fetchValidCoupon","handleClear","handleBlur","percentage","months","onClear","onBlur","squared","PENDING","COMPANY_STATUS","emailRegexp","CompanyForm","onCloseForm","useStripe","useElements","_useCompany","loadingCompany","loadingSubmit","setLoadingSubmit","setHasMembershipCode","loadingMembershipLookup","setLoadingMembershipLookup","setCustomerId","setPaymentMethod","parentCompanyName","setParentCompanyName","_useSubscriptionPlans","subscriptionPlans","loadingPlans","debouncedMembershipCode","debouncedFunc","setDebouncedFunc","handler","useDebounce","_fetchMembershipCode","fetchMembershipCode","res","_res$data","_res$data$company","_res$data$company2","_res$data$company3","_res$data$company4","companyPaymentMethods","custId","company_name","companyInvoices","nameOnCard","onSeatsChange","change","_data$company$subscri2","handleValidationReject","failedEmails","hasMoreThan1Seat","plans","_data$company","_data$company2","_form$subscriptionPla","FormTitle","offsetTop","PhoneInput","defaultCountry","withCountryCallingCode","maxWidth","showErrorOnTouched","maxLength","TagsInput","tags","onlyUnique","validationRegex","onValidationReject","addOnBlur","aligItems","CreateCompanyView","logoutIsOpen","setLogoutIsOpen","showAnnualPrice","onCloseLogout","MainLoaderContainer","MainLoader","DecisionDialog","confirmText","cancelText","handleConfirm","onConfirm","selectAgency","handleCancel","isSkipOpen","setIsSkipOpen","onSkipClose","withCompany","WrappedComponent","rollbar","Rollbar","accessToken","REACT_APP_ROLLBAR_TOKEN","captureUncaught","captureUnhandledRejections","Session","_SimpleView","sessionRequired","apolloRequired","sessionError","systemHasError","throwError","bind","_assertThisInitialized","errorInfo","prevProps","prevComp","currComp","prevSub","currSub","_componentDidMount","msg","InvitationsView","SwitchAgencyView","SimpleView","any","StyledBody","DropdownBodyOnTable","withPortal","TextEllipsis","Table","BoostTable","PaginationContainer","ActionsCell","BodyCell","StyledCell","CustomHeaderCell","StyledHeaderCell","HeaderCell","DataTable","Actions","columnsSize","dropdownOptions","withCheck","withLabelActions","withPagination","withIconSort","ignoreColumns","paginationCtnRef","leftDropdown","BodyRow","customBodyRender","CustomCellValue","Pagination","defaultPage","CustomLink","StyledHeading","BoostCard","CardIndicator","StyledLayout","TableHeader","PaperHeaderContainer","PaperHeader","StyledTitle","Btn","PlusBtn","PointerCard","Bar","DayComponent","points","weekday","day","dateToSelect","pointsBackgrounds","fontWeight","point","backgroundColor","WeekComponent","week","selectedDay","onRightClick","onLeftClick","onSelectDay","tasks","leftArrow","fullDate","pointsActives","pointsInActives","rightArrow","SmallLoader","TableBody","StyledBodyRow","StyledHeader","TableLite","CURRENT_USER_QUERY","USER_SIGN_UP_MUTATION","AuthBtn","renderContent","Logout","Login","authorize","Query","StyledButton","StyledText","ButtonIcon","iconSvg","ButtonWithoutIcon","DateContainer","TextContact","TextContactHeader","TextTable","6","7","PriorityBadge","priorityPos","TitleDetail","SecondaryTitle","BtnText","CreateButton","FilterBtn","FilterButtonWithFocus","icon","SortBtn","SearchIcon","SearchInput","onIconClick","searchIcon","Padding","BoostAvatar","Slide","Performance","positions","bgColor","Position","AgentSlide","performance","Tab","Show","_ref$tabs","tabs","tabSelected","setTabSelected","views","tab","view","CustomMultiValueContainer","CustomOption","CustomLabel","MultiValueContainer","components","MultiValueLabel","MultiValueRemove","Option","innerProps","isDisabled","IndicatorsContainer","isMulti","styles","multiValue","container","control","menu","zIndex","menuList","InputContainer","RadioButton","square","RadioLabel","RadioInputField","DropdownFooter","DropdownMenu","StyledDropdown","IconContainer","ItemsContainer","DropdownWithCheck","itemList","setIsOpen","setItems","ac","cv","setControl","onConfirmHandler","newItemList","onCancelHandler","newControl","renderItems","oldId","inputChangeHandler","prevValue","closeDropdown","StyledRow","ItemFilter","ListCardBody","className","HeaderTitle","SelectWithoutBorder","setValue","onItemClickHandler","selectedOption","getValueLabel","Tag","ReactTag","inputProps","Set","MenuItem","danger","OptionsIcon","OptionsDropdown","SimpleDropdown","FilterFooter","closeText","CategoryTitle","strong","RadioGroupContainer","FilterCategory","category","onFilter","inputValue","setInputValue","onCategoryChange","DateInput","minDate","maxDate","AgingTableLite","logoutRedirectUri","origin","redirectUri","Auth","createClient","strategy","AUTH_STRATEGIES","WEB_8BASE","subscribable","domain","clientId","AuthContainerClass","AuthContainer","Client","CallbackContainerClass","_handleAuthentication","idToken","jwtData","setIdToken","request","jwtToken","namespace","authProfileId","authResult","getAuthorizedData","handleAuthentication","setItem","unix","CallbackContainer","AuthCallback","StyledButtonIcon","AnnouncementForm","announcement","onChangeInput","getRandomQuote","Form","SectionBody","UpdateIcon","rows","author","AnnouncementFragment","ANNOUNCEMENT_LIST_QUERY","ANNOUNCEMENT_UPDATE_MUTATION","ANNOUNCEMENT_CREATE_MUTATION","createAndUpdateAnnouncementValidator","OnAnnouncementError","OnAnnouncementCreateEvent","OnAnnouncementUpdateEvent","OnAnnouncementListEvent","dateCreatedStart","fetchAnnouncements","attempts","updateAnnouncement","createAnnouncement","StyledPaper","SubTitle","Author","UpdateButton","TextHelp","QuoteOpen","QuoteClose","Announcement","onUpdate","activeAgencyId","setData","loadingForm","setLoadingForm","handleOnClickUpdate","ramdomizeData","_objectSpread2","quote","getRandomly","quotes","handleOnCreateAndUpdate","announcementModel","userFirstName","defaultTitle","userCanUpdateAndCreate","announcementData","preventDefault","TaskTitle","h3","TaskText","Task","time","assignedBy","TasksByDay","fromNowDate","selectedDayFormat","refetchTasks","taskFormIsOpen","setTaskFormIsOpen","tasksFromDay","agent","CampaignFragment","CAMPAIGN_DETAIL_QUERY","CAMPAIGN_LIST_QUERY","CAMPAIGN_LIST_LIGHT_QUERY","CAMPAIGN_PROGRESS_QUERY","CAMPAIGN_CREATE_MUTATION","CAMPAIGN_DELETE_MUTATION","CAMPAIGN_UPDATE_MUTATION","FETCH_CAMPAIGN_LEADS","OnCampaignsList","OnCampaignsListError","OnCampaignReplaceList","OnCampaignReplaceListError","OnCampaignCreate","OnCampaignUpdate","OnCampaignDelete","OnCampaignDeleteError","OnCampaignError","OnCampaignDeleteProgress","OnCampaignDetailsEvent","OnFetchCampaignProgressEvent","OnFetchCampaignProgressError","createAndUpdateCampaignValidator","startsAt","endsAt","deleteCampaignValidator","campaignId","nextCampaignId","dateCreatedEnd","lastUpdatedStart","updatedAt","lastUpdatedEnd","createOrder","createCampaign","newCampaign","fetchCampaignsList","fetchCampaigns","fetchCampaignsLight","deleteCampaign","fetchCampaignDetail","fetchCampaignProgress","updateCampaign","_args8","fetchAvailableCampaigns","_args9","moveLeadsAndDelete","_response$data$leadsL","groups","progress","forceDeleteCampaign","_response$data$leadsL2","allSettled","DASHBOARD_ELEMENTS_QUERY","LEADS_LAST_24HOURS","FETCH_TOP_PERFORMERS","FETCH_AGENCY_BI_REPORT","UPDATE_FEEDBACK_ON_REPORT","GET_REPORT","OnFetchTopPerformersEvent","OnFetchTopPerformersError","OnDashBoardElementsEvent","OnDashBoardElementsError","OnLeadsLast24HoursEvent","OnFetchAgencyReportEvent","OnFetchAgencyReportError","OnFeedbackReportCreate","OnFeedbackReportCreateError","fetchUsers","dateFilter","previusMonth","actualMonth","performers","myUser","leadLeadStageHistoryRelation","agencyCampaignRelation","campaing","campaignLeadRelation","exist","u","fetchLeadsInLast24Hours","_fetchTopPerformers","alias","direction","createPerformersFilter","period","_fetchAgencyReport","periodType","createFeedback","_createFeedback","reportId","feedback","report","feedbackObj","agencyReport","LEAD_TASK_DETAIL_QUERY","LEAD_TASK_LIST_QUERY","LEAD_TASK_DELETE_MUTATION","LEAD_TASK_UPDATE_MUTATION","createAndUpdateLeadTaskValidator","leadTask","emailMarketingCampaign","OnLeadTaskList","OnLeadTaskDetails","OnLeadTaskUpdate","OnLeadTaskDelete","OnLeadTaskError","onDate","onStatus","fetchLeadTask","deleteLeadTask","fetchLeadTaskDetail","updateLeadTask","campaignMap","vendor","workflows","createdAtFormat","bigInt","campaignMapDashboardTable","_campaignMap","agentsFormat","endsFormat","leadTaskMap","leadTaskMapTable","leadTaskMapDashboardTable","_leadTaskMap","getWeekForCalendar","dataWeek","_date","_d","PERIOD_OF_TIME_OPTIONS","PriorityCell","rowData","setPriority","StatusCell","nameCellComponent","Arrow","currency","Intl","NumberFormat","notation","NextArrow","PrevArrow","settings","variableWidth","dots","infinite","slidesToShow","slidesToScroll","nextArrow","prevArrow","TopPerformersSlide","setPerformers","setPeriod","fetchTopPerformers","Slider","agentFirstName","agentLastName","agentAvatar","NoData","OnFetchCampaignMetricsEvent","OnFetchCampaignMetricsError","OnFetchCampaignAgingLeadsEvent","OnFetchCampaignAgingLeadsError","OnFetchAgencyMetricsEvent","OnFetchAgencyMetricsError","OnFetchUserMetricsEvent","OnFetchUserMetricsError","OnFetchCampaignsEvent","metricCellComponent","_rowData","leadNameCellComponent","leadStatusCellComponent","agencyMetrics","campaignMetrics","userMetrics","fetchCampaignsByAgency","getCampaignAgingLeads","_fetchCampaignMetrics","_fetchAgencyMetrics","_fetchUserMetrics","_fetchCampaignAgingLeads","_fetchCampaigns","StyledLayoutFilters","Padded","AgingTable","paginationRef","setCampaignId","setCampaign","campaigns","setCampaigns","leadCount","setLeadCount","fetchedLeads","setFetchedLeads","fetchCampaignAgingLeads","agingCampaignLeads","cleanResult","__typename","_campaigns$","_campaigns$2","MetricsTable","aggregateMetrics","performanceMetrics","entityType","setEntityType","createdFromCheck","setCreatedFromCheck","dateRangeCheck","setDateRangeCheck","dateStartsAt","setDateStartsAt","dateEndsAt","setDateEndsAt","range","setRange","setShouldFetchMetrics","isDateStateClear","ButtonGroup","MetricsWrapper","_ref$type","setAggregateMetrics","setPerformanceMetrics","_useState21","_useState22","_useState23","_useState24","_useState25","_useState26","shouldFetchMetrics","_useState27","_useState28","initialFetchDone","setInitialFetchDone","setMetrics","metric","totalContactAttempts","totalContactsMade","uniqueLeadsContacted","uniqueLeadsQualified","uniqueLeadsCompetitive","uniqueLeadsConverted","avgSpeedToContactAttempt","speedToContactAttempt","avgSpeedToContact","speedToContact","leadContactRate","leadsContactRate","leadCompetitiveRate","leadsCompetitiveRate","leadConversionRate","leadsConversionRate","fetchAgencyMetrics","fetchCampaignMetrics","fetchUserMetrics","campaignMetricsAggregate","agencyMetricsAggregate","userMetricsAggregate","fetchedCampaigns","firstCampaign","Value","oneline","FormSectionBody","space","GridBoxFlexStart","FormValues","_ref$space","rowIndex","columnSize","toFixed","gapSize","fieldIndex","inputField","margin","dangerouslySetInnerHTML","__html","AccordionItem","chevronDown","StyledTextarea","textarea","RatingButton","FeedbackButtons","FeedbackForm","FeedbackFormTextArea","FeedbackFormSubmit","FeedbackFormCancel","Spacer","ReportItem","insightType","setFeedback","showFeedbackInput","setShowFeedbackInput","hideRatingButtons","setHideRatingButtons","setIsActive","showConfirmationMessage","setShowConfirmationMessage","insight","dateTime","rating","FaRegThumbsUp","FaRegThumbsDown","cols","FaCheck","OPTIONS","BusinessIntelligenceTabs","_agencyReportOutput$o","_agencyReportOutput$s","agencyReportId","setAgencyReportId","observations","suggestions","agencyReportOutput","setAgencyReportOutput","fetchAgencyReport","_data$agencyReportsLi","_data$agencyReportsLi2","_data$agencyReportsLi3","_data$agencyReportsLi4","_data$agencyReportsLi5","_data$agencyReportsLi6","agencyReportsList","Tabs","defaultSelectedTabId","tabId","Panel","Accordion","transition","transitionTimeout","allowMultiple","observation","AgencyReportItem","suggestion","DashboardLayout","NormalLayout","DashboardView","setWeek","setLeads","setUsers","setTasks","newLeads24hours","setNewLeads24hours","loadingAnnouncement","setLoadingAnnouncement","isLoadingCampaigns","setIsLoadingCampaigns","isLoadingLeadTasks","setIsLoadingLeadTasks","periodOfTime","setSelectedDay","dateReference","setDateReference","setAnnouncement","setPosition","oneDayAgo","getCampaigns","getTasks","getLeadsInLast24Hours","getAnnouncement","announcementFilter","positionData","campaignsList","leadTasksList","announcementsList","momentSelectedDay","calendar","agencyLeadSoldInLastMonth","mySales","userLead","LayoutComponent","enableInsights","qs","TasksByDate","DateReference","AgencyReportTabs","NormalMetrics","H1","h1","H2","h2","H3","H4","h4","Overline","OverlineBold","Small","SmallUpper","DesignSystem","prop","Code","Divider","DeleteCampaignProgress","setProgress","Progress","DeleteCampaignDialog","destroy","setDestroy","handleClose","isSearchable","CampaignListRow","_campaign$assignees","_campaign$workflows","_campaign$campaignLea2","automations","assigneesLabel","workflowsLabel","handleAssigneesChange","handleWorkflowsChange","handleDeleteClick","_campaign$campaignLea","userOptions","assignee","workflowOptions","automation","workflow","usersDropdown","workflowsDropdown","dropdown","Field","inputComponent","multiple","handleOnChange","CheckboxField","mapValues","WorkflowAutomationSelect","_defaultValue$map$","_defaultValue$map","emails","_defaultValue$map2","WorkflowAutomationFragment","WORKFLOW_AUTOMATIONS_LIST_QUERY","WORKFLOW_AUTOMATION_CREATE_MUTATION","WORKFLOW_AUTOMATION_UPDATE_MUTATION","WORKFLOW_AUTOMATION_DELETE_MUTATION","OnWorkflowAutomationList","OnWorkflowAutomationListError","OnWorkflowAutomaticationCreateEvent","OnWorkflowAutomaticationCreateError","OnWorkflowAutomaticationUpdateEvent","OnWorkflowAutomaticationUpdateError","OnWorkflowAutomaticationDeleteEvent","OnWorkflowAutomaticationDeleteError","createUpdateWorkflowAutomationValidator","conditions","condition","_condition$emailTempl","_condition$smsTemplat","emailTemplate","smsTemplate","fetchWorkflowAutomationsList","createWorkflowAutomation","workflowAutomation","normalize8baseReferenceConnect","updateWorkflowAutomation","prevConditions","_c$emailTemplate","_c$smsTemplate","deleteWorkflowAutomation","useWorkflowAutomations","workflowAutomationsList","OnVendorsEvent","OnVendorsError","OnVendorCreateEvent","OnVendorUpdateEvent","OnVendorDeleteEvent","VENDOR_FRAGMENT","VENDORS_LIST_QUERY","VENDOR_CREATE_MUTATION","VENDOR_UPDATE_MUTATION","VENDOR_DELETE_MUTATION","createAndUpdateVendorValidator","fetchVendors","createVendor","vendorData","updateVendor","deleteVendor","OnPhoneNumbersListEvent","OnPhoneNumbersListError","OnpurchasedPhoneNumbersError","OnPhoneNumberUpdateEvent","OnPhoneNumberUpdateError","OnPhoneNumberDeleteEvent","OnPhoneNumberDeleteError","OnTwilioPhonenumbersListEvent","OnTwilioPhonenumbersListError","OnPurchasedPhoneNumbersEvent","OnPurchasedPhoneNumbersError","CampaignForm","loadingVendors","setLoadingVendors","vendors","setVendors","_useUsersInAgencyLate","useUsersInAgencyLater","loadingUsers","_useWorkflowAutomatio","useWorkflowAutomationsLater","loadingWorkflows","fetchWorkflows","vendorsOptions","vendorsList","cloned","FilterDropdown","DropdownBody","FilterBody","FilterIconLabel","FilterIcon","CampaignFilter","categories","filterIconGreen","filterIconGrey","onFilterClick","CreateCampaignButton","targetAmount","currentAmount","CampaignListHeader","setFilters","setSort","handleFilter","toggleFilter","handleSortChange","CampaignsView","_useCampaignList","useCampaignList","workflowAutomations","usersOptions","setUsersOptions","initialData","onCreate","BoostProgress","CampaignProgress","raised","setRaised","setTarget","sold","valueText","DialogDeleteCampaign","QUERY_PHONE_NUMBERS","CREATE_PHONE_NUMBER","UPDATE_PHONE_NUMBER","SubscriptionPlanFragment","CompanySubFragment","FETCH_COMPANY_SUBSCRIPTION_PLANS","workspaceEndpoint","fetchPhoneNumbersList","_fetchPhoneNumbersList","fetchTwilioPhoneNumbersList","_fetchTwilioPhoneNumbersList","sessionReq","getPhonesEnpoint","_sessionReq$user","_sessionReq$user$sele","_purchasePhoneNumbers","_canCreatePhoneNumber","_canCreatePhoneNumber2","canCreate","reason","savedNumbers","_parseSavedNumbers","_parseSavedNumbers2","successfulNumbers","companySubsList","canCreatePhoneNumber","_response","_deletePhoneNumber","updatePhoneNumber","_updatePhoneNumber","_data$number","restData","CustomDropdownWrap","CampaignDetailsView","useParams","isLoadingForm","setIsLoadingForm","setAgents","setWorkflowAutomations","isOpenForm","setIsOpenForm","isOpenDelete","setIsOpenDelete","setPhoneNumbers","selectedPhoneNumber","setSelectedPhoneNumber","cachedAmount","setCachedAmount","toggleOpenForm","_data$campaign","_data$campaign$phoneN","campaignUpdate","campaignName","toLocaleLowerCase","campaignEndpoint","compare","handleOnChangeEmailMarketing","CopyToClipboard","href","docs","download","Search","TextInput","searching","handleClearable","useURLQuery","loc","useLocation","ignoreQueryPrefix","setQuery","prevSearch","EmailListItem","_useURLQuery","_useURLQuery2","LoaderBlock","TouchableText","EmailList","available","onNextPage","GoogleButton","MicrosoftButton","FormColumn","InputColumn","paddingLess","Div","ReadOnly","Normal","TextBody","IconDelete","onLoading","onNotLoading","EmailForm","dest","onSubmitWithGoogle","onSubmitWithOutlook","onTrash","setTo","setCc","setSubject","setBody","setAttachments","setSignature","service","prevBody","isEnableSignature","emailAttachList","attachmentsList","aux","deleteFile","submit","sub","isReply","FileInput","maxFiles","pick","profile","htmlFor","Editor","init","menubar","plugins","toolbar","onEditorChange","initialSubject","EmailDialog","ComposeEmailContext","createContext","ComposeEmailProvider","setDest","Provider","onCompose","createGoogleEmail","EmailProfileContext","EmailDetails","setEmail","useContext","onReply","_email$lead","mail","canReply","MailListToolbarRow","StyledColumn","StyledDivBorder","InboxSection","ThreadContainer","ManualEmailsView","setTop","_useEmailList","mailList","useEmailList","getBoundingClientRect","onFolderChange","onSearch","getSelectedListOptionLabel","composeEmail","GmailListItem","payload","_from$value$split","_from$value$split2","internalDate","GmailList","hasMore","onMore","GmailReplyDialog","submitting","setSubmitting","editorRef","googleEmailCreate","getContent","onInit","editor","GmailDetails","googleEmail","labelIds","GmailEmailsView","_useGmailList","googleEmailsList","useGmailList","handleType","handleSearch","getSelectedGmailOptionLabel","google","OutlookListItem","_email$from$name$spli","_email$from$name$spli2","OutlookList","OutlookReplyDialog","OutlookDetails","_email$from","outlookProfile","outlookEmail","OutlookEmailsView","_useOutlookList","outlookEmailsList","useOutlookList","handlFolder","getSelectedOutlookOptionLabel","microsoft","mode","setMode","setProfile","checkRegistration","setRegistration","ENTITIES","OPERATIONS","ENTITY_SELECTOR_OPTIONS","MarginLessCol","horizontal","Content","isData","ColumnInfo","ColumnName","ColumnValue","RowHeader","clickable","LeadHistoryItem","onDetailsClick","isFullHistory","yesterday","clone","InnerWrapper","isSame","ReactJsonView","NoteHistoryItem","onNoteClick","note","handleInfoClick","TaskHistoryItem","onTaskClick","EmailHistoryItem","onEmailClick","thread","CallHistoryItem","_disposition$status","onDispositionClick","durationLabel","phoneCallDispositionRelation","ArrowContainer","SmsHistoryItem","_event$sms","_event$sms2","onSmsClick","arrowIcon","FaArrowDown","FaArrowUp","StageHistoryItem","DeletedHistoryItem","entity","PhoneNumber","isValidNumberForRegion","LEAD_STAGE_FRAGMENT","QUERY_LEADS_STAGES","CREATE_LEAD_STAGE_HISTORY","ASSING_LEAD_STAGE","OnFetchLeadStages","OnFetchLeadStagesError","OnSetLeadStage","OnSetLeadStageError","assignLeadStage","assignLeadToStage","stageId","ASSING_LEAD_STAGE_MUTATION","TableBodyCell","TextContactContainer","LeadCell","_lead$stage","cell","stages","stagesOptions","contact","SelectInput","canAssignAgents","lastHistoryActionType","lastHistoryActionData","fullHistory","onInfoClick","action","getActionItem","LeadFilter","setCategories","prevCategories","prevFilters","fields","BoldText","memo","selectedLeads","GridBoxFlexEnd","Add","CenteredIcon","LeadForm","handleOnChangeInput","handleDeleteInputPhone","j","handleOnChangeNumber","handleOnChangeCode","_e$target","tooltip","UNREACHABLE","LANDLINE","score","LeadFormDialog","afterSubmit","setFields","dataLead","newLead","withPadding","CardTitle","PaginationWrapper","ButtonContainer","LeadAssignUserDialog","onAssignUsersToLeads","setSelectedUsers","prevSelectedUsers","prevUserId","Msg","isLeadUser","MsgAuthor","MsgText","MsgDate","formattedDate","MsgContainer","MsgNumber","MsgBody","FaMinusCircle","CardMargin","RowPhone","MsgHistory","TitleCardHeader","TitlePhones","MsgForm","_ref$messages","setMsg","setNumbers","setFiles","setUserId","handlePhoneNumbersFrom","_user$selectedAgency","_user$selectedAgency$","phoneNumbersRelation","sessionData","_user","fetchData","invalidPhoneContent","QUERY_AGENCY_TYPE","_agencyTypeQuery","_agencyTypeQuery$data","_agencyTypeQuery$data2","_agencyTypeQuery$data3","phoneNumbersFrom","agencyTypeQuery","agencyType","fileList","invalidOptions","file2","addFile","createNoteValidator","lenght","onLeadNoteUpdate","onLeadNoteDelete","OnFetchLeadNotes","OnFetchLeadNotesError","OnNoteCreateEvent","OnNoteError","createNote","updateNote","deleteNote","fetchLeadNotes","filterLeadNotes","filterDispositionNotes","NoteContainer","TextAreaContainer","Noteform","selectedNote","setNote","noteCreateHandler","noteUpdateHandler","CustomIcon","LeadActions","onDelete","canDelete","isNoteModalOpen","setIsNoteModalOpen","isMsgModalOpen","setIsMsgModalOpen","callIcon","informationIcon","NoteForm","SortFilter","CustomHeader","CustomGrid","columnGap","CustomGridCell","CustomBtn","ListCard","SortTableBtn","SortTableConfirm","SortTableConfirmOptions","SortTableMenu","RadioInput","HeaderCellContainer","BatchHeader","TableRow","StyledTableHeader","CardHeader","LeadsView","assignUsersLoading","setAssignUsersLoading","deletingLead","setDeletingLead","setSelectedLeads","setSelectedLead","leadForTask","isOpenAssignUser","setIsOpenAssignUser","sortTableActive","setSortTableActive","tableColumns","setTableColumns","activeColumns","setActiveColumns","_useState29","_useState30","isTaskModalOpen","setIsTaskModalOpen","_useState31","_useState32","leadTaskTypeList","setLeadTaskTypeList","_useState33","_useState34","_useAgencyLeads","_useSubscription","_data$Lead","Lead","useAgencyLeads","onSubmitSearch","onSubmitFilters","onClearFilters","_data$campaignsList","headerCheckboxHandler","oldSelectedLeads","tableSortHandler","sortIdentifier","newColumnList","deleteLeadsHandler","leadsToDelete","l","onDeleteLeads","onAssignUsersLeads","handleAssingUsersToLeads","filteredLeads","handleOnNo","childNodes","textContent","leadStages","sortedColumnsSizes","columnsStr","getColumnsSizes","headerCols","tableHeader","sortColumns","batchActions","canSeeBatchActions","setTaskModal","sortTableIcon","newActiveList","columnClone","confirmSortTableHandler","newLeadsColumns","cancelSortTableHandler","previousPath","onScroll","columnList","oldSelectedList","LeadsDialog","currentAgencyId","CsvPreviewCell","_React$PureComponent","fieldProps","fieldName","campaignOptions","ifsScoresOptions","homeDob","homeBestTimeToContact","homeInsuredSince","homePolicyExpiration","getFieldProps","ifsOptions","val","PureComponent","RICOCHET","LeadsCsvPreviewDialog","csvFormat","onBlurInput","onUploadCsv","setLeadsType","uploading","setUploading","isMassiveUpload","setMassiveUpload","setHeight","setWidth","worker","clientWidth","clientHeight","onResize","Worker","_data$errors","_data$errors2","_data$errors3","terminate","onContinue","postMessage","VariableSizeGrid","columnCount","columnWidth","rowCount","rowHeight","itemData","shouldCloseOnEscPress","Dropzone","TextDanger","TextDropzone","FileName","FileUpload","onClickRemoveFile","setMessage","onDrop","acceptedFiles","newFiles","preview","handleOnClickClose","_file","_useDropzone","useDropzone","getRootProps","getInputProps","links","_links","leads_drivers","leads_auto","leads_auto_with_drivers","leads_commercial_auto","leads_commercial_auto_with_drivers","leads_home","leads_home_with_drivers","leads_life","leads_life_with_drivers","leads_employee_benefits","leads_employee_benefits_with_drivers","leads_general_liability","leads_general_liability_with_drivers","leads_workers_compensation","leads_workers_compensation_with_drivers","leads_ricochet","LeadsCsvUploadDialog","onClickContinue","onChangeFileUpload","hasData","setFormat","handleContinue","LeadsCsvStatusUploadDialog","accumulatorLeads","totalLeads","STANDARD","LeadsCsvDialogs","setCsvData","setCsvColumns","setCsvFormat","setAccumulatorLeads","setTotalLeads","isOpenLoaderCSVDialog","setIsOpenLoaderCSVDialog","isOpenPreviewDialog","setIsOpenPreviewDialog","isOpenStatusUploadDialog","setIsOpenStatusUploadDialog","isLoadingPreview","setIsLoadingPreview","setHasData","_location$state","handleOnChangeFileUpload","Papa","complete","_complete","skipEmptyLines","handleOnClickRemoveFile","handleOnBlurInput","keyIndex","handleOnUploadCsv","handleOnClosePreview","handleOnClickContinue","_location$state2","_location$state$param","_yield$preprocessData","_yield$preprocessData2","csvNewColumns","csvNewData","useSub","goBack","CAMPAIGNS_OPTIONS","Type","CALENDAR_EVENT_RENDER","_def","extendedProps","classList","CALENDAR_EVENT_TIME_FORMAT","hour","minute","meridiem","hour12","CALENDAR_HEADER","center","selectedTasks","StyledIconInfo","StyledIconCheck","RowActions","handleOnDeleteTask","handleInfoModal","handleOnChangeStatus","TableTextEllipsis","TableRows","taskCheckboxChangeHandler","RowCell","InfoModal","dialogTitle","isOpenInfoModal","onCloseInfoModal","openTaskFormDialog","closeTaskFormDialog","TableFooter","handlePageChange","StyledDropdownBodyOnTable","OnTopHideShowColumns","hideShowColumns","handleHideShowColumns","DialogDeleteLeadTask","DialogUpdateLeadTaskStatus","StyledBox","ButtonLink","LeadTaskView","leadTasks","setLeadTasks","leadTaskForUpdateOrDelete","setLeadTaskForUpdateOrDelete","setSelectedTasks","setIsOpenInfoModal","statusDialogOpen","setStatusDialogOpen","deleteDialogOpen","setDeleteDialogOpen","filterCategories","setFilterCategories","_useState35","_useState36","handleExecuteSearch","handleChangeStatusNo","handleChangeStatus","leadTaskForUpdate","leadTaskForDelete","handleDeleteTaskNo","handleDeleteTask","updatedLeadTask","leadTaskUpdate","leadTaskDelete","filterCategoriesClone","FILTER_DATA_LEADS","handleOnChangeFilter","allTasks","newList","pageNum","withSession","setUserAgencyRol","modalData","setModalData","selectedTask","setSelectedTask","selectedDate","setSelectedDate","isOpenChangeTaskStatus","setIsOpenChangeTaskStatus","currentFilter","customButtons","toTasksList","click","openTaskForm","FullCalendar","defaultView","dayGridPlugin","interactionPlugin","timeGridPlugin","events","eventRender","eventTimeFormat","showNonCurrentDates","firstDay","dateClick","eventClick","publicId","ChangeTaskStatus","LeadHistorySearch","timeoutRef","OnFetchleadHistoryEvent","OnFetchleadHistoryError","OnFetchFullLeadhistoryEvent","OnFetchFullLeadhistoryError","fetchLeadHistory","fetchFullLeadHistory","CustomColumn","mb","animate","SideBar","LeadHistory","filtered","setFullHistory","setDifference","setInfo","setType","setGap","setCount","bodyRef","leadHistoriesResolver","_event$call$phoneCall","regexp","RegExp","filterItem","handleTypeChange","getHistoryItem","onExited","RecordingPlayerCell","RecordingItem","leadRecording","tableCols","recordingDate","recordingTime","AudioPlayer","recordingUrl","timeFormat","preload","volume","layout","showJumpControls","customVolumeControls","customAdditionalControls","mse","srcDuration","LeadRecordingsDrawer","nodeRef","_useLeadRecordings","queryState","setQueryState","fetchLeadRecordingsData","leadRecordingsData","phoneCallRecordingsList","useLeadRecordings","leadRecordings","isLoadingLeadRecordings","toastError","BoostHeading","NavBar","NavInfo","NavActions","NavItem","LeadDetailsHeader","setMessages","loadingMessages","setLoadingLeadMessages","setOpen","sMSMessagesList","customArg","LeadAmountForm","_ref$amount","LeadStageForm","setStages","LeadCampaignForm","LeadAssigneesForm","sel","LeadInfoCard","formattedPhoneNumbers","isTextContact","formatContactData","FormFields","inputFiled","LeadTypeAutoForm","leadTypeData","LeadTypeAutoFormDialog","OnleadsAutoUpdateEvent","OnleadsAutoError","updateLeadAuto","PaperInfo","btnText","onClickBtn","LeadTypeAutoInfo","leadTypeInfo","setLeadTypeInfo","setLeadTypeFields","leadTypeAutoUpdate","_leadAutoMap","formatData","leadAutoToUpdate","LeadTypeCommercialAutoForm","LeadTypeCommercialAutoFormDialog","OnLeadsCommercialAutoUpdateEvent","OnLeadsCommercialAutoError","updateLeadCommercialAuto","LeadTypeCommercialAutoInfo","leadTypeCommercialAutoUpdate","_leadCommercialAutoMa","leadCommercialAutoToUpdate","LeadTypeGeneralLiabilityForm","LeadTypeGeneralLiabilityFormDialog","leadGeneralLiabilityMessageValid","updateLeadGeneralLiabilityValidator","OnLeadsGeneralLiabilityUpdateEvent","OnLeadsGeneralLiabilityError","updateLeadGeneralLiability","LeadTypeGeneralLiabilityInfo","leadTypeGeneralLiabilityUpdate","_leadGeneralLiability","leadTypeToUpdate","LeadTypeLifeForm","LeadTypeLifeFormDialog","OnLeadsLifeUpdateEvent","OnLeadsLifeError","updateLeadLife","LeadTypeLifeInfo","leadTypeLifeUpdate","_leadLifeMap","leadLifeToUpdate","BtnAdd","BtnPlusChar","BtnDelete","BtnLess","ClaimRow","claim","onChangeClaim","onDeleteClaim","LeadTypeHomeForm","onAddNewClaim","claimIndex","LeadTypeHomeFormDialog","OnLeadsHomeUpdateEvent","OnLeadsHomeError","updateLeadHome","LeadTypeHomeInfo","leadTypeHomeUpdate","_leadHomeMap","leadHomeToUpdate","newClaims","newLeadHomeData","LeadTypeWorkersCompensationForm","LeadTypeWorkersCompensationFormDialog","OnLeadsWorkersCompensationUpdateEvent","OnLeadsWorkersCompensationError","updateLeadWorkersCompensation","LeadTypeWorkersCompensationInfo","leadTypeWorkersCompensationUpdate","_leadWorkersCompensat","leadWorkersCompensationToUpdate","LeadTypeEmployeeBenefitsForm","LeadTypeEmployeeBenefitsFormDialog","OnLeadsEmployeeBenefitsUpdateEvent","OnLeadsEmployeeBenefitsError","updateLeadEmployeeBenefits","LeadTypeEmployeeBenefitsInfo","leadTypeEmployeeBenefitUpdate","_leadEmployeeBenefits","leadEmployeeBenefitsToUpdate","MiniCardContainer","MiniCardHeader","MiniCardTitle","MiniCardFooter","TypeBox","MiniCard","typeBox","priorityBadge","optionsDropdown","canSeeOptions","LeadNotes","setNotes","leadNotesList","leadDispositionsList","NoteItem","LeadTasks","TaskItem","sections","LeadDriverForm","SectionTitle","k","LeadDriverDialogForm","LEAD_DRIVER","OnFetchLeadDrivers","OnFetchLeadDriversError","OnLeadDriverCreateEvent","LeadDriverStore","OnLeadDriverCreateError","OnLeadDriverUpdateEvent","OnLeadDriverDeleteEvent","OnLeadDriverError","fetchLeadDrivers","leadDriversList","createLeadDriver","updateLeadDriver","deleteLeadDriver","leadDriverId","DriverHeader","StyledMargin","LeadDriverInfo","setDrivers","setLeadDriver","isOpenLeadDriverForm","setIsOpenLeadDriverForm","loadingLeadDriver","setLoadingLeadDriver","loadingDeleteDriver","setLoadingDeleteDriver","isUpdateLeadDriver","setIsUpdateLeadDriver","isOpenLeadDriverDelete","setIsOpenLeadDriverDelete","handleOnNoLeadDriverDelete","fullName","formatDriversData","driverIndex","driverMapped","driverMap","dataLeadDriver","driversLeadRelation","LeadDetailsView","setLead","leadLastCalled","_lead$callCadence","OnCreateInvitationCompanyEvent","OnCreateInvitationCompanyError","OnDeleteinvitationEvent","OnDeleteinvitationError","OnResendInvitationEvent","OnResendInvitationError","OnInvitationListEvent","OnInvitationListError","OnCreateInvitationEvent","OnCreateInvitationError","fetchInvitationList","createInvitation","createAgencyInvitationValidator","deleteInvitation","resendInvitation","resend","createInvitationCompany","InvitationsList","invitations","CompanyInvitationList","menuOpen","setMenuOpen","setInvitation","loadingDelete","setLoadingDelete","loadingResend","setLoadingResend","deleteModal","deleteInvitationAction","resendInvitationAction","defaultPageSize","data-e2e-id","USER_INVITATION_TYPES","Invitation","formDefault","formErrors","setFormErrors","handleSelectChange","saveInvitation","disabledSubmit","hasError","modal","setModal","loadingUser","setLoadingUser","setTotal","validUser","userRole","_data$agencyInvitatio","fetchInviations","BoostTag","AdminsTableRow","handleDelete","AdminsTable","admins","setLoaderUpdate","onUsersCount","setDeleteModal","CardHeaderWithButton","CardBody","ColumnLeft","ColumnRight","CompanyView","isOpenUpdate","setIsOpenUpdate","loaderUpdate","isInviteModalOpen","setisInviteModalOpen","companies","setCompanyName","handleCloseUpdate","initOptionsSelectCompany","companyData","companiesList","companyOfActiveAgency","currentCompany","companiesWithCompanyUpdated","handleTotalChange","renderInputCompany","companyOptions","CompanyInvitationsView","setCompanies","_data$companyInvitati","fetchCompanyInvitations","VENDOR","StyledTableBody","VendorForm","VendorFormDialog","vendorsMap","vendorCampaignRelation","isUpdateForm","setIsUpdateForm","setVendor","handleOnNoDelete","handleVendorEvent","vendorMap","PhoneStatus","DeleteNumberModal","deletePhoneNumber","PhoneNumberPriority","canBeUp","canBeDown","priorityUp","priorityDown","PhoneNumbersList","_usePhoneNumbersList","_data$phoneNumbersLis","usePhoneNumbersList","_usePhoneNumbersList2","openMenu","itemId","closeDeleteModal","shouldShowDeleteModal","PAGE_SIZE","setRefetch","SearchBarNumbers","searchAction","handleSearchChange","selectedNumbers","allSelected","friendlyName","SubscriptionPlanItemFragment","FETCH_SUBSCRIPTION_PLAN_ITEMS","OnSubItemFetchByName","OnSubItemFetchByNameError","fetchSubscriptionItemByName","AddPhoneNumbers","setSelectedNumbers","purchasing","setPurchasing","_useSubscriptionItem","itemName","setName","subscriptionPlanItemsList","useSubscriptionItem","loadingItem","phoneType","setPhoneType","_useTwilioPhoneNumber","_useState8$","useTwilioPhoneNumbersList","_useTwilioPhoneNumber2","changePhoneType","handlePhonesChange","allNumbers","currentNumbers","purchase","parsedNumbers","purchasePhoneNumbers","AvailablePhoneNumberList","PhoneNumberView","_agency$company","showModal","setShowModal","updateUserSignatureValidator","OnUserSignatureUpdateEvent","OnUserSignatureUpdateError","OnTestConnectEvent","OnTestConnectError","updateUserSignature","testConnection","TestConnectionButton","setColor","InboundFragment","INBOUND_SERVICE_SETTINGS_QUERY","CREATE_INBOUND_SERVICE_MUTATION","UPDATE_INBOUND_SERVICE_MUTATION","UPDATE_MANY_INBOUND_SERVICES","OutboundFragment","QUERY_OUTBOUND_SERVICE_SETTINGS","CREATE_OUTBOUND_SERVICE_MUTATION","DISABLE_EMAIL_SERVICES","DISABLE_THIRD_PARTY_SERVICES","UPDATE_OUTBOUND_SERVICE_MUTATION","UPDATE_MANY_OUTBOUND_SERVICES","FETCH_GMAIL_SERVICE","CREATE_GMAIL_SERVICE","UPDATE_GMAIL_SERVICE","LOGOUT_FROM_GMAIL_SERVICE","FETCH_GOOGLE_AUTH_URL","EXCHANGE_CODE_FOR_TOKENS","OnFetchInboundService","OnFetchInboundServiceError","OnUpdateInboundService","OnUpdateInboundServiceError","OnDisableInboundServices","OnDisableInboundServicesError","CONNECTION_SECURITY_OPTIONS","PROTOCOL_OPTIONS","updateInboundServiceValidation","server","port","con","protocol","password","fetchInboundServices","emailInboundServiceCreate","emailInboundService","updateInboundService","disableInboundServices","InboundForm","emailInboundServiceUpdate","isCustom","FETCH_OUTLOOK_SERVICES","CREATE_OUTLOOK_SERVICE","UPDATE_OUTLOOK_SERVICE","FETCH_AZURE_AUTH_URL","LOGOUT_FROM_AZURE","OnAzureAuthUrl","OnAzureAuthUrlError","OnFetchOutlookService","OnFetchOutlookServiceError","OnEnableOutlookService","OnEnableOutlookServiceError","OnExchangeOutlookCode","OnExchangeOutlookCodeError","OnAzureLogout","OnAzureLogoutError","fetchOutlookService","outlookServiceCreate","outlookService","enableOutlookService","fetchAzureAuthUrl","exchangeOutlookCode","logoutFromAzure","MicrosoftServiceForm","redirecting","setRedirecting","saving","setSaving","exiting","setExiting","azureAuthUrl","outlookServiceUpdate","azureExchangeTokens","azureLogout","onSignIn","onSave","onSignOut","InboundService","GmailServiceItem","OutlookServiceItem","OutboundServiceItem","ChooseServiceDialog","services","setServices","EmailServiceTypename","GMAIL","OUTLOOK","agencyEmailServiceId","AgencyEmailServiceInfo","AgencyEmailService","agencyEmailServiceUpdate","hasService","OnGmailServiceFetch","OnGmailServiceFetchError","OnGmailServiceUpdate","OnGmailServiceUpdateError","OnGoogleAuthUrl","OnGoogleAuthUrlError","OnExchangeToken","OnExchangeTokenError","OnFetchOutboundService","OnFetchOutboundServiceError","OnUpdateOutboundService","OnUpdateOutboundServiceError","OnDisableEmailService","OnDisableEmailServiceError","OnGoogleLogoutEvent","OnGoogleLogoutEventError","updateOutboundServiceValidation","fetchOutboundServices","emailOutboundServiceCreate","emailOutboundService","updateOutboundService","disableOutboundServices","_yield$client$query3","_yield$client$mutate2","gmailServiceCreate","fallback","OutboundForm","emailOutboundServiceUpdate","OutboundService","OnFetchPhoneCallSettingEvent","OnFetchPhoneCallSettingError","OnCreatePhoneCallSettingEvent","OnCreatePhoneCallSettingError","OnUpdatePhoneCallSettingEvent","OnUpdatePhoneCallSettingError","FETCH_PHONE_CALL_SETTING_LIST","CREATE_PHONE_CALL_SETTING","UPDATE_PHONE_CALL_SETTING","QUERY_CAMPAIGNS_LIST","fetchPhoneCallSettingByAgency","configuration","phoneCallSettingsList","createPhoneCallSetting","recordCalls","updatePhoneCallSetting","CampaignListItem","shouldShowAgents","_agents","_toArray","firstAgents","agentsText","CampaignsList","_useList","useList","_useList$data","INITIAL_SETTINGS","callsDelay","campignAssineeFilter","timeToForward","forwardingPhoneNumber","callCadenceConfig","day2To7","day8To30","day31To89","PhoneCallSettings","_form$forwardingPhone","_form$forwardingPhone2","_form$forwardingPhone3","phoneCallSettingCreate","removeTypenameRecursively","cleanData","handleCadenceChange","handleForwardingPhoneChange","voicemail","VOICE_MESSAGE_TYPE_OPTIONS","PlayerCell","VoiceMailMessageItem","voiceMailMessageStore","voiceMailMessageUpdate","recorder","MicRecorder","bitRate","AudioRecorder","onRecorded","recording","setRecording","setTime","getMp3","buffer","blob","lastModified","rawSeconds","seconds","formatSeconds","VoiceMailMessageForm","setFile","objectURL","setObjectURL","handleRecorded","URL","createObjectURL","canPublish","source","VoiceMailMessageDialog","handleOnClose","initialMessage","VoiceMailMessagesTable","del","setDelete","userLoading","messageToUpdate","setMessageToUpdate","onConfirmDelete","handleUpdate","VoiceMailMessages","Approved","FaRegCheckCircle","Rejected","FaRegTimesCircle","Review","FaRegClock","TWILIO_TRUST_PRODUCT_STATUSES","TWILIO_MESSAGING_PRODUCT_STATUSES","TrustProductStatus","ColorRing","visible","ariaLabel","TrustProductRegistrationRow","failedEvaluationsResults","TrustProductRejectionReasons","StyledUl","evalResult","failure_reason","MessagingProductStatus","MessagingProductRegistrationRow","rejectionReason","RejectionReason","RegistrationStatus","_productsData$data$pr","_productsData$data","requestOptions","_useFetch","optsRef","abortControllerRef","reFetch","AbortController","signal","resData","finally","abort","useFetch","productsData","isLoadingProductsData","productsError","toastErrors","products","product","TIMEZONE_OPTIONS","AgencyRolesTable","userAgencyRelation","RoleTable","roleRelationArray","titleHeader","AvatarGridBox","AvatarText","AvatarStyle","defaultAvatar","GeneralView","setId","setFirstName","setLastName","setTimezone","setCellPhone","workPhone","setWorkPhone","workPhoneExt","setWorkPhoneExt","setAvatar","setDownloadUrl","adminRelation","setAdminRelation","setUserAgencyRelation","LoaderSpinner","picture","_Avatar","CardBodyHeight","CardFooterFlexEnd","FullHeightContainer","TitleCardBody","EmailView","setIsEnableSignature","editorState","setEditorState","loaderComponent","setLoaderComponent","tagName","newContent","Roles","UsersTableRow","AGENCY_USERS_LIST","UPDATE_USER_AGENCY_ROLES","REMOVE_USER_FROM_AGENCY","updateUserRolesValidator","OnUsersListEvent","OnUsersListError","OnUpdateUserAgencyRolesEvent","OnUpdateUserAgencyRolesError","OnRemoveUserFromAgencyEvent","OnRemoveUserFromAgencyError","fetchUsersList","updateUserRolesInAgency","removeUserFromAgency","ROLES_OPTIONS","UpdateDetailsForm","setRoles","UsersTable","updateModal","setUpdateModal","handleEdit","TeamView","pagination","setPagination","SettingsLayout","SettingsMenu","OnUpdateCompanySubscription","OnUpdateCompanySubscriptionError","OnConfirmSubscriptionChange","OnConfirmSubscriptionChangeError","OnCancelSubscriptionChange","OnCancelSubscriptionChangeError","updateCompanySubscriptionValidator","updateCompanySubscription","confirmSubscriptionChange","cancelSubscriptionChange","ChangePlanDialog","companyUsersCount","dialogLoading","setDialogLoading","seats","setSeats","PrimaryButton","NextInvoiceInformation","setInvoice","setError","retryFetch","nextInvoice","amount_due","period_end","Alert","withModal","setSubscription","confirming","setConfirming","canceling","setCanceling","_company$subscription","pending_update","handlePaySubscription","handleCancelChange","pendingUpdate","FETCH_COMPANY_PAYMENT_METHOD","OnPaymentMethodUpdate","OnPaymentMethodUpdateError","OnFetchPaymentMethod","OnFetchPaymentMethodError","updatePaymentMethodValidator","updatePaymentMethod","fetchCompanyPaymentMethod","PaymentDialogForm","handleReady","PaymentMethodChanger","companyPaymentMethod","DRAFT","PAID","VOID","UNCOLLECTIBLE","TableContainer","BillingHistory","latestInvoice","_useCompanyInvoices","companyInvoicesList","useCompanyInvoices","Note","CancelSubscriptionDialog","CancelPlanCard","PlanList","RenovateSubscription","fetchLoading","handleSeatsChange","Scrollable","prevSubStatus","renewal","cancel","SubscriptionPlanChanger","agencyFragment","QUERY_AGENCY_LIST","MUTATION_CREATE_AGENCY","MUTATION_UPDATE_AGENCY","MUTATION_DELETE_AGENCY","agencyMessageValid","agencyCreateUpdateValidator","agentMail","OnAgencyError","OnAgencyListFetched","OnAgenyCreateEvent","OnAgencyPhoneCreateError","OnAgencyUpdateEvent","OnAgencyDeleteEvent","byCompany","byStartDate","startDate","byEndDate","endDate","bySearch","fetchAgencies","createAgency","agencyCreate","agencyInvitationAgencyRelation","ifsScores","voicemailUrl","updateAgency","deleteAgency","AgencyActions","onUpdateClick","isDeleteDialogOpen","isDeleting","setIsDeleting","orderWay","FORM_TOOLTIP_STRINGS","AgencyFilter","filterValues","setFilterValues","newState","BtnAddItem","BtnDeleteItem","BtnPlus","ListInputsEditable","inputPlaceholder","inputLabel","btnAddText","onDeleteItem","onAddItem","AgencyForm","setFormData","initialCompanyId","setVoicemailUrl","managers","setManagers","voicemails","setVoicemails","setIfsScores","fetchVoicemailList","_yield$fetchVoiceMail","v","newIfsScores","AgencyFormDialog","formData","SearchBar","AgencyView","dialog","setDialog","deleteDialog","setDeleteDialog","searchRef","refreshAgencies","newFilters","agenciesList","pageOffset","insideRef","allow","Sidebar","pathnameActive","setPathnameActive","isCompanyPaid","BillingView","VendorsView","fetchPhoneCallRecordings","deletePhoneCallRecording","PhoneCallRecordings","recordings","setRecordings","handleConfirmDelete","recordingType","columnsNumber","LogFilter","EmailLogRow","_email$to","EmailLogs","_useAgencyEmails","useAgencyEmails","SmsRow","fromComponent","toComponent","typeComponent","fromNumber","toNumber","HeaderLeftSide","HeaderRightSide","SmsLogs","smsMessages","setSmsMessages","setCurrentFilter","showFilter","setShowFilter","categoriesClone","filterHandler","newFilter","confirmFilterHandler","sortHandler","smsMessage","handlePageChanger","TableBodyRow","PhoneCallsLogs","phoneCalls","setPhoneCalls","setDisposition","phoneCallsList","unshift","_data$status","phoneCall","AgentsInfoFilter","handleToggle","handleDropdownClose","handleApply","onCloseDropdown","AgentsInfoHeader","AgentsInfoRow","createdTask","updatedTask","leadHistoriesList","AgentInfo","_useUsersInAgency","getDates","dateNow","columnStart","columnEnd","Group","AgentsCallsHeader","addLeftCero","unit","momentDuration","hours","STATUSES","BAD","REGULAR","totalTalkTime","talkTimeAverage","callsPerHours","outboundDialsCount","totalDialsCount","contacts","dialPerContact","quotesPerClose","FETCH_AGENT_CALL_REPORT_QUERY","fetchAgentCallsReport","_fetchAgentCallsReport","agentsCalls","AgentCalls","AdminOrderBy","AgencyEmailServiceOrderBy","AgencyInvitationOrderBy","AgencyOrderBy","AgencyUserOrderBy","AgentOrderBy","AgentStatus","AggregationFunctionType","AnnouncementOrderBy","ApiTokenOrderBy","ApplicationStatusEnum","AuthenticationProfileOrderBy","AuthFrom","AutomaticCallConfigOrderBy","BillingInvoicesListFilterType","CallType","CampaignOrderBy","ChannelMemberOrderBy","ChannelOrderBy","CiCdMigrationOrderBy","CompanyInvitationOrderBy","CompanyInvoiceOrderBy","CompanyOrderBy","CompanyPaymentMethodOrderBy","CompanySubCouponOrderBy","CompanySubOrderBy","ComputedFieldMode","DatePartFunctionType","DateTypeFormatEnum","DeployModeEnum","DeployStatusEnum","DriverIncidentOrderBy","EmailInboundServiceOrderBy","EmailOutboundServiceOrderBy","EnvironmentVariableOrderBy","FieldType","FileOrderBy","FileTypeFormatEnum","FreePhoneNumberOrderBy","FunctionInfoOrderBy","FunctionType","GmailProfileOrderBy","GmailServiceOrderBy","IfsScoreOrderBy","InboundPhoneCallOrderBy","LeadActionOrderBy","LeadCallCadenceOrderBy","LeadContactOrderBy","LeadDispositionOrderBy","LeadDriverOrderBy","LeadHistoryOrderBy","LeadNoteOrderBy","LeadOrderBy","LeadPhoneNumberOrderBy","LeadSourceOrderBy","LeadStageHistoryOrderBy","LeadStageOrderBy","LeadTaskOrderBy","LeadTaskTypeOrderBy","LeadTypeAutoOrderBy","LeadTypeCommercialAutoOrderBy","LeadTypeEmployeeBenefitOrderBy","LeadTypeGeneralLiabilityOrderBy","LeadTypeHomeOrderBy","LeadTypeLifeOrderBy","LeadTypeWorkersCompensationOrderBy","LifeInsuranceOrderBy","MailOrderBy","MailThreadOrderBy","ManagerOrderBy","MarketingCampaignClickOrderBy","MarketingCampaignConditionOrderBy","MarketingCampaignOpeningOrderBy","MarketingCampaignOrderBy","MarketingEmailTemplateOrderBy","MarketingSmsTemplateOrderBy","MessageOrderBy","MetaOrderBy","MutationType","NotificationOrderBy","NumberTypeFormatEnum","OutlookFolder","OutlookProfileOrderBy","OutlookServiceOrderBy","PaymentMethodOrderBy","PermissionResourceTypeEnum","PhoneCallOrderBy","PhoneCallParticipantOrderBy","PhoneCallRecordingOrderBy","PhoneCallSettingOrderBy","PhoneNumberOrderBy","PhoneNumberWarningOrderBy","RelativePredicateOpEnum","RelativePredicateUnitEnum","ResendedAngencyInvitationOrderBy","RoleOrderBy","SchemaOriginType","SettingOrderBy","ShortUrlOrderBy","SmartTypeFormatEnum","SmsMessageOrderBy","SortOrder","StringTrimMode","SubscriptionPlanItemOrderBy","SubscriptionPlanOrderBy","SwitchTypeFormatEnum","SystemApplicationStatusEnum","SystemBillingInvoicesListFilterType","SystemBranchEnvironmentMode","SystemCiCommitMode","SystemComputedFieldMode","SystemDateTypeFormatEnum","SystemDeployModeEnum","SystemDeployStatusEnum","SystemFieldType","SystemFileTypeFormatEnum","SystemFunctionInfoOrderBy","SystemFunctionType","SystemInboxEventStatusEnum","SystemInboxEventTypeEnum","SystemNumberTypeFormatEnum","SystemOrganizationTypeEnum","SystemSchemaOriginType","SystemSettingOrderBy","SystemSmartTypeFormatEnum","SystemSwitchTypeFormatEnum","SystemTextTypeFormatEnum","SystemUserType","SystemWorkspaceKind","SystemWorkspaceStatus","TableIndexType","TeamInvitationOrderBy","TeamMemberOrderBy","TextTypeFormatEnum","UrlOrderBy","UserOrderBy","UserStatusOrderBy","VendorOrderBy","VoiceMailMessageOrderBy","VoiceMailOrderBy","WorkflowAutomationOrderBy","WorkflowClickOrderBy","WorkflowConditionOrderBy","WorkflowEmailOpeningOrderBy","WorkflowEmailTemplateOrderBy","WorkflowSmsTemplateOrderBy","WorkspaceKind","WorkspaceStatus","XTableOrderBy","_useAgentCallsReport","useAgentCallsReport","_useAgentCallsReport2","InboundPhoneCallsLogs","inboundPhoneCallsList","defaultOption","CampaignFragmentFragmentDoc","typeCondition","selectionSet","selections","VoicemailListDocument","variableDefinitions","variable","definitions","VoiceailDeleteDocument","onVoicemailslist","onVoicemailslistError","onVoicemailsDelete","onVoicemailsDeleteError","voiceMailsList","deleteVoicemail","_data$data","_data$data2","reset","voiceMailDelete","VoicemailsViews","_recordings$items","_useFetchAction","useFetchAction","_useFetchAction2","_useCallAction","useCallAction","_useCallAction2","deleteItem","onSeek","_onSeek","TableBoost","AgentScoreTable","_ref$loading","totalPagination","onChangePage","footer","tableHead","recordingId","tableBodyRow","onAgentScoreReportError","onAgentScoreReport","AGENT_SCORE_REPORT_QUERY","fetchAgentScoreReport","agentsScore","TypeCallRecording","callDuration","twilioId","leadAddress","leadBirth","leadGender","leadCreditScore","leadIfsScore","campaingName","campaingId","sortOptions","AgentScore","setTotalPagination","filterState","setFilterState","valueFilters","setValueFilters","queryFilters","setQueryFilters","dataAgentScore","handleChangeFilters","systemSettingsName","INITIAL_FILTERS","fromDate","LeadsFunnelContext","LeadsFunnelProvider","selectedCampaignId","setSelectedCampaignId","handleChangeSelectedCampaignId","newCampaignId","handleFiltersChange","useLeadsFunnelContext","leadsFunnelContext","LeadFunnelFilter","_useLeadsFunnelContex","localFilters","setLocalFilters","handleDateFiltersChange","dateString","LeadsFunnelCampaign","LeadsFunnelHeader","FETCH_LEADS_FUNNEL_STAGE_AMOUNT_QUERY","_fetchLeadsFunnelStageAmount","fetchLeadStageAmount","useLeadsFunnelAmount","fetchLeadsFunnelStageAmount","BACKGROUND_SCALE","LeadsFunnelChart","_useLeadsFunnelAmount","_useLeadsFunnelAmount2","stagesData","isLoadingStagesData","canvasRef","ctx","getContext","chart","Chart","stg","datasets","datalabels","formatter","dataIndex","indexAxis","responsive","listeners","currStage","stageName","callbacks","dataset","LeadsFunnel","MenuTitle","ReportsView","settingsCallScoring","systemSettingsCallScoring","setting","AgentsInfo","AgentsCalls","NavLink","RouterNavLink","ModuleSubMenu","defaultActive","activeStyle","workflowAutomationMapTable","emailsOpen","openings","linksClicked","clicks","LEAD_STAGES_OPTIONS","LEAD_STAGES","CALLED_NO_MESSAGE","QUOTE_COMPETITIVE","QUOTE_NOT_COMPETITIVE","WRONG_NUMBER","ERROR_DID_NOT_REQUEST_A_QUOTE","CURRENT_PREMIUM","IFS_SCORE","POLICY_EXPIRATION_DATE","NOT_INTERESTED","SOLD","WorkflowEmailTemplateFragment","EMAIL_TEMPLATE_LIST_QUERY","EMAIL_TEMPLATE_CREATE_MUTATION","EMAIL_TEMPLATE_UPDATE_MUTATION","EMAIL_TEMPLATE_DELETE_MUTATION","createAndUpdateEmailTemplateValidator","template","OnEmailsTemplateCreateEvent","OnEmailsTemplateCreateError","OnEmailsTemplateUpdateEvent","OnEmailsTemplateUpdateError","OnEmailsTemplateClonteEvent","OnEmailsTemplateClonteError","OnEmailsTemplateDeleteEvent","OnEmailsTemplateDeleteError","OnEmailsTemplateListEvent","OnEmailsTemplateListError","fetchEmailsTemplate","createEmailTemplate","cloneEmailTemplate","updateEmailTemplate","deleteEmailTemplate","useEmailTemplates","workflowEmailTemplatesList","WorkflowSmsTemplateFragment","FETCH_SMS_TEMPLATES","CREATE_SMS_TEMPLATE","UPDATE_SMS_TEMPLATE","DELETE_SMS_TEMPLATE","createSmsTemplateValidator","updateSmsTemplateValidator","OnFetchSmsTemplatesEvent","OnFetchSmsTemplatesError","OnCreateSmsTemplatesEvent","OnCreateSmsTemplatesError","OnUpdateSmsTemplatesEvent","OnUpdateSmsTemplatesError","OnCloneSmsTemplatesEvent","OnCloneSmsTemplatesError","OnDeleteSmsTemplatesEvent","OnDeleteSmsTemplatesError","fetchSmsTemplates","createSmsTemplate","updateSmsTemplate","cloneSmsTemplate","deleteSmsTemplate","useSmsTemplates","workflowSmsTemplatesList","WORKFLOW_AUTOMATION_CONDITIONS","LEAD_CREATION","LEAD_CHANGED_AMOUNT","LEAD_CHANGED_EMAIL","LEAD_CHANGED_PHONENUMBER","LEAD_CHANGED_ASSIGNEES","LEAD_STAGE_CALLED_NO_MESSAGE","LEAD_STAGE_SOLD","LEAD_STAGE_CHANGED","LEAD_DISPOSITION_EXPIRATION_DATE","LEAD_DISPOSITION_EXPIRATION_15_DAYS","LEAD_DISPOSITION_EXPIRATION_30_DAYS","LEAD_QUOTE_LINK_CREATED","WORKFLOW_AUTOMATION_CONDITION","WORKFLOW_AUTOMATION","WORKFLOW_AUTOMATION_CONDITIONS_OPTIONS","SCHEDULED_WORKFLOW","ButtonAdd","ButtonDelete","Minus","Plus","FormContainer","WorkflowAutomationForm","_useEmailTemplates","loadingEmailTemplates","_useSmsTemplates","loadingSmsTemplates","scheduledConditions","handleNameChange","newName","handleConditionNameChange","handleTemplateChange","handleArgsChange","isScheduled","handleAddCondition","handleRemoveCondition","_condition$args","_condition$args2","SubmitButton","WorkflowAutomationDialog","WorkflowAutomation","WorkflowAutomationView","workflowForm","setWorkflowForm","workflowDelete","setWorkflowDelete","handleOnYesDelete","handleCloseForm","SmsTemplateTableItem","onClone","handleClone","WORKFLOW_TEMPLATE_TAGS","quoteLink","TextContainer","OptionsContainer","FieldList","loop","smsTags","formatToSmsTags","parent","SmsTemplateEditor","cursorRef","innerHTML","character","onPaste","clipboardData","getData","execCommand","handleSavePosition","getSelection","getRangeAt","startContainer","startOffset","getCaretPosition","handleFieldInsert","focus","setStart","collapse","contentEditable","insertNode","setStartAfter","insertField","onKeyUp","SmsTemplateForm","onDone","textRef","line","SmsTemplateDialog","SmsTemplatesTable","_clone$selected","setUpdate","erase","setErase","setClone","onCloneClick","onDeleteClick","onConfirmClone","agendyId","SmsTemplatesView","isCreateOpen","setCreateOpen","SmsTemplateTable","mergeTags","formatToMergeTags","TemplateCreator","onOpenChange","setEditor","loadDesign","handleLoad","handleOnSubmit","exportHtml","html","design","EmailEditor","onLoad","EmailTemplateView","templates","setTemplate","isOpenCreator","setIsOpenCreator","handleCreate","handleDeleteYes","handleCloneYes","WorkflowView","OnAppUpdate","AppUpdateAvailable","_g","handleRefresh","cacheNames","caches","cacheName","logo","isLocalhost","hostname","registerValidSW","_registerValidSW","swUrl","register","onupdatefound","installingWorker","installing","onstatechange","controller","_extends","prototype","hasOwnProperty","excluded","sourceKeys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_path","svgRef","enableBackground","viewBox","fill","ForwardRef","fillRule","stroke","strokeWidth","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeDasharray","strokeDashoffset","fontFamily","textAnchor","mixBlendMode","transform","_desc","x1","y1","x2","y2","ChartDataLabels","FunnelController","TrapezoidElement","LinearScale","CategoryScale","stripePromise","loadStripe","theme","createTheme","COLORS","BLACK","PRIMARY","APP_PRIMARY","TEXT_LIGHT_GRAY","GRAY_30","ICON_GRAY","root","icons","GoogleIcon","MicrosoftIcon","ReplyDefault","TrashCustom","BellIcon","NoBellIcon","GroupIcon","LandlineIcon","MobilePhoneIcon","App","onRequestSuccess","onRequestError","_request$user","_request$user$selecte","resJson","registrationComplete","AsyncContent","DesignSystemView","routeProps","CalendarView","LeadDetailView","SettingsView","isRegistered","BrowserRouter","BoostProvider","Elements","AppProvider","AuthClient","ToastContainer","unregister","checkValidServiceWorker","registerServiceWorker","onActive","ReactDOM"],"mappings":"mJAAAA,EAAOC,QAAU,IAA0B,uC,qBCA3CD,EAAOC,QAAU,IAA0B,uC,qBCA3CD,EAAOC,QAAU,IAA0B,mC,qBCA3CD,EAAOC,QAAU,IAA0B,mC,qBCA3CD,EAAOC,QAAU,IAA0B,kC,qBCA3CD,EAAOC,QAAU,IAA0B,mC,qBCA3CD,EAAOC,QAAU,IAA0B,yC,qBCA3CD,EAAOC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EAAatzF,EAAbszF,cACA25C,EAAajtI,EAAbitI,cACAH,EAAa9sI,EAAb8sI,cACAC,EAAa/sI,EAAb+sI,cAEMp5C,EAAO,CACX,CACE,CACEr4F,IAAK,oBACL2S,MAAO,uBACPjR,KAAM,YAER,CACE1B,IAAK,MACL2S,MAAO,MACPjR,KAAM,QAER,CACE1B,IAAK,YACL2S,MAAO,aACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,yBACL2S,MAAO,4BACPjR,KAAM,QAER,CACE1B,IAAK,0BACL2S,MAAO,6BACPjR,KAAM,QAER,CACE1B,IAAK,QACL2S,MAAO,QACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,mBACL2S,MAAO,qBACPjR,KAAM,QAER,CACE1B,IAAK,oBACL2S,MAAO,sBACPjR,KAAM,QAER,CACE1B,IAAK,WACL2S,MAAO,YACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,mBACL2S,MAAO,qBACPjR,KAAM,QAER,CACE1B,IAAK,2BACL2S,MAAO,+BACPjR,KAAM,QAER,CACE1B,IAAK,YACL2S,MAAO,aACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,WACL2S,MAAO,WACPjR,KAAM,QAER,CACE1B,IAAK,eACL2S,MAAO,gBACPjR,KAAM,QAER,CACE1B,IAAK,YACL2S,MAAO,YACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,YACL2S,MAAO,aACPjR,KAAM,QAER,CACE1B,IAAK,oBACL2S,MAAO,qBACPjR,KAAM,QAER,CACE1B,IAAK,wBACL2S,MAAO,0BACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,wBACL2S,MAAO,0BACPjR,KAAM,QAER,CACE1B,IAAK,iBACL2S,MAAO,kBACPjR,KAAM,QAER,CACE1B,IAAK,eACL2S,MAAO,gBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,oBACL2S,MAAO,sBACPjR,KAAM,QAER,CACE1B,IAAK,2BACL2S,MAAO,6BACPjR,KAAM,QAER,CACE1B,IAAK,iBACL2S,MAAO,kBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,qBACL2S,MAAO,uBACPjR,KAAM,QAER,CACE1B,IAAK,eACL2S,MAAO,gBACPjR,KAAM,QAER,CACE1B,IAAK,eACL2S,MAAO,iBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,SACL2S,MAAO,UACPjR,KAAM,QAER,CACE1B,IAAK,mBACL2S,MAAO,oBACPjR,KAAM,QAER,CACE1B,IAAK,wBACL2S,MAAO,2BACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,2BACL2S,MAAO,8BACPjR,KAAM,QAER,CACE1B,IAAK,qBACL2S,MAAO,sBACPjR,KAAM,QAER,CACE1B,IAAK,sBACL2S,MAAO,uBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,SACL2S,MAAO,SACPjR,KAAM,QAER,CACE1B,IAAK,iBACL2S,MAAO,mBACPjR,KAAM,UAER,CACE1B,IAAK,qBACL2S,MAAO,uBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,UACL2S,MAAO,UACPjR,KAAM,QAER,CACE1B,IAAK,0BACL2S,MAAO,4BACPjR,KAAM,QAER,CACE1B,IAAK,eACL2S,MAAO,gBACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,mBACL2S,MAAO,oBACPjR,KAAM,QAER,CACE1B,IAAK,sBACL2S,MAAO,uBACPjR,KAAM,SACNod,QAASuL,IAEX,CACErqB,IAAK,yBACL2S,MAAO,4BACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,oBACL2S,MAAO,uBACPjR,KAAM,QAER,CACE1B,IAAK,mBACL2S,MAAO,qBACPjR,KAAM,QAER,CACE1B,IAAK,aACL2S,MAAO,cACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,YACL2S,MAAO,cACPjR,KAAM,QAER,CACE1B,IAAK,aACL2S,MAAO,cACPjR,KAAM,QAER,CACE1B,IAAK,8BACL2S,MAAO,iCACPjR,KAAM,SAGV,CACE,CACE1B,IAAK,WACL2S,MA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EAAOC,QAAU,IAA0B,kE,oBCA3CD,EAAOC,QAAU,IAA0B,qD,oBCA3CD,EAAOC,QAAU,IAA0B,kE,oBCA3CD,EAAOC,QAAU,IAA0B,wD,oBCA3CD,EAAOC,QAAU,IAA0B,qE,oBCA3CD,EAAOC,QAAU,IAA0B,4C,kBCA3CD,EAAOC,QAAU,skV","file":"static/js/main.9e179a5c.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/dashboard.9af7f3bc.svg\";","module.exports = __webpack_public_path__ + \"static/media/campaigns.dabf3d31.svg\";","module.exports = __webpack_public_path__ + \"static/media/leads.1a5dfd13.svg\";","module.exports = __webpack_public_path__ + \"static/media/tasks.3b4e325c.svg\";","module.exports = __webpack_public_path__ + \"static/media/call.31b54594.svg\";","module.exports = __webpack_public_path__ + \"static/media/inbox.06592783.svg\";","module.exports = __webpack_public_path__ + \"static/media/performance.f17a57ce.svg\";","module.exports = __webpack_public_path__ + \"static/media/marketing.9343290d.svg\";","module.exports = __webpack_public_path__ + \"static/media/settings.cfa4da12.svg\";","module.exports = __webpack_public_path__ + \"static/media/leadvolt-lightning.1714069d.svg\";","module.exports = __webpack_public_path__ + \"static/media/sidebar-logo.7242aca5.svg\";","module.exports = __webpack_public_path__ + \"static/media/auto-calling-a.c1a4c13b.svg\";","module.exports = __webpack_public_path__ + \"static/media/auto-calling-b.f780f924.svg\";","module.exports = __webpack_public_path__ + \"static/media/auto-calling-c.afa8ccbb.svg\";","module.exports = __webpack_public_path__ + \"static/media/filter-grey.c07c1aee.svg\";","module.exports = __webpack_public_path__ + \"static/media/voicemail.8b47e6b5.svg\";","module.exports = __webpack_public_path__ + \"static/media/mute.15caae7a.svg\";","module.exports = __webpack_public_path__ + \"static/media/fax.daee2a98.svg\";","module.exports = __webpack_public_path__ + \"static/media/hangup.cee84f10.svg\";","module.exports = __webpack_public_path__ + \"static/media/check.8e7d7375.svg\";","module.exports = __webpack_public_path__ + \"static/media/trash.7428091f.svg\";","module.exports = __webpack_public_path__ + \"static/media/trash-green.ccbc65cc.svg\";","module.exports = __webpack_public_path__ + \"static/media/edit.3974444f.svg\";","module.exports = __webpack_public_path__ + \"static/media/sort.5e7cbd82.svg\";","module.exports = __webpack_public_path__ + \"static/media/performance-green.3d2fe92b.svg\";","module.exports = __webpack_public_path__ + \"static/media/news.ad2cd140.svg\";","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Icon, Tooltip } from '@8base/boost';\n\nconst Container = styled.div`\n position: relative;\n display: inline-block;\n height: 24px;\n`;\n\nconst Span = styled.span`\n color: #fff;\n background-color: var(--color-primary);\n position: absolute;\n top: -8px;\n right: -8px;\n font-size: 12px;\n line-height: 20px;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n text-align: center;\n`;\n\nconst IconCount = ({ name, countStyle, ...props }) => {\n const count = props.count ? {props.count} : null;\n\n if (props.count > 0 || props.noCountMessage === '') {\n return (\n \n {count}\n \n \n );\n }\n\n return (\n \n {count}\n \n \n \n \n );\n};\n\nIconCount.propTypes = {\n name: PropTypes.string.isRequired,\n noCountMessage: PropTypes.string,\n count: PropTypes.number.isRequired,\n countStyle: PropTypes.object.isRequired,\n};\n\nIconCount.defaultProps = {\n noCountMessage: '',\n};\n\nexport default IconCount;\n","export const USER_STATUSES = {\n ON_A_CALL: 'ON A CALL',\n AWAY: 'AWAY',\n WITH_CLIENT: 'WITH CLIENT',\n WRAPPING_ON_A_CALL: 'WRAPPING ON A CALL',\n ACTIVE: 'ACTIVE',\n};\n","import styled from 'styled-components';\nimport { USER_STATUSES } from '../../modules/user-status/user-status-model';\n\nexport const Status = styled.div`\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n padding: 0px 17px;\n`;\n\nexport const StatusText = styled.div`\n font-size: 12px;\n color: #384a59;\n`;\n\nexport const StatusCircle = styled.div`\n width: 15px;\n height: 15px;\n border: 1px solid #efefef;\n border-radius: 100%;\n background-color: ${(props) => props.color};\n margin-right: 5px;\n position: relative;\n\n ${(props) =>\n props.status === USER_STATUSES.ON_A_CALL\n ? `\n &::before {\n content: '';\n display: block;\n width: 6px;\n height: 2px;\n background-color: white;\n position: absolute;\n top: calc(50% - 1px);\n left: calc(50% - 3.5px);\n }\n `\n : ''}\n`;\n","import React from 'react';\nimport { Loader as BoostLoader } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst LoaderContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 30px 0px;\n`;\n\nconst Loader = () => {\n return (\n \n \n \n );\n};\n\nexport default Loader;\n","import gql from 'graphql-tag';\n\nexport const USER_STATUS_CREATE_MUTATION = gql`\n mutation UserStatusCreateMutation($data: UserStatusCreateInput!) {\n userStatusCreate(data: $data) {\n status\n }\n }\n`;\n\nexport const USER_STATUS_LIST_QUERY = gql`\n query UserStatusQuery($user: ID!) {\n userStatusesList(filter: { user: { id: { equals: $user } } }, last: 1) {\n items {\n id\n status\n user {\n id\n firstName\n lastName\n }\n createdAt\n }\n }\n }\n`;\n\nexport const USER_STATUS_LIST_SUBSCRIPTION = gql`\n subscription UserStatusSubscription($user: ID!) {\n UserStatus(filter: { mutation_in: [create], node: { user: { id: { equals: $user } } } }) {\n mutation\n node {\n id\n status\n createdAt\n }\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\nimport { ApolloClient } from '@apollo/client';\n\nexport const OnSessionFetch = createEvent<{\n user: any;\n}>();\n\nexport const OnSessionError = createEvent();\n\nexport const OnSelectedAgencyChange = createEvent();\n\nexport const OnMetaUpdate = createEvent();\n\nexport const OnApolloClient = createEvent>>();\n\nexport const OnUserUpdate = createEvent();\n\nexport const OnUserUpdateError = createEvent();\n\nexport const OnInvitationsSkipped = createEvent();\n\nexport const OnTokenExpired = createEvent();\n\nexport function apollClient(): ApolloClient> {\n const client = OnApolloClient.get();\n\n if (client) {\n return client;\n }\n throw new Error('Missing apollo client');\n}\n","export class IntegrityError extends Error {\n constructor(message) {\n super(message);\n this.name = 'IntegrityError';\n }\n}\n\nexport class ValidationError extends Error {\n constructor(arr) {\n super(arr);\n this.name = 'ValidationError';\n this.arr = arr;\n }\n}\n","import moment from 'moment';\n\n/**\n * Checks if value is in a list\n *\n * @param {string} stringToTest - The string to find\n * @param {Array} listOptions - The list of options\n *\n * @returns {boolean} True or False depending if the value is in the list or not\n */\nexport const isIncludesInOptions = (stringToTest, listOptions) => {\n return listOptions.includes(stringToTest);\n};\n\n/**\n * Validate if a string is valid or not.\n *\n * @param {string} stringToTest - The string to validate.\n * @param {boolean} allowEmpty - If a empty string should be valid or not.\n * @param {boolean} allowNull - Returns true if the value is null.\n *\n * @returns {boolean} If the string is valid or not.\n */\nexport const isValidString = (stringToTest, allowEmpty = false, allowNull = false) => {\n const whiteSpace = /^[\\s]$/;\n\n if (stringToTest === null && allowNull) return true;\n\n if (typeof stringToTest !== 'string') return false;\n\n if (stringToTest.length === 0 && allowEmpty === false) return false;\n\n if (whiteSpace.test(stringToTest)) return false;\n\n return true;\n};\n\n/**\n * Validate if a string is a valid number.\n *\n * @param {string} value - The string to validate as a number.\n * @param {boolean} allowZero - If the string should accept 0 as a valid number.\n * @param {boolean} allowNegative - If the string should negative values.\n * @returns {boolean} If the string is valid number or not.\n */\nexport const isValidNumber = (value, allowZero = false, allowNegative = false) => {\n const numberToTest = parseInt(value.toString(), 10);\n\n if (typeof value === 'string' && !value.match(/^-{0,1}\\d+$/)) return false;\n\n if (isNaN(numberToTest) || typeof numberToTest !== 'number') return false;\n\n if (numberToTest === 0 && allowZero === false) return false;\n\n if (numberToTest < 0 && allowNegative === false) return false;\n\n return true;\n};\n\n/**\n * Validate if a value is a valid floating-point number.\n *\n * @param {string|number} value - The value to validate as a floating-point number.\n * @param {number} [decimalPlaces=2] - The number of decimal places to allow. Defaults to 2 if not specified.\n * @param {boolean} [allowZero=false] - If the value should accept 0 as a valid number.\n * @param {boolean} [allowNegative=false] - If the value should allow negative values.\n * @returns {boolean} If the value is a valid floating-point number or not.\n */\nexport function isValidFloat(value, decimalPlaces = 2, allowZero = false, allowNegative = false) {\n const numberToTest = parseFloat(value);\n\n if (typeof value === 'string' && !value.match(/^-?\\d*(\\.\\d+)?$/)) return false;\n\n if (isNaN(numberToTest)) return false;\n\n if (numberToTest === 0 && !allowZero) return false;\n\n if (numberToTest < 0 && !allowNegative) return false;\n\n if (decimalPlaces !== undefined) {\n const decimalPart = value.toString().split('.')[1];\n if (decimalPart && decimalPart.length > decimalPlaces) return false;\n }\n\n return true;\n}\n\n/**\n * Validate if a value is a valid number.\n *\n * @param {string} numberToTest - The number To Test.\n *\n * @returns {boolean} If the value is valid number or not.\n */\nexport const isValidNumberRegExp = (numberToTest) => {\n const re = /^[0-9]*$/;\n return re.test(numberToTest);\n};\n\n/**\n * Validate if a number is a valid integer.\n *\n * @param {number} numberToTest - The number to validate as integer.\n * @param {boolean} allowZero - If the number should accept 0 as a valid number.\n * @param {boolean} allowNegative - If the number should negative values.\n *\n * @returns {boolean} If the number is a valid integer.\n */\nexport const isValidInteger = (numberToTest, allowZero = false, allowNegative = false) => {\n if (!Number.isInteger(numberToTest)) return false;\n\n if (numberToTest === 0 && allowZero === false) return false;\n\n if (numberToTest < 0 && allowNegative === false) return false;\n\n return true;\n};\n\n/**\n * Validate if the provided string is a valid email address.\n *\n * @param {string} email - String to validate as email.\n *\n * @returns {boolean} Wether an email is valid or not.\n */\nexport const isValidEmail = (email) => {\n let emailExpression = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@(([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{2,})$/;\n\n return emailExpression.test(email) ? true : false;\n};\n\n/**\n * Validate if the provided string is a valid Date.\n *\n * @param {string} date - String date.\n *\n * @returns {boolean} Is valid date.\n */\nexport const isValidDate = (date) => {\n return moment(date).isValid();\n};\n\n/**\n * Validate if the provided string is a valid phone number.\n *\n * @param {string} number - Phone.\n *\n * @returns {boolean} Is valid or not.\n */\nexport const isValidPhoneNumber = (number) => {\n let phoneRegExp = /^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;\n\n return phoneRegExp.test(number);\n};\n","import { ValidationError } from '../../shared/errors';\nimport {\n isValidString,\n isValidNumber,\n isValidEmail,\n isValidDate,\n isValidPhoneNumber,\n} from '../../shared/validators';\n\n/* eslint-disable */\nexport const fileToBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = (error) => reject(error);\n });\n\n/**\n * Helper to remove null keys from objects\n * WARNING: This function\n * mutates the data\n *\n * @param {data} object to mutate\n * @param data\n * @param key\n * @param {key} string the key of the property to mutate\n */\nexport const sanitize8BaseNonNull = (data, key) => {\n if (data[key] === null) delete data[key];\n};\n\nexport const sanitize8BaseEmptyFields = (data) => {\n Object.keys(data).forEach((key) => {\n const value = data[key];\n\n if (\n value === null ||\n value === undefined ||\n value === '' ||\n (Array.isArray(value) && value.length === 0)\n ) {\n delete data[key];\n }\n });\n};\n\n/**\n * Helper to change non null keys to 8base 'connect' reference\n * WARNING: This function mutates the data\n *\n * @param {data} object to mutate\n * @param data\n * @param key\n * @param {key} string the key of the property to mutate\n */\nexport const sanitize8BaseReference = (data, key) => {\n if (data[key] !== undefined && data[key] !== null && data[key] !== '')\n data[key] = { connect: { id: data[key] } };\n else delete data[key];\n};\n\n/**\n * Helper to change Array keys to 8base 'connect' multiple references\n * WARNING: This function mutates the data\n *\n * @param data\n * @param key\n */\nexport const sanitize8BaseReferences = (data, key) => {\n if (Array.isArray(data[key])) {\n data[key] = {\n connect: data[key].map((id) => {\n return { id: id };\n }),\n };\n } else delete data[key];\n};\n\n/**\n * Helper function to non null objects to 8base 'connect' reference\n * WARNING: This function mutates the data.\n *\n * @param {object} data - The data to mutate.\n * @param {string} key - The property to mutate.\n */\nexport const sanitize8BaseReferenceFromObject = (data, key) => {\n if (data[key] !== null && data[key] !== '' && data[key] !== undefined) {\n if (data[key].id === undefined)\n throw new Error(\n `${key} property on 'data' does not have a field 'id' so is not possible to create the 'connect'`,\n );\n data[key] = { connect: { id: data[key].id } };\n } else delete data[key];\n};\n\n/**\n * @param property\n * @param {property} string the key of the property to be sorted\n * include \"-\" in front of the property to sort in decreasing mode\n */\nexport const dynamicSort = (property) => {\n let sortOrder = 1;\n if (property[0] === '-') {\n sortOrder = -1;\n property = property.substr(1);\n }\n return function(a, b) {\n /**\n * next line only works with strings and numbers\n */\n const result = a[property] < b[property] ? -1 : a[property] > b[property] ? 1 : 0;\n return result * sortOrder;\n };\n};\n\n/**\n * Helper to change Array keys to 8base 'reconnect' multiple references\n * WARNING: This function mutates the data\n *\n * @param {data} object to mutate\n * @param data\n * @param key\n * @param {key} string the key of the property to mutate\n */\nexport const sanitize8BaseReconnects = (data, key) => {\n if (Array.isArray(data[key])) {\n data[key] = {\n reconnect: data[key].map((id) => {\n return { id: id };\n }),\n };\n } else delete data[key];\n};\n\n/**\n * Helper to change non null keys to 8base 'create' reference for Documents\nWARNING: This function mutates the data.\n *\n * @param {data} object - To mutate.\n * @param data\n * @param key\n * @param {key} string - The key of the property to mutate.\n */\nexport const sanitize8BaseDocumentCreate = (data, key) => {\n if (data[key] !== null && data[key] !== '') data[key] = { create: data[key] };\n else delete data[key];\n};\n\n/**\n * Helper to change non null keys to 8base 'create' reference for Documents\n * WARNING: This function mutates the data\n *\n * @param {data} object to mutate\n * @param data\n * @param key\n * @param {key} string the key of the property to mutate\n */\nexport const sanitize8BaseDocumentUpdate = (data, key) => {\n if (data[key] !== null && data[key].downloadUrl === undefined) data[key] = { create: data[key] };\n else delete data[key];\n};\n\n/**\n * Helper to change data key to 8base 'reconnect'\n * WARNING: This function mutates the data\n *\n * @param {data} object to mutate\n * @param data\n * @param key\n * @param {key} string the key of the property to mutate\n */\nexport const sanitize8BaseReconnect = (data, key) => {\n if (data[key] !== undefined) {\n data[key] = {\n reconnect: { id: data[key] },\n };\n } else delete data[key];\n};\n\nexport const checkUrl = (url, compare) => {\n let aux = false;\n if (typeof compare === 'object') {\n compare.forEach((value) => {\n if (url.pathname.search(value) >= 1) {\n aux = true;\n }\n });\n } else {\n if (url.pathname.search(compare) > 0) {\n aux = true;\n }\n }\n return aux;\n};\n\n/**\n * Helper to capitalize a string making its\n * first letter uppercase\n *\n * @param {value} string\n * @param value\n */\nexport const capitalize = (value) => {\n return value.charAt(0).toUpperCase() + value.slice(1);\n};\n\n/**\n * Helper to uncapitalize a string making its\n * first letter lowercase\n *\n * @param {value} string\n * @param value\n */\nexport const unCapitalize = (value) => {\n return value.charAt(0).toLowerCase() + value.slice(1);\n};\n\n/**\n * @param {string} filter String to compare and filter the list\n * @param {Array} list Array to be filtered\n * @returns {Array} Filtered list\n */\nexport function filterList(filter, list) {\n // if is undefined of if is an empty string return the same list\n if (!filter || filter === '') {\n return list;\n }\n const newList = list.filter((item) => {\n const itemString = JSON.stringify(item).toUpperCase();\n return itemString.includes(filter.toUpperCase());\n });\n return newList;\n}\n\n/**\n * Create validations for form\n *\n * @param {Array} validations array with validations fields\n * @param {String} modelName model name\n */\nexport const createValidations = (validations, modelName) => {\n const messageValid = `The ${modelName} must have a valid `;\n const errorMessages = [];\n\n validations.forEach((validation) => {\n let isValid = true;\n\n if (validation.required || Boolean(validation.value) || Number.isNaN(validation.value)) {\n if (validation.type === 'string') isValid = isValidString(validation.value);\n if (validation.type === 'number') isValid = isValidNumber(validation.value);\n if (validation.type === 'boolean')\n isValid = validation.value !== undefined && validation.value !== null;\n if (validation.type === 'email') isValid = isValidEmail(validation.value);\n if (validation.type === 'date') isValid = isValidDate(validation.value);\n if (validation.type === 'phone') isValid = isValidPhoneNumber(validation.value);\n }\n\n if (!isValid) {\n errorMessages.push(messageValid + validation.field);\n }\n });\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n\n/**\n * Formats a number to put commas in it\n *\n * @param {int|string} number - Integer number\n *\n * @returns {string} The formatted number\n */\nexport const numberWithCommas = (number) => {\n return number.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n};\n\n/**\n * Returns a new object without the keys with falsy values or values with empty strings\n *\n * @template T\n * @param {T} object input object\n * @returns {T} output new object\n */\nexport function removeEmptyKeys(object) {\n const objectKeys = Object.keys(object);\n\n const notEmptyKeys = objectKeys.reduce((obj, key) => {\n const value = object[key];\n if (value && value !== '') {\n obj[key] = value;\n }\n return obj;\n }, {});\n\n return notEmptyKeys;\n}\n\n/**\n * Split array into chunks\n * @param {Array} array The array to be split\n * @param {int} chunkSize The size of each chunk\n */\nexport function chunkArray(array = [], chunkSize) {\n return array.length\n ? [array.slice(0, chunkSize), ...chunkArray(array.slice(chunkSize), chunkSize)]\n : [];\n}\n/**\n * Split array into chunks\n * @param {Array|Object} obj The object to be mapped\n * @param {Array} keys The keys to be removed\n * @returns {Object} - Resulto object without keys\n */\nexport function removeUnusedKeys(obj, keys) {\n if (obj instanceof Array) {\n return obj.map((item) => removeUnusedKeys(item, keys));\n } else if (typeof obj === 'object') {\n const newObj = { ...obj };\n\n Object.keys(newObj).forEach((key) => {\n const value = newObj[key];\n if (keys.includes(key)) {\n delete newObj[key];\n } else if (typeof value === 'object' || Array.isArray(value)) {\n newObj[key] = removeUnusedKeys(value, keys);\n }\n });\n\n return newObj;\n }\n}\n\n/**\n * Returns a function, that, as long as it continues to be invoked,\n * will not be triggered. The function\n * will be called after it stops being called for\n * wait milliseconds\n *\n * @param {function} func function to invoke\n * @param {number} wait timeout\n */\nexport function debounce(func, wait = 500) {\n let timeout;\n return (...args) => {\n const later = () => {\n // null timeout to indicate the debounce ended\n timeout = null;\n\n func(...args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n}\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUserStatusCreateEvent = createEvent();\n\nexport const OnUserStatusError = createEvent();\n\nexport const OnuserStatuslistEvent = createEvent();\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { USER_STATUS_CREATE_MUTATION, USER_STATUS_LIST_QUERY } from './user-status-queries';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { sanitize8BaseEmptyFields, sanitize8BaseReference } from '../../shared/utils';\nimport {\n OnUserStatusCreateEvent,\n OnUserStatusError,\n OnuserStatuslistEvent,\n} from './user-status-events';\n\n/**\n * Creates a user status\n *\n * @param {object} userStatus data from dialog profile\n * @returns {object} the response data\n */\nexport const createUserStatus = async (userStatus) => {\n const client = OnApolloClient.get();\n let response;\n\n sanitize8BaseEmptyFields(userStatus);\n userStatus.current = { connect: { id: userStatus.user } };\n sanitize8BaseReference(userStatus, 'user');\n\n try {\n response = await client.mutate({\n mutation: USER_STATUS_CREATE_MUTATION,\n variables: { data: userStatus },\n refetchQueries: ['UserStatusQuery']\n });\n } catch (e) {\n error('createUserStatus', e);\n\n return OnUserStatusError.dispatch(e);\n }\n\n log('createUserStatus', response);\n OnUserStatusCreateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Action for fetch the user statuses\n *\n * @param {object} user user id.\n * @returns {object} the response data\n */\nexport const fetchUserStatuses = async (user) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n const variables = {\n user,\n };\n\n try {\n response = await client.query({\n query: USER_STATUS_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchUserStatuses', e);\n\n return OnUserStatusError.dispatch(e);\n }\n\n log('fetchUserStatuses', response);\n OnuserStatuslistEvent.dispatch(response.data);\n\n return response.data;\n }\n};\n","import { Text } from '@8base/boost';\nimport styled from 'styled-components';\n\nexport const ToastText = styled(Text)`\n font-size: 14px;\n line-height: 28px;\n color: #384a59 !important;\n display: inline-block;\n height: 28px;\n font-family: 'Poppins';\n`;\n","import { Text } from '@8base/boost';\nimport styled from 'styled-components';\n\nexport const ToastTitle = styled(Text)`\n font-size: 14px;\n line-height: 28px;\n letter-spacing: 0.44px;\n font-weight: bold !important;\n color: ${({ color }) => color} !important;\n height: 28px;\n display: inline-block;\n font-family: 'Poppins';\n font-weight: 500;\n`;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\n\nconst ToastSuccess = ({ title, text }) => {\n return (\n <>\n
\n {title}\n
\n
\n {text}\n
\n \n );\n};\n\nToastSuccess.propTypes = {\n text: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n};\n\nexport default ToastSuccess;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\n\nconst ToastError = ({ text = '' }) => {\n return (\n <>\n
\n Ooops!\n
\n
\n {text}\n
\n \n );\n};\n\nToastError.propTypes = {\n text: PropTypes.string.isRequired,\n};\n\nexport default ToastError;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\n\nconst ToastInfo = ({ title, text }) => {\n return (\n <>\n
\n {title}\n
\n
\n {text}\n
\n \n );\n};\n\nToastInfo.propTypes = {\n text: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n};\n\nexport default ToastInfo;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\n\nconst ToastAttention = ({ text = '' }) => {\n return (\n <>\n
\n Look!\n
\n
\n {text}\n
\n \n );\n};\n\nToastAttention.propTypes = {\n text: PropTypes.string.isRequired,\n};\n\nexport default ToastAttention;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\n\n/**\n * @param {object} props - Component props.\n * @param {string[]} props.arr - Error messages.\n * @returns {React.ReactNode} ToastErrors component.\n */\nconst ToastErrors = ({ arr }) => {\n let values = arr.map((value, idx) => {\n return (\n
  • \n {value}\n
  • \n );\n });\n\n return (\n <>\n
    \n Ooops\n
    \n
    \n
      {values}
    \n
    \n \n );\n};\n\nToastErrors.propTypes = {\n arr: PropTypes.array.isRequired,\n};\n\nexport default ToastErrors;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Row } from '@8base/boost';\nimport { ToastText } from './ToastText';\nimport { ToastTitle } from './ToastTitle';\nimport styled from 'styled-components';\nimport alert from '../../../assets/images/alert.svg';\n\nconst IconWarn = styled.img`\n height: 15px;\n width: 17.5px;\n margin-right: 6px;\n`;\n\nconst ToastWarn = ({ text = '' }) => {\n return (\n <>\n
    \n \n \n \n Warning\n \n \n
    \n
    \n {text}\n
    \n \n );\n};\n\nToastWarn.propTypes = {\n text: PropTypes.string.isRequired,\n};\n\nexport default ToastWarn;\n","import { css } from 'styled-components';\n\nexport const customScrollBar = css`\n &::-webkit-scrollbar {\n width: 8px; /* Tamaño del scroll en vertical */\n height: 8px; /* Tamaño del scroll en horizontal */\n }\n &:not(:hover)::-webkit-scrollbar-thumb,\n &:not(:hover)::-webkit-scrollbar-track {\n background: transparent;\n box-shadow: 0 0 2px 1px transparent;\n }\n &::-webkit-scrollbar-thumb,\n &::-webkit-scrollbar-track {\n transition: all 1s ease-in-out;\n }\n &::-webkit-scrollbar-thumb {\n background: #ccc;\n border-radius: 4px;\n }\n &:hover::-webkit-scrollbar-thumb:hover {\n background: #b3b3b3;\n box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);\n }\n &::-webkit-scrollbar-thumb:active {\n background-color: #999999;\n }\n &::-webkit-scrollbar-track {\n background: #f1f1f1;\n border-radius: 4px;\n }\n &::-webkit-scrollbar-track:hover,\n &::-webkit-scrollbar-track:active {\n background: #d4d4d4;\n }\n`;\n","import { styled } from '@8base/boost';\nimport { customScrollBar } from '../css/mixins';\n\nexport const Box = styled.div`\n ${(props) => props.fullWidth && `width: 100%;`}\n ${(props) => props.width && `width: ${props.width};`}\n ${(props) => props.minWidth && `min-width: ${props.minWidth};`}\n ${(props) => props.height && `height: ${props.height};`}\n ${(props) => props.minHeight && `min-height: ${props.minHeight};`}\n ${(props) => props.maxHeight && `max-height: ${props.maxHeight};`}\n\n ${(props) => props.padding && `padding: ${props.padding * 8}px;`}\n\n ${(props) => props.paddingTop && `padding-top: ${props.paddingTop * 8}px;`}\n ${(props) => props.paddingBottom && `padding-bottom: ${props.paddingBottom * 8}px;`}\n ${(props) => props.paddingLeft && `padding-left: ${props.paddingLeft * 8}px;`}\n ${(props) => props.paddingRight && `padding-right: ${props.paddingRight * 8}px;`}\n \n ${(props) => props.marginTop && `margin-top: ${props.marginTop * 8}px;`}\n ${(props) => props.marginBottom && `margin-bottom: ${props.marginBottom * 8}px;`}\n ${(props) => props.marginLeft && `margin-left: ${props.marginLeft * 8}px;`}\n ${(props) => props.marginRight && `margin-right: ${props.marginRight * 8}px;`}\n\n ${(props) => props.position && `position: ${props.position};`}\n ${(props) => props.top && `top: ${props.top};`}\n ${(props) => props.bottom && `bottom: ${props.bottom};`}\n ${(props) => props.left && `left: ${props.left};`}\n ${(props) => props.right && `right: ${props.right};`}\n\n ${(props) => props.background && `background: ${props.background};`}\n ${(props) => props.borderRadius && `border-radius: .5rem;`}\n ${(props) => props.boxShadow && `box-shadow: 0 1px 3px 0 rgb(50, 50, 93, 0.14);`}\n\n ${(props) => props.border && `border: ${props.border};`}\n ${(props) => props.borderTop && `border-top: ${props.borderTop};`}\n ${(props) => props.borderBottom && `border-bottom: ${props.borderBottom};`}\n ${(props) => props.borderLeft && `border-left: ${props.borderLeft};`}\n ${(props) => props.borderRight && `border-right: ${props.borderRight};`}\n\n ${(props) => props.overflow && `overflow: ${props.overflow};`}\n\n ${(props) => props.hoverable && `cursor: pointer;`}\n ${(props) =>\n props.hoverColor &&\n `\n &:hover {\n background-color: ${props.hoverColor};\n }\n `}\n\n ${(props) => props.display && `display: ${props.display};`}\n ${(props) => props.flexDirection && `flex-direction: ${props.flexDirection};`}\n ${(props) => props.flexGrow && `flex-grow: ${props.flexGrow};`}\n ${(props) => props.flexWrap && `flex-wrap: ${props.flexWrap};`}\n ${(props) => props.alignItems && `align-items: ${props.alignItems};`}\n ${(props) => props.justifyContent && `justify-content: ${props.justifyContent};`}\n\n ${(props) =>\n props.gap &&\n `\n & > *:not(:last-child) {\n ${\n props.gap === 'sm'\n ? `margin-${props.flexDirection === 'row' ? 'right' : 'bottom'}: 8px;`\n : ''\n}\n ${\n props.gap === 'md'\n ? `margin-${props.flexDirection === 'row' ? 'right' : 'bottom'}: 16px;`\n : ''\n}\n ${\n props.gap === 'lg'\n ? `margin-${props.flexDirection === 'row' ? 'right' : 'bottom'}: 24px;`\n : ''\n}\n }\n `}\n\n ${(props) => props.textAlign && `text-align: ${props.textAlign};`}\n\n ${(props) => props.withCustomScroll && `${customScrollBar}`}\n`;\n","import gql from 'graphql-tag';\n\nexport const SUBSCRIPTION_NOTIFICATION = gql`\n subscription($agency: ID, $user: ID!) {\n Notification(\n filter: {\n mutation_in: [create, update]\n node: { agency: { id: { equals: $agency } }, user: { id: { equals: $user } } }\n updatedFields: { contains: [\"read\"] }\n }\n ) {\n node {\n id\n read\n email {\n id\n subject\n from\n }\n sms {\n id\n text\n receivedFrom\n lead {\n id\n firstName\n }\n }\n }\n mutation\n }\n }\n`;\n\nexport const NEW_SMS_NOTIFICATIONS_SUBSCRIPTION = gql`\n subscription SmsNotificationSub($userId: ID!, $agencyId: ID!) {\n Notification(\n filter: {\n mutation_in: [create]\n node: {\n type: { equals: \"NEW_SMS\" }\n user: { id: { equals: $userId } }\n agency: { id: { equals: $agencyId } }\n sms: { id: { is_not_empty: true } }\n }\n }\n ) {\n node {\n id\n read\n email {\n id\n subject\n from\n }\n sms {\n id\n text\n receivedFrom\n lead {\n id\n firstName\n }\n }\n }\n }\n }\n`;\n\nexport const QUERY_NOTIFICATION = gql`\n query FetchNotifications(\n $filter: NotificationFilter\n $first: Int\n $skip: Int\n $sort: [NotificationSort!]\n ) {\n notificationsList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n count\n items {\n id\n type\n read\n createdAt\n userTrigger {\n id\n firstName\n lastName\n avatar {\n id\n downloadUrl\n }\n }\n lead {\n firstName\n lastName\n id\n }\n email {\n id\n subject\n from\n thread {\n id\n }\n }\n campaign {\n name\n id\n }\n disposition {\n id\n expirationDate\n }\n sms {\n id\n text\n receivedFrom\n }\n }\n }\n }\n`;\n\nexport const QUERY_USER_NOTIFICATION = gql`\n query FetchUserNotifications(\n $userId: ID!\n $filter: NotificationFilter\n $first: Int\n $skip: Int\n $sort: [NotificationSort!]\n ) {\n user(id: $userId) {\n notificationRelation(first: $first, skip: $skip, sort: $sort, filter: $filter) {\n items {\n id\n type\n read\n createdAt\n userTrigger {\n id\n firstName\n lastName\n avatar {\n id\n downloadUrl\n }\n }\n lead {\n firstName\n lastName\n id\n }\n email {\n id\n subject\n from\n thread {\n id\n }\n }\n campaign {\n name\n id\n }\n disposition {\n id\n expirationDate\n }\n sms {\n id\n text\n receivedFrom\n }\n }\n }\n }\n }\n`;\n\nexport const UPDATE_NOTIFICATION = gql`\n mutation UpdateNotification($filter: NotificationKeyFilter, $data: NotificationUpdateInput!) {\n notificationUpdate(filter: $filter, data: $data) {\n id\n }\n }\n`;\n\nexport const UPDATE_NOTIFICATION_BY_FILTER = gql`\n mutation UpdateNotifications(\n $data: NotificationUpdateByFilterInput!\n $filter: NotificationFilter!\n ) {\n notificationUpdateByFilter(data: $data, filter: $filter) {\n count\n }\n }\n`;\n\nexport const FETCH_NOTIFICATIONS_COUNT = gql`\n query FetchNotificationsCount($filter: NotificationFilter) {\n notificationsList(filter: $filter) {\n count\n }\n }\n`;\n\nexport const CREATE_USER_PUSH_SUBSCRIPTION = gql`\n mutation CreateUserPushSubscription($data: UserPushSubCreateInput!) {\n userPushSubCreate(data: $data) {\n id\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchNotifications = createEvent();\n\nexport const OnFetchNotificationsError = createEvent();\n\nexport const OnNotificationMarkRead = createEvent();\n\nexport const OnNotificationMarkReadError = createEvent();\n\nexport const OnAllNotificationMarkRead = createEvent();\n\nexport const OnAllNotificationMarkReadError = createEvent();\n\nexport const OnServiceWorkerRegistered = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport {\n UPDATE_NOTIFICATION_BY_FILTER,\n QUERY_USER_NOTIFICATION,\n UPDATE_NOTIFICATION,\n CREATE_USER_PUSH_SUBSCRIPTION,\n} from './notifications-querys';\nimport {\n OnFetchNotifications,\n OnFetchNotificationsError,\n OnNotificationMarkRead,\n OnNotificationMarkReadError,\n OnAllNotificationMarkRead,\n OnAllNotificationMarkReadError,\n} from './notifications-store';\n\n/**\n * Marks all notifications of the specified user\n * as read\n *\n * @param user - The user id\n * @param agency - The agency id\n *\n * @returns The request result\n */\nexport const markAllNotificationsAsRead = createAction(\n OnAllNotificationMarkRead,\n OnAllNotificationMarkReadError,\n async (user, agency) => {\n const client = OnApolloClient.get();\n\n if (!client) return;\n\n const response = await client.mutate({\n mutation: UPDATE_NOTIFICATION_BY_FILTER,\n variables: {\n data: { read: { set: true } },\n filter: {\n agency: { id: { equals: agency } },\n user: { id: { equals: user } },\n read: { equals: false },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Marks the specified notifications as read\n *\n * @param ids - The list of notifications to update\n *\n * @returns The request result\n */\nexport const markNotificationsAsRead = createAction(\n OnNotificationMarkRead,\n OnNotificationMarkReadError,\n async (ids) => {\n const client = OnApolloClient.get();\n\n if (!client) return;\n\n const response = await client.mutate({\n mutation: UPDATE_NOTIFICATION_BY_FILTER,\n variables: {\n data: { read: { set: true } },\n filter: {\n id: {\n in: ids,\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Marks a notification as read\n *\n * @param id - Notification id\n *\n * @returns The request result\n */\nexport async function markNotificationAsRead(id: string) {\n const client = OnApolloClient.get();\n\n if (!client) return;\n\n const response = await client.mutate({\n mutation: UPDATE_NOTIFICATION,\n variables: {\n filter: {\n id,\n },\n data: {\n read: true,\n },\n },\n });\n\n return response.data;\n}\n\n/**\n * Fetches the notifications of the specified user\n * in the agency\n *\n * @param user - The user id\n * @param agency - The agency id\n *\n * @returns The list of notifications\n */\nexport const fetchNotifications = createAction(\n OnFetchNotifications,\n OnFetchNotificationsError,\n async (user, agency, page) => {\n const first = 10;\n const skip = first * (page - 1);\n const sort = [{ createdAt: 'DESC' }];\n const client = OnApolloClient.get();\n\n const filter = {\n agency: { id: { equals: agency } },\n };\n\n if (!client) return;\n let response;\n try {\n response = await client.query({\n query: QUERY_USER_NOTIFICATION,\n fetchPolicy: 'network-only',\n variables: {\n userId: user,\n filter,\n first,\n skip,\n sort,\n },\n });\n\n const notifications = response.data?.user?.notificationRelation?.items ?? [];\n\n return {\n notificationsList: {\n items: notifications,\n count: notifications.length,\n },\n };\n } catch (error) {\n console.log('fetchNotifications response', response);\n }\n },\n);\n\n/**\n * Creates a new user push subscription\n *\n * @param data - The data to create the push subscription\n */\nexport async function createUserPushSubscription(data: UserPushSubsCreateData): Promise {\n const client = OnApolloClient.get();\n\n if (!client) return;\n\n await client.mutate({\n mutation: CREATE_USER_PUSH_SUBSCRIPTION,\n variables: {\n data: {\n endpoint: data.endpoint,\n user: {\n connect: {\n id: data.user,\n },\n },\n metadata: data.metadata,\n },\n },\n });\n console.log('created push subscription');\n}\n\ntype UserPushSubsCreateData = {\n endpoint: string;\n user: string;\n metadata?: Record;\n};\n","import React from 'react';\nimport { Column, Row, Icon, Text, Paragraph } from '@8base/boost';\nimport { ToastText } from './ToastText';\nimport { useHistory } from 'react-router';\nimport { Box } from '../../Box';\nimport { markNotificationAsRead } from '../../../../modules/notifications/notifications-actions';\nimport PropTypes from 'prop-types';\n\n/**\n * @param {object} props - Component props\n * @param {string} props.notification - Notification id.\n * @param {object} props.sms - Sms object from database.\n * @param {string} props.sms.id - Id of the SMS.\n * @param {string} props.sms.text - Content of the SMS.\n * @param {string} props.sms.receivedFrom - Number where the message come from.\n * @param {object} [props.sms.lead] - Related lead object.\n * @param {string} props.sms.lead.id - Lead id.\n * @param {string} props.sms.lead.firstName - First name of the prospect.\n * @returns {React.ReactNode} Toast Message Notification component.\n */\nconst ToastMessage = ({ notification, sms }) => {\n const name = sms.lead?.firstName || `+1 ${sms.receivedFrom}`;\n const text = sms.text.slice(0, 100);\n const history = useHistory();\n\n const handleClick = () => {\n markNotificationAsRead(notification);\n\n if (sms.lead?.id) {\n history.push(`/leads/${sms.lead.id}`);\n } else {\n history.push('/reports/sms-logs');\n }\n };\n\n return (\n \n \n \n \n You have a new SMS message from {name}!\n \n \n {text}...{' '}\n \n see more\n \n \n \n \n );\n};\n\nToastMessage.propTypes = {\n notification: PropTypes.string.isRequired,\n sms: PropTypes.shape({\n id: PropTypes.string.isRequired,\n receivedFrom: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n }),\n text: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nexport default ToastMessage;\n","import React from 'react';\nimport { toast } from 'react-toastify';\nimport {\n ToastSuccess,\n ToastError,\n ToastAttention,\n ToastInfo,\n ToastErrors,\n ToastWarn,\n ToastMessage,\n ToastEmail,\n} from './components';\n\nconst config = {\n autoClose: false,\n position: toast.POSITION.BOTTOM_LEFT,\n};\n\nexport const success = (title, text) => {\n toast.success(, config);\n};\n\nexport const error = (text, setIsErrorToastShowing) => {\n toast.error(, {\n autoClose: false,\n position: toast.POSITION.BOTTOM_LEFT,\n onClose: () => {\n if (typeof setIsErrorToastShowing === 'function') {\n setIsErrorToastShowing(false);\n }\n },\n });\n};\n\nexport const errors = (arr) => {\n toast.error(, config);\n};\n\nexport const info = (title, text) => {\n toast.info(, config);\n};\n\nexport const attention = (text) => {\n toast.warn(, config);\n};\n\nexport const warn = (text) => {\n toast.warn(, config);\n};\n\nexport const message = (notificationId, smsObj) => {\n toast.success(, {\n autoClose: false,\n position: toast.POSITION.BOTTOM_LEFT,\n });\n};\n\nexport const email = (notification, email) => {\n toast.success(, {\n autoClose: false,\n position: toast.POSITION.BOTTOM_LEFT,\n });\n};\n","import { error } from '@cobuildlab/pure-logger';\nimport * as toast from './components/toast/Toast';\n\n/**\n * The onChange data method for forms.\n *\n * @param {string} name - The Name of the Field.\n * @param {string} value - The Value of the Field to be changed.\n *\n * @returns {void}\n */\nexport function onChangeDataMixin(name, value) {\n const { data } = this.state;\n data[name] = value;\n this.setState({ data });\n}\n\n/**\n * @param {string} name - The Name of the Field.\n * @param {string} value - The Value of the Field to be changed.\n *\n * @returns {void}\n */\nexport function onChangeFilterMixin(name, value) {\n this.setState({\n filters: {\n ...this.state.filters,\n [name]: value,\n },\n });\n}\n\n/**\n * The onError method for View, shows the error on a Toast.\n *\n * @param {object} err - The Error Object.\n *\n * @returns {void}\n */\nexport function onErrorMixin(err) {\n error(err);\n\n if (Array.isArray(err.arr)) {\n toast.errors(err.arr);\n } else {\n toast.error(err.message.replace('GraphQL error:', '').trim());\n }\n this.setState({ isLoading: false, isLoadingForm: false });\n}\n\n/**\n * The onError method for View, shows the error on a Toast\n * This is only for functional components.\n *\n * @param {Array | Error} err - The Error Object\n *\n * @returns {void}\n */\nexport function onErrorMixinFC(err) {\n error(err);\n\n if (Array.isArray(err.arr)) {\n toast.errors(err.arr);\n } else {\n toast.error(err.message.replace('GraphQL error:', '').trim());\n }\n}\n\n/**\n * Handle on change for hooks.\n *\n * @param {object} object - Data object.\n * @param {Function} set - Hook function.\n * @param {string} key - Key name.\n * @param {string} value - Input value.\n *\n * @returns {void}\n */\nexport const onChangeDataHookMixin = (object, set, key, value) => {\n const newObject = { ...object };\n\n newObject[key] = value;\n\n set(newObject);\n};\n","import gql from 'graphql-tag';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\n\nexport const AgencyFragment = gql`\n fragment FragmentAgency on Agency {\n id\n name\n company {\n id\n name\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n }\n }\n companyInvoices(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n }\n }\n }\n phoneCallSettings {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n agency {\n id\n name\n }\n callCadenceConfig\n }\n ifsScore\n enableInsights\n }\n`;\nexport const SelectedAgencyFragment = gql`\n fragment FragmentSelectedAgency on Agency {\n id\n name\n enableInsights\n company {\n id\n name\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n }\n }\n companyInvoices(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n }\n }\n }\n phoneCallSettings {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n agency {\n id\n name\n }\n callCadenceConfig\n }\n ifsScore\n phoneNumbersRelation(filter: { active: { equals: true } }) {\n items {\n id\n active\n number {\n code\n number\n }\n }\n }\n }\n`;\nexport const UserFragment = gql`\n fragment UserFragment on User {\n email\n firstName\n id\n lastName\n cellPhone\n workPhone\n workPhoneExt\n timezone\n onboardingStep\n selectedAgency {\n ...FragmentSelectedAgency\n }\n avatar {\n id\n downloadUrl\n }\n }\n ${SelectedAgencyFragment}\n`;\nexport const CompanyFragment = gql`\n fragment CompanyFragment on Company {\n id\n name\n status\n agencyCompanyRelation {\n items {\n id\n name\n }\n }\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n expireDate\n cardHolderName\n cardExpireDate\n last4\n addressLine1\n addressLine2\n city\n state\n country\n subscriptionPlan {\n id\n name\n description\n monthlyPrice\n annualPrice\n annualSavings\n }\n }\n }\n companyInvoices(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n invoiceId\n status\n }\n }\n }\n`;\n\nexport const AgencyInvitationFragment = gql`\n fragment AgencyInvitationFragment on AgencyInvitation {\n id\n createdBy {\n ...UserFragment\n }\n agency {\n ...FragmentAgency\n }\n email\n type\n status\n }\n ${UserFragment}\n ${AgencyFragment}\n`;\n\nexport const CompanyInvitationFragment = gql`\n fragment CompanyInvitationFragment on CompanyInvitation {\n id\n createdBy {\n ...UserFragment\n }\n company {\n ...CompanyFragment\n }\n email\n status\n }\n ${UserFragment}\n ${CompanyFragment}\n`;\nexport const AGENCY_INVITATIONS_SUBSCRIPTION = gql`\n subscription($email: String!) {\n AgencyInvitation(filter: { node: { email: { equals: $email } }, mutation_in: create }) {\n mutation\n node {\n ...AgencyInvitationFragment\n }\n }\n }\n ${AgencyInvitationFragment}\n`;\nexport const COMPANY_INVITATIONS_SUBSCRIPTION = gql`\n subscription($email: String!) {\n CompanyInvitation(filter: { node: { email: { equals: $email } }, mutation_in: create }) {\n node {\n ...CompanyInvitationFragment\n }\n }\n }\n ${CompanyInvitationFragment}\n`;\nexport const MetaFragment = gql`\n fragment MetaFragment on Meta {\n id\n name\n value\n }\n`;\n\nexport const SESSION_QUERY = gql`\n query FetchSession (\n $id: ID\n $agencyInvitationFilter: AgencyInvitationFilter!\n $companyInvitationFilter: CompanyInvitationFilter!\n ) {\n user(id: $id) {\n ...UserFragment\n userAgencyUserRelation (filter: { agency: { company: { subscriptions: { some: { status: { not_equals: \"${SUBSCRIPTION_STATUS.INCOMPLETE_EXPIRED}\" }}}}}}) {\n count\n items {\n id\n agency {\n ...FragmentAgency\n }\n roles\n }\n }\n userAdminRelation (filter: { company: { subscriptions: { some: { status: { not_equals: \"${SUBSCRIPTION_STATUS.INCOMPLETE_EXPIRED}\" }}}}}) {\n count\n items {\n id\n company {\n ...CompanyFragment\n }\n }\n }\n }\n agencyInvitationsList(filter: $agencyInvitationFilter) {\n count\n items {\n ...AgencyInvitationFragment\n }\n }\n companyInvitationsList(filter: $companyInvitationFilter) {\n count\n items {\n ...CompanyInvitationFragment\n }\n }\n }\n ${UserFragment}\n ${AgencyFragment}\n ${CompanyFragment}\n ${AgencyInvitationFragment}\n ${CompanyInvitationFragment}\n`;\n\nexport const USER_QUERY = gql`\n query User($id: ID) {\n user(id: $id) {\n ...UserFragment\n }\n }\n ${UserFragment}\n`;\n\nexport const UPDATE_USER = gql`\n mutation UpdateUser($data: UserUpdateInput!) {\n userUpdate(data: $data) {\n id\n }\n }\n`;\n\nexport const META_QUERY = gql`\n query Metas($userId: ID) {\n metasList(filter: { user: { id: { equals: $userId } } }) {\n count\n items {\n ...MetaFragment\n }\n }\n }\n ${MetaFragment}\n`;\n\nexport const CREATE_META_MUTATION = gql`\n mutation CreateMeta($data: MetaCreateInput!) {\n metaCreate(data: $data) {\n ...MetaFragment\n }\n }\n ${MetaFragment}\n`;\n\nexport const UPDATE_META_MUTATION = gql`\n mutation UpdateMeta($data: MetaUpdateInput!) {\n metaUpdate(data: $data) {\n ...MetaFragment\n }\n }\n ${MetaFragment}\n`;\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString, isValidNumber, isValidEmail } from '../../../shared/validators';\n\n/**\n * Validate the user data.\n *\n * @param {object} user info.\n * @returns {Array} If there is an error it adds to the array.\n */\n\nexport const updateUserValidator = (userData) => {\n let errorMessages = [];\n\n if (!isValidString(userData.firstName)) {\n errorMessages.push('The User must have a valid First Name');\n }\n\n if (!isValidString(userData.lastName)) {\n errorMessages.push('The User must have a valid Last Name');\n }\n\n if (!isValidEmail(userData.email)) {\n errorMessages.push('The User must have a valid Email');\n }\n\n if (!isValidString(userData.timezone)) {\n errorMessages.push('The User must have a valid Timezone');\n }\n\n if (userData.cellPhone && userData.cellPhone !== '' && !isValidNumber(userData.cellPhone)) {\n errorMessages.push('The User must have a valid cellphone');\n }\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import gql from 'graphql-tag';\n\nexport const SYSTEM_SETTINGS_QUERY = gql`\n query systemSettingList {\n systemSettingsList {\n items {\n id\n name\n isEnabled\n value\n }\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnSystemSettings = createEvent({\n initialValue: [],\n});\n\nexport const OnSystemSettingsError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { SYSTEM_SETTINGS_QUERY } from './system-setting-queries';\nimport { OnSystemSettings, OnSystemSettingsError } from './system-setting-events';\n\nexport const fetchSystemSettings = createAction(\n OnSystemSettings,\n OnSystemSettingsError,\n async () => {\n const client = OnApolloClient.get();\n let response = null;\n\n response = await client.query({\n query: SYSTEM_SETTINGS_QUERY,\n fetchPolicy: 'network-only',\n });\n\n log('fetchSystemSettings', response.data.systemSettingsList.items);\n\n return response.data.systemSettingsList.items;\n },\n);\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { USER_QUERY, SESSION_QUERY, UPDATE_USER } from './queries';\nimport {\n OnSessionError,\n OnSessionFetch,\n OnApolloClient,\n OnInvitationsSkipped,\n OnUserUpdate,\n OnUserUpdateError,\n OnMetaUpdate,\n} from '../../shared/session/session-events';\nimport { META_ONBOARDING_STEP_NAME, META_AGENCY_SELECTED_NAME } from '../../shared/constants/meta';\nimport { sanitize8BaseDocumentUpdate } from '../../shared/utils';\nimport { updateUserValidator } from '../my-account/general/general-validators';\nimport { fetchSystemSettings } from '../system-settings/system-setting-actions';\n\n/**\n * Fetches a User Profile by Id or the logged User if no Id provided.\n *\n * @param {number} id - The user id to fetch, if zero, the currently authenticated user is fetched\n *\n * @returns {Promise} The request result\n */\nexport const fetchUser = async (id = 0) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n if (id === 0) {\n response = await client.query({ query: USER_QUERY, fetchPolicy: 'network-only' });\n } else {\n response = await client.query({\n query: USER_QUERY,\n fetchPolicy: 'network-only',\n variables: { id },\n });\n }\n } catch (e) {\n error('fetchUser', e);\n throw e;\n }\n\n log('fetchUser', response.data.user);\n\n return response.data.user;\n};\n\n/**\n * Update User Profile data.\n *\n * @param {object} userData - The data to update the user\n * @param {boolean} validate - To validate or not the data\n *\n * @returns {Promise} The update user result\n */\nexport const updateUser = async (userData, validate = true) => {\n const client = OnApolloClient.get();\n let response;\n\n if (userData.avatar) {\n sanitize8BaseDocumentUpdate(userData, 'avatar');\n }\n if (validate) {\n try {\n updateUserValidator(userData);\n } catch (e) {\n error('updateUser', e);\n\n return OnUserUpdateError.dispatch(e);\n }\n }\n\n try {\n response = await client.mutate({\n mutation: UPDATE_USER,\n variables: { data: userData },\n });\n } catch (e) {\n error('updateUser', e);\n\n return OnUserUpdateError.dispatch(e);\n }\n\n log('updateUser', response);\n\n OnUserUpdate.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Fetches the logged User Profile.\n *\n * @returns {Promise} The request result\n */\nexport const fetchSession = async () => {\n const client = OnApolloClient.get();\n let user = null;\n let response = null;\n\n try {\n user = await fetchUser();\n } catch (e) {\n error('fetchSession', e);\n\n return OnSessionError.dispatch(e);\n }\n\n try {\n response = await client.query({\n query: SESSION_QUERY,\n fetchPolicy: 'network-only',\n variables: {\n id: user.id,\n agencyInvitationFilter: {\n email: { equals: user.email },\n createdBy: {\n id: {\n not_equals: null,\n },\n },\n },\n companyInvitationFilter: { email: { equals: user.email } },\n },\n });\n } catch (e) {\n error('fetchSession', e);\n\n return OnSessionError.dispatch(e);\n }\n\n log('fetchSession', response.data);\n\n try {\n await fetchSystemSettings();\n } catch (e) {\n error('fetchSystemSettings', e);\n throw e;\n }\n\n OnSessionFetch.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Updates a meta value in the API for the current User.\n *\n * @param {string} name - the name of the meta\n * @param {string} value - the value of the meta\n *\n * @returns {Promise} The request result\n */\nexport const updateMeta = async (name, value) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n const data = { id: user.id };\n let response = null;\n\n switch (name) {\n case META_AGENCY_SELECTED_NAME:\n data.selectedAgency = { connect: { id: value } };\n break;\n case META_ONBOARDING_STEP_NAME:\n data.onboardingStep = value;\n break;\n default:\n return user;\n }\n\n try {\n response = await client.mutate({\n mutation: UPDATE_USER,\n variables: { data },\n });\n } catch (e) {\n error('updateMeta', e);\n\n return OnSessionError.dispatch(e);\n }\n\n log('updateMeta', response.data.userUpdate);\n\n OnMetaUpdate.dispatch(response.data);\n\n return response.data.userUpdate;\n};\n\n/**\n * Dispatches invitations skipped event\n *\n * @returns {void}\n */\nexport const skipInvitations = () => {\n return OnInvitationsSkipped.dispatch();\n};\n","export const META_ONBOARDING_STEP_NAME = 'Onboarding Step';\nexport const META_AGENCY_SELECTED_NAME = 'Selected Agency';\n","export const TOAST_SUCCESS_MESSAGE = 'TOAST_SUCCESS_MESSAGE';\n\nexport const CAMPAIGN_TYPES = ['MANUAL', 'WORKFLOW PROCESS', 'UPLOADED LIST', 'FILTERS', 'VENDOR'];\n\nexport const CAMPAIGN_STATUSES = ['NEW', 'FROZEN', 'ACTIVE', 'CLOSED'];\n\nexport const PRIORITIES = ['LOW', 'NORMAL', 'HIGH', 'VERY HIGH'];\n\n/**\n * Constants for the Tasks\n */\nexport const TASKS_INITIAL_STATUS = 'Open';\n\nexport const TASK_STATUS_CLOSED = 'Closed';\n\n/**\n * Constants for the Billing Status To Use the PriorityBadge UI Component\n */\n\nexport const BILLING_HISTORY_STATUS = {\n draft: { value: 3 },\n open: { value: 4 },\n paid: { value: 5 },\n uncollectible: { value: 6 },\n void: { value: 7 },\n};\n\n/**\n * Format for dates realted to dob columns.\n */\nexport const DATE_SCHEMA_FORMATS = ['MM-DD-YYYY', 'MM/DD/YYYY', 'YYYY-MM-DD', 'YYYY/MM/DD'];\n\n/**\n * constants for user roles.\n */\nexport const ADMIN = 'ADMIN';\n\nexport const MANAGER = 'MANAGER';\n\nexport const AGENT = 'AGENT';\n\nexport const AGENCY_ROLES = {\n AGENT: AGENT,\n MANAGER: MANAGER,\n};\n\nexport const PRIORITY_VALUES = {\n LOW: 1,\n NORMAL: 2,\n HIGH: 3,\n VERY_HIGH: 4,\n};\n\nexport const PRIORITY_OPTIONS = [\n { label: 'LOW', value: String(PRIORITY_VALUES.LOW) },\n { label: 'MEDIUM', value: String(PRIORITY_VALUES.NORMAL) },\n { label: 'HIGH', value: String(PRIORITY_VALUES.HIGH) },\n { label: 'VERY HIGH', value: String(PRIORITY_VALUES.VERY_HIGH) },\n];\n\nexport const LEAD_TYPE_AUTO = 'Auto';\n\nexport const LEAD_TYPE_COMMERCIAL_AUTO = 'Commercial Auto';\n\nexport const LEAD_TYPE_HOME = 'Home';\n\nexport const LEAD_TYPE_LIFE = 'Life';\n\nexport const LEAD_TYPE_GENERAL_LIABILITY = 'General Liability';\n\nexport const LEAD_TYPE_WORKERS_COMPENSATION = 'Workers Compensation';\n\nexport const LEAD_TYPE_EMPLOYEE_BENEFITS = 'Employee Benefits';\n\nexport const TYPE_VALUES = {\n LEAD_TYPE_AUTO,\n LEAD_TYPE_COMMERCIAL_AUTO,\n LEAD_TYPE_HOME,\n LEAD_TYPE_LIFE,\n LEAD_TYPE_GENERAL_LIABILITY,\n LEAD_TYPE_WORKERS_COMPENSATION,\n LEAD_TYPE_EMPLOYEE_BENEFITS: 'Employee Benefit',\n};\n\nexport const GENDERS = {\n MALE: 'MALE',\n FEMALE: 'FEMALE',\n OTHER: 'OTHER',\n PREFER_NOT_SAYING: 'PREFER NOT SAYING',\n};\n\nexport const MARITAL_STATUSES = {\n WIDOW: 'WIDOW',\n SINGLE: 'SINGLE',\n MARRIED: 'MARRIED',\n};\n\nexport const MARITAL_STATUSES_OPTIONS = [\n { label: 'Widow', value: MARITAL_STATUSES.WIDOW },\n { label: 'Single', value: MARITAL_STATUSES.SINGLE },\n { label: 'Married', value: MARITAL_STATUSES.MARRIED },\n];\n\n// Default IFS Scores for agencies.\nexport const IFS_SCORES = ['Excellent', 'Good', 'Fair', 'Poor'];\n\nexport const LIST_INITIAL_STATE = {\n items: [],\n count: 0,\n loading: true,\n};\n\nexport const LEAD_CSV_FORMATS = {\n STANDARD: 'STANDARD',\n RICOCHET: 'RICOCHET',\n};\n\nexport const LEAD_CSV_FORMAT_OPTIONS = [\n { label: 'Standard', value: LEAD_CSV_FORMATS.STANDARD },\n { label: 'Ricochet', value: LEAD_CSV_FORMATS.RICOCHET },\n];\n","import { OnSessionFetch } from '../session/session-events';\nimport { updateUser } from '../../modules/auth/auth.actions';\nimport { ADMIN } from '../constants/index';\nimport * as toast from '../components/toast/Toast';\n\n/**\n * Get active agency.\n *\n * @returns {{ id: string }} The agency object\n */\nexport const getActiveAgency = () => {\n const session = OnSessionFetch.get();\n\n if (!session) return null;\n\n const agencies = getUserAgencies();\n const agency = session.user.selectedAgency;\n\n if (agency) return agency;\n\n let agencyId = agency?.id;\n\n if (agencies.length === 0 && !agency) return null;\n\n // Here there is no agency selected, then select the first agency.\n if (agencyId === undefined && agencies.length > 0) {\n agencyId = agencies[0].id;\n setTimeout(() => {\n setActiveAgency(agencyId);\n }, 0);\n }\n\n return agencies.find((agency) => agency.id === agencyId);\n};\n\n/**\n * Set active agency.\n *\n * @param {string} agencyId agency ID\n * @returns {Function} promise\n */\nexport const setActiveAgency = (agencyId) => {\n const session = OnSessionFetch.get();\n const userId = session.user.id;\n return updateUser(\n {\n id: userId,\n selectedAgency: {\n connect: {\n id: agencyId,\n },\n },\n },\n false,\n );\n};\n\n/**\n * Get the agencies of the current user.\n *\n * @returns {Array} agencies\n */\nexport const getUserAgencies = () => {\n const session = OnSessionFetch.get();\n const user = session?.user;\n\n if (!user) return [];\n\n return user.userAgencyUserRelation.items.map((item) => item.agency);\n};\n\n/**\n * Extracts the Role of a User on an Agency, null if it does not have one\n *\n * @param {object} user The User\n * @param {object} agency The selected Agency\n * @returns {Array | null} user roles array\n */\nexport const getRolesOnSelectedAgency = (user, agency) => {\n if (!user || !agency) return null;\n\n const roles = [];\n\n if (user.userAdminRelation.items.length > 0) {\n const companies = user.userAdminRelation.items;\n if (companies.some((c) => c.company.id === agency.company.id)) {\n roles.push(ADMIN);\n }\n }\n\n if (user.userAgencyUserRelation.items.length > 0) {\n const rolesInAgency = user.userAgencyUserRelation.items.find(\n (item) => item.agency.id === agency.id,\n );\n\n if (rolesInAgency) {\n roles.push(...rolesInAgency.roles);\n }\n }\n\n return roles;\n};\n\n/**\n * Returns true if the User has the role or one of the roles\n * in the provided Agency\n *\n * @param {object} user The user\n * @param {object} agency The Agency\n * @param {string|string[]} roles Role name or array or Role names\n *\n * @returns {boolean} if the user has the role or one of the roles in the agency\n */\nexport const userHasAnyRoleInAgency = (user, agency, roles) => {\n const userRoles = getRolesOnSelectedAgency(user, agency);\n\n if (!userRoles) return false;\n\n if (Array.isArray(roles)) {\n return roles.some((role) => userRoles.includes(role));\n }\n\n return userRoles.includes(roles);\n};\n\n/**\n * Validate if the agency selected still belong to the current user.\n *\n * @param {string} agencyId agency ID\n * @param {Array} userAgencies list of user agencies\n * @returns {boolean} the agency belong to the user\n */\nexport const validateUserAgency = (agencyId, userAgencies) => {\n const exists = !!userAgencies.find((userAgency) => userAgency.id === agencyId);\n\n if (!exists) {\n const firstAgency = userAgencies[0];\n\n toast.warn(`\n The selected Agency don't belong to this user.\n ${firstAgency ? `The first agency ${firstAgency.name} will do selected automatically.` : ''}\n `);\n }\n\n return exists;\n};\n\n/**\n * get the user rol of the active agency.\n *\n * @returns {string} the user rol\n */\nexport const getUserAgencyRoles = () => {\n const session = OnSessionFetch.get();\n if (!session) return null;\n\n const roles = [];\n const activeAgency = getActiveAgency();\n if (!activeAgency) return null;\n const isAdmin = session.user.userAdminRelation.items.some(\n (item) => item.company.id === activeAgency.company.id,\n );\n\n if (isAdmin) roles.push(ADMIN);\n\n const agencyUser = session.user.userAgencyUserRelation.items.find(\n (item) => item.agency.id === activeAgency.id,\n );\n\n if (agencyUser) {\n roles.push(...agencyUser.roles);\n }\n\n return roles;\n};\n\n/**\n * Gets the roles of a user in an agency\n *\n * @param {object} user - The user to get the roles frmo\n *\n * @returns {Array} The list of roles\n */\nexport const getUserRolesInAgency = (user) => {\n if (!user) {\n return [];\n }\n\n const roles = [];\n const agency = user.selectedAgency.id;\n const company = user.selectedAgency.company.id;\n\n const isAdmin = user.userAdminRelation.items.some((item) => item.company.id === company);\n\n if (isAdmin) roles.push(ADMIN);\n\n const [userAgency] = user.userAgencyUserRelation.items.filter(\n (item) => item.agency.id === agency,\n );\n\n if (userAgency) {\n roles.push(...userAgency.roles);\n }\n\n return roles;\n};\n","import React, { useState, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Avatar, Grid, Row, Dropdown, Switch as Switch8b } from '@8base/boost';\nimport { Link } from 'react-router-dom';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { withAuth } from '@8base/react-sdk';\nimport { compose } from 'recompose';\nimport { Status, StatusText, StatusCircle } from '../UserStatus';\nimport Loader from '../ui/Loader';\nimport {\n createUserStatus,\n fetchUserStatuses,\n} from '../../../modules/user-status/user-status-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { onErrorMixinFC } from '../../mixins';\nimport { getUserAgencyRoles } from '../../utils/agency-utils'; // eslint-disable-line import/namespace, import/named\nimport { ADMIN, MANAGER } from '../../constants';\nimport chevron from '../../assets/images/chevron.svg';\nimport { OnUserStatusError } from 'modules/user-status/user-status-events';\n\nconst Dialog = styled.div`\n position: absolute;\n top: 70px;\n right: 25px;\n background-color: white;\n border-radius: 5px;\n box-sizing: border-box;\n border: 1px solid #d0d7dd;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);\n z-index: 1000;\n`;\n\nconst Header = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n border-bottom: 1px solid #d0d7dd;\n padding: 16px;\n`;\n\nconst Body = styled.div`\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border-bottom: 1px solid #d0d7dd;\n padding: 12px 16px;\n cursor: pointer;\n background: #efefef;\n`;\n\nconst Footer = styled.div`\n padding: 16px;\n display: flex;\n flex-direction: column;\n text-align: left;\n justify-content: flex-start;\n align-items: flex-start;\n`;\n\nconst Button = styled.button`\n cursor: pointer;\n font-size: 12px;\n background: none;\n`;\n\nconst Name = styled.p`\n font-weight: bold;\n font-size: 12px;\n`;\n\nconst Email = styled.p`\n color: var(--color-primary);\n font-size: 12px;\n`;\n\nconst JobTitle = styled.p`\n color: #9b9b9b;\n font-size: 12px;\n`;\n\nconst StyledLink = styled(Link)`\n font-size: 12px;\n text-decoration: none;\n color: #000;\n margin-bottom: 8px;\n`;\n\nconst StatusLabel = styled.p`\n color: #323c47;\n font-size: 12px;\n letter-spacing: 1px;\n line-height: 27px;\n font-weight: 600;\n width: 50%;\n text-transform: uppercase;\n`;\n\nconst DropDownContainer = styled.div`\n width: 50%;\n`;\n\nconst HeadDropdown = styled.div`\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n position: relative;\n height: 36px;\n`;\n\nconst Chevron = styled.img`\n transform: rotate(${(props) => props.rotate});\n margin-left: 10px;\n position: absolute;\n right: ${({ right }) => right};\n top: 12px;\n width: 8px;\n height: 12px;\n`;\n\nconst OptionContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n border-radius: 4px;\n padding: 11px 0px;\n\n &:hover {\n background-color: rgb(244, 247, 249);\n }\n`;\n\nconst Switch = styled(Switch8b)`\n width: 100%;\n justify-content: space-between;\n`;\nconst DropdownOption = ({ text, isBusy, color }) => (\n \n \n {text}\n \n);\n\nDropdownOption.propTypes = {\n isBusy: PropTypes.bool,\n text: PropTypes.string.isRequired,\n color: PropTypes.string.isRequired,\n};\n\nDropdownOption.defaultProps = {\n isBusy: false,\n};\n\nconst OnCallOption = () => (\n \n);\nconst AwayOption = () => ;\nconst ActiveOption = () => ;\nconst WithClientOption = () => (\n \n);\nconst WrappingCallOption = () => (\n \n);\n\nconst statusOptions = [\n {\n value: 'ON A CALL',\n Component: OnCallOption,\n },\n {\n value: 'AWAY',\n Component: AwayOption,\n },\n {\n value: 'ACTIVE',\n Component: ActiveOption,\n },\n {\n value: 'WITH CLIENT',\n Component: WithClientOption,\n },\n {\n value: 'WRAPPING ON A CALL',\n Component: WrappingCallOption,\n },\n];\n\nconst DialogProfile = ({\n user,\n status,\n isOpen,\n activeAgency,\n client,\n auth,\n onOutsideClick,\n callsState,\n callsAction,\n showSwitch,\n}) => {\n const [isStatusOpen, setStatusOpen] = useState(false);\n const dialogRef = useRef(null);\n\n const handleOnChangeStatus = (name, isActive) => {\n if (isActive) return;\n\n createUserStatus({\n status: name.toUpperCase(),\n user: user.id,\n });\n\n setStatusOpen(false);\n };\n\n const userAgencyRoles = getUserAgencyRoles();\n\n useEffect(() => {\n if (user && status === '') {\n fetchUserStatuses(user.id);\n }\n }, [user, status]);\n\n /**\n * Effect for closing dropdown when\n * user clicks outside of the dropdown itself\n */\n useEffect(() => {\n const handleClick = (event) => {\n if (dialogRef.current && !dialogRef.current.contains(event.target)) {\n onOutsideClick();\n }\n };\n\n document.addEventListener('mousedown', handleClick, false);\n\n return () => document.removeEventListener('mousedown', handleClick, false);\n }, [onOutsideClick]);\n\n const handleLogout = async () => {\n await client.clearStore();\n localStorage.clear();\n auth.authClient.logout();\n };\n\n useEventSubscription(OnUserStatusError, onErrorMixinFC);\n\n const option = statusOptions.find((option) => option.value === status);\n const Head = option ? option.Component : null;\n\n return (\n <>\n {isOpen ? (\n \n {user ? (\n <>\n
    \n \n \n \n \n \n <>\n \n {user.firstName} {user.lastName}\n \n {userAgencyRoles.includes(ADMIN) ? (\n <>\n Admin\n {user.userAdminRelation.items[0].company.name}\n \n ) : (\n <>\n \n {userAgencyRoles.includes(MANAGER) ? 'Manager' : 'Agent'}\n \n {activeAgency && {activeAgency.company.name}}\n \n )}\n {user.email}\n \n \n \n
    \n setStatusOpen(!isStatusOpen)}>\n CHANGE STATUS\n \n \n \n <>\n setStatusOpen(!isStatusOpen)}>\n {status !== '' ? : Select an status}\n \n \n \n \n \n {statusOptions.map((option, i) => (\n \n handleOnChangeStatus(option.value, option.value === status)\n }>\n \n \n ))}\n \n \n \n \n
    \n {showSwitch && (\n \n )}\n\n My Account\n \n
    \n \n ) : (\n \n )}\n
    \n ) : null}\n \n );\n};\n\nDialogProfile.propTypes = {\n activeAgency: PropTypes.object,\n user: PropTypes.object.isRequired,\n status: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n client: PropTypes.object.isRequired,\n auth: PropTypes.object.isRequired,\n onOutsideClick: PropTypes.func.isRequired,\n callsAction: PropTypes.func.isRequired,\n callsState: PropTypes.bool.isRequired,\n showSwitch: PropTypes.bool,\n};\n\nDialogProfile.defaultProps = {\n activeAgency: null,\n showSwitch: false,\n};\n\nexport default compose(withApollo, withAuth)(DialogProfile);\n","/**\n * Returns the appropiate color for the given status\n *\n * @param {string} status - The user's status\n *\n * @returns {string} The corresponding color\n */\nexport const getColorFromStatus = (status) => {\n switch (status) {\n case 'ON A CALL':\n return '#FF0000';\n case 'AWAY':\n return '#1E4358';\n case 'ACTIVE':\n return '#3DB4AA';\n case 'WITH CLIENT':\n return '#4993EA';\n case 'WRAPPING ON A CALL':\n return '#F6C01E';\n default:\n return '#3DB4AA';\n }\n};\n\n/**\n * create filters for user statuses query.\n *\n * @param {object} filterData createdAt and user filters.\n * @returns {object} graphql filter object.\n */\nexport const createFilter = (filterData) => {\n return {\n ...(filterData && {\n AND: [\n ...(filterData.user && filterData.user !== ''\n ? [\n {\n user: { id: { equals: filterData.user } },\n },\n ]\n : []),\n ],\n }),\n };\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport { Avatar } from '@8base/boost';\nimport { StatusCircle } from './UserStatus';\nimport { getColorFromStatus } from '../../modules/user-status/user-status-utils';\nimport PropTypes from 'prop-types';\n\nconst AvatarWithStatusWrap = styled.div`\n position: relative;\n`;\n\nconst AvatarStatus = styled.div`\n position: absolute;\n right: -10px;\n bottom: -5px;\n`;\n\nconst AvatarWithStatus = ({ status, ...props }) => {\n return (\n \n \n {status !== '' && (\n \n \n \n )}\n \n );\n};\nAvatarWithStatus.propTypes = {\n status: PropTypes.string.isRequired,\n};\nexport default AvatarWithStatus;\n","import { useState } from 'react';\nimport { getActiveAgency } from '../utils/agency-utils';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnSessionFetch } from '../session/session-events';\n\n/**\n * @typedef {object} phoneCallSettings\n * @property {string} id\n * @property {boolean} automaticCalls\n * @property {boolean} recordCalls\n * @property {object} agency\n * @property {string} agency.name\n * @property {string} agency.id\n *\n */\n/**\n * @typedef {object} Company\n * @property {string} id\n * @property {string} name\n *\n */\n/**\n * @typedef {object} Agency\n * @property {string} id\n * @property {string} name\n * @property {Company} company\n * @property {phoneCallSettings} phoneCallSettings\n *\n */\n/**\n * @returns {Agency} Agency object\n */\nexport function useAgency () {\n const [agency, setAgency] = useState(() => getActiveAgency());\n\n useSubscription(OnSessionFetch, ({ user: { selectedAgency } }) => {\n setAgency(selectedAgency);\n }, []);\n \n return agency;\n}\n","import { OnSessionFetch } from '../session/session-events';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\n\n/**\n * Return the companies in which the user is an admin\n *\n * @returns {Array} The array of companies\n */\nexport function getAdminCompanies() {\n const { user } = OnSessionFetch.get();\n\n return user.userAdminRelation.items.map((relation) => relation.company);\n}\n\n/**\n * Checks if the specified agency belongs to a company\n * with a paid subscription\n *\n * @param {object} agency - The agency to check\n *\n * @returns {boolean} True if the company is paid\n */\nexport function isCompanyAvailable(agency) {\n const [subscription] = agency.company.subscriptions.items;\n\n return (\n subscription.status !== SUBSCRIPTION_STATUS.UNPAID &&\n subscription.status !== SUBSCRIPTION_STATUS.CANCELED &&\n subscription.status !== SUBSCRIPTION_STATUS.INCOMPLETE\n );\n}\n\n/**\n * Checks if the specified agency belongs to a company\n * with a paid subscription\n *\n * @param {string} agencyId - The agency id to check\n *\n * @returns {boolean} True if the company is paid\n */\nexport function isCompanyAvailableFromAgencyId(agencyId) {\n if (!agencyId) return false;\n\n const { user } = OnSessionFetch.get();\n\n const { agency } = user.userAgencyUserRelation.items.find(({ agency: a }) => a.id === agencyId);\n\n if (!agency) return false;\n\n const [subscription] = agency.company.subscriptions.items;\n\n return (\n subscription.status !== SUBSCRIPTION_STATUS.UNPAID &&\n subscription.status !== SUBSCRIPTION_STATUS.CANCELED &&\n subscription.status !== SUBSCRIPTION_STATUS.INCOMPLETE\n );\n}\n\n/**\n * Checks if the currently authenticated user is an admin\n * in the specified company\n *\n * @param {object} company - The company object\n *\n * @returns {boolean} - If the user is admin in the company or not\n */\nexport function isAdminInCompany(company) {\n if (!company) return false;\n\n const { user } = OnSessionFetch.get();\n\n return user.userAdminRelation.items.some(({ company: c }) => c.id === company.id);\n}\n","import gql from 'graphql-tag';\n\nexport const CREATE_PHONE_CALL = gql`\n mutation CreatePhoneCall($to: String!, $from: ID!, $userId: ID!, $agencyId: ID!) {\n phoneCallCreate(\n data: {\n to: $to\n from: { connect: { id: $from } }\n user: { connect: { id: $userId } }\n agency: { connect: { id: $agencyId } }\n }\n ) {\n id\n to\n from {\n id\n number {\n code\n number\n }\n }\n }\n }\n`;\n\nexport const CREATE_PHONE_CALL_WITH_LEAD = gql`\n mutation CreateLeadPhoneCall(\n $to: String!\n $from: ID!\n $userId: ID!\n $leadId: ID!\n $agencyId: ID!\n ) {\n __typename\n phoneCallCreate(\n data: {\n to: $to\n from: { connect: { id: $from } }\n user: { connect: { id: $userId } }\n lead: { connect: { id: $leadId } }\n agency: { connect: { id: $agencyId } }\n }\n ) {\n id\n to\n from {\n id\n number {\n code\n number\n }\n }\n lead {\n id\n firstName\n lastName\n }\n }\n }\n`;\n\nexport const UPDATE_PHONE_CALL = gql`\n mutation phoneCallUpdate($data: PhoneCallUpdateInput!, $filter: PhoneCallKeyFilter) {\n __typename\n phoneCallUpdate(data: $data, filter: $filter) {\n id\n status\n }\n }\n`;\nexport const UPDATE_INBOUND_PHONE_CALL = gql`\n mutation UpdateInboundPhoneCall($data: InboundPhoneCallUpdateInput!) {\n inboundPhoneCallUpdate(data: $data) {\n id\n }\n }\n`;\n\nexport const QUERY_LEADS_PHONES = gql`\n query leadPhonesQuery($agency: ID!, $skip: Int, $first: Int) {\n leadsList(\n filter: { campaign: { agency: { id: { equals: $agency } } } }\n skip: $skip\n first: $first\n sort: { firstName: ASC }\n ) {\n count\n items {\n leadLeadPhoneNumberRelation {\n items {\n id\n phone {\n code\n number\n }\n }\n }\n phones {\n code\n number\n }\n firstName\n lastName\n id\n }\n }\n }\n`;\n\nexport const QUERY_LEAD_STAGES = gql`\n query leadStages {\n leadStagesList {\n items {\n id\n name\n }\n }\n }\n`;\nexport const QUERY_SCORES = gql`\n query ifsScoresList {\n ifsScoresList {\n items {\n name\n id\n }\n }\n }\n`;\nexport const CREATE_LEAD_DISPOSITION = gql`\n mutation leadDispositionCreate(\n $data: LeadDispositionCreateInput!\n $stage: ID!\n $lead: ID!\n $amount: BigInt\n ) {\n leadDispositionCreate(data: $data) {\n id\n }\n leadUpdate(\n filter: { id: $lead }\n data: { stage: { connect: { id: $stage } }, amount: $amount }\n ) {\n id\n }\n }\n`;\nexport const INBOUND_PHONE_CALLS_LIST = gql`\n query FetchInboundPhoneCalls(\n $first: Int\n $skip: Int\n $filter: InboundPhoneCallFilter!\n $sort: [InboundPhoneCallSort!]\n ) {\n inboundPhoneCallsList(first: $first, skip: $skip, filter: $filter, sort: $sort) {\n items {\n id\n from\n to {\n number {\n code\n number\n }\n }\n user {\n firstName\n lastName\n }\n rejectedBy {\n firstName\n lastName\n }\n createdAt\n }\n }\n }\n`;\nexport const PHONE_CALLS_LIST = gql`\n query FetchOutboundPhoneCalls(\n $first: Int\n $skip: Int\n $filter: PhoneCallFilter!\n $sort: [PhoneCallSort!]\n ) {\n phoneCallsList(first: $first, skip: $skip, filter: $filter, sort: $sort) {\n count\n items {\n id\n from {\n number {\n code\n number\n }\n }\n to\n lead {\n firstName\n lastName\n }\n createdBy {\n firstName\n lastName\n }\n createdAt\n phoneCallDispositionRelation {\n carrier\n currentPremium\n quotedPremium\n status {\n name\n }\n expirationDate\n insurance\n notes\n ifsScore\n createdBy {\n id\n firstName\n lastName\n email\n }\n createdAt\n }\n }\n }\n }\n`;\n\nexport const PHONE_NUMBERS_QUERY = gql`\n query FetchAgencyPhones(\n $filter: PhoneNumberFilter\n $skip: Int\n $first: Int\n $orderBy: [PhoneNumberOrderBy]\n ) {\n phoneNumbersList(filter: $filter, skip: $skip, first: $first, orderBy: $orderBy) {\n items {\n id\n number {\n code\n number\n }\n }\n }\n }\n`;\n\nexport const LEAD_DATA_QUERY = gql`\n query FetchLeadData($id: ID!) {\n lead(id: $id) {\n id\n amount\n stage {\n id\n name\n }\n }\n }\n`;\n\nexport const TRANSFER_CALL_MUTATION = gql`\n mutation TransferPhoneCall(\n $users: [ID]!\n $phones: [SmartPhoneInput]!\n $call: ID!\n $callType: CallType!\n ) {\n transferCall(users: $users, phones: $phones, call: $call, callType: $callType) {\n success\n }\n }\n`;\n\nexport const PHONE_CALL_PARTICIPANT_SUBSCRIPTION = gql`\n subscription phoneCallParticipantSubscription($userId: ID) {\n PhoneCallParticipant(\n filter: { node: { user: { id: { equals: $userId } } }, mutation_in: update }\n ) {\n node {\n wasRemovedFromCall\n }\n }\n }\n`;\n\nexport const FETCH_PHONE_CALL_PARTICIPANT = gql`\n query FetchPhoneCallParticipant($id: ID, $callSid: String) {\n phoneCallParticipant(id: $id, callSid: $callSid) {\n id\n callSid\n inboundCall {\n id\n from\n to {\n id\n number {\n code\n number\n }\n }\n lead {\n id\n firstName\n lastName\n }\n agency {\n id\n name\n }\n }\n outboundCall {\n id\n from {\n id\n number {\n code\n number\n }\n }\n to\n lead {\n id\n firstName\n lastName\n }\n agency {\n id\n name\n }\n }\n }\n }\n`;\n\nexport const FETCH_LEAD_CALL_CADENCE_AND_AGENCY = gql`\n query FetchLeadCallCadenceAndAgency($id: ID) {\n lead(id: $id) {\n id\n callCadence {\n id\n day1\n day2To7\n day8To30\n day31To89\n createdAt\n lastCalled\n }\n campaign {\n agency {\n twilioSID\n }\n }\n }\n }\n`;\n\nexport const FETCH_CALL_INFO = gql`\n query FetchCallInfo($callSid: String!, $subAccountSid: String!) {\n fetchCallInfo(callSid: $callSid, subAccountSid: $subAccountSid) {\n result {\n startTime\n }\n }\n }\n`;\n\nexport const CREATE_LEAD_CALL_CADENCE = gql`\n mutation CreateLeadCallCadence($data: LeadCallCadenceCreateInput!) {\n leadCallCadenceCreate(data: $data) {\n id\n lead {\n id\n firstName\n lastName\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n parsedPhone {\n code\n number\n }\n }\n }\n }\n }\n }\n`;\n\nexport const UPDATE_LEAD_CALL_CADENCE = gql`\n mutation UpdateLeadCallCadence(\n $filter: LeadCallCadenceKeyFilter\n $data: LeadCallCadenceUpdateInput!\n $force: Boolean\n ) {\n leadCallCadenceUpdate(filter: $filter, data: $data, force: $force) {\n id\n lead {\n id\n firstName\n lastName\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n parsedPhone {\n code\n number\n }\n }\n }\n }\n }\n }\n`;\n","const Device = require('twilio-client').Device;\n\nexport const TwilioDevice = new Device();\n","// Phone call status types defined in database model\nexport const PHONE_CALL_STATUS = {\n queued: 'queued',\n initiated: 'initiated',\n ringing: 'ringing',\n inProgress: 'in-progress',\n completed: 'completed',\n busy: 'busy',\n noAnswer: 'no-answer',\n canceled: 'canceled',\n failed: 'failed',\n closed: 'closed',\n};\n\nexport const CALL_TYPES = {\n OUTBOUND: 'OUTBOUND',\n INBOUND: 'INBOUND',\n INCOMING: 'INCOMING',\n};\n\n// Default state for the call controls component\nexport const callControlsDefaultState = {\n show: false,\n connection: null,\n callId: '',\n lead: null,\n status: PHONE_CALL_STATUS.ringing,\n from: '',\n to: '',\n _type: CALL_TYPES.OUTBOUND,\n type: CALL_TYPES.OUTBOUND,\n ringing: false,\n duration: 0,\n interval: null,\n phoneNumber: '',\n calling: false,\n inboundCallPreview: false,\n campaign: '',\n loading: false,\n};\n\nexport const dialerWidth = 300;\n\nexport const TWILIO_CONFIG = {\n // Set Opus as our preferred codec. Opus generally performs better, requiring less bandwidth and\n // providing better audio quality in restrained network conditions. Opus will be default in 2.0.\n codecPreferences: ['opus', 'pcmu'],\n // Use fake DTMF tones client-side. Real tones are still sent to the other end of the call,\n // but the client-side DTMF tones are fake. This prevents the local mic capturing the DTMF tone\n // a second time and sending the tone twice. This will be default in 2.0.\n fakeLocalDTMF: true,\n // Use `enableRingingState` to enable the device to emit the `ringing`\n // state. The TwiML backend also needs to have the attribute\n // `answerOnBridge` also set to true in the `Dial` verb. This option\n // changes the behavior of the SDK to consider a call `ringing` starting\n // from the connection to the TwiML backend to when the recipient of\n // the `Dial` verb answers.\n enableRingingState: true,\n};\n\nexport const DEVICE_STATUSES = {\n ready: 'ready',\n offline: 'offline',\n};\nexport const DEVICE_EVENTS = {\n connect: 'connect',\n disconnect: 'disconnect',\n offline: 'offline',\n ready: 'ready',\n error: 'error',\n incoming: 'incoming',\n reject: 'reject',\n accept: 'accept',\n cancel: 'cancel',\n warning: 'warning',\n};\n\nexport const TWILIO_ERROR_CODES = [31009, 31000, 31005, 31204, 31205, 31001, 31002];\n\nexport const AUTOMATIC_CALLS_STATUSES = {\n ON: 'on',\n ON_AND_REQUESTING: 'onAndRequesting',\n ON_AND_IN_A_CALL: 'onAndInACall',\n};\n\nexport const FILTER_DATA = {\n dateStart: '',\n dateEnd: '',\n aceptedBy: '',\n rejectedBy: '',\n sort: '',\n};\n\nexport const SORT_OPTIONS = [\n { label: 'Date: Newest First', value: 'newest' },\n { label: 'Date: Oldest First', value: 'oldest' },\n];\n\nexport const FILTER_CATEGORIES_SHARE = {\n dateStart: {\n title: 'Date Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateStart',\n },\n dateEnd: {\n title: 'Date End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateEnd',\n },\n};\nexport const FILTER_CATEGORIES_OUTBOUND = {\n ...FILTER_CATEGORIES_SHARE,\n assignedTo: {\n title: 'Assigned to',\n placeholher: 'Select',\n identifier: 'assignedTo',\n options: [],\n },\n};\nexport const FILTER_CATEGORIES_INBOUND = {\n ...FILTER_CATEGORIES_SHARE,\n aceptedBy: {\n title: 'Acepted By',\n placeholher: 'Select',\n identifier: 'aceptedBy',\n options: [],\n },\n rejectedBy: {\n title: 'Rejected By',\n placeholher: 'Select',\n identifier: 'rejectedBy',\n options: [],\n },\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const onLeadDispositionCreate = createEvent();\nexport const onLeadDispositionCreateError = createEvent();\n\nexport const onPhoneNumberList = createEvent();\nexport const onVoiseMailMessageList = createEvent();\nexport const onVoiseMailMessageListError = createEvent();\n\nexport const onTransferCall = createEvent();\nexport const onTransferCallError = createEvent();\n\nexport const onOnlineUsersList = createEvent();\n\nexport const OnFetchCallParticipant = createEvent();\n\nexport const OnFetchCallParticipantError = createEvent();\n\nexport const OnDeletePhoneCallRecordingEvent = createEvent();\n\nexport const OnDeletePhoneCallRecordingError = createEvent();\n\nexport const OnFetchPhoneCallRecordingsEvent = createEvent();\n\nexport const OnFetchPhoneCallRecordingsError = createEvent();\n\nexport const OnFetchInboundCallsEvent = createEvent();\n\nexport const OnFetchInboundCallsError = createEvent();\n\nexport const OnFetchOutboundCallsEvent = createEvent();\n\nexport const OnFetchOutboundCallsError = createEvent();\n\nexport const OnFetchTwilioTokeError = createEvent();\n\nexport const OnPhoneCallRegistryEvent = createEvent();\n\nexport const OnPhoneCallRegistryError = createEvent();\n\nexport const OnLeadPhonesListEvent = createEvent();\n\nexport const OnLeadPhonesListError = createEvent();\n\nexport const OnLeadStagesListEvent = createEvent();\n\nexport const OnLeadStagesListError = createEvent();\n\nexport const OnCallStartEvent = createEvent();\n\nexport const OnCallStartError = createEvent();\n\nexport const OnPhoneCallFinishedEvent = createEvent();\n\nexport const OnFetchLeadCallCadenceEvent = createEvent();\nexport const OnFetchLeadCallCadenceError = createEvent();\n\nexport const OnCreateLeadCallCadenceEvent = createEvent();\nexport const OnCreateLeadCallCadenceError = createEvent();\n\nexport const OnUpdateLeadCallCadenceEvent = createEvent();\nexport const OnUpdateLeadCallCadenceError = createEvent();\n\nexport const OnFetchCallInfoEvent = createEvent();\nexport const OnFetchCallInfoError = createEvent();\n","/**\n * Checks if an object has attributes.\n *\n * @param {object} obj - Object tu eval.\n *\n * @returns {boolean} True if object has no keys.\n */\nexport const emptyObject = (obj) => !Object.keys(obj).length > 0;\n\n/**\n * Checks an error object.\n *\n * @param {object} errors - Object of erros types objects.\n *\n * @returns {boolean} Return a bollean indicating if the object has errors.\n */\nexport const hasErrors = (errors) => {\n return Object.keys(errors).reduce((prev, current) => {\n if (prev) {\n return true;\n }\n return !emptyObject(errors[current]);\n }, false);\n};\n\n/**\n * Returns the authenticated user token.\n *\n * @returns {string} User bearer token.\n */\nexport function getUserToken() {\n const { token } = JSON.parse(localStorage.auth);\n return token;\n}\n\n/**\n * Returns a random number.\n *\n * @param {number} min - Min number.\n * @param {number} max - Max number.\n * @param {boolean} shouldRound - Max number.\n *\n * @returns {string} Random number.\n */\nexport function getRandomNumber(min, max, shouldRound = true) {\n if (typeof min !== 'number' || typeof max !== 'number') {\n const error = { message: 'Invalid params types' };\n throw error;\n }\n const random = (max - min) * Math.random() + min;\n\n return shouldRound ? Math.round(random) : random;\n}\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport {\n CREATE_PHONE_CALL,\n CREATE_PHONE_CALL_WITH_LEAD,\n QUERY_LEADS_PHONES,\n QUERY_LEAD_STAGES,\n CREATE_LEAD_DISPOSITION,\n PHONE_CALLS_LIST,\n PHONE_NUMBERS_QUERY,\n INBOUND_PHONE_CALLS_LIST,\n LEAD_DATA_QUERY,\n TRANSFER_CALL_MUTATION,\n FETCH_PHONE_CALL_PARTICIPANT,\n FETCH_LEAD_CALL_CADENCE_AND_AGENCY,\n CREATE_LEAD_CALL_CADENCE,\n UPDATE_LEAD_CALL_CADENCE,\n FETCH_CALL_INFO,\n} from './phone-calls-querys';\nimport { TwilioDevice } from './twilio';\nimport { CALL_TYPES, TWILIO_CONFIG } from './phone-calls-model';\nimport {\n onLeadDispositionCreate,\n onTransferCall,\n onTransferCallError,\n OnFetchCallParticipant,\n OnFetchCallParticipantError,\n OnFetchInboundCallsEvent,\n OnFetchInboundCallsError,\n OnFetchOutboundCallsError,\n OnFetchOutboundCallsEvent,\n onLeadDispositionCreateError,\n OnFetchTwilioTokeError,\n OnPhoneCallRegistryEvent,\n OnPhoneCallRegistryError,\n OnLeadPhonesListEvent,\n OnLeadPhonesListError,\n OnLeadStagesListEvent,\n OnLeadStagesListError,\n OnFetchLeadCallCadenceEvent,\n OnFetchLeadCallCadenceError,\n OnCreateLeadCallCadenceEvent,\n OnCreateLeadCallCadenceError,\n OnUpdateLeadCallCadenceError,\n OnUpdateLeadCallCadenceEvent,\n OnFetchCallInfoError,\n OnFetchCallInfoEvent,\n} from './phone-calls-events';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\nimport * as R from 'ramda';\nimport { getUserToken } from '../../shared/helpers';\nimport moment from 'moment';\nimport { createAction } from '@cobuildlab/react-simple-state';\n\nconst { ACTIVE } = SUBSCRIPTION_STATUS;\n\n/**\n * Method to dispatch CALLER_MOUNTED_EVENT when a phone call component gets render\n * this makes the phone call provider initialize the twilio client\n */\nexport const callerMounted = () => {\n console.log('caller mounted');\n OnFetchTwilioTokeError.dispatch(true);\n};\n\n/**\n *\n * @typedef {object} createVariables\n * @property {string} userId id of the current user who make the call and update the state\n * @property {string} to phone number of who gets called\n * @property {string} from phone number from where the call is made\n */\n/**\n * @param {createVariables} data Variables for the mutation\n * @param {string} lead Lead id for create a conection\n */\nexport const createPhoneCallRegistry = async (data, lead) => {\n const client = OnApolloClient.get();\n try {\n const mutation = lead ? CREATE_PHONE_CALL_WITH_LEAD : CREATE_PHONE_CALL;\n const variables = lead ? { ...data, leadId: lead } : { ...data };\n\n const response = await client.mutate({\n mutation,\n variables,\n });\n OnPhoneCallRegistryEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnPhoneCallRegistryError.dispatch(e);\n }\n};\n\n/**\n * @param {string} leadId - Lead id to get call cadence info.\n * @returns {Promise} Lead information.\n */\nexport async function fetchLeadCallCadenceAndAgency(leadId) {\n const client = OnApolloClient.get();\n const variables = { id: leadId };\n try {\n const resp = await client.query({\n fetchPolicy: 'network-only',\n query: FETCH_LEAD_CALL_CADENCE_AND_AGENCY,\n variables,\n });\n\n if (resp.data.lead) {\n OnFetchLeadCallCadenceEvent.dispatch(resp.data.lead);\n return resp.data.lead;\n }\n\n return null;\n } catch (err) {\n return OnFetchLeadCallCadenceError.dispatch(err);\n }\n}\n\n/**\n *\n * @param {string} callSid - The id of the twilio call.\n * @param {string} twilioSubAccountSid - The id of the twilio subaccount for the agency.\n * @returns {Promise} Twilio call information.\n */\nexport async function fetchCallInfo(callSid, twilioSubAccountSid) {\n const client = OnApolloClient.get();\n const variables = { callSid, subAccountSid: twilioSubAccountSid };\n\n try {\n const resp = await client.query({\n fetchPolicy: 'network-only',\n query: FETCH_CALL_INFO,\n variables,\n });\n OnFetchCallInfoEvent.dispatch(resp.data.fetchCallInfo.result);\n return resp.data.fetchCallInfo.result;\n } catch (error) {\n return OnFetchCallInfoError.dispatch(error);\n }\n}\n\n/**\n * @param {object} data - Parameters for creating the lead call cadence.\n * @param {number} data.day1 - The day number in the cadence sequence.\n * @param {string} data.lastCalled - ISO timestamp indicating when the lead was last called.\n * @param {object} data.lead - The lead information to associate with the cadence.\n * @param {object} data.lead.connect - Connection details for the lead.\n * @param {string} data.lead.connect.id - The unique identifier of the lead.\n *\n * @returns {Promise} Resolves when the cadence record is successfully created.\n */\nexport async function createLeadCallCadence(data) {\n const client = OnApolloClient.get();\n const variables = { data };\n\n try {\n const resp = await client.query({\n fetchPolicy: 'network-only',\n query: CREATE_LEAD_CALL_CADENCE,\n variables,\n });\n\n OnCreateLeadCallCadenceEvent.dispatch(resp.data);\n return resp.data;\n } catch (err) {\n return OnCreateLeadCallCadenceError.dispatch(err);\n }\n}\n\n/**\n * Updates the call cadence record for a lead by modifying specific fields,\n * such as the interval count and the timestamp of the last call.\n *\n * @param {string} callCadenceId - The unique identifier of the lead's call cadence record.\n * @param {object} data - The fields to update in the call cadence record.\n * @param {number} data.interval - The updated count for the specified interval.\n * @param {string} data.lastCalled - ISO timestamp indicating the new \"last called\" time.\n *\n * @returns {Promise} Resolves when the cadence record is successfully updated.\n */\nexport async function updateLeadCallCadence(callCadenceId, data) {\n const client = OnApolloClient.get();\n const variables = {\n filter: { id: callCadenceId },\n data,\n };\n\n try {\n const resp = await client.query({\n fetchPolicy: 'network-only',\n query: UPDATE_LEAD_CALL_CADENCE,\n variables,\n });\n OnUpdateLeadCallCadenceEvent.dispatch(resp.data);\n return resp.data;\n } catch (err) {\n return OnUpdateLeadCallCadenceError.dispatch(error);\n }\n}\n\nexport const fetchLeadPhoneList = async (agency, page = 1, limit = 10) => {\n const client = OnApolloClient.get();\n const skip = (page - 1) * limit;\n const variables = { agency, skip, first: limit };\n\n try {\n const response = await client.query({\n fetchPolicy: 'network-only',\n query: QUERY_LEADS_PHONES,\n variables,\n });\n\n OnLeadPhonesListEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnLeadPhonesListError.dispatch(e);\n }\n};\n\nlet shouldFetchToken = false;\n/**\n * @param {string} user If is a refetch token action\n * @param {string} agency If is a refetch token action\n * @param {boolean} refetch If is a refetch token action\n */\nexport async function initializeTwilioClient(user, agency, refetch = false) {\n if (shouldFetchToken && !refetch) {\n return;\n }\n\n shouldFetchToken = true;\n\n try {\n const response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/twilioPhoneCallsToken?agency=${agency}&user=${user}`,\n {\n headers: {\n Authorization: `Bearer ${getUserToken()}`,\n },\n },\n );\n\n const { token } = await response.json();\n\n let twiliodev = TwilioDevice.setup(token, TWILIO_CONFIG);\n console.log('TWILIO DEVICE', twiliodev);\n } catch (error) {\n // eslint-disable-next-line require-atomic-updates\n shouldFetchToken = false;\n return OnFetchTwilioTokeError.dispatch(error);\n }\n}\n\n/**\n * Fetch lead stages\n */\nexport async function fetchLeadStages() {\n const client = OnApolloClient.get();\n\n try {\n const response = await client.query({\n query: QUERY_LEAD_STAGES,\n });\n\n OnLeadStagesListEvent.dispatch(response.data);\n\n return response.data;\n } catch (e) {\n return OnLeadStagesListError.dispatch(e);\n }\n}\n\n/**\n *\n * @typedef {object} leadDsipostion\n * @property {string} carrier Carrier\n * @property {string} status Status id to connect\n * @property {string} expirationDate date\n * @property {string} score Score id to connect\n * @property {string} insurance Insurance information\n * @property {string} notes Notes of the info\n * @property {string} lead Lead id to connect\n * @property {string} callType - The type of the call internally\n */\n/**\n * @param {leadDsipostion} data data object\n */\nexport async function createLeadDisposition(data) {\n const client = OnApolloClient.get();\n\n const { lead, status, callId, amount, callType, ...rest } = data;\n\n const newData = {\n ...rest,\n lead: { connect: { id: lead } },\n ...(callType === CALL_TYPES.OUTBOUND\n ? {\n outboundPhoneCall: { connect: { id: callId } },\n }\n : {\n inboundPhoneCall: { connect: { id: callId } },\n }),\n };\n\n if (status) {\n newData.status = { connect: { id: status } };\n }\n\n try {\n const response = await client.mutate({\n mutation: CREATE_LEAD_DISPOSITION,\n variables: { lead, data: newData, stage: status, amount },\n });\n\n onLeadDispositionCreate.dispatch(response.data);\n\n return response.data;\n } catch (e) {\n return onLeadDispositionCreateError.dispatch(e);\n }\n}\n\n/**\n * Creates a filter object for SMS\n *\n * @param {object} filterData - the data of the filter\n * @returns {object} the filter object\n */\nconst createFilter = (filterData) => {\n const agencyFilter = filterData.agency ? { agency: { id: { equals: filterData.agency } } } : {};\n return {\n AND: [\n ...[agencyFilter],\n ...(filterData.dateStart !== '' && filterData.dateStart\n ? [\n {\n createdAt: {\n gte: moment(filterData.dateStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.dateEnd !== '' && filterData.dateEnd\n ? [\n {\n createdAt: {\n lte: moment(filterData.dateEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.assignedTo !== ''\n ? [\n {\n createdBy: { id: { equals: filterData.assignedTo } },\n },\n ]\n : []),\n ],\n };\n};\n/**\n * Creates a filter object for SMS\n *\n * @param {object} filterData - the data of the filter\n * @returns {object} the filter object\n */\nconst createInboundFilter = (filterData) => {\n const agencyFilter = filterData.agency ? { agency: { id: { equals: filterData.agency } } } : {};\n return {\n AND: [\n ...[agencyFilter],\n ...(filterData.dateStart !== '' && filterData.dateStart\n ? [\n {\n createdAt: {\n gte: moment(filterData.dateStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.dateEnd !== '' && filterData.dateEnd\n ? [\n {\n createdAt: {\n lte: moment(filterData.dateEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.aceptedBy !== ''\n ? [\n {\n user: { id: { equals: filterData.aceptedBy } },\n },\n ]\n : []),\n ...(filterData.rejectedBy !== ''\n ? [\n {\n rejectedBy: { id: { equals: filterData.rejectedBy } },\n },\n ]\n : []),\n ],\n };\n};\n\n/**\n * Returns a Sort Object\n *\n * @param {string} sortData - the category to be sorted\n * @returns {object} the sort object\n *\n */\nconst createSort = (sortData) => {\n return {\n ...(sortData === 'top' && { sort: [{ priority: 'DESC' }] }),\n ...(sortData === 'low' && { sort: [{ priority: 'ASC' }] }),\n ...(sortData === 'newest' && { sort: [{ createdAt: `DESC` }] }),\n ...(sortData === 'oldest' && { sort: [{ createdAt: `ASC` }] }),\n };\n};\n\n/**\n * function to fetch PhoneCalls.\n *\n * @param {number} page - the current page of the phone calls\n * @param {object} data - an object which contains the filterData\n *\n * @returns {Promise} The request result\n */\nexport const fetchPhoneCalls = async (page, data) => {\n let filter;\n let sort;\n if (data) {\n filter = createFilter(data);\n if (data.sort !== '') {\n sort = createSort(data.sort).sort;\n }\n }\n\n const first = 10;\n const client = OnApolloClient.get();\n const skip = (page - 1) * first;\n\n let response;\n const variables = { first, skip, ...(filter && { filter }), ...(sort && { sort }) };\n\n try {\n response = await client.query({\n query: PHONE_CALLS_LIST,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n console.error('call: phoneCalls', e);\n return OnFetchOutboundCallsError.dispatch(e);\n }\n console.log('call: phoneCalls', response);\n OnFetchOutboundCallsEvent.dispatch(response.data);\n return response.data;\n};\n/**\n * function to fetch PhoneCalls.\n *\n * @param {number} page - the current page of the phone calls\n * @param {object} data - an object which contains the filterData\n *\n * @returns {Promise} The request result\n */\nexport const fetchIboundPhoneCalls = async (page, data) => {\n let filter;\n let sort;\n if (data) {\n filter = createInboundFilter(data);\n if (data.sort !== '') {\n sort = createSort(data.sort).sort;\n }\n }\n const first = 10;\n const client = OnApolloClient.get();\n const skip = (page - 1) * first;\n\n let response;\n const variables = { first, skip, ...(filter && { filter }), ...(sort && { sort }) };\n\n try {\n response = await client.query({\n query: INBOUND_PHONE_CALLS_LIST,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('phoneCalls', e);\n return OnFetchInboundCallsError.dispatch(e);\n }\n log('phoneCalls', response);\n OnFetchInboundCallsEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * @param {string} agencyId - Agency id.\n * @param {string} subStatus - The subscription status\n * @returns {Promise} - Promise with list type.\n */\nexport async function fetchPhoneNumbers(agencyId, subStatus = 'active') {\n const client = OnApolloClient.get();\n /**\n * If status is different than active, for example \"trialing\", that means\n * the company can use free number or their own paid phone numbers.\n */\n const filter =\n subStatus === ACTIVE\n ? { agency: { id: { equals: agencyId } }, active: { equals: true } }\n : {\n OR: [\n { agency: { id: { equals: agencyId } }, active: { equals: true } },\n { active: { equals: true }, isFree: { equals: true } },\n ],\n };\n\n const response = await client.query({\n query: PHONE_NUMBERS_QUERY,\n fetchPolicy: 'network-only',\n variables: { filter },\n });\n\n return response.data.phoneNumbersList.items;\n}\n\n/**\n * @param {string} id - Lead id.\n * @returns {object} - Lead object.\n */\nexport async function fetchLeadDataService(id) {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: LEAD_DATA_QUERY,\n fetchPolicy: 'network-only',\n variables: { id },\n });\n\n return response.data.lead;\n}\n/**\n * Transfers the specified call to a new user\n *\n * @param {Array} users - The ids of the users to transfer the call to\n * @param {Array} phones - The phone numbers to transfer the call to\n * @param {string} call - The id of the call to transfer\n * @param {string} callType - The original type of the call\n * @returns {Promise} - Whether or not the transfer succeded\n */\nexport async function transferCallService(users, phones, call, callType) {\n const client = OnApolloClient.get();\n let response;\n try {\n response = await client.mutate({\n mutation: TRANSFER_CALL_MUTATION,\n variables: {\n users,\n phones,\n call,\n callType,\n },\n });\n console.log('call: TRANSFERRED CALL', response);\n } catch (e) {\n console.error('call: Error transferring call:', e);\n throw e;\n }\n return response.data.success;\n}\n\n/**\n * @param {string} user - Lead id.\n * @param {string} conference - Lead id.\n * @param {string} phoneNumber - Lead id.\n * @returns {boolean} - Lead object.\n */\nexport const transferCall = createAction(onTransferCall, onTransferCallError, transferCallService);\n\nexport const fetchCallParticipant = createAction(\n OnFetchCallParticipant,\n OnFetchCallParticipantError,\n async (id) => {\n const client = OnApolloClient.get();\n let response;\n try {\n response = await client.query({\n query: FETCH_PHONE_CALL_PARTICIPANT,\n fetchPolicy: 'network-only',\n variables: { id },\n });\n console.log('call: fetchCallParticipant', response);\n } catch (e) {\n console.error('call: Error fetching call participant:', e);\n throw e;\n }\n return response.data;\n },\n);\n","import { useState, useEffect } from 'react';\nimport { OnSessionFetch } from '../session/session-events';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { getUserRolesInAgency } from '../utils/agency-utils';\n\n/**\n * @typedef {object} UserRelation\n * @property {number} count relation items count\n * @property {object} items relation object\n *\n */\n/**\n * @typedef {object} User\n * @property {string} id user id\n * @property {string} email user email\n * @property {string} firstName user firstName\n * @property {string} lastName user lastName\n * @property {string} avatar user avatar url\n * @property {UserRelation} metaUserRelation\n * @property {UserRelation} userAgentRelation\n * @property {UserRelation} userAdminRelation\n * @property {UserRelation} userManagerRelation\n *\n */\n/**\n * @typedef {[User, boolean]} HookState array\n *\n */\n/**\n * @returns {HookState} Array with user object and loading boolean\n */\nexport const useUser = () => {\n const current = OnSessionFetch.get()?.user;\n\n const [{ user, loading, roles }, setUser] = useState({\n user: current,\n roles: getUserRolesInAgency(current),\n loading: current ? false : true,\n });\n\n useEffect(() => {\n if (!user) {\n const currentUser = OnSessionFetch.get()?.user;\n if (currentUser) {\n setUser((state) => ({ ...state, user: currentUser, loading: false }));\n }\n }\n }, [user]);\n useSubscription(\n OnSessionFetch,\n ({ user }) => {\n setUser((state) => ({ ...state, user, loading: false }));\n },\n [],\n );\n\n return [user, loading, roles];\n};\n","import {\n GENDERS,\n PRIORITY_VALUES,\n LEAD_TYPE_AUTO,\n LEAD_TYPE_COMMERCIAL_AUTO,\n LEAD_TYPE_HOME,\n LEAD_TYPE_LIFE,\n LEAD_TYPE_GENERAL_LIABILITY,\n LEAD_TYPE_WORKERS_COMPENSATION,\n LEAD_TYPE_EMPLOYEE_BENEFITS,\n} from '../../shared/constants';\nimport { getDateOfBirthYears } from './leads-utils';\n\nexport const SORT_OPTIONS = [\n { label: 'Priority: Top First', value: 'top' },\n { label: 'Priority: Low First', value: 'low' },\n { label: 'Date: Newest First', value: 'newest' },\n { label: 'Date: Oldest First', value: 'oldest' },\n];\n\n/**\n * The \"size\" property in this column objects are strings of the CSS grid columns sizes\n */\nexport const TABLE_COLUMNS = {\n Received: { active: true, value: 'Received', property: 'createdAt', size: 'minmax(100px,1fr)' },\n Contact: { active: true, value: 'Contact', property: '', size: 'minmax(120px,150px)' },\n Status: { active: true, value: 'Status', property: '', size: 'minmax(110px,1fr)' },\n // IFSScore: { active: true, value: 'IFS Score', property: '' },\n AssignedTo: { active: true, value: 'Assigned To', property: '', size: 'minmax(150px,1fr)' },\n Campaign: { active: true, value: 'Campaign', property: '', size: 'minmax(150px,180px)' },\n LastAction: {\n active: true,\n value: 'Last Action',\n property: 'updatedAt',\n size: 'minmax(220px,1fr)',\n },\n Priority: { active: false, value: 'Priority', property: '', size: 'minmax(110px,1fr)' },\n};\n\nexport const PRIORITY_OPTIONS = [\n { label: 'LOW', value: `${PRIORITY_VALUES.LOW}` },\n { label: 'NORMAL', value: `${PRIORITY_VALUES.NORMAL}` },\n { label: 'HIGH', value: `${PRIORITY_VALUES.HIGH}` },\n { label: 'VERY HIGH', value: `${PRIORITY_VALUES.VERY_HIGH}` },\n];\n\nexport const ACTIVE_COLUMNS = [\n 'Received',\n 'Contact',\n 'Stage',\n // 'IFS Score',\n 'Assigned To',\n 'Campaign',\n 'Last Action',\n];\n\nexport const FILTER_DATA = {\n dateStart: '',\n dateEnd: '',\n leadType: '',\n leadVendor: '',\n assignedTo: '',\n hasNotes: 'Both',\n sort: '',\n};\n\nexport const LEAD_STAGES = {\n CALLED_NO_MESSAGE: 'Called no message',\n QUOTE_COMPETITIVE: 'Quote competitive',\n QUOTE_NOT_COMPETITIVE: 'Quote not competitive',\n WRONG_NUMBER: 'Wrong number',\n ERROR_DID_NOT_REQUEST_A_QUOTE: 'Error - did not request a quote',\n CURRENT_PREMIUM: 'Current premium',\n IFS_SCORE: 'IFS Score',\n POLICY_EXPIRATION_DATE: 'Policy Expiration Date',\n SOLD: 'Sold',\n NEW: 'New',\n};\n\nexport const SMS_FILTER_DATA = {\n dateStart: '',\n dateEnd: '',\n assignedTo: '',\n sort: '',\n type: '',\n};\n\nexport const SMS_SORT_OPTIONS = [\n { label: 'Date: Newest First', value: 'newest' },\n { label: 'Date: Oldest First', value: 'oldest' },\n];\n\nexport const STATUS_OPTIONS = [\n // { label: 'Ifs Score', value: 'IFS SCORE' },\n { label: 'Policy Expiration Date', value: 'POLICY EXPIRATION DATE' },\n { label: 'Called No Message', value: 'CALLED NO MESSAGE' },\n { label: 'Quote Competitive', value: 'QUOTE COMPETITIVE' },\n { label: 'Quote Not Competitive', value: 'QUOTE NOT COMPETITIVE' },\n { label: 'Wrong Number', value: 'WRONG NUMBER' },\n { label: 'Error - Did Not Request A Quote', value: 'ERROR - DID NOT REQUEST A QUOTE' },\n { label: 'Current Premium', value: 'CURRENT PREMIUM' },\n { label: 'Quoted Premium', value: 'QUOTED PREMIUM' },\n { label: 'New', value: 'NEW' },\n];\n\nexport const LEAD_TYPE_OPTIONS = [\n { label: 'Auto', value: LEAD_TYPE_AUTO, relation: 'leadLeadTypeAutoRelation' },\n {\n label: 'Commercial Auto',\n value: LEAD_TYPE_COMMERCIAL_AUTO,\n relation: 'leadLeadTypeCommercialAutoRelation',\n },\n { label: 'Home', value: LEAD_TYPE_HOME, relation: 'leadLeadTypeHomeRelation' },\n { label: 'Life', value: LEAD_TYPE_LIFE, relation: 'leadLeadTypeLifeRelation' },\n {\n label: 'General Liability',\n value: LEAD_TYPE_GENERAL_LIABILITY,\n relation: 'leadLeadTypeGeneralLiabilityRelation',\n },\n {\n label: 'Workers Compensation',\n value: LEAD_TYPE_WORKERS_COMPENSATION,\n relation: 'leadLeadTypeWorkersCompensationRelation',\n },\n {\n label: 'Employee Benefits',\n value: LEAD_TYPE_EMPLOYEE_BENEFITS,\n relation: 'leadLeadTypeEmployeeBenefitRelation',\n },\n];\n\n//We use this array to collect all posibles values for filter fields type text in leads.\nexport const FILTER_CATEGORIES_TEXT_TYPES = ['firstName', 'middleName', 'lastName'];\n\nexport const FILTER_CATEGORIES = {\n firstName: {\n title: 'First name',\n placeholher: 'first name',\n type: 'text',\n identifier: 'firstName',\n },\n middleName: {\n title: 'Middle name',\n placeholher: 'middle name',\n type: 'text',\n identifier: 'middleName',\n },\n lastName: {\n title: 'Last name',\n placeholher: 'last name',\n type: 'text',\n identifier: 'lastName',\n },\n createdAfter: {\n title: 'Created After',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'createdAfter',\n },\n createdBefore: {\n title: 'Created Before',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'createdBefore',\n },\n leadType: {\n title: 'Lead Type',\n placeholher: 'Select',\n identifier: 'leadType',\n options: [\n {\n label: 'All',\n value: 'ALL',\n },\n ...LEAD_TYPE_OPTIONS,\n ],\n },\n campaign: {\n title: 'Campaign',\n placeholher: 'Select',\n identifier: 'campaign',\n options: [{ label: 'All campaigns', value: '' }],\n },\n assignedTo: {\n title: 'Assigned to',\n placeholher: 'Select',\n identifier: 'assignedTo',\n options: [{ label: 'No one', value: 'no_one' }],\n },\n hasNotes: {\n title: 'Has Notes',\n options: ['Both', 'Yes', 'No'],\n type: 'radioGroup',\n identifier: 'hasNotes',\n },\n phoneNumber: {\n title: 'Phone number',\n placeholher: 'numbers',\n type: 'text',\n identifier: 'phoneNumber',\n },\n};\n\nexport const SMS_FILTER_CATEGORIES = {\n dateStart: {\n title: 'Date Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateStart',\n },\n dateEnd: {\n title: 'Date End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateEnd',\n },\n assignedTo: {\n title: 'Assigned to',\n placeholher: 'Select',\n identifier: 'assignedTo',\n options: [],\n },\n type: {\n title: 'Type (Incoming/Outgoing)',\n placeholher: 'Select',\n identifier: 'type',\n options: [\n { label: 'Incoming', value: 'INCOMING' },\n { label: 'Outgoing', value: 'OUTGOING' },\n ],\n },\n};\n\nexport const GENDER_OPTIONS = [\n { label: 'Male', value: `${GENDERS.MALE}` },\n { label: 'Female', value: `${GENDERS.FEMALE}` },\n { label: 'Other', value: `${GENDERS.OTHER}` },\n { label: 'Prefer not saying', value: `${GENDERS.PREFER_NOT_SAYING}` },\n];\n\nexport const BIRTHMONTH_OPTIONS = [\n { label: 'January', value: 'January' },\n { label: 'February', value: 'February' },\n { label: 'March', value: 'March' },\n { label: 'April', value: 'April' },\n { label: 'May', value: 'May' },\n { label: 'June', value: 'June' },\n { label: 'July', value: 'July' },\n { label: 'August', value: 'August' },\n { label: 'September', value: 'September' },\n { label: 'October', value: 'October' },\n { label: 'November', value: 'November' },\n { label: 'December', value: 'December' },\n];\n\nexport const BIRTHDAY_OPTIONS = getDateOfBirthYears(31, 1, true);\n\nexport const BIRTHYEAR_OPTIONS = getDateOfBirthYears(new Date().getFullYear(), 1900);\n\nexport const YES_OR_NOT = [\n { label: 'Yes', value: true },\n { label: 'No', value: false },\n];\n\nexport const STATES_OPTIONS = [\n { label: 'Alabama', value: 'Alabama' },\n { label: 'Alaska', value: 'Alaska' },\n { label: 'Arizona', value: 'Arizona' },\n { label: 'Arkansas', value: 'Arkansas' },\n { label: 'California', value: 'California' },\n { label: 'Colorado', value: 'Colorado' },\n { label: 'Connecticut', value: 'Connecticut' },\n { label: 'Delaware', value: 'Delaware' },\n { label: 'Florida', value: 'Florida' },\n { label: 'Georgia', value: 'Georgia' },\n { label: 'Hawaii', value: 'Hawaii' },\n { label: 'Idaho', value: 'Idaho' },\n { label: 'Illinois', value: 'Illinois' },\n { label: 'Indiana', value: 'Indiana' },\n { label: 'Iowa', value: 'Iowa' },\n { label: 'Kansas', value: 'Kansas' },\n { label: 'Kentucky', value: 'Kentucky' },\n { label: 'Louisiana', value: 'Louisiana' },\n { label: 'Maine', value: 'Maine' },\n { label: 'Maryland', value: 'Maryland' },\n { label: 'Massachusetts', value: 'Massachusetts' },\n { label: 'Michigan', value: 'Michigan' },\n { label: 'Minnesota', value: 'Minnesota' },\n { label: 'Mississippi', value: 'Mississippi' },\n { label: 'Missouri', value: 'Missouri' },\n { label: 'Montana', value: 'Montana' },\n { label: 'Nebraska', value: 'Nebraska' },\n { label: 'Nevada', value: 'Nevada' },\n { label: 'New Hampshire', value: 'New Hampshire' },\n { label: 'New Jersey', value: 'New Jersey' },\n { label: 'New Mexico', value: 'New Mexico' },\n { label: 'New York', value: 'New York' },\n { label: 'North Carolina', value: 'North Carolina' },\n { label: 'North Dakota', value: 'North Dakota' },\n { label: 'Ohio', value: 'Ohio' },\n { label: 'Oklahoma', value: 'Oklahoma' },\n { label: 'Oregon', value: 'Oregon' },\n { label: 'Pennsylvania', value: 'Pennsylvania' },\n { label: 'Rhode Island', value: 'Rhode Island' },\n { label: 'South Carolina', value: 'South Carolina' },\n { label: 'South Dakota', value: 'South Dakota' },\n { label: 'Tennessee', value: 'Tennessee' },\n { label: 'Texas', value: 'Texas' },\n { label: 'Utah', value: 'Utah' },\n { label: 'Vermont', value: 'Vermont' },\n { label: 'Virginia', value: 'Virginia' },\n { label: 'Washington', value: 'Washington' },\n { label: 'West Virginia', value: 'West Virginia' },\n { label: 'Wisconsin', value: 'Wisconsin' },\n { label: 'Wyoming', value: 'Wyoming' },\n];\n\nexport const LEAD = {\n firstName: '',\n middleName: '',\n lastName: '',\n gender: '',\n birthMonth: '',\n birthDay: '',\n birthYear: '',\n email: '',\n campaign: '',\n ifsScore: '',\n assignees: [],\n agents: [],\n phones: [{ phone: { code: '1', number: '' } }],\n firstAddress: '',\n secondAddress: '',\n city: '',\n zipCode: '',\n state: '',\n leadType: '',\n priority: `${PRIORITY_VALUES.NORMAL}`,\n creditScore: '',\n amount: '0',\n};\n","import {\n ADMIN,\n AGENT,\n MANAGER,\n LEAD_TYPE_AUTO,\n LEAD_TYPE_HOME,\n LEAD_TYPE_LIFE,\n LEAD_TYPE_COMMERCIAL_AUTO,\n LEAD_TYPE_EMPLOYEE_BENEFITS,\n LEAD_TYPE_GENERAL_LIABILITY,\n LEAD_TYPE_WORKERS_COMPENSATION,\n} from '../../shared/constants';\nimport { userHasAnyRoleInAgency } from '../../shared/utils/agency-utils';\nimport { findPriority, getLeadPhoneNumbers } from './leads-utils';\nimport { formatPhoneNumber } from '../phone-calls/phone-calls-utils';\n\n/**\n * function to format contact data.\n *\n * @param {object} lead the lead which contains the data.\n * @returns {Array} the formatted data\n */\nexport const formatContactData = (lead) => {\n const {\n stage,\n gender,\n firstName,\n lastName,\n middleName,\n birthDay,\n birthMonth,\n birthYear,\n address: [firstAddress],\n email,\n creditScore,\n priority,\n ifsScore,\n } = lead;\n const phones = getLeadPhoneNumbers(lead);\n\n const formattedPhoneNumbers = phones.map((phone, i) => ({\n label: `Phone Number ${i + 1}`,\n value: formatPhoneNumber(phone.phone.number),\n }));\n\n const leadType = getLeadType(lead);\n const data = [\n [\n {\n label: 'Name',\n value:\n firstName && lastName ? `${firstName} ${middleName ? middleName : ''} ${lastName}` : '',\n },\n {\n label: 'Date of Birth',\n value: birthMonth && birthDay && birthYear ? `${birthMonth} ${birthDay}, ${birthYear}` : '',\n },\n { label: 'Gender', value: gender },\n { label: 'Email', value: email, isTextContact: true },\n ],\n [\n {\n label: 'Address',\n value: firstAddress ? `${firstAddress.street1} ${firstAddress.street2}` : '',\n },\n { label: 'City', value: firstAddress ? firstAddress.city : '' },\n { label: 'ZIP Code', value: firstAddress ? firstAddress.zip : '' },\n { label: 'Lead Type', value: leadType },\n ],\n [\n { label: 'Credit Score', value: creditScore },\n { label: 'IFS Score', value: ifsScore },\n { label: 'Status', value: stage?.name },\n { label: 'Priority', value: findPriority(priority) },\n ],\n formattedPhoneNumbers,\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * function to format detailed data.\n *\n * @param {object} param0 detailed data\n * @param {object} param0.auto lead type auto data\n * @param {object} param0.commercialAuto lead type commercial auto data\n * @param {string} param0.leadType lead type string\n * @returns {Array} the formatted data\n */\nexport const formatDetailedData = ({ auto, commercialAuto, leadType }) => {\n if (leadType === LEAD_TYPE_COMMERCIAL_AUTO) {\n const {\n name,\n businessName,\n businessType,\n payroll,\n sales,\n yearsInBusiness,\n numberOfDrivers,\n numberOfEmployees,\n numberOfVehicles,\n coverageAmount,\n } = commercialAuto;\n const data = [\n [\n { label: 'Name', value: name },\n { label: 'Business Name', value: businessName },\n { label: 'Business Type', value: businessType },\n ],\n [\n { label: 'Payroll', value: payroll },\n { label: 'Sales', value: sales },\n { label: 'Years In Business', value: yearsInBusiness },\n ],\n [\n { label: 'Number Of Drivers', value: numberOfDrivers },\n { label: 'Number Of Vehicles', value: numberOfVehicles },\n ],\n [\n { label: 'Number Of Employees', value: numberOfEmployees },\n { label: 'Coverage Amount', value: coverageAmount },\n ],\n ];\n\n return checkEmptyColumnValues(data);\n }\n\n return [];\n};\n\n/**\n * Returns true if the user has the role Manager in the provided agency\n *\n * @param {object} user current user\n * @param {object} agency agency data\n * @returns {boolean} if have the role or not\n */\nexport const canSeeTaskAndNotesOptions = (user, agency) => {\n return userHasAnyRoleInAgency(user, agency, [ADMIN, MANAGER, AGENT]);\n};\n\n/**\n * Lead detail form map function.\n *\n * @param {object} lead data\n * @returns {object} lead mapped\n */\nexport const leadDetailMap = (lead) => {\n return {\n ...lead,\n assignees: Array.isArray(lead.assignees) ? lead.assignees : lead.assignees.items,\n // agents: lead.agents.items,\n campaign: lead.campaign?.id,\n city: lead.address[0].city,\n leadType: getLeadType(lead),\n zipCode: lead.address[0].zip,\n state: lead.address[0].state,\n firstAddress: lead.address[0].street1,\n secondAddress: lead.address[0].street2,\n phones: getLeadPhoneNumbers(lead),\n amount: lead.amount,\n };\n};\n\n/**\n * Check if there is a column with an empty value\n * and replace that with N/A.\n *\n * @param {Array} data array of data\n * @returns {Array} data mapped\n */\nexport const checkEmptyColumnValues = (data) => {\n return data.map((row) => {\n return row.map((column) => {\n return {\n ...column,\n value: column.value === null || column.value === '' ? 'N/A' : column.value,\n };\n });\n });\n};\n\n/**\n * Func for get the lead type.\n *\n * @param {object} lead data\n * @returns {string} lead type\n */\nexport const getLeadType = (lead) => {\n if (lead.leadLeadTypeAutoRelation !== null) return LEAD_TYPE_AUTO;\n\n if (lead.leadLeadTypeCommercialAutoRelation !== null) return LEAD_TYPE_COMMERCIAL_AUTO;\n\n if (lead.leadLeadTypeHomeRelation !== null) return LEAD_TYPE_HOME;\n\n if (lead.leadLeadTypeLifeRelation !== null) return LEAD_TYPE_LIFE;\n\n if (lead.leadLeadTypeGeneralLiabilityRelation !== null) return LEAD_TYPE_GENERAL_LIABILITY;\n\n if (lead.leadLeadTypeWorkersCompensationRelation !== null) return LEAD_TYPE_WORKERS_COMPENSATION;\n\n if (lead.leadLeadTypeEmployeeBenefitRelation !== null) return LEAD_TYPE_EMPLOYEE_BENEFITS;\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\n\n/**\n * Format drivers to show a table with the data.\n *\n * @param {Array} drivers data from lead detail\n * @returns {Array} drivers mapped\n */\nexport const formatDriversData = (drivers) => {\n return drivers.map((driver, index) => {\n const firstName = driver.firstName ? driver.firstName : null;\n const lastName = driver.lastName ? driver.lastName : null;\n const fullName = lastName ? `${firstName} ${lastName}` : firstName;\n\n const rows = [\n [\n { label: 'Name', value: fullName },\n { label: 'Email', value: driver.email, isTextContact: true },\n { label: 'Date of Birth', value: driver.birthDate },\n { label: 'Gender', value: driver.gender },\n { label: 'Marital Status', value: driver.maritalStatus },\n { label: 'Cell Phone', value: driver.cellPhone },\n { label: 'Daytime Phone', value: driver.daytimePhone },\n { label: 'Evening Phone', value: driver.eveningPhone },\n { label: 'Age First Licensed', value: driver.ageFirstLicensed },\n { label: 'Licensed State', value: driver.licensedState },\n { label: 'License Status', value: driver.licenseStatus },\n { label: 'Relationship To Applicant', value: driver.relationshipToApplicant },\n { label: 'Preferred Contact Time', value: driver.preferredContactTime },\n { label: 'Preferred Contact Number', value: driver.preferredContactNumber },\n { label: 'Fulltime Student', value: driver.fullTimeStudent === true ? 'Yes' : 'No' },\n { label: 'Education', value: driver.education },\n { label: 'Occupation', value: driver.occupation },\n { label: 'Credit Rating', value: driver.creditRating },\n { label: 'Years In Field', value: driver.yearsInField },\n ],\n [\n { label: 'Make of Vehicle', value: driver.makeOfVehicle },\n { label: 'Model of Vehicle', value: driver.modelOfVehicle },\n { label: 'Year Of Vehicle', value: driver.yearOfVehicle },\n { label: 'Trim', value: driver.trim },\n { label: 'Style', value: driver.style },\n { label: 'Ownership', value: driver.ownership },\n { label: 'Primary Use', value: driver.primaryUse },\n { label: 'Average One Way Mileage', value: driver.averageOneWayMileage },\n { label: 'Annual Mileage', value: driver.annualMileage },\n { label: 'Vehicle Parking', value: driver.vehicleParking },\n { label: 'Anti Lock Breaks', value: driver.antiLockBreaks },\n { label: 'Security System', value: driver.securitySystem },\n { label: 'Salvaged Vehicle', value: driver.salvagedVehicle },\n { label: 'Additional Drivers', value: driver.additionalDrivers === true ? 'Yes' : 'No' },\n {\n label: 'Additional Vehicles',\n value: driver.additionalVehicles === true ? 'Yes' : 'No',\n },\n {\n label: 'Completed Behind The Wheel',\n value: driver.completedBehindTheWheel === true ? 'Yes' : 'No',\n },\n { label: 'Primary Driver', value: driver.primaryDriver },\n { label: 'Policy Expiration Date', value: driver.policyExpirationDate },\n { label: 'Vin', value: driver.vin },\n ],\n [\n { label: 'Years At Current Residence', value: driver.yearsAtCurrentResidence },\n { label: 'City', value: driver.address ? driver.address.city : null },\n { label: 'State', value: driver.address ? driver.address.state : null },\n { label: 'Address Line 1', value: driver.address ? driver.address.street1 : null },\n { label: 'Address Line 2', value: driver.address ? driver.address.street1 : null },\n { label: 'Zip Code', value: driver.address ? driver.address.zip : null },\n {\n label: 'How Many Incidents In The Past 5 Years',\n value: driver.howManyIncidentsInThePast5Years,\n },\n { label: 'Incidents In The Past 5 Years', value: driver.incidentsPast5Years },\n { label: 'Violations In The Past 5 years', value: driver.violationsPast5Years },\n { label: 'Activity In The Past 5 Years', value: driver.activityPast5Years },\n {\n label: 'Tickets Accidents Claims In The Past 3 Years',\n value: driver.ticketsAccidentsClaimsPast3Years === true ? 'Yes' : 'No',\n },\n { label: 'Current Bodily Injury Coverages', value: driver.currentBodilyInjuryCoverages },\n {\n label: 'Current Property Damage Coverages',\n value: driver.currentPropertyDamageCoverages,\n },\n { label: 'Current Coverage Level', value: driver.currentCoverageLevel },\n { label: 'Coverage Level', value: driver.coverageLevel },\n {\n label: 'Current Comprehensive Deductible',\n value: driver.currentComprehensiveDeductible,\n },\n { label: 'Current Collision Deductible', value: driver.currentCollisionDeductible },\n ],\n [\n { label: 'Insurance Company', value: driver.insuranceCompany },\n { label: 'Continuously Insured Years', value: driver.continuouslyInsuredYears },\n { label: 'Continuously Insured Month', value: driver.continuouslyInsuredMonths },\n { label: 'Current Insurance Company Years', value: driver.currentInsuranceCompanyYears },\n {\n label: 'Current Insurance Company Months',\n value: driver.currentInsuranceCompanyMonths,\n },\n {\n label: 'Insured In The Past 30 Days',\n value: driver.insuredPast30Days === true ? 'Yes' : 'No',\n },\n {\n label: 'Bankruptcy In Past 5 Years',\n value: driver.bankruptcyInPast5Years === true ? 'Yes' : 'No',\n },\n { label: 'Multiple Policy Discount', value: driver.multiplePolicyDiscount },\n { label: 'eNewsletter', value: driver.eNewsletter },\n {\n label: 'Suspended Or Revoked In The Past 5 Years',\n value: driver.suspendedOrRevokedInThePast5Years === true ? 'Yes' : 'No',\n },\n { label: 'DUIDWI In The Past 5 Years', value: driver.dUIDWIInThePast5Years },\n { label: 'Date Of DUIDWI', value: driver.dateOfDUIDWI },\n { label: 'Desired Collision Coverage', value: driver.desiredCollisionCoverage },\n { label: 'Desired Comprehensive Coverage', value: driver.desiredComprehensiveCoverage },\n { label: 'Average Days Per Week Used', value: driver.averageDaysPerWeekUsed },\n { label: 'Filling Required', value: driver.fillingRequired },\n ],\n ];\n\n return {\n header: fullName,\n rows: checkEmptyColumnValues(rows),\n };\n });\n};\n\n/**\n * Map for update form\n *\n * @param {object} driver data\n * @returns {object} driver mapped\n */\nexport const driverMap = (driver) => {\n const { address } = driver;\n\n return {\n ...driver,\n ...(address\n ? {\n city: address.city,\n state: address.state,\n street1: address.street1,\n street2: address.street2,\n zip: address.zip,\n }\n : {}),\n };\n};\n\n/**\n * Map for creates a driver.\n *\n * @param {object} driver data\n * @returns {object} mapped driver data\n */\nexport const driverCreateMap = (driver) => {\n const isUpdate = driver.id !== undefined;\n /**\n * @param {boolean | string} value - Value to check.\n * @param {string} string - Strign to compare.\n * @returns {boolean} - Boolean\n */\n function checkBoolOrString(value, string) {\n if (typeof value === 'string') {\n return value.toLowerCase() === string;\n }\n return value;\n }\n return {\n firstName: driver.firstName,\n lastName: driver.lastName,\n email: driver.email,\n birthDate: driver.birthDate ? new Date(driver.birthDate).toISOString().split('T')[0] : null,\n gender: driver.gender,\n maritalStatus: driver.maritalStatus,\n ageFirstLicensed: driver.ageFirstLicensed\n ? new Date(driver.ageFirstLicensed).toISOString().split('T')[0]\n : null,\n licensedState: driver.licensedState,\n licenseStatus: driver.licenseStatus,\n fullTimeStudent: isUpdate\n ? driver.fullTimeStudent\n : checkBoolOrString(driver.fullTimeStudent, 'yes'),\n education: driver.education,\n occupation: driver.occupation,\n creditRating: parseTo(driver.creditRating, 'int'),\n relationshipToApplicant: driver.relationshipToApplicant,\n // Contact Data\n cellPhone: driver.cellPhone,\n daytimePhone: driver.daytimePhone,\n eveningPhone: driver.eveningPhone,\n preferredContactNumber: driver.preferredContactNumber,\n preferredContactTime: isUpdate\n ? driver.preferredContactTime\n : driver.preferredContactTime\n ? new Date(driver.preferredContactTime)\n : null,\n // Vehicle Data\n makeOfVehicle: driver.makeOfVehicle,\n modelOfVehicle: driver.modelOfVehicle,\n yearOfVehicle: parseTo(driver.yearOfVehicle, 'int'),\n trim: driver.trim,\n style: driver.style,\n ownership: driver.ownership,\n primaryUse: driver.primaryUse,\n averageOneWayMileage: parseTo(driver.averageOneWayMileage, 'int'),\n annualMileage: driver.annualMileage ? parseTo(driver.annualMileage, 'int') : null,\n vehicleParking: driver.vehicleParking,\n antiLockBreaks: driver.antiLockBreaks,\n securitySystem: driver.securitySystem,\n salvagedVehicle: driver.salvagedVehicle,\n // Residence Data\n yearsAtCurrentResidence: parseTo(driver.yearsAtCurrentResidence, 'int'),\n address: {\n city: driver.city,\n state: driver.state,\n street1: driver.street1,\n street2: driver.street2,\n zip: driver.zip,\n },\n // Insurance Data\n insuranceCompany: driver.insuranceCompany,\n continuouslyInsuredYears: parseTo(driver.continuouslyInsuredYears, 'int'),\n continuouslyInsuredMonths: parseTo(driver.continuouslyInsuredMonths, 'int'),\n currentInsuranceCompanyYears: parseTo(driver.currentInsuranceCompanyYears, 'int'),\n currentInsuranceCompanyMonths: parseTo(driver.currentInsuranceCompanyMonths, 'int'),\n insuredPast30Days: isUpdate\n ? driver.insuredPast30Days\n : checkBoolOrString(driver.insuredPast30Days, 'yes'),\n // Other Data\n yearsInField: parseTo(driver.yearsInField, 'int'),\n policyExpirationDate: driver.policyExpirationDate\n ? new Date(driver.policyExpirationDate).toISOString().split('T')[0]\n : null,\n howManyIncidentsInThePast5Years: parseTo(driver.howManyIncidentsInThePast5Years, 'int'),\n incidentsPast5Years: driver.incidentsPast5Years,\n violationsPast5Years: driver.violationsPast5Years,\n activityPast5Years: driver.activityPast5Years,\n vin: driver.vin,\n ticketsAccidentsClaimsPast3Years: isUpdate\n ? driver.ticketsAccidentsClaimsPast3Years\n : checkBoolOrString(driver.ticketsAccidentsClaimsPast3Years, 'yes'),\n additionalDrivers: isUpdate\n ? driver.additionalDrivers\n : checkBoolOrString(driver.additionalDrivers, 'yes'),\n additionalVehicles: isUpdate\n ? driver.additionalVehicles\n : checkBoolOrString(driver.additionalVehicles, 'yes'),\n completedBehindTheWheel: isUpdate\n ? driver.completedBehindTheWheel\n : checkBoolOrString(driver.completedBehindTheWheel, 'yes'),\n currentBodilyInjuryCoverages: driver.currentBodilyInjuryCoverages,\n currentPropertyDamageCoverages: driver.currentPropertyDamageCoverages,\n currentCoverageLevel: driver.currentCoverageLevel,\n coverageLevel: driver.coverageLevel,\n currentComprehensiveDeductible: parseTo(driver.currentComprehensiveDeductible, 'int'),\n currentCollisionDeductible: driver.currentCollisionDeductible,\n fillingRequired: driver.fillingRequired,\n bankruptcyInPast5Years: isUpdate\n ? driver.bankruptcyInPast5Years\n : checkBoolOrString(driver.bankruptcyInPast5Years, 'yes'),\n multiplePolicyDiscount: driver.multiplePolicyDiscount,\n eNewsletter: parseTo(driver.eNewsletter, 'int'),\n suspendedOrRevokedInThePast5Years: isUpdate\n ? driver.suspendedOrRevokedInThePast5Years\n : checkBoolOrString(driver.suspendedOrRevokedInThePast5Years, 'yes'),\n dUIDWIInThePast5Years: driver.dUIDWIInThePast5Years\n ? new Date(driver.dUIDWIInThePast5Years).toISOString().split('T')[0]\n : null,\n dateOfDUIDWI: driver.dateOfDUIDWI\n ? new Date(driver.dateOfDUIDWI).toISOString().split('T')[0]\n : null,\n desiredCollisionCoverage: parseTo(driver.desiredCollisionCoverage, 'float'),\n desiredComprehensiveCoverage: parseTo(driver.desiredComprehensiveCoverage, 'float'),\n averageDaysPerWeekUsed: parseTo(driver.averageDaysPerWeekUsed, 'int'),\n primaryDriver: driver.primaryDriver,\n };\n};\n\n/**\n * Lead type life validations\n *\n * @param {object} leadDriver data\n */\nexport const leadDriverValidations = (leadDriver) => {\n const validations = [\n { value: leadDriver.firstName, field: 'firstname', type: 'string', required: true },\n { value: leadDriver.lastName, field: 'lastName', type: 'string' },\n { value: leadDriver.email, field: 'email', type: 'email' },\n { value: leadDriver.birthDate, field: 'birthDate', type: 'date' },\n { value: leadDriver.gender, field: 'gender', type: 'string' },\n { value: leadDriver.maritalStatus, field: 'maritalStatus', type: 'string' },\n { value: leadDriver.ageFirstLicensed, field: 'ageFirstLicensed', type: 'date' },\n { value: leadDriver.licensedState, field: 'licensedState', type: 'string' },\n { value: leadDriver.licenseStatus, field: 'licenseStatus', type: 'string' },\n { value: leadDriver.fullTimeStudent, field: 'fullTimeStudent', type: 'boolean' },\n { value: leadDriver.education, field: 'education', type: 'string' },\n { value: leadDriver.occupation, field: 'occupation', type: 'string' },\n { value: leadDriver.creditRating, field: 'creditRating', type: 'number' },\n { value: leadDriver.relationshipToApplicant, field: 'relationshipToApplicant', type: 'string' },\n { value: leadDriver.cellPhone, field: 'cellPhone', type: 'phone', required: true },\n { value: leadDriver.daytimePhone, field: 'daytimePhone', type: 'phone' },\n { value: leadDriver.eveningPhone, field: 'eveningPhone', type: 'phone' },\n { value: leadDriver.preferredContactNumber, field: 'preferredContactNumber', type: 'phone' },\n { value: leadDriver.preferredContactTime, field: 'preferredContactTime', type: 'date' },\n { value: leadDriver.makeOfVehicle, field: 'makeOfVehicle', type: 'string' },\n { value: leadDriver.modelOfVehicle, field: 'modelOfVehicle', type: 'string' },\n { value: leadDriver.yearOfVehicle, field: 'yearOfVehicle', type: 'number' },\n { value: leadDriver.trim, field: 'trim', type: 'string' },\n { value: leadDriver.style, field: 'style', type: 'string' },\n { value: leadDriver.ownership, field: 'ownership', type: 'string' },\n { value: leadDriver.primaryUse, field: 'primaryUse', type: 'string' },\n { value: leadDriver.averageOneWayMileage, field: 'averageOneWayMileage', type: 'number' },\n { value: leadDriver.annualMileage, field: 'annualMileage', type: 'number' },\n { value: leadDriver.vehicleParking, field: 'vehicleParking', type: 'string' },\n { value: leadDriver.antiLockBreaks, field: 'antiLockBreaks', type: 'string' },\n { value: leadDriver.securitySystem, field: 'securitySystem', type: 'string' },\n { value: leadDriver.salvagedVehicle, field: 'salvagedVehicle', type: 'string' },\n { value: leadDriver.yearsAtCurrentResidence, field: 'yearsAtCurrentResidence', type: 'number' },\n { value: leadDriver.address.city, field: 'city', type: 'string' },\n { value: leadDriver.address.state, field: 'state', type: 'string' },\n { value: leadDriver.address.street1, field: 'street1', type: 'string' },\n { value: leadDriver.address.street2, field: 'street2', type: 'string' },\n { value: leadDriver.address.zip, field: 'zip', type: 'string' },\n { value: leadDriver.insuranceCompany, field: 'insuranceCompany', type: 'string' },\n {\n value: leadDriver.continuouslyInsuredYears,\n field: 'continuouslyInsuredYears',\n type: 'number',\n },\n {\n value: leadDriver.continuouslyInsuredMonths,\n field: 'continuouslyInsuredMonths',\n type: 'number',\n },\n {\n value: leadDriver.currentInsuranceCompanyYears,\n field: 'currentInsuranceCompanyYears',\n type: 'number',\n },\n {\n value: leadDriver.currentInsuranceCompanyMonths,\n field: 'currentInsuranceCompanyMonths',\n type: 'number',\n },\n { value: leadDriver.insuredPast30Days, field: 'insuredPast30Days', type: 'boolean' },\n { value: leadDriver.yearsInField, field: 'yearsInField', type: 'number' },\n { value: leadDriver.policyExpirationDate, field: 'policyExpirationDate', type: 'date' },\n {\n value: leadDriver.howManyIncidentsInThePast5Years,\n field: 'howManyIncidentsInThePast5Years',\n type: 'number',\n },\n { value: leadDriver.incidentsPast5Years, field: 'incidentsPast5Years', type: 'string' },\n { value: leadDriver.violationsPast5Years, field: 'violationsPast5Years', type: 'string' },\n { value: leadDriver.activityPast5Years, field: 'activityPast5Years', type: 'string' },\n { value: leadDriver.vin, field: 'vin', type: 'string' },\n {\n value: leadDriver.ticketsAccidentsClaimsPast3Years,\n field: 'ticketsAccidentsClaimsPast3Years',\n type: 'boolean',\n },\n { value: leadDriver.additionalDrivers, field: 'additionalDrivers', type: 'boolean' },\n { value: leadDriver.additionalVehicles, field: 'additionalVehicles', type: 'boolean' },\n {\n value: leadDriver.completedBehindTheWheel,\n field: 'completedBehindTheWheel',\n type: 'boolean',\n },\n {\n value: leadDriver.currentBodilyInjuryCoverages,\n field: 'currentBodilyInjuryCoverages',\n type: 'string',\n },\n {\n value: leadDriver.currentPropertyDamageCoverages,\n field: 'currentPropertyDamageCoverages',\n type: 'string',\n },\n { value: leadDriver.currentCoverageLevel, field: 'currentCoverageLevel', type: 'string' },\n { value: leadDriver.coverageLevel, field: 'coverageLevel', type: 'string' },\n {\n value: leadDriver.currentComprehensiveDeductible,\n field: 'currentComprehensiveDeductible',\n type: 'number',\n },\n {\n value: leadDriver.currentCollisionDeductible,\n field: 'currentCollisionDeductible',\n type: 'string',\n },\n { value: leadDriver.fillingRequired, field: 'fillingRequired', type: 'string' },\n { value: leadDriver.bankruptcyInPast5Years, field: 'bankruptcyInPast5Years', type: 'boolean' },\n { value: leadDriver.multiplePolicyDiscount, field: 'multiplePolicyDiscount', type: 'string' },\n { value: leadDriver.eNewsletter, field: 'eNewsletter', type: 'number' },\n {\n value: leadDriver.suspendedOrRevokedInThePast5Years,\n field: 'suspendedOrRevokedInThePast5Years',\n type: 'boolean',\n },\n { value: leadDriver.dUIDWIInThePast5Years, field: 'dUIDWIInThePast5Years', type: 'date' },\n { value: leadDriver.dateOfDUIDWI, field: 'dateOfDUIDWI', type: 'date' },\n {\n value: leadDriver.desiredCollisionCoverage,\n field: 'desiredCollisionCoverage',\n type: 'number',\n },\n {\n value: leadDriver.desiredComprehensiveCoverage,\n field: 'desiredComprehensiveCoverage',\n type: 'number',\n },\n { value: leadDriver.averageDaysPerWeekUsed, field: 'averageDaysPerWeekUsed', type: 'number' },\n { value: leadDriver.primaryDriver, field: 'primaryDriver', type: 'string' },\n ];\n\n createValidations(validations, 'lead drivers');\n};\n\n/**\n * Function to safely convert\n * strings to either integers or floats\n *\n * @param {any} value - The value to parse\n * @param {string} to - The format to parse to\n *\n * @returns {number} The parsed int\n */\nfunction parseTo(value, to = 'int') {\n if (value === undefined || value === null) {\n return null;\n }\n\n if (typeof value !== 'string' && typeof value !== 'number') {\n return Number.NaN;\n }\n\n if (typeof value === 'string') {\n return to === 'int' ? parseInt(value) : parseFloat(value);\n }\n\n return value;\n}\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\n\n/**\n * function to format data.\n *\n * @param {object} leadCommercialAuto - data\n *\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadCommercialAuto) => {\n const {\n name,\n businessName,\n businessType,\n payroll,\n sales,\n yearsInBusiness,\n numberOfDrivers,\n numberOfEmployees,\n numberOfVehicles,\n coverageAmount,\n } = leadCommercialAutoMap(leadCommercialAuto);\n const data = [\n [\n { label: 'Name', value: name },\n { label: 'Business Name', value: businessName },\n { label: 'Business Type', value: businessType },\n ],\n [\n { label: 'Payroll', value: payroll },\n { label: 'Sales', value: sales },\n { label: 'Years In Business', value: yearsInBusiness },\n ],\n [\n { label: 'Number Of Drivers', value: numberOfDrivers },\n { label: 'Number Of Vehicles', value: numberOfVehicles },\n ],\n [\n { label: 'Number Of Employees', value: numberOfEmployees },\n { label: 'Coverage Amount', value: coverageAmount },\n ],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadCommercialAuto data\n * @returns {object} lead commercial auto mapped\n */\nexport const leadCommercialAutoMap = (leadCommercialAuto) => {\n return {\n ...leadCommercialAuto,\n };\n};\n\n/**\n * Lead type commercial auto validations\n *\n * @param {object} leadCommercialAuto - The lead commercial auto\n *\n * @returns {void}\n */\nexport const leadCommercialAutoValidations = (leadCommercialAuto) => {\n const validations = [\n {\n value: leadCommercialAuto.businessName,\n field: 'business name',\n type: 'string',\n },\n {\n value: leadCommercialAuto.name,\n field: 'name',\n type: 'string',\n },\n {\n value: leadCommercialAuto.yearsInBusiness,\n field: 'years in business',\n type: 'number',\n },\n {\n value: leadCommercialAuto.businessType,\n field: 'business type',\n type: 'string',\n },\n {\n value: leadCommercialAuto.coverageAmount,\n field: 'coverage amount',\n type: 'number',\n },\n {\n value: leadCommercialAuto.payroll,\n field: 'payroll',\n type: 'number',\n },\n {\n value: leadCommercialAuto.sales,\n field: 'sales',\n type: 'number',\n },\n {\n value: leadCommercialAuto.numberOfVehicles,\n field: 'number of vehicles',\n type: 'number',\n },\n {\n value: leadCommercialAuto.numberOfDrivers,\n field: 'number of drivers',\n type: 'number',\n },\n ];\n\n createValidations(validations, 'lead type commercial auto');\n};\n\n/**\n * Map for creates a lead type commercial auto.\n *\n * @param {object} leadCommercialAuto data\n * @returns {object} data mapped\n */\nexport const leadCommercialAutoCreateMap = (leadCommercialAuto) => {\n return {\n businessName: leadCommercialAuto.businessName,\n name: leadCommercialAuto.name,\n yearsInBusiness: parseInt(leadCommercialAuto.yearsInBusiness),\n numberOfEmployees: parseInt(leadCommercialAuto.numberOfEmployees),\n businessType: leadCommercialAuto.businessType,\n coverageAmount: parseFloat(leadCommercialAuto.coverageAmount),\n payroll: parseFloat(leadCommercialAuto.payroll),\n sales: parseFloat(leadCommercialAuto.sales),\n numberOfVehicles: parseInt(leadCommercialAuto.numberOfVehicles),\n numberOfDrivers: parseInt(leadCommercialAuto.numberOfDrivers),\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\n\n/**\n * function to format data.\n *\n * @param {object} leadAuto data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadAuto) => {\n const {\n alternate,\n otherInfo,\n currentBodilyInjuryCoverages,\n currentPropertyDamageCoverages,\n } = leadAutoMap(leadAuto);\n const data = [\n [{ label: 'Alternate', value: alternate }],\n [{ label: 'Other Info', value: otherInfo }],\n [{ label: 'Current Bodily Injury Coverages', value: currentBodilyInjuryCoverages }],\n [{ label: 'Current Property Damage Coverages', value: currentPropertyDamageCoverages }],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadAuto data\n * @returns {object} lead auto mapped\n */\nexport const leadAutoMap = (leadAuto) => {\n return {\n ...leadAuto,\n };\n};\n\n/**\n * Lead type auto validations\n *\n * @param {object} leadAuto - The lead auto object\n *\n * @returns {void}\n */\nexport const leadAutoValidations = (leadAuto) => {\n const validations = [\n { value: leadAuto.alternate, field: 'alternate', type: 'string' },\n { value: leadAuto.otherInfo, field: 'other info', type: 'string' },\n {\n value: leadAuto.currentBodilyInjuryCoverages,\n field: 'current bodily injury coverages',\n type: 'string',\n },\n {\n value: leadAuto.currentPropertyDamageCoverages,\n field: 'current property damage coverages',\n type: 'string',\n },\n ];\n\n createValidations(validations, 'lead type auto');\n};\n\n/**\n * Map for creates a lead type auto.\n *\n * @param {object} leadAuto - The lead auto\n *\n * @returns {object} data mapped\n */\nexport const leadAutoCreateMap = (leadAuto) => {\n return {\n alternate: leadAuto.alternate,\n otherInfo: leadAuto.otherInfo,\n currentBodilyInjuryCoverages: leadAuto.currentBodilyInjuryCoverages,\n currentPropertyDamageCoverages: leadAuto.currentPropertyDamageCoverages,\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\nimport moment from 'moment';\n\n/**\n * function to format data.\n *\n * @param {object} leadLife - data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadLife) => {\n const {\n birthDay,\n birthMonth,\n birthYear,\n faceAmount,\n heightFeet,\n heightInches,\n policyType,\n lifeInsuranceInformation,\n knownMedicalCondition,\n smoke,\n term,\n weight,\n age,\n telemarketerName,\n callbackTime,\n beneficiary,\n spouse,\n spouseAge,\n bankAccount,\n code,\n driveRecording,\n dateGenerated,\n } = leadLifeMap(leadLife);\n\n const data = [\n [\n { label: 'Life Insurance Information', value: lifeInsuranceInformation },\n { label: 'Known Medical Condition', value: knownMedicalCondition ? 'Yes' : 'No' },\n { label: 'Policy Type', value: policyType },\n { label: 'Face Amount', value: faceAmount },\n { label: 'Spouse', value: spouse ? 'Yes' : 'No' },\n { label: 'Code', value: code },\n ],\n [\n { label: 'Birth Month', value: birthMonth },\n { label: 'Birth Day', value: birthDay },\n { label: 'Birth Year', value: birthYear },\n { label: 'Telemarketer Name', value: telemarketerName },\n { label: 'Spouse Age', value: spouseAge },\n { label: 'Driver Recording', value: driveRecording },\n ],\n [\n { label: 'Smoke', value: smoke ? 'Yes' : 'No' },\n { label: 'Height Feet', value: heightFeet },\n { label: 'Height Inches', value: heightInches },\n { label: 'Callback Time', value: callbackTime },\n { label: 'Bank Account', value: bankAccount ? 'Yes' : 'No' },\n { label: 'Date Lead Generated', value: dateGenerated },\n ],\n [\n { label: 'Term', value: term },\n { label: 'Age', value: age },\n { label: 'Weight', value: weight },\n { label: 'Beneficiary', value: beneficiary },\n ],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadLife data\n * @returns {object} lead life mapped\n */\nexport const leadLifeMap = (leadLife) => {\n return {\n ...leadLife,\n birthDay: leadLife.birthDay ? leadLife.birthDay.toString() : '',\n birthYear: leadLife.birthYear ? leadLife.birthYear.toString() : '',\n dateGenerated: leadLife.dateGenerated\n ? `${moment(leadLife.dateGenerated).format('MM-DD-YYYY')} ${moment(\n leadLife.dateGenerated,\n ).format('LT')}`\n : '',\n };\n};\n\n/**\n * Lead type life validations\n *\n * @param {object} leadLife - The lead life\n *\n * @returns {void}\n */\nexport const leadLifeValidations = (leadLife) => {\n const validations = [\n {\n value: leadLife.lifeInsuranceInformation,\n field: 'life insurance information',\n type: 'string',\n },\n { value: leadLife.policyType, field: 'policy type', type: 'string' },\n { value: leadLife.birthMonth, field: 'birth month', type: 'string' },\n { value: leadLife.birthYear, field: 'birth Year', type: 'number' },\n { value: leadLife.birthDay, field: 'birth day', type: 'number' },\n { value: leadLife.faceAmount, field: 'face amount', type: 'number' },\n { value: leadLife.knownMedicalCondition, field: 'known medical condition', type: 'boolean' },\n { value: leadLife.smoke, field: 'smoke', type: 'boolean' },\n { value: leadLife.term, field: 'term', type: 'number' },\n { value: leadLife.heightFeet, field: 'height feet', type: 'number' },\n { value: leadLife.heightInches, field: 'height inches', type: 'number' },\n { value: leadLife.age, field: 'age', type: 'number' },\n { value: leadLife.weight, field: 'weight', type: 'number' },\n ];\n\n createValidations(validations, 'lead type life');\n};\n\n/**\n * Map for creates a lead life\n *\n * @param {object} leadLife data\n * @returns {object} data mapped\n */\nexport const leadLifeCreateMap = (leadLife) => {\n const isUpdate = leadLife.id !== undefined;\n\n let date = leadLife.dateLeadGenerated ? moment(leadLife.dateLeadGenerated) : null;\n\n if (date) {\n if (date.isValid()) {\n date = date.toISOString();\n } else {\n date = 'invalid';\n }\n }\n\n const { knownMedicalCondition, smoke, spouse, bankAccount } = leadLife;\n\n return {\n lifeInsuranceInformation: leadLife.lifeInsuranceInformation,\n policyType: leadLife.policyType,\n birthMonth: leadLife.birthMonth,\n birthYear: parseInt(leadLife.birthYear),\n birthDay: parseInt(leadLife.birthDay),\n faceAmount: parseInt(leadLife.faceAmount),\n knownMedicalCondition: isUpdate\n ? knownMedicalCondition\n : knownMedicalCondition && knownMedicalCondition.toLowerCase() === 'yes',\n smoke: isUpdate ? smoke : smoke && smoke.toLowerCase() === 'yes',\n term: parseInt(leadLife.term),\n heightFeet: parseInt(leadLife.heightFeet),\n heightInches: parseInt(leadLife.heightInches),\n age: parseInt(leadLife.age),\n weight: parseInt(leadLife.weight),\n telemarketerName: leadLife.telemarketerName,\n callbackTime: leadLife.callbackTime,\n beneficiary: leadLife.beneficiary,\n spouse: spouse && spouse.toLowerCase() === 'yes',\n spouseAge: leadLife.spouseAge ? parseInt(leadLife.spouseAge) : 0,\n bankAccount: bankAccount && bankAccount.toLowerCase() === 'Yes',\n code: leadLife.code,\n driveRecording: leadLife.driveRecording,\n dateGenerated: date,\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\n\n/**\n * function to format data.\n *\n * @param {object} leadHome data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadHome) => {\n const {\n ageOfRoof,\n bathrooms,\n bedrooms,\n bestTimeToContact,\n brushHazardWithin500Feet,\n burglarAlarm,\n businessConductedOnPremises,\n cathedralVaultedCeilings,\n centralHeatingAir,\n comments,\n constructionType,\n continuouslyInsured,\n copperWaterPipes,\n coverageNeededOnContents,\n coverageNeededOnHouse,\n credit,\n currentInsuranceCompany,\n currentlyInsured,\n deadBolts,\n dob,\n dogType,\n dwellingType,\n enclosedPorchPatio,\n fencedInPool,\n fireAlarm,\n fireExtinguishers,\n fireHydrantProximity,\n fireStationProximity,\n fireplaces,\n floodPain,\n foundationType,\n frequencyOfPayment,\n garageType,\n hardwoodFloors,\n heatType,\n homeUpgradesDescribed,\n homeValue,\n homeUpgrades,\n hotTub,\n indoorSprinklers,\n insuredSince,\n mannedSecurityStation,\n monitoredBurglarAlarm,\n newPurchase,\n numberOfClaims,\n occupancyStatus,\n otherInfo,\n policyExpiration,\n porches,\n premium,\n requestedDeductible,\n requestedLiability,\n sauna,\n servicePanelType,\n smokeDetectors,\n smokerInHousehold,\n squareFootage,\n stories,\n sumpPump,\n swimmingPool,\n tennisCourts,\n timeAtCurrentResidence,\n timeAtPreviousResidence,\n timeWithCurrentCompany,\n wiringType,\n woodBurningStove,\n yearBuilt,\n addressToBeInsured,\n } = leadHomeMap(leadHome);\n const data = [\n [\n { label: 'Age of Roof', value: ageOfRoof },\n { label: 'Bathrooms', value: bathrooms },\n { label: 'Bedrooms', value: bedrooms },\n { label: 'Best Time to Contact', value: bestTimeToContact },\n { label: 'Brush Hazard Within 500 Feet', value: brushHazardWithin500Feet },\n { label: 'Burglar Alarm', value: burglarAlarm },\n { label: 'Business Conducted On Premises', value: businessConductedOnPremises },\n { label: 'Cathedral Vaulted Ceilings', value: cathedralVaultedCeilings },\n { label: 'Central Heating Air', value: centralHeatingAir },\n { label: 'Construction Type', value: constructionType },\n { label: 'Copper Water Pipes', value: copperWaterPipes },\n { label: 'Coverage Needed On Contents', value: coverageNeededOnContents },\n { label: 'Coverage Needed On House', value: coverageNeededOnHouse },\n { label: 'Credit', value: credit },\n {\n label: 'Address To Be Insured',\n value: addressToBeInsured ? addressToBeInsured.street1 : null,\n },\n { label: 'City To Be Insured', value: addressToBeInsured ? addressToBeInsured.city : null },\n { label: 'State To Be Insured', value: addressToBeInsured ? addressToBeInsured.state : null },\n { label: 'Zip To Be Insured', value: addressToBeInsured ? addressToBeInsured.zip : null },\n ],\n [\n { label: 'Current Insurance Company', value: currentInsuranceCompany },\n { label: 'Currently Insured', value: currentlyInsured },\n { label: 'Dead Bolts', value: deadBolts },\n { label: 'Dob', value: dob },\n { label: 'Dog Type', value: dogType },\n { label: 'Dwelling Type', value: dwellingType },\n { label: 'Enclosed Porch Patio', value: enclosedPorchPatio },\n { label: 'Fenced In Pool', value: fencedInPool },\n { label: 'Fire Alarm', value: fireAlarm },\n { label: 'Fire Extinguishers', value: fireExtinguishers },\n { label: 'Fire Hydrant Proximity', value: fireHydrantProximity },\n { label: 'Fire Station Proximity', value: fireStationProximity },\n { label: 'Fireplaces', value: fireplaces },\n { label: 'Flood Pain', value: floodPain },\n { label: 'Foundation Type', value: foundationType },\n { label: 'Frequency Of Payment', value: frequencyOfPayment },\n { label: 'Garage Type', value: garageType },\n { label: 'Year Built', value: yearBuilt },\n ],\n [\n { label: 'Continuously Insured', value: continuouslyInsured },\n { label: 'Hardwood Floors', value: hardwoodFloors },\n { label: 'Heat Type', value: heatType },\n { label: 'Home Upgrades Described', value: homeUpgradesDescribed },\n { label: 'Home Value', value: homeValue },\n { label: 'Home Upgrades', value: homeUpgrades },\n { label: 'Hot Tub', value: hotTub },\n { label: 'Indoor Sprinklers', value: indoorSprinklers },\n { label: 'Insured Since', value: insuredSince },\n { label: 'Manned Security Station', value: mannedSecurityStation },\n { label: 'Monitored Burglar Alarm', value: monitoredBurglarAlarm },\n { label: 'New Purchase', value: newPurchase ? 'Yes' : 'No' },\n { label: 'Number Of Claims', value: numberOfClaims },\n { label: 'Occupancy Status', value: occupancyStatus },\n { label: 'Other Info', value: otherInfo },\n { label: 'Policy Expiration', value: policyExpiration },\n { label: 'Porches', value: porches },\n { label: 'Wood Burning Stove', value: woodBurningStove },\n ],\n [\n { label: 'Copper Water Pipes', value: copperWaterPipes },\n { label: 'Premium', value: premium },\n { label: 'Requested Deductible', value: requestedDeductible },\n { label: 'Requested Liability', value: requestedLiability },\n { label: 'Sauna', value: sauna },\n { label: 'Service Panel Type', value: servicePanelType },\n { label: 'Smoke Detectors', value: smokeDetectors },\n { label: 'Smoker In Household', value: smokerInHousehold },\n { label: 'Square Footage', value: squareFootage },\n { label: 'Stories', value: stories },\n { label: 'Sump Pump', value: sumpPump },\n { label: 'Swimming Pool', value: swimmingPool },\n { label: 'Tennis Courts', value: tennisCourts },\n { label: 'Time At Current Residence', value: timeAtCurrentResidence },\n { label: 'Time At Previous Residence', value: timeAtPreviousResidence },\n { label: 'Time With Current Company', value: timeWithCurrentCompany },\n { label: 'Wiring Type', value: wiringType },\n { label: 'Comments', value: comments },\n ],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadHome data\n * @returns {object} lead home mapped\n */\nexport const leadHomeMap = (leadHome) => {\n if (!leadHome.claims) leadHome.claims = [];\n const map = {\n ...leadHome,\n addressLineToBeInsured: null,\n cityToBeInsured: null,\n stateToBeInsured: null,\n zipToBeInsured: null,\n };\n\n if (leadHome.addressToBeInsured)\n return {\n ...map,\n ...{\n addressLineToBeInsured: leadHome.addressToBeInsured.street1,\n cityToBeInsured: leadHome.addressToBeInsured.city,\n stateToBeInsured: leadHome.addressToBeInsured.state,\n zipToBeInsured: leadHome.addressToBeInsured.zip,\n },\n };\n return map;\n};\n\n/**\n * Lead type home validations\n *\n * @param {*} leadHome - Lead home\n */\nexport const leadHomeValidations = (leadHome) => {\n const validations = [];\n\n createValidations(validations, 'lead type home');\n};\n\n/**\n * Map for creates a lead type home\n *\n * @param {object} leadHome data\n * @returns {object} data mapped\n */\nexport const leadHomeCreateMap = (leadHome) => {\n const isUpdate = leadHome.id !== undefined;\n\n const { continuouslyInsured, currentlyInsured, homeUpgrades, newPurchase } = leadHome;\n\n return {\n ageOfRoof: leadHome.ageOfRoof,\n bathrooms: parseInt(leadHome.bathrooms),\n bedrooms: parseInt(leadHome.bedrooms),\n bestTimeToContact: isUpdate\n ? leadHome.bestTimeToContact\n : leadHome.bestTimeToContact\n ? new Date(leadHome.bestTimeToContact)\n : null,\n brushHazardWithin500Feet: leadHome.brushHazardWithin500Feet,\n burglarAlarm: leadHome.burglarAlarm,\n businessConductedOnPremises: leadHome.businessConductedOnPremises,\n cathedralVaultedCeilings: leadHome.cathedralVaultedCeilings,\n centralHeatingAir: leadHome.centralHeatingAir,\n comments: leadHome.comments,\n constructionType: leadHome.constructionType,\n continuouslyInsured: isUpdate\n ? continuouslyInsured\n : continuouslyInsured && continuouslyInsured.toLowerCase() === 'yes',\n copperWaterPipes: leadHome.copperWaterPipes,\n coverageNeededOnContents: parseInt(leadHome.coverageNeededOnContents),\n coverageNeededOnHouse: parseInt(leadHome.coverageNeededOnHouse),\n credit: leadHome.credit,\n currentInsuranceCompany: leadHome.currentInsuranceCompany,\n currentlyInsured: isUpdate\n ? currentlyInsured\n : currentlyInsured && currentlyInsured.toLowerCase() === 'yes',\n deadBolts: leadHome.deadBolts,\n dob: leadHome.dob ? new Date(leadHome.dob).toISOString().split('T')[0] : null,\n dogType: leadHome.dogType,\n dwellingType: leadHome.dwellingType,\n enclosedPorchPatio: leadHome.enclosedPorchPatio,\n fencedInPool: leadHome.fencedInPool,\n fireAlarm: leadHome.fireAlarm,\n fireExtinguishers: leadHome.fireExtinguishers,\n fireHydrantProximity: leadHome.fireHydrantProximity,\n fireStationProximity: leadHome.fireStationProximity,\n fireplaces: parseInt(leadHome.fireplaces),\n floodPain: leadHome.floodPain,\n foundationType: leadHome.foundationType,\n frequencyOfPayment: leadHome.frequencyOfPayment,\n garageType: leadHome.garageType,\n hardwoodFloors: leadHome.hardwoodFloors,\n heatType: leadHome.heatType,\n homeUpgradesDescribed: leadHome.homeUpgradesDescribed,\n homeValue: parseInt(leadHome.homeValue),\n homeUpgrades: isUpdate ? homeUpgrades : homeUpgrades && homeUpgrades.toLowerCase() === 'yes',\n hotTub: leadHome.hotTub,\n indoorSprinklers: leadHome.indoorSprinklers,\n insuredSince: leadHome.insuredSince\n ? new Date(leadHome.insuredSince).toISOString().split('T')[0]\n : null,\n mannedSecurityStation: leadHome.mannedSecurityStation,\n monitoredBurglarAlarm: leadHome.monitoredBurglarAlarm,\n newPurchase: isUpdate ? newPurchase : newPurchase && newPurchase.toLowerCase() === 'yes',\n numberOfClaims: parseInt(leadHome.numberOfClaims),\n occupancyStatus: leadHome.occupancyStatus,\n otherInfo: leadHome.otherInfo,\n policyExpiration: leadHome.policyExpiration\n ? new Date(leadHome.policyExpiration).toISOString().split('T')[0]\n : null,\n porches: leadHome.porches,\n premium: leadHome.premium,\n requestedDeductible: leadHome.requestedDeductible,\n requestedLiability: leadHome.requestedLiability,\n sauna: leadHome.sauna,\n servicePanelType: leadHome.servicePanelType,\n smokeDetectors: leadHome.smokeDetectors,\n smokerInHousehold: leadHome.smokerInHousehold,\n squareFootage: parseInt(leadHome.squareFootage),\n stories: parseInt(leadHome.stories),\n sumpPump: leadHome.sumpPump,\n swimmingPool: leadHome.swimmingPool,\n tennisCourts: leadHome.tennisCourts,\n timeAtCurrentResidence: leadHome.timeAtCurrentResidence,\n timeAtPreviousResidence: leadHome.timeAtPreviousResidence,\n timeWithCurrentCompany: leadHome.timeWithCurrentCompany,\n wiringType: leadHome.wiringType,\n woodBurningStove: leadHome.woodBurningStove,\n yearBuilt: parseInt(leadHome.yearBuilt),\n addressToBeInsured: {\n street1: leadHome.addressLineToBeInsured,\n city: leadHome.cityToBeInsured,\n state: leadHome.stateToBeInsured,\n zip: leadHome.zipToBeInsured,\n },\n claims: leadHome.claims,\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\n\n/**\n * function to format data.\n *\n * @param {object} leadEmployeeBenefits data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadEmployeeBenefits) => {\n const {\n annualPayroll,\n companyName,\n natureOfBusiness,\n numberOfEmployees,\n } = leadEmployeeBenefitsMap(leadEmployeeBenefits);\n const data = [\n [{ label: 'Annual Payroll', value: annualPayroll }],\n [{ label: 'Company Name', value: companyName }],\n [{ label: 'Nature of Business', value: natureOfBusiness }],\n [{ label: 'Number Of Employees', value: numberOfEmployees }],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadEmployeeBenefits data\n * @returns {object} lead employee benefits mapped\n */\nexport const leadEmployeeBenefitsMap = (leadEmployeeBenefits) => {\n return {\n ...leadEmployeeBenefits,\n };\n};\n\n/**\n * Lead type employee benefits validations\n *\n * @param {object} leadEmployeeBenefits - The lead employee benefits\n *\n * @returns {void}\n */\nexport const leadEmployeeBenefitsValidations = (leadEmployeeBenefits) => {\n const validations = [\n {\n value: leadEmployeeBenefits.annualPayroll,\n field: 'annual payroll',\n type: 'number',\n },\n {\n value: leadEmployeeBenefits.companyName,\n field: 'company name',\n type: 'string',\n },\n {\n value: leadEmployeeBenefits.natureOfBusiness,\n field: 'nature of business',\n type: 'string',\n },\n {\n value: leadEmployeeBenefits.numberOfEmployees,\n field: 'number of employees',\n type: 'number',\n },\n ];\n\n createValidations(validations, 'lead type employee benefits');\n};\n\n/**\n * Map for creates a lead type employee benefits\n *\n * @param {object} leadEmployeeBenefits data\n * @returns {object} data mapped\n */\nexport const leadEmployeeBenefitsCreateMap = (leadEmployeeBenefits) => {\n return {\n annualPayroll: parseFloat(leadEmployeeBenefits.annualPayroll),\n companyName: leadEmployeeBenefits.companyName,\n natureOfBusiness: leadEmployeeBenefits.natureOfBusiness,\n numberOfEmployees: parseInt(leadEmployeeBenefits.numberOfEmployees),\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport moment from 'moment';\n\n/**\n * function to format data.\n *\n * @param {object} leadGeneralLiability data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadGeneralLiability) => {\n const {\n natureOfBusiness,\n companyName,\n grossSales,\n numberOfEmployees,\n payroll,\n policyExpirationDate,\n } = leadGeneralLiabilityMap(leadGeneralLiability);\n const data = [\n [\n { label: 'Nature of Business', value: natureOfBusiness },\n { label: 'Payroll', value: payroll },\n ],\n [\n {\n label: 'Gross Sales',\n value: grossSales,\n },\n {\n label: 'Policy Expiration Date',\n value: policyExpirationDate ? moment(policyExpirationDate).format('MM/DD/YYYY') : null,\n },\n ],\n [{ label: 'Number Of Employees', value: numberOfEmployees }],\n [{ label: 'Company Name', value: companyName }],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadGeneralLiability data\n * @returns {object} lead home mapped\n */\nexport const leadGeneralLiabilityMap = (leadGeneralLiability) => {\n return {\n ...leadGeneralLiability,\n };\n};\n\n/**\n * Map for creates a lead type general liability\n *\n * @param {object} leadGeneralLiability data\n * @returns {object} data mapped\n */\nexport const leadGeneralLiabilityCreateMap = (leadGeneralLiability) => {\n return {\n natureOfBusiness: leadGeneralLiability.natureOfBusiness,\n companyName: leadGeneralLiability.companyName,\n grossSales: parseInt(leadGeneralLiability.grossSales),\n numberOfEmployees: parseInt(leadGeneralLiability.numberOfEmployees),\n payroll: parseFloat(leadGeneralLiability.payroll),\n policyExpirationDate: leadGeneralLiability.policyExpirationDate || null,\n };\n};\n","import { checkEmptyColumnValues } from '../lead-details-utils';\nimport { createValidations } from '../../../shared/utils';\nimport moment from 'moment';\n\n/**\n * function to format data.\n *\n * @param {object} leadWorkersCompensation data\n * @returns {Array} the formatted data\n */\nexport const formatData = (leadWorkersCompensation) => {\n const {\n annualPayroll,\n companyName,\n natureOfBusiness,\n numberOfEmployees,\n policyExpirationDate,\n } = leadWorkersCompensationMap(leadWorkersCompensation);\n const data = [\n [\n { label: 'Annual Payroll', value: annualPayroll },\n {\n label: 'Policy Expiration Date',\n value: policyExpirationDate ? moment(policyExpirationDate).format('MM/DD/YYYY') : null,\n },\n ],\n [{ label: 'Company Name', value: companyName }],\n [{ label: 'Nature of Business', value: natureOfBusiness }],\n [{ label: 'Number Of Employees', value: numberOfEmployees }],\n ];\n\n return checkEmptyColumnValues(data);\n};\n\n/**\n * Map for table info and form\n *\n * @param {object} leadWorkersCompensation data\n * @returns {object} lead workers compensation mapped\n */\nexport const leadWorkersCompensationMap = (leadWorkersCompensation) => {\n return {\n ...leadWorkersCompensation,\n };\n};\n\n/**\n * Lead type workers compensation validations\n *\n * @param {object} leadWorkersCompensation - The lead compensation worker\n *\n * @returns {void}\n */\nexport const leadWorkersCompensationValidations = (leadWorkersCompensation) => {\n const validations = [\n {\n value: leadWorkersCompensation.annualPayroll,\n field: 'annual payroll',\n type: 'number',\n },\n {\n value: leadWorkersCompensation.companyName,\n field: 'company name',\n type: 'string',\n },\n {\n value: leadWorkersCompensation.natureOfBusiness,\n field: 'nature of business',\n type: 'string',\n },\n {\n value: leadWorkersCompensation.numberOfEmployees,\n field: 'number of employees',\n type: 'number',\n },\n {\n value: leadWorkersCompensation.policyExpirationDate,\n field: 'policy expiration date',\n type: 'string',\n },\n ];\n\n createValidations(validations, 'lead type workers compensation');\n};\n\n/**\n * Map for creates a lead type workers compensation\n *\n * @param {object} leadWorkersCompensation data\n * @returns {object} data mapped\n */\nexport const leadWorkersCompensationCreateMap = (leadWorkersCompensation) => {\n return {\n annualPayroll: parseFloat(leadWorkersCompensation.annualPayroll),\n companyName: leadWorkersCompensation.companyName,\n natureOfBusiness: leadWorkersCompensation.natureOfBusiness,\n numberOfEmployees: parseInt(leadWorkersCompensation.numberOfEmployees),\n policyExpirationDate: leadWorkersCompensation.policyExpirationDate || null,\n };\n};\n","import { PhoneNumberUtil } from 'google-libphonenumber';\nimport moment from 'moment';\nimport { TABLE_COLUMNS } from './leads-model';\nimport { LeadPhoneType } from '@cobuildlab/lead-volt-share';\nimport {\n GENDERS,\n MANAGER,\n PRIORITY_OPTIONS,\n MARITAL_STATUSES,\n MARITAL_STATUSES_OPTIONS,\n TYPE_VALUES,\n DATE_SCHEMA_FORMATS,\n} from '../../shared/constants';\nimport { isValidDate } from '../../shared/validators';\nimport { userHasAnyRoleInAgency } from '../../shared/utils/agency-utils';\nimport { unCapitalize } from '../../shared/utils';\nimport { GENDER_OPTIONS, LEAD_TYPE_OPTIONS } from './leads-model';\nimport { driverCreateMap } from './leads-drivers/leads-drivers-utils';\nimport { leadCommercialAutoCreateMap } from './leads-type-commercial-auto/leads-type-commercial-auto-utils';\nimport { leadAutoCreateMap } from './leads-type-auto/leads-type-auto-utils';\nimport { leadLifeCreateMap } from './leads-type-life/leads-type-life-utils';\nimport { leadHomeCreateMap } from './leads-type-home/leads-type-home-utils';\nimport { leadEmployeeBenefitsCreateMap } from './leads-type-employee-benefits/leads-type-employee-benefits-utils';\nimport { leadGeneralLiabilityCreateMap } from './leads-type-general-liability/leads-type-general-liability-utils';\nimport { leadWorkersCompensationCreateMap } from './leads-type-workers-compensation/leads-type-workers-compensation-utils';\n\nexport const getLeadPropertyName = (columnName) => {\n columnName = columnName.replace(' ', '');\n const propertyName = TABLE_COLUMNS[columnName].property;\n\n return propertyName;\n};\n\nexport const priorityMap = (optionList) => {\n return optionList.map((option) => ({ label: option.label, value: option.label }));\n};\n\nexport const findPriority = (value) => {\n if (value === '') {\n return;\n }\n\n if (+value) {\n return PRIORITY_OPTIONS.find((option) => +option.value === +value).label;\n } else {\n return PRIORITY_OPTIONS.find((option) => option.label === value).value;\n }\n};\n\n/**\n * Find priority number\n *\n * @param {string|number} priority - The lead object\n * @returns {number|undefined} The resulting response\n */\nexport const findPriorityNumber = (priority) => {\n if (isNaN(priority)) {\n const selectedPriority = PRIORITY_OPTIONS.find(\n ({ label: priorityStr }) =>\n priorityStr.replace(/ /g, '').toLowerCase() === priority.replace(/ /g, '').toLowerCase(),\n );\n\n return selectedPriority?.value;\n }\n\n return priority;\n};\n\n/**\n * Map to format the numbers\n *\n * @param {object} lead - The lead object\n * @returns {Array} The resulting array\n */\nexport const msgNumbersMap = (lead) => {\n const phones = getLeadPhoneNumbers(lead);\n let numbers = [];\n\n if (phones && phones.length) {\n numbers = phones\n .filter(({ phone }) => !!phone.code && !!phone.number)\n .map(({ phone }) => ({\n label: `+${phone.code} ${phone.number}`,\n value: phone,\n }));\n }\n\n return numbers;\n};\n\n/**\n * Map to format the type's data\n *\n * @param {Array} types - Array of types\n *\n * @returns {object} The options object\n */\nexport const typesMap = (types) => {\n return types.map((type) => {\n return {\n label: type.name,\n value: type,\n };\n });\n};\n\n/**\n * Returns true if the user has the role Manager in the provided agency\n *\n * @param {object} user - The user object\n * @param {object} agency - The agency object\n *\n * @returns {boolean} The result\n */\nexport const canSeeBatchActions = (user, agency) => {\n return userHasAnyRoleInAgency(user, agency, MANAGER);\n};\n\n/**\n * Returns true if the user has the role Manager in the provided agency\n *\n * @param {object} user - The user object\n * @param {object} agency - The agency object\n *\n * @returns {boolean} The result\n */\nexport const canDeleteLeads = (user, agency) => {\n return userHasAnyRoleInAgency(user, agency, MANAGER);\n};\n\n/**\n * Returns true if the user has the role Manager in the provided agency\n *\n * @param {object} user - The user object\n * @param {object} agency - The agency object\n *\n * @returns {boolean} The result\n */\nexport const canAssignAgents = (user, agency) => {\n return userHasAnyRoleInAgency(user, agency, MANAGER);\n};\n\n/**\n *\n * @param {object} lead Lead object\n * @returns {string} Full name string of the lead\n */\nexport const getLeadFullName = (lead) => `${lead.firstName} ${lead.lastName}`;\n\n/**\n *\n * @param {string} leadType Lead type string.\n * @returns {string} Full relation type string.\n */\nexport function mapLeadTypeRelationName(leadType) {\n const types = Object.values(TYPE_VALUES);\n const type = types\n .find((item) => item.toLowerCase() === leadType.toLowerCase())\n .replace(/ /g, '');\n return `leadLeadType${type}Relation`;\n}\n\n/**\n * @param {Array<{id:string,phone:{code:string,number:string}}>} phones - Phones input\n * @param {boolean} isUpdate - Phones input\n * @returns {{ create:Array, update:Array, disconnect: Array}} - Data to update phones\n */\nexport function getLeadPhoneNumberRelationInput(phones, isUpdate) {\n const result = isUpdate\n ? phones.reduce((acum, curr) => {\n return {\n /**\n * If the phone number doesn't have id\n * the number has to be created\n */\n create: !curr.id\n ? [\n ...(acum.create || []),\n {\n phone: {\n code: curr.phone.code,\n number: parsePhone(curr.phone.number),\n },\n parsedPhone: {\n code: curr.phone.code,\n number: parsePhone(curr.phone.number),\n },\n },\n ]\n : acum.create,\n /**\n * If the phone number has an id but\n * its not going to be deleted, update it\n */\n update:\n curr.id && !curr.delete\n ? [\n ...(acum.update || []),\n {\n data: {\n id: curr.id,\n phone: {\n code: curr.phone.code,\n number: parsePhone(curr.phone.number),\n },\n parsedPhone: {\n code: curr.phone.code,\n number: parsePhone(curr.phone.number),\n },\n // If the number is changed, set the type to mobile and its metada to null\n ...(curr.update\n ? {\n type: LeadPhoneType.MOBILE,\n data: null,\n }\n : {}),\n },\n },\n ]\n : acum.update,\n /**\n * If the phone number has an id and\n * the delete flag, deleted\n */\n disconnect:\n curr.id && curr.delete === true\n ? [\n ...(acum.disconnect || []),\n {\n id: curr.id,\n },\n ]\n : acum.disconnect,\n };\n }, {})\n : {\n create: phones.map(({ phone }) => ({\n phone: {\n code: phone.code,\n number: parsePhone(phone.number),\n },\n parsedPhone: {\n code: phone.code,\n number: parsePhone(phone.number),\n },\n })),\n };\n\n return result;\n}\n/**\n * Get lead from csv row\n *\n * @param {Array} row lead data\n * @param {Array} columns Csv column titles\n * @param {number} index lead row number\n * @param {object} campaign campaign\n * @returns {object} lead\n */\nexport const getLeadFromRowCsv = (row, columns, index, campaign) => {\n const lead = {};\n const leadTypeFields = {};\n const leadDrivers = [];\n const countDrivers = [];\n const types = Object.values(TYPE_VALUES);\n const type = row[columns.indexOf('type')];\n\n if (types.every((t) => t !== type)) {\n throw new Error(\n 'Lead #' +\n index +\n ' must have a valid type. ' +\n 'Allowed types are ' +\n types.map((t) => `\"${t}\"`).join(', '),\n );\n }\n\n let typePrefix = type.replace(/ /g, '');\n typePrefix = typePrefix.charAt(0).toLowerCase() + typePrefix.substr(1);\n\n const leadTypeMaps = {\n auto: leadAutoCreateMap,\n commercialAuto: leadCommercialAutoCreateMap,\n life: leadLifeCreateMap,\n home: leadHomeCreateMap,\n employeeBenefit: leadEmployeeBenefitsCreateMap,\n generalLiability: leadGeneralLiabilityCreateMap,\n workersCompensation: leadWorkersCompensationCreateMap,\n };\n\n columns.forEach((column, index) => {\n if (column.startsWith(typePrefix)) {\n const attribute = unCapitalize(column.replace(typePrefix, ''));\n let value = row[index];\n\n if (typeof row[index] === 'string') {\n value = row[index].trim() || undefined;\n }\n\n leadTypeFields[attribute] = value;\n } else if (column !== 'campaign') {\n lead[column] = row[index];\n }\n\n // Count how many drivers are in the CSV\n if (column.startsWith('driver')) {\n const countDriver = column.split(/\\D/).join('');\n\n if (countDrivers.indexOf(countDriver) === -1) {\n countDrivers.push(countDriver);\n }\n }\n });\n\n // Map dob field to birthDay - birthMonth - birthYear\n if (lead.dob) {\n const dob = moment(lead.dob, DATE_SCHEMA_FORMATS);\n\n if (dob.isValid()) {\n lead.birthDay = dob.format('DD');\n lead.birthMonth = dob.format('MMMM');\n lead.birthYear = dob.format('YYYY');\n }\n }\n\n // Create drivers.\n countDrivers.forEach((countDriver) => {\n const startColumn = `driver${countDriver}`;\n const driver = {};\n\n columns.forEach((column, columnIndex) => {\n if (column.startsWith(startColumn)) {\n const columnName = unCapitalize(column.replace(startColumn, ''));\n\n driver[columnName] = row[columnIndex];\n }\n });\n\n if (Object.keys(driver).length > 0) {\n leadDrivers.push(driver);\n }\n });\n\n // Filter and map lead phones.\n const phones = Object.keys(lead)\n .filter((key) => key.startsWith('phone'))\n .map((keyPhone) => {\n return {\n phone: {\n code: '1',\n number: lead[keyPhone],\n },\n };\n });\n // const leadLeadPhoneNumberRelation = getLeadPhoneNumberRelationInput(phones, false);\n\n return {\n _type: type,\n firstName: lead.firstName,\n middleName: lead.middleName,\n lastName: lead.lastName,\n gender: lead.gender,\n email: lead.email?.trim(),\n dob: lead.dob,\n birthMonth: lead.birthMonth,\n birthDay: lead.birthDay,\n birthYear: lead.birthYear,\n creditScore: lead.creditScore,\n amount: lead.amount !== '' && lead.amount !== undefined ? lead.amount : '0',\n address: {\n street1: lead.street1,\n street2: lead.street2,\n city: lead.city,\n zip: lead.zipCode,\n state: lead.state,\n },\n priority: lead.priority,\n [mapLeadTypeRelationName(type)]: {\n create: {\n ...(leadTypeMaps[typePrefix] ? leadTypeMaps[typePrefix](leadTypeFields) : leadTypeFields),\n },\n },\n campaign,\n leadLeadPhoneNumberRelation: {\n create: phones,\n },\n drivers: {\n create: leadDrivers.map(driverCreateMap),\n },\n };\n};\n\n/**\n * Func for get the props for some fields\n * select and date.\n *\n * @param {string} fieldName field key name\n * @param {Array} campaignOptions campaign list\n * @param {Array} ifsScoresOptions ifs scores\n * @returns {object} field props\n */\nexport const getFieldProps = (fieldName, campaignOptions, ifsScoresOptions) => {\n const fields = {\n gender: {\n type: 'select',\n placeholder: 'Gender',\n options: GENDER_OPTIONS,\n },\n birthMonth: {\n // type: 'select',\n type: 'text',\n placeholder: 'Birth month',\n // options: BIRTHMONTH_OPTIONS,\n },\n birthDay: {\n // type: 'select',\n type: 'text',\n placeholder: 'Birth day',\n // options: BIRTHDAY_OPTIONS,\n },\n birthYear: {\n // type: 'select',\n type: 'text',\n placeholder: 'Birth year',\n // options: BIRTHYEAR_OPTIONS,\n },\n state: {\n // type: 'select',\n type: 'text',\n placeholder: 'State',\n // options: STATES_OPTIONS,\n },\n type: {\n type: 'select',\n placeholder: 'Type',\n options: LEAD_TYPE_OPTIONS,\n },\n priority: {\n type: 'select',\n placeholder: 'Priority',\n options: PRIORITY_OPTIONS,\n },\n campaign: {\n type: 'select',\n placeholder: 'Campaign',\n options: campaignOptions,\n },\n ifsScore: {\n type: 'select',\n placeholder: 'IFS Score',\n options: ifsScoresOptions,\n },\n // lead home fields,\n homeDob: { type: 'date' },\n homeBestTimeToContact: { type: 'date' },\n homeInsuredSince: { type: 'date' },\n homePolicyExpiration: { type: 'date' },\n };\n let fieldProps = fields[fieldName] || {};\n\n if (/^driver\\d+/.test(fieldName)) {\n const driverFields = {\n birthDate: {\n type: 'date',\n },\n gender: {\n type: 'select',\n placeholder: 'Gender',\n options: GENDER_OPTIONS,\n },\n maritalStatus: {\n type: 'select',\n placeholder: 'Marital status',\n options: MARITAL_STATUSES_OPTIONS,\n },\n ageFirstLicensed: {\n type: 'date',\n },\n licensedState: {\n // type: 'select',\n type: 'text',\n placeholder: 'State',\n // options: STATES_OPTIONS,\n },\n preferredContactTime: {\n type: 'date',\n },\n policyExpirationDate: {\n type: 'date',\n },\n dUIDWIInThePast5Years: {\n type: 'date',\n },\n dateOfDUIDWI: {\n type: 'date',\n },\n };\n const driverFieldName = unCapitalize(fieldName.replace(/^driver\\d+/, ''));\n fieldProps = driverFields[driverFieldName] || {};\n }\n\n return fieldProps;\n};\n\n/**\n * Pre-processes data at the initial loading of the CSV\n *\n * @param {Array} columns Csv column titles\n * @param {Array} data leads data of csv\n * @returns {Array} columns and data processed\n */\nexport const preprocessDataFromCsv = (columns, data) => {\n let newCsvColumns = [...columns];\n let newCsvData = [...data];\n\n // Remove campaign\n const campaignIndex = columns.indexOf('campaign');\n if (campaignIndex !== -1) {\n newCsvColumns = newCsvColumns.filter((elem) => elem !== 'campaign');\n }\n\n // Uppercase genders\n const genderIndexes = [\n newCsvColumns.indexOf('gender'),\n newCsvColumns.indexOf('driver1Gender'),\n newCsvColumns.indexOf('driver2Gender'),\n newCsvColumns.indexOf('driver3Gender'),\n newCsvColumns.indexOf('driver4Gender'),\n ];\n const hasGenderColumn = genderIndexes.some((e) => e !== -1);\n\n // Uppercase marital statuses\n const maritalStatusesIndexes = [\n newCsvColumns.indexOf('driver1MaritalStatus'),\n newCsvColumns.indexOf('driver2MaritalStatus'),\n newCsvColumns.indexOf('driver3MaritalStatus'),\n newCsvColumns.indexOf('driver4MaritalStatus'),\n ];\n const hasMaritalStatusColumn = maritalStatusesIndexes.some((e) => e !== -1);\n\n // Process dates\n const datesIndexes = [\n newCsvColumns.indexOf('homeBestTimeToContact'),\n newCsvColumns.indexOf('homeDob'),\n newCsvColumns.indexOf('homeInsuredSince'),\n newCsvColumns.indexOf('homePolicyExpiration'),\n newCsvColumns.indexOf('driver1BirthDate'),\n newCsvColumns.indexOf('driver2BirthDate'),\n newCsvColumns.indexOf('driver3BirthDate'),\n newCsvColumns.indexOf('driver4BirthDate'),\n newCsvColumns.indexOf('driver1AgeFirstLicensed'),\n newCsvColumns.indexOf('driver2AgeFirstLicensed'),\n newCsvColumns.indexOf('driver3AgeFirstLicensed'),\n newCsvColumns.indexOf('driver4AgeFirstLicensed'),\n newCsvColumns.indexOf('driver1PreferredContactTime'),\n newCsvColumns.indexOf('driver2PreferredContactTime'),\n newCsvColumns.indexOf('driver3PreferredContactTime'),\n newCsvColumns.indexOf('driver4PreferredContactTime'),\n newCsvColumns.indexOf('driver1PolicyExpirationDate'),\n newCsvColumns.indexOf('driver2PolicyExpirationDate'),\n newCsvColumns.indexOf('driver3PolicyExpirationDate'),\n newCsvColumns.indexOf('driver4PolicyExpirationDate'),\n newCsvColumns.indexOf('driver1dUIDWIInThePast5Years'),\n newCsvColumns.indexOf('driver2dUIDWIInThePast5Years'),\n newCsvColumns.indexOf('driver3dUIDWIInThePast5Years'),\n newCsvColumns.indexOf('driver4dUIDWIInThePast5Years'),\n newCsvColumns.indexOf('driver1DateOfDUIDWI'),\n newCsvColumns.indexOf('driver2DateOfDUIDWI'),\n newCsvColumns.indexOf('driver3DateOfDUIDWI'),\n newCsvColumns.indexOf('driver4DateOfDUIDWI'),\n ];\n const hasDateColumns = datesIndexes.some((e) => e !== -1);\n\n // Change priority\n const priorityIndex = newCsvColumns.indexOf('priority');\n\n /// Change type\n const typeIndex = newCsvColumns.indexOf('type');\n\n newCsvData = newCsvData.map((row) => {\n let subarr = row;\n if (campaignIndex !== -1) {\n subarr = subarr.filter((_, index) => index !== campaignIndex);\n }\n\n return subarr.map((elem, i) => {\n if (hasGenderColumn && genderIndexes.includes(i)) {\n return Object.values(GENDERS).includes(elem.toUpperCase()) ? elem.toUpperCase() : elem;\n }\n\n if (hasMaritalStatusColumn && maritalStatusesIndexes.includes(i)) {\n return Object.values(MARITAL_STATUSES).includes(elem.toUpperCase())\n ? elem.toUpperCase()\n : elem;\n }\n\n if (priorityIndex !== -1 && i === priorityIndex && !!elem) {\n const priority = findPriorityNumber(elem);\n\n return priority || elem;\n }\n\n if (typeIndex !== -1 && i === typeIndex && !!elem) {\n const types = Object.values(TYPE_VALUES);\n\n /* look for the correct type, not if you made a global\n function so as not to confuse with similar parts */\n const type = types.find((item) => {\n const itemStr = item.replace(/ /g, '').toLowerCase();\n const typeStr = elem.replace(/ /g, '').toLowerCase();\n return itemStr === typeStr;\n });\n\n return type || elem;\n }\n\n if (hasDateColumns && datesIndexes.includes(i)) {\n return isValidDate(elem) ? elem : null;\n }\n\n return elem;\n });\n });\n\n return [newCsvColumns, newCsvData];\n};\n\n/**\n * @param {object} columns - Columns to display in the list\n * @returns {string} - Strings with columns sizes\n */\nexport function getColumnsSizes(columns) {\n const sortedColumns = Object.entries(columns).filter(([, column]) => column.active);\n\n const sortedColumnsSizes = sortedColumns.reduce((columnsStr, [, { size }]) => {\n return `${columnsStr} ${size}`;\n }, '');\n\n const columnSizes = `60px ${sortedColumnsSizes} 110px`;\n\n return columnSizes;\n}\n\n/**\n * @param {number} max - Max number of years\n * @param {number} min - Min number of years\n * @param {boolean} acending - If it should be be in acending order.\n * @returns {Array<{label:number,value:string}>} - Array with the formatted years\n */\nexport function getDateOfBirthYears(max, min, acending = false) {\n const maxNum = Number(max);\n const minNum = Number(min);\n\n if (isNaN(maxNum) || isNaN(minNum)) {\n throw Error('Expected an number');\n }\n\n if (!(maxNum > minNum)) {\n throw Error('Expected max to be greater than min');\n }\n const diference = maxNum - minNum + 1;\n\n const years = [];\n const order = acending ? 'push' : 'unshift';\n\n for (let index = 0; index < diference; index++) {\n const year = { label: minNum + index, value: (minNum + index).toString() };\n\n years[order](year);\n }\n return years;\n}\n\n/**\n * @param {object} lead - lead data\n * @returns {Array} Lead phone numbers\n */\nexport function getLeadPhoneNumbers(lead) {\n if (lead?.leadLeadPhoneNumberRelation?.items) {\n if (lead.leadLeadPhoneNumberRelation.items.length > 0) {\n return lead.leadLeadPhoneNumberRelation.items;\n }\n }\n\n if (lead.phones) {\n return lead.phones.map((phone) => ({ phone }));\n }\n\n return [];\n}\n\n/**\n * @param {string} phone phone number\n * @returns {string} parsed phone number to (xxx) xxx-xxxx\n */\nexport const changePhoneStructure = (phone) => {\n if (!phone) return phone;\n\n let phoneArr = phone.split('');\n\n if (phoneArr.includes('(')) return phone;\n\n let parsePhone = [];\n\n parsePhone = [\n '(',\n ...phoneArr.map((number, index) => {\n let character = '';\n if (index === 2) {\n character = ') ';\n } else if (index === 5) {\n character = '-';\n }\n return number + character;\n }),\n ];\n\n return parsePhone.join('');\n};\n/**\n * @param {string} phone - Phone number.\n * @returns {string} Clean phone number from (xxx) xxx-xxxx to xxxxxxxxxx.\n */\nexport const parsePhone = (phone) => {\n // If phone parameter has only one digit, parseAndKeepRawInput will crash\n if (!phone || phone.length === 1) return phone;\n const phoneUtil = PhoneNumberUtil.getInstance();\n return phoneUtil\n .parseAndKeepRawInput(phone, 'US')\n .getNationalNumber()\n .toString();\n};\n","/**\n * @param {string} str PhoneNumber string\n * @returns {{code:string,number:string}} str PhoneNumber string\n */\nexport function parsePhoneNumber(str) {\n //Filter only numbers from the input\n const cleaned = ('' + str).replace(/\\D/g, '');\n\n //Check if the input is of correct\n const match = cleaned.match(/^(1|)?(\\d{3})(\\d{3})(\\d{4})$/);\n\n if (match) {\n //Remove the matched extension code\n //Change this to format for any country code.\n const code = match[1] ? '1' : '1';\n const number = [match[2], match[3], match[4]].join('');\n return { code, number };\n }\n\n return str;\n}\n\n/**\n * @typedef {object} phoneNumber\n * @property {string} phoneNumber phone number\n * @property {boolean} [error] phone number error\n */\n/**\n * @param {Array.} numbers - Phone numbers from twilio api.\n * @returns {[Array.,Array.]} - Return a array with purchased phones and failed phones.\n */\nexport function parseSavedNumbers(numbers) {\n const purchasedNumbers = numbers.filter((item) => !item.error);\n const failedNumbers = numbers.filter((item) => item.error);\n console.log('numbers with errors', JSON.stringify(numbers)); //numbers with errors [{\"error\":true,\"phoneNumber\":\"+1 (855) 353-4991\"}]\n return [purchasedNumbers, failedNumbers];\n}\n/**\n * Given a array of phone object returns and string with the concatenated phones.\n *\n * @param {Array.} numbers phonenumbers\n * @returns {string} string of the phone number\n */\nexport function getPhoneNumbersString(numbers) {\n const phones = numbers.map((item) => item.phoneNumber);\n return phones.join(', ');\n}\n/**\n * Given and number object returns and string of the phone number.\n *\n * @param {object} phoneNumber phonenumbers\n * @returns {string} string of the phone number\n */\nexport function getPhoneNumberStr(phoneNumber) {\n return `+${phoneNumber.number.code}${phoneNumber.number.number}`;\n}\n","import { getRandomNumber } from '../../shared/helpers';\nimport { getLeadFullName, getLeadPhoneNumbers } from '../leads/leads-utils';\nimport { parsePhoneNumber } from '../my-account/phone-numbers/phone-numbers-utils';\nimport { TWILIO_ERROR_CODES } from './phone-calls-model';\nimport moment from 'moment';\nimport {\n createLeadCallCadence,\n fetchCallInfo,\n fetchLeadCallCadenceAndAgency,\n updateLeadCallCadence,\n} from './phone-calls-actions';\n\n/**\n * WARNING: This function only format phone numbers with the +1 us code\n *\n * @param {string} str Phone number without format or spaces\n * @returns {string} Formated phone number or the give string if doesn't the pattern\n */\nexport function formatPhoneNumber(str) {\n //Filter only numbers from the input\n const cleaned = ('' + str).replace(/\\D/g, '');\n\n //Check if the input is of correct\n const match = cleaned.match(/^(1|)?(\\d{3})(\\d{3})(\\d{4})$/);\n\n if (match) {\n //Remove the matched extension code\n //Change this to format for any country code.\n const intlCode = match[1] ? '+1 ' : '';\n return [intlCode, '(', match[2], ') ', match[3], '-', match[4]].join('');\n }\n\n return str;\n}\n\n/**\n *\n * @param {Array} list List of lead object with phone numbers\n * @returns {Array} List of phone number\n */\nexport function mapPhoneNumberList(list) {\n const newList = list.reduce((prev, current) => {\n const leadName = getLeadFullName(current);\n const phones = getLeadPhoneNumbers(current);\n\n if (phones) {\n const mappedPhones = phones.map((item) => ({\n leadName,\n phone: item.phone.number,\n formatedPhone: formatPhoneNumber(item.phone.number),\n leadId: current.id,\n }));\n return [...prev, ...mappedPhones];\n } else {\n return [...prev];\n }\n }, []);\n return newList;\n}\n\nconst timeFormats = [\n { singular: 'second', plural: 'seconds', d: 1000 },\n { singular: 'minute', plural: 'minutes', d: 60 },\n { singular: 'hour', plural: 'hours', d: 60 },\n { singular: 'day', plural: 'days', d: 24 },\n { singular: 'month', plural: 'months', d: 30 },\n { singular: 'year', plural: 'years', d: 12 },\n];\n\n/**\n * Formats a milisecons representation into a valid duration label\n *\n * @param {number} duration - Time in miliseconds to format\n * @param {object} formats - The formats to transform the time\n * @param {number} depth - The depth at which the algorithm is running\n *\n * @returns {string|null} - The appropiate duration label or null if a invalid format is passed\n */\nexport function formatDuration(duration, formats = timeFormats, depth = 0) {\n const [format] = formats;\n\n if (!format || !format.singular || !format.plural || !format.d) return null;\n\n if (duration === 0) return '0 seconds';\n\n const result = duration / format.d;\n\n if (result < 1) {\n if (depth === 0) return `${Math.floor(result)} ${format.plural}`;\n\n return null;\n }\n\n const next = formatDuration(result, formats.slice(1), depth + 1);\n\n if (!next) return `${Math.floor(result)} ${result >= 2 ? format.plural : format.singular}`;\n\n return next;\n}\n\n/**\n * This function use a list of twilio offline errors and check if the error code exists in the list\n * If it exists return true and handle the error in the offline calbback\n * If not return false so the error is triggered for other reason\n *\n * @param {object} error Twilio error object\n * @param {number} error.code Error code\n * @returns {boolean} Boolean to show or not the error\n *\n */\nexport function twilioConnectionErrors(error) {\n return TWILIO_ERROR_CODES.includes(error.code);\n}\n\n/**\n *\n * @typedef {object} leadStage\n * @property {string} id Id of the stage\n * @property {string} name Name of the stage\n */\n/**\n *\n * @typedef {object} selectOption\n * @property {string} id Id of the stage\n * @property {string} name Name of the stage\n */\n/**\n * @param {Array} list Array of lead stages\n * @returns {Array} Array of select option objects\n */\nexport function parseListToSelectOptions(list) {\n return list.map((item) => {\n if (typeof item === 'string') {\n return { label: item, value: item };\n }\n const { name, id } = item;\n return { label: name, value: id };\n });\n}\n\n/**\n * Transforms an integer second value into a minutes:seconds format\n *\n * @param {number} value - The value in seconds to format\n *\n * @returns {string} The minute:second format string\n */\nexport const formatSeconds = (value) => {\n const rawSeconds = parseInt(value);\n\n let minutes = Math.floor(rawSeconds / 60);\n let seconds = rawSeconds - minutes * 60;\n\n if (minutes < 10) minutes = `0${minutes}`;\n\n if (seconds < 10) seconds = `0${seconds}`;\n\n return `${minutes}:${seconds}`;\n};\n\n/**\n * @param {Array} numbers - numbers\n * @param {string} phoneNumber - Phone number to search.\n * @returns {object} - Phonenumber object.\n */\nexport function getBestPhoneNumber(numbers, phoneNumber, isTollFree = false) {\n //list of toll-free number prefixes, updated every 3-5 years by the FCC\n let tollFreePrefixes = ['800', '833', '844', '855', '866', '877', '888'];\n const { number } = parsePhoneNumber(phoneNumber);\n\n let selectedNumber;\n\n if (isTollFree) {\n selectedNumber = numbers.find((item) => {\n if (tollFreePrefixes.includes(item?.number?.number?.slice(0, 3))) {\n return true;\n }\n return false;\n });\n } else {\n selectedNumber = numbers.find((item) => {\n if (item?.number?.number?.slice(0, 2) === number?.slice(0, 2)) {\n return true;\n }\n return false;\n });\n }\n console.log('selected number', selectedNumber);\n if (selectedNumber) {\n return selectedNumber;\n }\n\n const randomIndex = getRandomNumber(0, numbers.length - 1);\n\n return numbers[randomIndex];\n}\n\n/**\n * Given the date an automatic flow on a lead starts\n * return the interval the lead is in\n *\n * @param {object} config - The lead's call cadence object\n * @returns {string} The interval the lead is in\n */\nexport function getCadenceInterval(config) {\n if (!config) return null;\n\n const createdAt = moment(config.createdAt);\n\n if (createdAt > moment().subtract(1, 'day')) {\n return 'day1';\n } else if (createdAt > moment().subtract(7, 'days') && createdAt < moment().subtract(2, 'days')) {\n return 'day2To7';\n } else if (\n createdAt > moment().subtract(30, 'days') &&\n createdAt < moment().subtract(8, 'days')\n ) {\n return 'day8To30';\n } else if (\n createdAt > moment().subtract(89, 'days') &&\n createdAt < moment().subtract(31, 'days')\n ) {\n return 'day31To89';\n }\n}\n\n/**\n * Updates or creates the call cadence for a given lead.\n *\n * This function fetches the current call cadence for the lead, determines the appropriate interval,\n * and either updates the existing cadence or creates a new one.\n *\n * @param {string} leadId - The ID of the lead for which to handle the call cadence.\n * @param {string} callSid - The ID of the call on twilio platform related to the lead.\n * @returns {Promise} A promise that resolves when the operation is complete.\n */\nexport async function handleLeadCallCadence(leadId, callSid) {\n const lead = await fetchLeadCallCadenceAndAgency(leadId);\n const callInfo = await fetchCallInfo(callSid, lead.campaign.agency.twilioSID);\n const interval = getCadenceInterval(lead.callCadence);\n\n if (interval) {\n updateLeadCallCadence(lead.callCadence.id, {\n [interval]: lead.callCadence[interval] + 1,\n lastCalled: callInfo.startTime,\n });\n } else {\n createLeadCallCadence({\n day1: 1,\n lastCalled: callInfo.startTime,\n lead: { connect: { id: leadId } },\n });\n }\n}\n","import { useEffect } from 'react';\nimport { useQuery } from '@apollo/client/react/hooks';\nimport {\n USER_STATUS_LIST_SUBSCRIPTION,\n USER_STATUS_LIST_QUERY,\n} from '../../modules/user-status/user-status-queries';\nimport { UserStatus } from '@cobuildlab/lead-volt-share';\nimport { useUser } from './useUser';\n\n/**\n * @typedef {'ON A CALL' | 'AWAY' | 'ACTIVE' | 'WITH CLIENT' | 'WRAPPING ON A CALL'} statuses\n */\n/**\n * Hook for manage the current user status and handle the change of it\n *\n * @returns {statuses} User status type string.\n */\nexport function useUserStatus() {\n const [user] = useUser();\n const { data, loading, subscribeToMore } = useQuery(USER_STATUS_LIST_QUERY, {\n variables: {\n user: user?.id,\n },\n fetchPolicy: 'network-only',\n });\n //console.log('user from useuserstatus', user)\n //console.log('data from useuserstatus', data)\n\n useEffect(() => {\n const unsubscribe = subscribeToMore({\n document: USER_STATUS_LIST_SUBSCRIPTION,\n variables: {\n user: user.id,\n },\n updateQuery: (_, { subscriptionData }) => {\n return {\n userStatusesList: {\n items: [subscriptionData.data.UserStatus.node],\n },\n };\n },\n onError: (e) => console.log('useUserStatus error', e, user),\n });\n\n return () => {\n unsubscribe();\n };\n }, [user, subscribeToMore]);\n\n if (!data || loading) {\n return UserStatus.AWAY;\n }\n\n const { userStatusesList } = data;\n const [status] = userStatusesList.items;\n\n if (!status) {\n return UserStatus.ACTIVE;\n }\n\n return status.status;\n}\n","import { useEffect, useState, useRef, useCallback } from 'react';\nimport {\n initializeTwilioClient,\n createPhoneCallRegistry,\n fetchLeadStages,\n fetchPhoneNumbers,\n fetchCallParticipant,\n} from './phone-calls-actions';\nimport { TwilioDevice } from './twilio';\nimport {\n DEVICE_EVENTS,\n callControlsDefaultState,\n AUTOMATIC_CALLS_STATUSES,\n CALL_TYPES,\n} from './phone-calls-model';\nimport { useUser } from '../../shared/hooks/useUser';\nimport { createUserStatus } from '../user-status/user-status-actions';\nimport { USER_STATUSES } from '../user-status/user-status-model';\nimport * as toast from 'shared/components/toast/Toast';\nimport {\n getBestPhoneNumber,\n twilioConnectionErrors,\n handleLeadCallCadence,\n} from './phone-calls-utils';\nimport { useUserStatus } from '../../shared/hooks/useUserStatus';\nimport socketIOClient from 'socket.io-client';\nimport { getUserToken } from '../../shared/helpers';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { getLeadFullName } from '../leads/leads-utils';\nimport { useHistory } from 'react-router-dom';\nimport {\n OnCallStartError,\n OnCallStartEvent,\n OnFetchCallParticipant,\n OnLeadStagesListError,\n OnLeadStagesListEvent,\n onOnlineUsersList,\n OnPhoneCallFinishedEvent,\n OnPhoneCallRegistryError,\n OnPhoneCallRegistryEvent,\n onPhoneNumberList,\n} from './phone-calls-events';\nimport { useEvent, useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { OnUserStatusCreateEvent } from 'modules/user-status/user-status-events';\n\nconst dispatcherEndpoint = process.env.REACT_APP_DISPATCHER_ENDPOINT;\n\n/**\n * @param {string} event Twilio devaice event name\n * @param {Function} callback Callback when the ever is fire\n */\nexport function useTwilioDeviceSubscription(event, callback) {\n const subscriptionRef = useRef(callback);\n subscriptionRef.current = callback;\n useEffect(() => {\n const subscriptionCallback = (params) => {\n subscriptionRef.current(params);\n };\n TwilioDevice.on(event, subscriptionCallback);\n return () => {\n console.log('call: removing event listener from TwilioDevice');\n TwilioDevice.removeListener(event, subscriptionCallback);\n };\n }, [event]);\n}\n/**\n * @typedef {object} PhoneCallComponent\n * @property {boolean} ready Enable or desable the component\n * @property {boolean} startingCall Enable or desable the component when a call is starting\n *\n * @property {Function} makeCall Callback to starts the calls\n */\n/**\n * Hook to make a phone call component\n * this allows the component to initialize t\n * he twilio device on render and the phone calls methods and properties\n *\n * @param {boolean} shouldInit Indicates if the hook should init.\n * @returns {PhoneCallComponent} Object with the properties and methods from the phone calls provider to use in others components\n */\nexport function usePhoneCallComponent(shouldInit = true) {\n const [ready, setReady] = useState(TwilioDevice.isInitialized);\n const [startingCall, setStartingCall] = useState(false);\n const [user] = useUser();\n const agency = useAgency();\n const phoneNumbers = useEvent(onPhoneNumberList);\n\n const isReady = phoneNumbers && ready ? true : false;\n\n console.log('TWILIODEVICE', TwilioDevice);\n\n useEventSubscription(OnCallStartEvent, () => {\n setReady(false);\n });\n\n useEventSubscription(OnPhoneCallFinishedEvent, () => {\n setReady(true);\n });\n\n useEventSubscription(OnPhoneCallRegistryEvent, () => {\n setStartingCall(false);\n });\n\n const makeCall = useCallback(\n /**\n * Initiates a phone call by selecting the best available phone number,\n * dispatching relevant events, and updating the user's status.\n *\n * @function makeCall\n * @param {string} phoneNumber - The phone number to call.\n * @param {string} receiverName - The name of the person receiving the call.\n * @param {string} [leadId] - Optional lead id related to the call.\n */\n async (phoneNumber, receiverName, leadId) => {\n const { id: userId } = user;\n\n if (phoneNumbers.length === 0) {\n return OnCallStartError.dispatch('There are no available phone numbers on this agency');\n }\n\n const callerNumber = getBestPhoneNumber(phoneNumbers, phoneNumber);\n\n OnCallStartEvent.dispatch({\n phoneNumber,\n receiverName,\n lead: leadId,\n type: leadId ? 'lead' : 'default',\n });\n\n setStartingCall(true);\n\n createPhoneCallRegistry(\n { to: phoneNumber, from: callerNumber.id, userId, agencyId: agency.id },\n leadId,\n );\n\n createUserStatus({\n status: USER_STATUSES.ON_A_CALL,\n user: userId,\n });\n },\n [user, agency, phoneNumbers],\n );\n\n const onReady = useCallback(() => {\n console.log('TWILIO DEVICE READY');\n setReady(true);\n }, []);\n\n const onError = useCallback((error) => {\n const connectionError = twilioConnectionErrors(error);\n console.log('TWILIO CONN ERROR', connectionError);\n if (connectionError) {\n setReady(false);\n }\n }, []);\n\n const onOffline = useCallback(() => {\n console.log('TWILIO DEVICE OFFLINE');\n setReady(false);\n }, []);\n\n useTwilioDeviceSubscription(DEVICE_EVENTS.ready, onReady);\n useTwilioDeviceSubscription(DEVICE_EVENTS.error, onError);\n useTwilioDeviceSubscription(DEVICE_EVENTS.offline, onOffline);\n\n return { ready: isReady, makeCall, startingCall };\n}\n\n/**\n * Hook to wrap all the logic of the phone call controls\n *\n * @typedef {object} PhoneCallControls\n * @property {boolean} show To show or not the phone call controls\n * @property {boolean} muted Mute state to update the toggle mute btn styling\n * @property {boolean} calling State of current call\n * @property {number} duration Duration of the current connected phone call in milisecons\n * @property {string} phoneNumber Receiver phone number\n * @property {string} receiverName Receiver phone number to display in the controls\n * @property {string} phoneCallType Type of the current phone call\n * @property {string} lead Id of lead related to the call\n * @property {string} phoneCallId Id of phone call\n * @property {Function} muteToggle Toggle mute state of the current phone call\n * @property {Function} handleVoiceMail Hangup and set phone call as rejected\n * @property {Function} handleHangUp Hangup and set phone call as finished\n * @property {Function} handleHangUp Hangup and set phone call as finished\n * @property {Function} close To hide the control and form\n */\n\n/**\n * @returns {PhoneCallControls} Object with the properties and methods\n */\nexport function usePhoneCallControls() {\n const [{ connection, ...state }, setState] = useState(callControlsDefaultState);\n const [muted, setMuted] = useState(false);\n const [user] = useUser();\n const audioStream = useRef(null);\n const microphoneStream = useRef(null);\n const agency = useAgency();\n const [showDialPad, setShowDialPad] = useState(false);\n const [isErrorToastShowing, setIsErrorToastShowing] = useState(false);\n const history = useHistory();\n\n const closeDialPad = () => setShowDialPad(false);\n const toggleDialPad = () => setShowDialPad((prevState) => !prevState);\n\n useEffect(() => {\n initializeTwilioClient(user.id, agency.id);\n }, [agency, user]);\n\n /**\n * Effect that fetches the agency's\n * available phone numbers every 20 minutes\n */\n useEffect(() => {\n const {\n company: { subscriptions },\n } = agency;\n const [subscription] = subscriptions.items;\n\n const fecthNumbers = async () => {\n const list = await fetchPhoneNumbers(agency.id, subscription.status);\n onPhoneNumberList.dispatch(list);\n };\n\n const minutes = 20;\n const ms = minutes * 60 * 1000; // Minutes to milisecons\n\n fecthNumbers(); // Call on mount\n const interval = setInterval(fecthNumbers, ms); // Call every setted minutes\n\n return () => clearInterval(interval);\n }, [agency]);\n\n /**\n * Effect that handles subscriptions\n * once the app is connected to a call\n */\n useEffect(() => {\n if (connection) {\n const onAccept = () => {\n createUserStatus({\n status: USER_STATUSES.ON_A_CALL,\n user: user.id,\n });\n };\n\n const onCancel = () => {\n console.log('call: cancel event triggered, disconnecting call');\n TwilioDevice.disconnectAll();\n };\n\n connection.on(DEVICE_EVENTS.accept, onAccept);\n connection.on(DEVICE_EVENTS.cancel, onCancel);\n connection.on(DEVICE_EVENTS.reject, onCancel);\n\n return () => {\n connection.removeListener(DEVICE_EVENTS.accept, onAccept);\n connection.removeListener(DEVICE_EVENTS.cancel, onCancel);\n connection.removeListener(DEVICE_EVENTS.reject, onCancel);\n };\n }\n }, [connection, user]);\n\n const close = useCallback(async () => {\n setState(callControlsDefaultState);\n\n await createUserStatus({\n status: USER_STATUSES.ACTIVE,\n user: user?.id,\n });\n console.log('CALL CLOSED');\n OnPhoneCallFinishedEvent.dispatch();\n }, [user]);\n\n const acceptCall = useCallback(\n (lead) => {\n connection.accept();\n if (lead) {\n history.push(`/leads/${lead.id}`);\n }\n setState((prevState) => ({\n ...prevState,\n ringing: false,\n calling: true,\n }));\n },\n [connection, history],\n );\n\n const ignoreCall = useCallback(() => {\n connection.ignore();\n console.log('call ignored');\n close();\n }, [connection, close]);\n\n const rejectCall = useCallback(() => {\n connection.reject();\n console.log('call rejected');\n close();\n }, [connection, close]);\n\n const sendDialDigit = useCallback(\n (digit) => {\n connection.sendDigits(digit);\n },\n [connection],\n );\n\n const muteToggle = useCallback(() => {\n if (connection) {\n setMuted((muted) => {\n const mute = !muted;\n connection.mute(mute);\n return mute;\n });\n }\n }, [connection]);\n\n const handleHangUp = useCallback(() => {\n TwilioDevice.disconnectAll();\n console.log('disconnected all devices');\n }, []);\n\n const handleVoiceMail = useCallback(\n (audio) => {\n console.log('call: Handling voicemail');\n if (connection) {\n const AudioContext = window.AudioContext || window.webkitAudioContext;\n\n if (AudioContext) {\n if (audioStream.current) {\n connection.mediaStream.setInputTracksFromStream(audioStream.current.stream);\n audio.play();\n } else {\n const context = new AudioContext();\n const track = context.createMediaElementSource(audio);\n const output = context.createMediaStreamDestination();\n\n track.connect(output);\n connection.mediaStream.setInputTracksFromStream(output.stream);\n audio.play();\n }\n } else {\n toast.attention('Your browser does not support this feature');\n }\n } else {\n toast.attention('The phone call it is not connected');\n }\n },\n [connection],\n );\n\n const handleVoiceMailEnded = useCallback(() => {\n console.log('call: Voicemail ended');\n if (connection) {\n const AudioContext = window.AudioContext || window.webkitAudioContext;\n\n if (AudioContext) {\n const context = new AudioContext();\n\n if (microphoneStream.current) {\n microphoneStream.current.getTracks().forEach((track) => track.stop());\n }\n\n navigator.mediaDevices.getUserMedia({ audio: true }).then((stream) => {\n const track = context.createMediaStreamSource(stream);\n const output = context.createMediaStreamDestination();\n\n track.connect(output);\n\n connection.mediaStream.setInputTracksFromStream(output.stream);\n\n context.resume();\n\n microphoneStream.current = stream;\n handleHangUp();\n });\n }\n } else {\n toast.attention('The phone call is not connected');\n }\n }, [connection, handleHangUp]);\n\n useEventSubscription(OnCallStartError, (message) => toast.error(message));\n\n /**\n * After a phone call record is created in 8base,\n * this subscription triggers to start the phone call\n */\n useEventSubscription(OnPhoneCallRegistryEvent, ({ phoneCallCreate: call }) => {\n const customParameters = call?.lead?.id\n ? { id: call.id, leadId: call.lead.id }\n : { id: call.id };\n\n const conn = TwilioDevice.connect(customParameters);\n\n setState((prevState) => ({\n ...prevState,\n show: true,\n calling: true,\n type: CALL_TYPES.OUTBOUND,\n _type: CALL_TYPES.OUTBOUND,\n callId: call.id,\n from: `+${call.from.number.code}${call.from.number.number}`,\n to: `+1${call.to}`,\n lead: call.lead ? call.lead : null,\n duration: 0,\n connection: conn,\n }));\n console.log('CALL STATE: ', state);\n });\n\n useEventSubscription(OnPhoneCallRegistryError, (e) => {\n toast.error(e.message);\n });\n\n /**\n * After an inbound connection gets to this client,\n * a request is made to get the data of the call,\n * in this subscription the info of the call is set\n * on the hook's state\n */\n useEventSubscription(\n OnFetchCallParticipant,\n (data) => {\n console.log('data from fetchcallparticipant', data);\n if (data) {\n const { inboundCall, outboundCall } = data.phoneCallParticipant;\n const id = inboundCall?.id || outboundCall?.id;\n const _type = inboundCall ? CALL_TYPES.INBOUND : CALL_TYPES.OUTBOUND;\n const lead = inboundCall?.lead || outboundCall?.lead;\n const from =\n inboundCall?.from ||\n `+${outboundCall.from.number.code}${outboundCall.from.number.number}`;\n const to =\n outboundCall?.to || `+${inboundCall.to.number.code}${inboundCall.to.number.number}`;\n\n setState((prevState) => {\n const isCalling = prevState.connection && prevState.connection.status() !== 'closed';\n console.log('prevState isCalling', { prevState, isCalling });\n return {\n ...prevState,\n show: true,\n callId: id,\n to,\n from,\n calling: isCalling,\n type: CALL_TYPES.INBOUND,\n _type: _type,\n ringing: true,\n lead: lead ? lead : null,\n };\n });\n console.log('LEAD', lead);\n }\n },\n [],\n );\n\n /**\n * Twilio subscription that is triggered when an outbound call\n * is connected or when an inbound call connection is accepted\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.connect, (conn) => {\n /**@type {string | undefined}*/\n const leadId = conn.customParameters.get('leadId');\n\n /**@type {string | undefined}*/\n const callSid = conn.parameters.CallSid;\n\n if (leadId) handleLeadCallCadence(leadId, callSid);\n\n const start = Date.now();\n\n /**\n * Calculate call duration every 500ms\n */\n const interval = setInterval(() => {\n setState((prevState) => ({\n ...prevState,\n duration: Date.now() - start,\n }));\n }, 500);\n\n setState((prevState) => ({\n ...prevState,\n interval,\n }));\n });\n\n /**\n * Twilio subscription that triggers when an incoming\n * phone call gets to the client, with the connection object\n * the call can be accepter, ignored, rejected, etc\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.incoming, (conn) => {\n const id = conn.customParameters.get('id');\n console.log('CALL INCOMING', conn);\n setState((prevState) => ({\n ...prevState,\n connection: conn,\n }));\n\n fetchCallParticipant(id);\n });\n\n /**\n * Twilio subscription that is triggered\n * every time a connection is closed\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.disconnect, () => {\n clearInterval(state.interval);\n console.log('CONNECTION ENDED');\n\n if (audioStream.current) {\n audioStream.current.stream.getTracks().forEach((track) => track.stop());\n }\n\n if (microphoneStream.current) {\n microphoneStream.current.getTracks().forEach((track) => track.stop());\n }\n\n setState((prevState) => ({\n ...prevState,\n interval: null,\n calling: false,\n }));\n\n if (!state.lead) {\n close();\n }\n });\n\n /**\n * Twilio subscription that is triggered when a call is canceled\n * either by the user or by the cloud function when\n * other user answers the call\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.cancel, () => {\n setState((prevState) => ({\n ...prevState,\n interval: null,\n calling: false,\n }));\n console.log('DEVICE CALL CANCELED');\n if (!state.lead) {\n close();\n }\n });\n\n /**\n * Twilio subscription to handle\n * connection errors\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.error, (error) => {\n const isError = twilioConnectionErrors(error);\n\n if (!isError) {\n const message = `Phone call error: ${error.message}`;\n\n toast.error(message);\n } else {\n const { code } = error;\n\n if (code === 31002) {\n toast.attention('Call declined');\n handleHangUp();\n }\n\n // This code reference an error related to the phone number to call\n if (code === 31001) {\n toast.error(\"Can't call this number\");\n }\n\n // This errors means that the token has expired so we fetch a new one\n if (code === 31205 || code === 31204) {\n initializeTwilioClient(user.id, agency.id, true);\n }\n }\n });\n\n /**\n * Twilio subscription that is triggered when\n * the connection drops or the device's token\n * expires\n */\n useTwilioDeviceSubscription(DEVICE_EVENTS.offline, () => {\n if (!isErrorToastShowing) {\n setIsErrorToastShowing(true);\n toast.error(\n \"Connection lost: can't make phone call until the connection returns.\",\n setIsErrorToastShowing,\n );\n }\n });\n\n return {\n // Values\n show: state.show,\n duration: state.duration,\n from: state.from,\n to: state.to,\n lead: state.lead,\n calling: state.calling,\n type: state.type,\n _type: state._type,\n callId: state.callId,\n campaign: state.campaign,\n ringing: state.ringing,\n muted,\n showDialPad,\n // Methods\n muteToggle,\n handleVoiceMail,\n handleVoiceMailEnded,\n handleHangUp,\n close,\n acceptCall,\n ignoreCall,\n rejectCall,\n toggleDialPad,\n closeDialPad,\n sendDialDigit,\n };\n}\n\n/**\n *\n * @typedef {object} leadStage\n * @property {string} id Id of the stage\n * @property {string} name Name of the stage\n */\n/**\n * @returns {Array} Array of select option objects\n */\nexport function useLeadStages() {\n const [{ list, loading }, setList] = useState({ list: [], loading: true });\n\n useEffect(() => {\n fetchLeadStages();\n }, []);\n useEventSubscription(OnLeadStagesListEvent, ({ leadStagesList: { items } }) => {\n setList({ list: items, loading: false });\n });\n useEventSubscription(OnLeadStagesListError, (e) => {\n setList({ list: [], loading: false });\n toast.error(JSON.stringify(e));\n });\n return [list, loading];\n}\n\n/**\n * Hook tha handle the automatic calls logic\n *\n * @param {object} auth - Auth object.\n *\n * @returns {object} Array\n */\nexport function useAutomaticCalls(auth) {\n const agency = useAgency();\n const socketRef = useRef(null);\n const status = useUserStatus();\n const { ready, makeCall } = usePhoneCallComponent(status === USER_STATUSES.ACTIVE);\n const [user] = useUser();\n const history = useHistory();\n const [active, setActive] = useState(false);\n const [statusType, setStatusType] = useState(AUTOMATIC_CALLS_STATUSES.ON);\n const [socket, setSocket] = useState();\n const userId = user.id;\n const agencyId = agency.id;\n // TODO: remove the optional operator when we are sure that all agencies has their config relation\n const agencySetting = agency?.phoneCallSettings?.automaticCalls;\n\n const requestLead = useCallback(() => {\n socket.emit('lead:request');\n setStatusType(AUTOMATIC_CALLS_STATUSES.ON_AND_REQUESTING);\n }, [socket]);\n\n const makeCallToLead = useCallback(\n (phone, lead) => {\n const tel = `${phone.number}`;\n const name = getLeadFullName(lead);\n\n makeCall(tel, name, lead.id);\n history.push(`/leads/${lead.id}`);\n },\n [history, makeCall],\n );\n\n useEffect(() => {\n if (active && status !== USER_STATUSES.ACTIVE) {\n setStatusType(AUTOMATIC_CALLS_STATUSES.ON);\n }\n }, [active, status]);\n\n const startRequesting = useCallback(() => {\n if (status !== USER_STATUSES.ACTIVE || !active || !agencySetting || !ready) {\n return;\n }\n requestLead();\n }, [ready, active, agencySetting, requestLead, status]);\n\n /**\n * Effect which handles socket connection to call dispatcher.\n */\n useEffect(() => {\n if (!userId || !agencyId) {\n return;\n }\n\n const token = getUserToken();\n\n const socketClient = socketIOClient(dispatcherEndpoint, {\n query: {\n token,\n agency: agencyId,\n user: userId,\n lastConnection: localStorage.getItem('lastConnection'),\n },\n });\n console.log('call: useAutomaticCalls socketClient', socketClient);\n setSocket(socketClient);\n\n return () => {\n socketClient.removeAllListeners();\n socketClient.close();\n };\n }, [agencyId, userId]);\n\n /**\n * Effect which handles lead requests to socket server.\n */\n useEffect(() => {\n if (!socket) {\n return;\n }\n\n startRequesting();\n\n socket.on('reconnect', startRequesting);\n\n return () => {\n socket.removeListener('reconnect', startRequesting);\n };\n }, [socket, startRequesting]);\n\n useEventSubscription(OnUserStatusCreateEvent, () => {\n if (!socket) {\n return;\n }\n\n socket.emit('users:status-change');\n });\n\n useEffect(() => {\n if (!socket) {\n return;\n }\n const onlineUsersCallback = (data) => {\n const lastConnection = localStorage.getItem('lastConnection');\n const isOldConnection = data.some(\n (d) => d.id === userId && d.lastConnection > lastConnection,\n );\n\n if (isOldConnection) {\n localStorage.clear();\n auth.authClient.logout();\n } else {\n onOnlineUsersList.dispatch(data);\n }\n };\n socket.on('users:list', onlineUsersCallback);\n return () => {\n socket.removeListener('users:list', onlineUsersCallback);\n };\n }, [auth.authClient, socket, userId]);\n\n useEffect(() => {\n /**\n * If the socket is set and automatic calls\n * are active, subscribe to error events\n */\n if (socket && active) {\n let timeout = 0;\n\n const onError = ({ code }) => {\n if (code === 2) {\n toast.attention('No more leads to call today...');\n /**\n * This code means that there is no more leads\n * so we wait 1 minute to request more leads\n */\n timeout = setTimeout(() => requestLead(socket), 60000);\n }\n };\n\n socket.on('lead:failed-request', onError);\n\n return () => {\n socket.removeListener('lead:failed-request', onError);\n clearTimeout(timeout);\n };\n }\n }, [socket, active, requestLead]);\n\n useEffect(() => {\n if (socket && active) {\n const onResponse = (lead) => {\n const { phones } = lead;\n const phone = phones && phones[0];\n\n // TODO: make that the dispatcher query exclude the leads without phone numbers\n if (!phone && phones.length === 0) {\n requestLead(socket);\n return;\n }\n\n makeCallToLead(phone, lead);\n };\n\n socket.on('lead:response', onResponse);\n\n return () => {\n socket.removeListener('lead:response', onResponse);\n };\n }\n }, [socket, active, makeCallToLead, requestLead]);\n\n useEventSubscription(OnPhoneCallFinishedEvent, () => {\n const socket = socketRef.current;\n if (socket) {\n requestLead(socket);\n }\n });\n\n useEventSubscription(OnPhoneCallRegistryEvent, () => {\n setStatusType(AUTOMATIC_CALLS_STATUSES.ON_AND_IN_A_CALL);\n });\n\n return { active, setActive, statusType, agencySetting };\n}\n","import React from 'react';\nimport styled from 'styled-components';\nimport { Menu, Loader, Row } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport { dialerWidth } from '../phone-calls-model';\nimport { customScrollBar } from 'shared/css/mixins';\n\nconst width = dialerWidth;\nconst DropdownList = styled.div`\n position: absolute;\n left: calc(100% + ${width / 7 / 2}px);\n top: calc(100% + 10px);\n width: ${(width / 7) * 6}px;\n display: ${({ isOpen }) => (isOpen ? 'block' : 'none')};\n`;\n\nconst MenuOption = styled(Menu.Item)`\n min-height: 32px;\n &:hover span {\n color: var(--color-primary);\n }\n`;\n\nconst MenuContainer = styled.div`\n max-height: 120px;\n overflow: auto !important;\n ${customScrollBar}\n`;\n\n/**\n * React portal for render the control outside main react tree\n * It renders in a div with the id=phone-calls-controls at the root of the body\n *\n * @param {object} props Props\n * @param {boolean} props.isOpen Boolean to shows or not the list\n * @param {boolean} props.loading Boolean to shows or not the loading component\n * @param {boolean} props.loadingPaginate Boolean when loading paginate\n * @param {Function} props.setNumber Function to set the number\n * @param {number} props.count amount of data\n * @param {Array} props.data Array with the data for the numbers\n * @param {object} ref Ref to scroll pagination\n * @returns {object} React element\n */\nconst DialerPhones = ({ isOpen, setNumber, data, loading, loadingPaginate, count }, ref) => {\n return (\n \n \n \n {loading ? (\n \n \n \n ) : (\n <>\n {data.map(({ leadName, phone, formatedPhone, leadId }, i) => (\n setNumber(phone, formatedPhone, leadName, leadId)}>\n \n {leadName}: {formatedPhone}\n \n \n ))}\n {loadingPaginate && (\n \n \n \n )}\n
    \n {count === 0 && (\n \n
    No registered phone numbers
    \n
    \n )}\n \n )}\n \n
    \n
    \n );\n};\n\nexport default React.forwardRef(DialerPhones);\n\nDialerPhones.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n setNumber: PropTypes.func.isRequired,\n data: PropTypes.arrayOf(PropTypes.object).isRequired,\n loading: PropTypes.bool.isRequired,\n loadingPaginate: PropTypes.bool.isRequired,\n count: PropTypes.number.isRequired,\n};\n","import React, { useState, useCallback, useEffect, useRef } from 'react';\nimport styled from 'styled-components';\nimport { InputField, Button } from '@8base/boost';\nimport { usePhoneCallComponent } from '../phone-calls-hooks';\nimport { getActiveAgency } from '../../../shared/utils/agency-utils';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchLeadPhoneList } from '../phone-calls-actions';\nimport { mapPhoneNumberList } from '../phone-calls-utils';\nimport { isValidPhoneNumber } from '../../../shared/validators';\nimport * as toast from 'shared/components/toast/Toast';\nimport { filterList } from '../../../shared/utils';\nimport DialerPhones from './DialerPhones';\nimport { dialerWidth } from '../phone-calls-model';\nimport { useInfinityPagination } from '../../../shared/hooks/useInfinityPagination';\nimport { OnLeadPhonesListEvent } from '../phone-calls-events';\n\nconst Container = styled.div`\n position: absolute;\n left: 100%;\n top: 0;\n height: 100%;\n width: ${dialerWidth}px;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n background-color: white;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px;\n z-index: 100;\n`;\nconst Icon = styled.img`\n height: 1.5em;\n`;\n\nconst callPhoneIconUrl = require('shared/assets/images/call-phone.svg');\n/**\n * Dialer component to shows in side menu\n * Can makes calls using of phone numbers fetched from the database\n *\n * @returns {object} React Element\n */\nexport const Dialer = () => {\n const [{ showList, number, viewNumber, filter, leadName }, setState] = useState({\n showList: false,\n number: '',\n leadName: '',\n leadId: null,\n viewNumber: '',\n filter: '',\n });\n\n const [{ phoneList, loadingPhoneList, loadingPaginate, count }, setPhoneList] = useState({\n loadingPhoneList: true,\n loadingPaginate: false,\n phoneList: [],\n count: 0,\n });\n\n const { id: agencyId } = getActiveAgency();\n\n const { makeCall, ready, startingCall } = usePhoneCallComponent() || {};\n const dialerRef = useRef();\n const { page } = useInfinityPagination({\n externalRef: loadingPhoneList ? null : dialerRef,\n loading: loadingPhoneList || loadingPaginate,\n numberOfCurrentItems: phoneList.length,\n total: count,\n });\n\n useEffect(() => {\n console.log('TWILIO DIALER READY', ready);\n }, [ready]);\n\n useEffect(() => {\n setPhoneList((state) => ({\n ...state,\n loadingPaginate: page > 1,\n }));\n fetchLeadPhoneList(agencyId, page);\n }, [agencyId, page]);\n\n useEventSubscription(OnLeadPhonesListEvent, ({ leadsList: { items, count } }) => {\n const phones = mapPhoneNumberList(items);\n\n setPhoneList((state) => ({\n ...state,\n count,\n loadingPhoneList: false,\n loadingPaginate: false,\n phoneList: [...phoneList, ...phones],\n }));\n });\n\n const setNumber = useCallback((num, viewNum, name, id) => {\n setState((state) => ({\n ...state,\n number: num,\n showList: false,\n viewNumber: viewNum || '',\n leadName: name,\n leadId: id,\n }));\n }, []);\n\n const showPhoneList = useCallback(() => {\n setState((state) => ({ ...state, showList: true }));\n }, []);\n\n const call = useCallback(() => {\n const invalid = !isValidPhoneNumber(number);\n if (invalid) {\n toast.error('Invalid Phone Number');\n return;\n }\n makeCall(number, leadName);\n }, [number, leadName, makeCall]);\n\n const handleInputChange = useCallback((value) => {\n setState((state) => ({\n ...state,\n viewNumber: value,\n number: value,\n filter: value,\n leadName: 'Unknown',\n leadId: null,\n }));\n }, []);\n\n const filteredPhoneList = filterList(filter, phoneList);\n\n return (\n <>\n \n \n \n \n \n \n );\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { debounce } from '../utils';\n\nexport const useInfinityPagination = ({\n externalRef,\n loading,\n numberOfCurrentItems,\n total,\n} = {}) => {\n const [page, setPage] = useState(1);\n const [isNearScreen, setIsNearScreen] = useState(false);\n\n useEffect(() => {\n const element = externalRef?.current;\n\n const onChange = (entries) => {\n const el = entries[0];\n\n // if it is intersecting mark as true\n setIsNearScreen(el.isIntersecting);\n };\n\n const observer = new IntersectionObserver(onChange, {\n rootMargin: '30px',\n });\n\n if (element) observer.observe(externalRef.current);\n\n return () => observer.disconnect();\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const handleNextPage = useCallback(\n debounce(() => setPage((prevPage) => prevPage + 1), 1000),\n [],\n );\n\n const resetPagination = useCallback(() => {\n setIsNearScreen(false);\n setPage(0);\n }, []);\n\n useEffect(() => {\n if (numberOfCurrentItems < total) {\n if (isNearScreen && !loading) handleNextPage();\n }\n }, [isNearScreen, handleNextPage, loading, numberOfCurrentItems, total]);\n\n return { page, resetPagination };\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\n\nconst Backdrop = styled.div`\n position: absolute;\n height: 200vh;\n width: calc(100vw - 100%);\n left: 100%;\n top: -100vh;\n background-color: rgba(60, 87, 118, 0.6);\n`;\n\n/**\n * Render a backdrop back of the dialer component\n *\n * @param {object} props Props\n * @param {Function} props.close Callback function to close the dialer component\n * @returns {object} React element\n */\nexport const DialerBackdrop = ({ close }) => {\n return ;\n};\n\nDialerBackdrop.propTypes = {\n close: PropTypes.func.isRequired,\n};\n","import React, { useState, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Dialer } from './Dialer';\nimport { DialerBackdrop } from './DialerBackdrop';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { OnPhoneCallRegistryEvent } from '../phone-calls-events';\n\nconst Button = styled.button`\n height: 56px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n cursor: pointer;\n background-color: inherit;\n &::before {\n content: '';\n position: absolute;\n top: 0.5px;\n left: 0px;\n width: 2.5px;\n height: 55px;\n border-radius: 25%;\n }\n &:hover::before {\n background-color: white;\n }\n\n ${(props) => props.disabled && 'cursor: not-allowed;'}\n`;\n\n/**\n * Compoment to display a button with and action to show the in the sidebar menu\n *\n * @param {object} props Props\n * @param {object} props.children Children (React Element)\n * @param {boolean} props.active Children (React Element)\n * @returns {object} React Element\n */\nexport const DialerButton = ({ children, active, disabled }) => {\n const [show, setShow] = useState(false);\n\n useEventSubscription(OnPhoneCallRegistryEvent, () => {\n setShow(false);\n });\n\n const handleClick = useCallback(() => {\n if (!disabled) {\n setShow((state) => !state);\n }\n }, [disabled]);\n\n return (\n <>\n \n {show && (\n <>\n setShow(false)} />\n \n \n )}\n \n );\n};\nDialerButton.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n active: PropTypes.bool.isRequired,\n disabled: PropTypes.bool,\n};\n\nDialerButton.defaultProps = {\n disabled: false,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Icon, Tooltip } from '@8base/boost';\nimport { Link as RouterLink, withRouter } from 'react-router-dom';\nimport { useAgency } from '../hooks/useAgency';\nimport { isCompanyAvailable } from '../utils/company-utils';\nimport { DialerButton } from '../../modules/phone-calls/Components/DialerButton';\nimport styled from 'styled-components';\n\nexport const routes = [\n {\n name: 'Dashboard',\n path: '/dashboard',\n iconUrl: require('../assets/images/dashboard.svg'),\n },\n {\n name: 'Campaigns',\n path: '/campaigns',\n iconUrl: require('../assets/images/campaigns.svg'),\n },\n {\n name: 'Lead Management',\n path: '/leads',\n iconUrl: require('../assets/images/leads.svg'),\n },\n {\n name: 'Tasks',\n path: '/tasks/list',\n iconUrl: require('../assets/images/tasks.svg'),\n },\n {\n name: 'Call',\n path: '/call',\n iconUrl: require('../assets/images/call.svg'),\n component: ,\n },\n {\n name: 'Emails',\n path: '/email',\n iconUrl: require('../assets/images/inbox.svg'),\n },\n {\n name: 'Reports',\n path: '/reports/phone-call-recordings',\n iconUrl: require('../assets/images/performance.svg'),\n },\n {\n name: 'Workflow Automation',\n path: '/workflow',\n iconUrl: require('../assets/images/marketing.svg'),\n },\n {\n name: 'Settings',\n path: '/settings/general',\n iconUrl: require('../assets/images/settings.svg'),\n },\n];\n\nconst MenuContainer = styled.div`\n height: 100vh;\n width: 56px;\n background-color: var(--color-blue-3);\n display: flex;\n justify-content: center;\n flex-direction: row;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 2;\n`;\n\nconst List = styled.ul`\n width: 100%;\n list-style: none;\n`;\n\nconst Link = styled(RouterLink)`\n height: 56px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n top: 0.5px;\n left: 0px;\n width: 2.5px;\n height: 55px;\n border-radius: 25%;\n ${(props) => (props.active ? 'background-color: white;' : '')}\n }\n`;\n\nconst FakeLink = styled.span`\n height: 56px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n ${(props) => props.disabled && 'cursor: not-allowed;'}\n\n &::before {\n content: '';\n position: absolute;\n top: 0.5px;\n left: 0px;\n width: 2.5px;\n height: 55px;\n border-radius: 25%;\n ${(props) => (props.active ? 'background-color: white;' : '')}\n }\n`;\n\nconst Li = styled.li`\n ${(props) => props.active && 'background-color: var(--color-primary);'}\n ${(props) => props.disabled && 'cursor: not-allowed;'}\n position: relative;\n &:first-child {\n height: 56px;\n background-color: #3d4751;\n border-bottom: 0.1px solid #434e56;\n display: flex;\n align-items: center;\n }\n\n &:first-child:hover {\n border-left: 0px;\n background-color: #3d4751;\n }\n\n &:hover {\n background-color: var(--color-primary);\n > ul {\n opacity: 1;\n transform: translateX(30%);\n }\n }\n\n &:hover ${Link}::before {\n background-color: white;\n }\n`;\n\nconst Image = styled.img`\n width: 100%;\n height: 30px;\n object-fit: contain;\n max-width: 100%;\n`;\n\nconst Logo = styled.img`\n position: absolute;\n bottom: 30px;\n object-fit: contain;\n\n @media screen and (max-height: 720px) {\n display: none;\n }\n`;\n\nconst StyledIcon = styled(Icon)`\n color: white;\n width: 100%;\n height: 30px;\n`;\n\nconst StretchedTooltip = styled(Tooltip)`\n width: 100%;\n`;\n\nconst Menu = ({ history }) => {\n const agency = useAgency();\n const companyAvailable = isCompanyAvailable(agency);\n\n return (\n \n \n
  • \n \"Lead\n
  • \n {routes.map((route) => {\n const { pathname } = history.location;\n let pathName = pathname\n .replace('/', ' ')\n .trim()\n .split('/');\n\n pathName = `/${pathName[0]}`;\n\n let routePath = route.path\n .replace('/', ' ')\n .trim()\n .split('/');\n\n routePath = `/${routePath[0]}`;\n\n const isActive = pathName.startsWith(routePath);\n\n return (\n <>\n
  • \n {route?.component ? (\n \n {route.iconUrl ? (\n \n {route.name}\n \n ) : (\n \n \n \n )}\n \n ) : (\n \n {companyAvailable ? (\n \n {route.iconUrl ? (\n {route.name}\n ) : (\n \n )}\n \n ) : (\n \n {route.iconUrl ? (\n {route.name}\n ) : (\n \n )}\n \n )}\n \n )}\n
  • \n \n );\n })}\n
    \n \n
    \n );\n};\n\nMenu.propTypes = {\n history: PropTypes.object.isRequired,\n};\n\nexport default withRouter(Menu);\n","import styled from 'styled-components';\n\nexport const TextSpacing = styled.p`\n color: #323c47;\n font-size: 12px;\n letter-spacing: 1px;\n line-height: 27px;\n font-weight: 600;\n margin-right: 15px;\n margin-top: -2px;\n text-transform: uppercase;\n`;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Dropdown as DropdownBoost } from '@8base/boost';\nimport { TextSpacing } from '../text/TextSpacing';\n\nconst Chevron = styled.img`\n transform: rotate(${(props) => props.rotate});\n margin-left: 10px;\n position: absolute;\n right: ${({ right }) => right};\n top: 12px;\n width: 8px;\n height: 12px;\n`;\n\nconst OptionContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n border-radius: 4px;\n padding: 11px 0px;\n\n &:hover {\n background-color: rgb(244, 247, 249);\n }\n ${(props) => props.disabled && 'cursor: not-allowed'}\n`;\n\nconst HeadDropdown = styled.div`\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n position: relative;\n height: 36px;\n`;\n\nconst BodyHeader = styled.div`\n padding: 11px 22px;\n width: 205px;\n border-bottom: 1px solid #e9eff4;\n`;\n\nconst Dropdown = ({\n options,\n placeholder,\n currentOption,\n defaultOpen,\n onChange,\n bodyHeader,\n showActiveOption,\n offset,\n minWidth,\n}) => {\n const currentOptionValues = options.find((option) => option.value === currentOption);\n const DefaultHead = () => {placeholder};\n const Head =\n currentOption !== ''\n ? currentOptionValues\n ? currentOptionValues.Component\n : DefaultHead\n : DefaultHead;\n const optionsFiltered = options.filter((option) => option.value !== currentOption);\n\n return (\n \n \n {({ isOpen, toggleDropdown }) => {\n return (\n <>\n 0 ? toggleDropdown : null}>\n \n \n \n \n );\n }}\n \n \n {({ toggleDropdown }) => {\n const renderOptionsMap = (option) => {\n const active = option.value === currentOption;\n\n const handleClick = () => {\n if (!active && !option.disabled) {\n onChange(option.value);\n toggleDropdown();\n }\n\n if (option.disabled && option.onDisabledClick) {\n option.onDisabledClick();\n }\n };\n\n return (\n \n \n \n );\n };\n\n return (\n
    \n {bodyHeader !== '' && (\n \n {bodyHeader}\n \n )}\n {showActiveOption\n ? options.map(renderOptionsMap)\n : optionsFiltered.length > 0\n ? optionsFiltered.map(renderOptionsMap)\n : null}\n
    \n );\n }}\n
    \n
    \n );\n};\n\nDropdown.propTypes = {\n currentOption: PropTypes.number,\n options: PropTypes.array.isRequired,\n placeholder: PropTypes.string.isRequired,\n defaultOpen: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n bodyHeader: PropTypes.string,\n offset: PropTypes.string,\n minWidth: PropTypes.string,\n showActiveOption: PropTypes.bool,\n};\n\nDropdown.defaultProps = {\n currentOption: '',\n bodyHeader: '',\n defaultOpen: false,\n offset: 'none',\n minWidth: '',\n showActiveOption: false,\n};\n\nexport default Dropdown;\n","import styled from 'styled-components';\n\nexport const DropdownOption = styled.div`\n color: #384a59;\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 28px;\n padding: 0px 22px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n ${(props) => (props.active ? 'color: var(--color-primary);' : '')}\n`;\n","import styled from 'styled-components';\n\nexport const DropdownWrap = styled.div`\n border: 1px solid #ced7dd;\n border-radius: 4px;\n min-width: 200px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n`;\n","import { Button } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst PrimaryBtn = styled(Button)`\n width: 180px !important;\n border: 1px solid #3db4aa !important;\n background-color: #3db4aa !important;\n`;\n\nexport { PrimaryBtn };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Dialog, Button, Card, Row, Column, Heading, Text, Avatar } from '@8base/boost';\nimport { PrimaryBtn } from '../../../shared/components/ui/buttons/PrimaryBtn';\nimport { AGENCY_INVITATION_PENDING } from '../../../shared/constants/agency-invitations';\nimport { COMPANY_INVITATION_PENDING } from '../../../shared/constants/company-invitations';\n\nconst DialogInvitations = ({\n isOpen,\n onCloseDialog,\n onClickAcceptAgencyInvitation,\n onClickDeclineAgencyInvitation,\n onClickAcceptCompanyInvitation,\n onClickDeclineCompanyInvitation,\n isLoading,\n size,\n agencyInvitations,\n companyInvitations,\n title,\n}) => {\n return (\n \n \n \n {agencyInvitations.map((invitation, index) => {\n const { type, createdBy, agency, status } = invitation;\n const { firstName, lastName, avatar } = createdBy;\n const avatarUrl = avatar ? avatar.previewUrl : '';\n const username = `${firstName} ${lastName}`;\n const agencyName = agency ? `${agency.name}` : '';\n const header = `${username} invited you to join ${agencyName}`;\n const description = `Agency ${type} Invitation.`;\n const showButtons = status === AGENCY_INVITATION_PENDING;\n\n return (\n \n \n \n \n \n \n {}\n {{description}}\n \n {showButtons ? (\n <>\n onClickAcceptAgencyInvitation(invitation)}>\n {'Accept'}\n \n onClickDeclineAgencyInvitation(invitation)}>\n {'Decline'}\n \n \n ) : (\n {status}\n )}\n \n \n \n \n );\n })}\n\n {companyInvitations.map((invitation, index) => {\n const { createdBy, company, status } = invitation;\n const { firstName, lastName, avatar } = createdBy;\n const avatarUrl = avatar ? avatar.previewUrl : '';\n const username = `${firstName} ${lastName}`;\n const companyName = company ? `${company.name}` : '';\n const header = `${username} invited you to join ${companyName}`;\n const description = `Company ADMIN Invitation.`;\n const showButtons = status === COMPANY_INVITATION_PENDING;\n\n return (\n \n \n \n \n \n \n {}\n {{description}}\n \n {showButtons ? (\n <>\n onClickAcceptCompanyInvitation(invitation)}>\n {'Accept'}\n \n onClickDeclineCompanyInvitation(invitation)}>\n {'Decline'}\n \n \n ) : (\n {status}\n )}\n \n \n \n \n );\n })}\n \n \n );\n};\n\nDialogInvitations.defaultProps = {\n size: 'md',\n title: 'Pending Invitations',\n isLoading: false,\n};\n\nDialogInvitations.propTypes = {\n size: PropTypes.string,\n title: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n agencyInvitations: PropTypes.array.isRequired,\n companyInvitations: PropTypes.array.isRequired,\n onClickAcceptAgencyInvitation: PropTypes.func.isRequired,\n onClickDeclineAgencyInvitation: PropTypes.func.isRequired,\n onClickAcceptCompanyInvitation: PropTypes.func.isRequired,\n onClickDeclineCompanyInvitation: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n isLoading: PropTypes.bool,\n};\n\nexport { DialogInvitations };\n","// Agency invitation types\nexport const AGENCY_AGENT_INVITATION = 'AGENT';\nexport const AGENCY_MANAGER_INVITATION = 'MANAGER';\nexport const AGENCY_INVITATION_TYPES = [AGENCY_AGENT_INVITATION, AGENCY_MANAGER_INVITATION];\n\n// Agency invitation status\nexport const AGENCY_INVITATION_PENDING = 'PENDING';\nexport const AGENCY_INVITATION_APPROVED = 'APPROVED';\nexport const AGENCY_INVITATION_EXPIRED = 'EXPIRED';\nexport const AGENCY_INVITATION_REJECTED = 'REJECTED';\n","// Company invitation status\nexport const COMPANY_INVITATION_PENDING = 'PENDING';\nexport const COMPANY_INVITATION_APPROVED = 'APPROVED';\nexport const COMPANY_INVITATION_EXPIRED = 'EXPIRED';\nexport const COMPANY_INVITATION_REJECTED = 'REJECTED';\n","import gql from 'graphql-tag';\n\nexport const UPDATE_AGENCY_INVITATION_MUTATION = gql`\n mutation UpdateAgencyInvitation($data: AgencyInvitationUpdateInput!) {\n agencyInvitationUpdate(data: $data) {\n id\n email\n }\n }\n`;\n\nexport const FIND_ROLES_IN_AGENCY = gql`\n query FetchAgencyUsersRole($filter: AgencyUserFilter) {\n agencyUsersList(filter: $filter) {\n count\n items {\n id\n roles\n }\n }\n }\n`;\n\nexport const CREATE_ROLES_IN_AGENCY = gql`\n mutation CreateAgencyUser($data: AgencyUserCreateInput!) {\n agencyUserCreate(data: $data) {\n id\n agency {\n id\n }\n user {\n id\n }\n roles\n }\n }\n`;\n\nexport const UPDATE_ROLES_IN_AGENCY = gql`\n mutation UpdateAgencyUser($data: AgencyUserUpdateInput!) {\n agencyUserUpdate(data: $data) {\n id\n agency {\n id\n }\n user {\n id\n }\n roles\n }\n }\n`;\n","import { AGENCY_INVITATION_PENDING } from '../../shared/constants/agency-invitations';\n\n/**\n * Can accept invitation permision.\n *\n * @param {object} user - The logged user.\n * @param {object} invitation - The invitation to check.\n * @returns {boolean} If the user can accept the invitation.\n */\nexport const canAcceptAgencyInvitation = (user, invitation) => {\n const { email, status } = invitation;\n const { email: userEmail } = user;\n\n if (status !== AGENCY_INVITATION_PENDING) return false;\n\n return email.toLowerCase() === userEmail.toLowerCase();\n};\n\n/**\n * Can decline invitation permision.\n *\n * @param {object} user - The logged user.\n * @param {object} invitation - The invitation to check.\n * @returns {boolean} If the user can decline the invitation.\n */\nexport const canDeclineAgencyInvitation = (user, invitation) => {\n const { email, status } = invitation;\n const { email: userEmail } = user;\n\n if (status !== AGENCY_INVITATION_PENDING) return false;\n\n return email.toLowerCase() === userEmail.toLowerCase();\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnAcceptAgencyInvitationEvent = createEvent();\n\nexport const OnDeclineAgencyInvitationEvent = createEvent();\n\nexport const OnAgencyInvitationError = createEvent();\n","import { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport {\n FIND_ROLES_IN_AGENCY,\n CREATE_ROLES_IN_AGENCY,\n UPDATE_ROLES_IN_AGENCY,\n UPDATE_AGENCY_INVITATION_MUTATION,\n} from './agency-invitation-queries';\nimport {\n canAcceptAgencyInvitation,\n canDeclineAgencyInvitation,\n} from './agency-invitation-permissions';\nimport {\n AGENCY_INVITATION_REJECTED,\n AGENCY_INVITATION_APPROVED,\n AGENCY_AGENT_INVITATION,\n} from '../../shared/constants/agency-invitations';\nimport { log, error } from '@cobuildlab/pure-logger';\nimport { AGENCY_ROLES } from '../../shared/constants';\nimport {\n OnAcceptAgencyInvitationEvent,\n OnAgencyInvitationError,\n OnDeclineAgencyInvitationEvent,\n} from './agency-invitation-events';\n\n/**\n * Accept agency invitation.\n *\n * @param {object} invitation - The invitation data.\n * @returns {Promise} The updated invitation.\n */\nexport const acceptAgencyInvitation = async (invitation) => {\n const { user } = OnSessionFetch.get();\n const client = OnApolloClient.get();\n\n if (!canAcceptAgencyInvitation(user, invitation)) {\n return OnAgencyInvitationError.dispatch(\n new Error(`Permission Denied. Can't accept this agency invitation.`),\n );\n }\n\n const {\n id,\n type,\n agency: { id: agencyId },\n } = invitation;\n const data = { id, status: AGENCY_INVITATION_APPROVED };\n let response = null;\n\n /**\n * Change invitation status to approved\n */\n try {\n response = await client.mutate({\n mutation: UPDATE_AGENCY_INVITATION_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('acceptAgencyInvitation', e);\n return OnAgencyInvitationError.dispatch(e);\n }\n\n /**\n * Find roles in agency if exists\n */\n try {\n response = await client.query({\n query: FIND_ROLES_IN_AGENCY,\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n agency: { id: { equals: agencyId } },\n user: { id: { equals: user.id } },\n },\n },\n });\n } catch (e) {\n error('acceptAgencyInvitation', e);\n return OnAgencyInvitationError.dispatch(e);\n }\n\n const { agencyUsersList } = response.data;\n const agencyUserRoles = agencyUsersList.count > 0 ? agencyUsersList.items[0] : null;\n const role = type === AGENCY_AGENT_INVITATION ? AGENCY_ROLES.AGENT : AGENCY_ROLES.MANAGER;\n\n /**\n * Create or update the user role in agency depending\n * if the user is already part of the agency\n */\n if (!agencyUserRoles) {\n try {\n response = await client.mutate({\n mutation: CREATE_ROLES_IN_AGENCY,\n variables: {\n data: {\n agency: { connect: { id: agencyId } },\n user: { connect: { id: user.id } },\n roles: [role],\n },\n },\n });\n } catch (e) {\n error('acceptAgencyInvitation', e);\n return OnAgencyInvitationError.dispatch(e);\n }\n } else if (!agencyUserRoles.roles.include(role)) {\n try {\n response = await client.mutate({\n mutation: UPDATE_ROLES_IN_AGENCY,\n variables: {\n data: {\n id: agencyUserRoles.id,\n roles: [...agencyUserRoles.roles, role],\n },\n },\n });\n } catch (e) {\n error('acceptAgencyInvitation', e);\n return OnAgencyInvitationError.dispatch(e);\n }\n }\n\n const eventData = !agencyUserRoles\n ? { agencyUser: response.data.agencyUserCreate }\n : agencyUserRoles.roles.includes(role)\n ? { agencyUser: agencyUserRoles }\n : { agencyUser: response.data.agencyUserUpdate };\n log('acceptAgencyInvitation', eventData);\n return OnAcceptAgencyInvitationEvent.dispatch(eventData);\n};\n\n/**\n * Decline agency invitation.\n *\n * @param {object} invitation - The invitation data.\n * @returns {Promise} The updated invitation.\n */\nexport const declineAgencyInvitation = async (invitation) => {\n const { user } = OnSessionFetch.get();\n const client = OnApolloClient.get();\n\n if (!canDeclineAgencyInvitation(user, invitation)) {\n return OnAgencyInvitationError.dispatch(\n new Error(`Permission Denied. Can't decline this agency invitation.`),\n );\n }\n\n const { id } = invitation;\n const data = {\n id,\n status: AGENCY_INVITATION_REJECTED,\n };\n\n let response;\n try {\n response = await client.mutate({\n mutation: UPDATE_AGENCY_INVITATION_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('declineAgencyInvitation', e);\n return OnAgencyInvitationError.dispatch(e);\n }\n\n log('declineAgencyInvitation', response);\n OnDeclineAgencyInvitationEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Create user manager in one or more agencies\n *\n * @param {Array} agencies - List of agencies ids\n * @param {string} userId - The user id\n *\n * @returns {Promise} The request result\n */\nexport const createManagerAgencies = async (agencies, userId) => {\n const client = OnApolloClient.get();\n let response = null;\n const managed = [];\n\n for (const agency of agencies) {\n response = await client.query({\n query: FIND_ROLES_IN_AGENCY,\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n agency: { id: { equals: agency.id } },\n user: { id: { equals: userId } },\n },\n },\n });\n\n const { agencyUsersList } = response.data;\n const agencyUserRoles = agencyUsersList.count > 0 ? agencyUsersList.items[0] : null;\n\n if (!agencyUserRoles) {\n response = await client.mutate({\n mutation: CREATE_ROLES_IN_AGENCY,\n variables: {\n data: {\n agency: { connect: { id: agency.id } },\n user: { connect: { id: userId } },\n roles: [AGENCY_ROLES.MANAGER],\n },\n },\n });\n } else if (!agencyUserRoles.roles.includes(AGENCY_ROLES.MANAGER)) {\n response = await client.mutate({\n mutation: UPDATE_ROLES_IN_AGENCY,\n variables: {\n data: {\n id: agencyUserRoles.id,\n roles: [...agencyUserRoles.roles, AGENCY_ROLES.MANAGER],\n },\n },\n });\n }\n\n managed.push(\n !agencyUserRoles\n ? response.data.agencyUserCreate\n : agencyUserRoles.roles.includes(AGENCY_ROLES.MANAGER)\n ? agencyUserRoles\n : response.data.agencyUserUpdate,\n );\n }\n\n return {\n data: {\n agencyUsersUpdate: {\n count: managed.length,\n items: managed,\n },\n },\n };\n};\n","import gql from 'graphql-tag';\n\nexport const QUERY_INVITATIONS = gql`\n query FetchAgencyInvitations($agencyId: ID!, $offset: Int!, $limit: Int!) {\n agencyInvitationsList(\n filter: { agency: { id: { equals: $agencyId } } }\n skip: $offset\n first: $limit\n ) {\n count\n items {\n id\n email\n status\n updatedAt\n }\n }\n }\n`;\nexport const CREATE_INVITATION = gql`\n mutation AgencyInvitationCreate($data: AgencyInvitationCreateInput!) {\n __typename\n agencyInvitationCreate(data: $data) {\n id\n }\n }\n`;\n\nexport const DELETE_INVITATION = gql`\n mutation AgencyInvitationDelete($id: ID!) {\n __typename\n agencyInvitationDelete(filter: { id: $id }, force: true) {\n success\n }\n }\n`;\n\nexport const RESEND_INVITATION = gql`\n mutation AgencyInvitationResend($id: ID!) {\n __typename\n resendedAngencyInvitationCreate(data: { invitation: { connect: { id: $id } } }) {\n id\n }\n }\n`;\n\nexport const CREATE_INVITATION_COMPANY = gql`\n mutation CompanyInvitationCreate($data: CompanyInvitationCreateInput!) {\n __typename\n companyInvitationCreate(data: $data) {\n id\n }\n }\n`;\n","import gql from 'graphql-tag';\n\nexport const COMPANY_INVITATION_LIST = gql`\n query FetchCompanyInvitations($userID: ID!, $offset: Int!, $limit: Int!) {\n companyInvitationsList(\n filter: { company: { adminCompanyRelation: { some: { user: { id: { equals: $userID } } } } } }\n skip: $offset\n first: $limit\n ) {\n count\n items {\n id\n email\n status\n company {\n id\n name\n }\n createdBy {\n id\n firstName\n lastName\n }\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const DELETE_COMPANY_INVITATION = gql`\n mutation CompanyInvitationDelete($id: ID!) {\n __typename\n companyInvitationDelete(filter: { id: $id }) {\n success\n }\n }\n`;\n\nexport const UPDATE_COMPANY_INVITATION_MUTATION = gql`\n mutation UpdateCompanyInvitation($data: CompanyInvitationUpdateInput!) {\n companyInvitationUpdate(data: $data) {\n id\n email\n }\n }\n`;\n\nexport const CREATE_ADMIN_MUTATION = gql`\n mutation CreateAdmin($data: AdminCreateInput!) {\n adminCreate(data: $data) {\n id\n }\n }\n`;\n","import { COMPANY_INVITATION_PENDING } from '../../shared/constants/company-invitations';\n\n/**\n * Can accept invitation permision.\n *\n * @param {object} user - The logged user.\n * @param {object} invitation - The invitation to check.\n * @returns {boolean} If the user can accept the invitation.\n */\nexport const canAcceptCompanyInvitation = (user, invitation) => {\n const { email, status } = invitation;\n const { email: userEmail } = user;\n\n if (status !== COMPANY_INVITATION_PENDING) return false;\n\n return email.toLowerCase() === userEmail.toLowerCase();\n};\n\n/**\n * Can decline invitation permision.\n *\n * @param {object} user - The logged user.\n * @param {object} invitation - The invitation to check.\n * @returns {boolean} If the user can decline the invitation.\n */\nexport const canDeclineCompanyInvitation = (user, invitation) => {\n const { email, status } = invitation;\n const { email: userEmail } = user;\n\n if (status !== COMPANY_INVITATION_PENDING) return false;\n\n return email.toLowerCase() === userEmail.toLowerCase();\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnCompanyinvitationListEvent = createEvent();\n\nexport const OnCompanyinvitationError = createEvent();\n\nexport const OnDeclineCompanyinvitationEvent = createEvent();\n\nexport const OnAcceptCompanyinvitationEvent = createEvent();\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnfetchCompanyList = createEvent();\n\nexport const OnCompanyfetched = createEvent();\n\nexport const OnCompanyUpdated = createEvent();\n\nexport const OnCompanyError = createEvent();\n\nexport const OnCreateCompanyInvitationEvent = createEvent();\n\nexport const OnCreateCompanyInvitationError = createEvent();\n\nexport const OnDeleteCompanyInvitationEvent = createEvent();\n\nexport const OnDeleteCompanyInvitationError = createEvent();\n\nexport const OnSubcriptionPlansListEvent = createEvent();\n\nexport const OnSubcriptionPlansListError = createEvent();\n","import { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport { CREATE_INVITATION_COMPANY } from '../my-account/invitations/invitations-queries';\nimport {\n COMPANY_INVITATION_LIST,\n DELETE_COMPANY_INVITATION,\n UPDATE_COMPANY_INVITATION_MUTATION,\n CREATE_ADMIN_MUTATION,\n} from './company-invitation-queries';\nimport {\n canAcceptCompanyInvitation,\n canDeclineCompanyInvitation,\n} from './company-invitation-permissions';\nimport {\n COMPANY_INVITATION_REJECTED,\n COMPANY_INVITATION_APPROVED,\n COMPANY_INVITATION_PENDING,\n} from '../../shared/constants/company-invitations';\nimport { log, error } from '@cobuildlab/pure-logger';\nimport { createCompanyInvitationValidator } from '@cobuildlab/lead-volt-share';\nimport { createManagerAgencies } from '../agency-invitation/agency-invitation-actions';\nimport {\n OnAcceptCompanyinvitationEvent,\n OnCompanyinvitationError,\n OnCompanyinvitationListEvent,\n OnDeclineCompanyinvitationEvent,\n} from './company-invitation-events';\nimport {\n OnCreateCompanyInvitationError,\n OnCreateCompanyInvitationEvent,\n OnDeleteCompanyInvitationError,\n OnDeleteCompanyInvitationEvent,\n} from 'modules/company/campany-events';\n\n/**\n * Fetch all the Company Invitations.\n *\n * @param {string} userId - The userId to create the admin.\n * @param {number} pageSize - The page size\n * @param {number} queryOffset - the offset\n * @param {string} fetchPolicy - The policy of the fetch\n *\n * @returns {Promise} The Company invitations list data.\n */\nexport const fetchCompanyInvitationList = async (userId, pageSize, queryOffset, fetchPolicy) => {\n const client = OnApolloClient.get();\n const variables = { userID: userId, limit: pageSize, offset: queryOffset };\n\n let response;\n try {\n response = await client.query({\n query: COMPANY_INVITATION_LIST,\n fetchPolicy,\n variables,\n });\n } catch (e) {\n return OnCompanyinvitationError.dispatch(e);\n }\n OnCompanyinvitationListEvent.dispatch(response.data);\n log('fetchCompanyInvitationList:', response);\n return response.data;\n};\n\n/**\n *\n * @param {object} data - all the data to create the Invitation\n * @returns {Promise} - The Data Created\n */\nexport const createCompanyInvitation = async (data) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n let response = null;\n\n try {\n createCompanyInvitationValidator(user, data);\n } catch (e) {\n error('createCompanyInvitation', e);\n\n return OnCreateCompanyInvitationError.dispatch(e);\n }\n\n const { email, company } = data;\n\n try {\n response = await client.mutate({\n mutation: CREATE_INVITATION_COMPANY,\n variables: {\n data: {\n email: email,\n status: COMPANY_INVITATION_PENDING,\n company: {\n connect: {\n id: company,\n },\n },\n },\n },\n });\n } catch (e) {\n return OnCreateCompanyInvitationError.dispatch(e);\n }\n\n OnCreateCompanyInvitationEvent.dispatch(response.data);\n log('createCompanyInvitation:', response);\n return response.data;\n};\n\nexport const deleteCompanyInvitation = async (invitationId) => {\n const client = OnApolloClient.get();\n\n let response;\n try {\n response = await client.mutate({\n mutation: DELETE_COMPANY_INVITATION,\n variables: { id: invitationId },\n });\n } catch (e) {\n return OnDeleteCompanyInvitationError.dispatch(e);\n }\n\n OnDeleteCompanyInvitationEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Creates a Company Admin.\n *\n * @param {string} companyId - The companyId to create the admin.\n * @param {string} userId - The userId to create the admin.\n * @returns {Promise} The created admin data.\n */\nexport const createAdmin = async (companyId, userId) => {\n const client = OnApolloClient.get();\n\n const data = {\n company: { connect: { id: companyId } },\n user: { connect: { id: userId } },\n };\n\n let response;\n try {\n response = await client.mutate({\n mutation: CREATE_ADMIN_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('createAdmin', e);\n return OnCompanyinvitationError.dispatch(e);\n }\n log('createAdmin', response);\n\n return response;\n};\n\n/**\n * Accept Company invitation.\n *\n * @param {object} invitation - The invitation data.\n * @returns {Promise} The updated invitation.\n */\nexport const acceptCompanyInvitation = async (invitation) => {\n const { user } = OnSessionFetch.get();\n const client = OnApolloClient.get();\n let response = null;\n\n if (!canAcceptCompanyInvitation(user, invitation)) {\n return OnCompanyinvitationError.dispatch(\n new Error(`Permission Denied. Can't accept this company invitation.`),\n );\n }\n\n const {\n id,\n company: { agencyCompanyRelation, id: companyId },\n } = invitation;\n const data = {\n id,\n status: COMPANY_INVITATION_APPROVED,\n };\n\n /**\n * Change invitation status to approved\n */\n try {\n response = await client.mutate({\n mutation: UPDATE_COMPANY_INVITATION_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('acceptCompanyInvitation', e);\n OnCompanyinvitationError.dispatch(e);\n\n return OnCompanyinvitationError.dispatch(e);\n }\n\n /**\n * Create admin relation\n */\n try {\n response = await createAdmin(companyId, user.id);\n } catch (e) {\n return OnCompanyinvitationError.dispatch(e);\n }\n\n try {\n response = await createManagerAgencies(agencyCompanyRelation.items, user.id);\n } catch (e) {\n return OnCompanyinvitationError.dispatch(e);\n }\n\n log('acceptCompanyInvitation', response.data);\n OnAcceptCompanyinvitationEvent.dispatch(response.data);\n};\n\nexport const declineCompanyInvitation = async (invitation) => {\n const { user } = OnSessionFetch.get();\n const client = OnApolloClient.get();\n\n if (!canDeclineCompanyInvitation(user, invitation)) {\n return OnCompanyinvitationError.dispatch(\n new Error(`Permission Denied. Can't decline this company invitation.`),\n );\n }\n\n const { id } = invitation;\n const data = {\n id,\n status: COMPANY_INVITATION_REJECTED,\n };\n\n let response;\n try {\n response = await client.mutate({\n mutation: UPDATE_COMPANY_INVITATION_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('declineCompanyInvitation', e);\n return OnCompanyinvitationError.dispatch(e);\n }\n\n log('declineCompanyInvitation', response);\n OnDeclineCompanyinvitationEvent.dispatch(response.data);\n\n return response.data;\n};\n","import Flux from '@cobuildlab/flux-state';\n\n/**\n * Event that triggers a Agency error.\n *\n * @type {string}\n */\nexport const AGENCY_ERROR_EVENT = 'onAgencyError';\n\n/**\n * Event that triggers a Get Active Agency event.\n *\n * @type {string}\n */\nexport const AGENCY_GET_ACTIVE_EVENT = 'onGetActiveAgency';\n\n/**\n * Event that triggers a Set Active Agency event.\n *\n * @type {string}\n */\nexport const AGENCY_SET_ACTIVE_EVENT = 'onSetActiveAgency';\n\n/**\n * Event that triggers when Agencies are fetched\n *\n * @type {string}\n */\nexport const AGENCY_LIST_FETCED = 'onAgencyListFetched';\n\n/**\n * Event that triggers when new Agency is created\n *\n * @type {string}\n */\nexport const AGENCY_CREATED = 'onAgencyCreated';\n\n/**\n * Event that triggers when when an Agency is updated\n *\n * @type {string}\n */\nexport const AGENCY_UPDATED = 'onAgencyUpdated';\n\n/**\n * Event that triggers when a Agency is deleted\n *\n * @type {string}\n */\nexport const AGENCY_DELETED = 'onAgencyDeleted';\n\n/**\n * Event that triggers when something goes wrong while\n * requesting agency data\n *\n * @type {string}\n */\nexport const AGENCY_REQUEST_ERROR = 'onAgencyRequestError';\n\n/**\n * Event that triggers when a phone creation fails when agency is beign created\n *\n * @type {string}\n */\nexport const AGENCY_PHONE_CREATE_ERROR = 'onCreateAgencyPhoneError';\n\nclass AgencyStore extends Flux.DashStore {\n constructor() {\n super();\n this.addEvent(AGENCY_ERROR_EVENT);\n this.addEvent(AGENCY_GET_ACTIVE_EVENT);\n this.addEvent(AGENCY_SET_ACTIVE_EVENT);\n this.addEvent(AGENCY_CREATED);\n this.addEvent(AGENCY_LIST_FETCED);\n this.addEvent(AGENCY_REQUEST_ERROR);\n this.addEvent(AGENCY_UPDATED);\n this.addEvent(AGENCY_DELETED);\n this.addEvent(AGENCY_PHONE_CREATE_ERROR);\n }\n}\n\nexport default new AgencyStore();\n","import { AGENCY_INVITATION_PENDING } from '../constants/agency-invitations';\nimport { COMPANY_INVITATION_PENDING } from '../constants/company-invitations';\n\n/**\n * get agency and company pending invitations\n *\n * @param {object} agencyInvitationsList agency invitations list\n * @param {object} companyInvitationsList company invitations list\n * @returns {Array} pending invitations\n */\nexport const getPendingInvitations = (agencyInvitationsList, companyInvitationsList) => {\n const { items: agencyInvitations } = agencyInvitationsList;\n const { items: companyInvitations } = companyInvitationsList;\n\n const pendingAgencyInvitations = agencyInvitations.filter(\n ({ status }) => status === AGENCY_INVITATION_PENDING,\n );\n\n const pendingCompanyInvitations = companyInvitations.filter(\n ({ status }) => status === COMPANY_INVITATION_PENDING,\n );\n\n return [pendingAgencyInvitations, pendingCompanyInvitations];\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled, { keyframes } from 'styled-components';\nimport { AUTOMATIC_CALLS_STATUSES } from '../phone-calls-model';\n\nconst pulse = keyframes`\n 0% {\n opacity: 1;\n }\n \n 50% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n`;\n\nconst IconCountWrap = styled.div`\n position: relative;\n margin-left: 5px;\n margin-right: 16px !important;\n animation: ${pulse} 1s ease-in-out infinite;\n`;\nconst Image = styled.img`\n object-fit: contain;\n max-width: 100%;\n`;\n\nconst iconA = require('shared/assets/images/auto-calling-a.svg');\nconst iconB = require('shared/assets/images/auto-calling-b.svg');\nconst iconC = require('shared/assets/images/auto-calling-c.svg');\n/**\n * @param {object} props props\n * @param {string} props.type Icon type\n * @returns {object} React elemet\n */\nfunction AutomaticCallsIcon({ type }) {\n let imgUrl = '';\n if (type === AUTOMATIC_CALLS_STATUSES.ON) {\n imgUrl = iconA;\n } else if (type === AUTOMATIC_CALLS_STATUSES.ON_AND_IN_A_CALL) {\n imgUrl = iconB;\n } else if (type === AUTOMATIC_CALLS_STATUSES.ON_AND_REQUESTING) {\n imgUrl = iconC;\n }\n return (\n \n \n \n );\n}\n\nAutomaticCallsIcon.propTypes = {\n type: PropTypes.string,\n};\nAutomaticCallsIcon.defaultProps = {\n type: AUTOMATIC_CALLS_STATUSES.ON,\n};\nexport default AutomaticCallsIcon;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst colorsAndText = {\n 1: { textColor: '#3DB4AA', bg: 'rgba(61,180,170,0.1)' },\n 2: { textColor: '#F6C01E', bg: 'rgba(246,192,30,0.15)' },\n 3: { textColor: '#eb7734', bg: 'rgba(235, 119, 52, 0.1)' },\n 4: { textColor: '#FF0000', bg: 'rgba(255,0,0,0.08)' },\n 5: { textColor: '#1E4358', bg: 'rgba(30, 67, 88,0.08)' },\n};\nconst Badge = styled.span`\n opacity: 0.9;\n color: ${({ textColor }) => textColor};\n font-family: 'Poppins';\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n box-sizing: border-box;\n height: 26px;\n min-width: 110px;\n border: 1px solid ${({ textColor }) => textColor};\n border-radius: 16px;\n background-color: ${({ bg }) => bg};\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n`;\n\nconst StyledBadge = ({ priority, children, customPriority, ...rest }) => {\n const colors = customPriority || colorsAndText[priority];\n return (\n \n {children}\n \n );\n};\nStyledBadge.defaultProps = {\n priority: 1,\n customPriority: null,\n};\nStyledBadge.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n priority: PropTypes.number,\n customPriority: PropTypes.object,\n};\n\nexport default StyledBadge;\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, Heading, Text, Tooltip, Avatar } from '@8base/boost';\nimport moment from 'moment';\nimport styled from 'styled-components';\nimport { getNotificationInfo } from '../notifications-utils';\nimport { useHistory } from 'react-router-dom';\nimport StyledBadge from '../../../shared/components/ui/StyledBadge';\n\nconst Container = styled(Grid.Layout)`\n border-radius: 5px;\n padding: 10px;\n transition: background-color 0.3s ease-in-out;\n &:not(:hover) {\n .notification-btn__delete {\n display: none;\n }\n }\n ${(props) =>\n props.read\n ? `\n &:hover {\n background-color: #f6f7f9;\n } \n `\n : `\n background-color: rgba(61,180,170,0.1);\n `}\n`;\n/**\n * MyNewType definition\n *\n * @typedef {Function} onChangeCallback\n * @param {string} key\n * @param {any} value\n * @param {string} id\n */\n/**\n * @typedef {object} notification\n * @property {string} id\n * @property {boolean} read seen state\n * @property {string} type type\n * @property {string} createdAt Created date\n * @property {string} title Title\n * @property {string} description Description\n *\n */\n/**\n * @param {object} props props\n * @param {notification} props.data Notification data\n * @param {onChangeCallback} props.onChange Notification data\n * @returns {React.FC} React Component\n */\nexport const NotificationsListItem = ({ data }) => {\n const { createdAt, read } = data;\n const timeFromNow = moment(createdAt).fromNow();\n const formatedDate = moment(createdAt).format('MM/DD/YYYY; hh:mmA');\n const history = useHistory();\n\n const { title, description, url, linkText, avatar } = getNotificationInfo(data);\n\n const onLinkClick = useCallback(() => {\n if (url) {\n history.push(url);\n }\n }, [url, history]);\n\n return (\n \n \n \n \n \n {title}\n \n {description}\n \n \n {timeFromNow}\n \n \n \n {linkText}\n \n \n );\n};\n\nNotificationsListItem.propTypes = {\n data: PropTypes.object.isRequired,\n};\n","import moment from 'moment';\nimport { NOTIFICATIONS_TYPES_GROUPS, NOTIFICATIONS_TYPES } from '@cobuildlab/lead-volt-share';\n\n/**\n * @typedef {object} notification\n * @property {string} id\n * @property {boolean} read seen state\n * @property {string} type type\n * @property {string} createdAt Created date\n * @property {{id:string,firstName:string,lastName:string,avatar:object}} userTrigger Created date\n * @property {{id:string,firstName:string,lastName:string}} lead Created date\n * @property {{id:string,name:string,lastName:string}} campaign Created date\n * @property {{id:string,subject:string,from:string,thread:object}} email Created date\n *\n */\n/**\n * @typedef {object} notificationsList\n * @property {Array} today\n * @property {Array} older\n */\n/**\n * @param {Array} list list of notifications\n * @returns {notificationsList} Maped object with today and older reduced list\n */\nexport function mapNotificationsList(list) {\n const todayDate = moment().startOf('day');\n\n const important = list.filter((item) => {\n switch (item.type) {\n // case NOTIFICATIONS_TYPES.NEW_SMS:\n case 'NEW_SMS':\n return true;\n\n case NOTIFICATIONS_TYPES.LEAD_ASSIGN:\n return true;\n\n // case NOTIFICATIONS_TYPES.MISSED_CALL:\n case 'MISSED_CALL':\n return true;\n\n default:\n return false;\n }\n });\n\n list = list.filter((item) => {\n switch (item.type) {\n // case NOTIFICATIONS_TYPES.NEW_SMS:\n case 'NEW_SMS':\n return false;\n\n case NOTIFICATIONS_TYPES.LEAD_ASSIGN:\n return false;\n\n // case NOTIFICATIONS_TYPES.MISSED_CALL:\n case 'MISSED_CALL':\n return false;\n\n default:\n return true;\n }\n });\n\n const { older, today } = list.reduce(\n (lists, item) => {\n const isToday = moment(item.createdAt).isAfter(todayDate);\n if (isToday) {\n lists.today.push(item);\n } else {\n lists.older.push(item);\n }\n return lists;\n },\n { older: [], today: [] },\n );\n\n return { older, today, important };\n}\n/**\n *\n * @typedef {object} mappedNotification\n * @property {string} url url to redirect\n * @property {string} linkText text to display in the link\n * @property {string} linkText text to display in the link\n * @property {string|undefined} avatar avatar to show in the notification\n * @property {string} title title to show in the notification\n * @property {string} description description to show in the notification\n */\n/**\n * @param {notification} notification notification object\n * @returns {mappedNotification} mappd data to display\n */\nexport function getNotificationInfo(notification) {\n const { type, userTrigger, lead, email, campaign, disposition, createdAt, sms } = notification;\n const userTriggerName = userTrigger && `${userTrigger.firstName} ${userTrigger.lastName}`;\n const userTriggerAvatar = userTrigger && userTrigger?.avatar?.downloadUrl;\n\n if (NOTIFICATIONS_TYPES_GROUPS.LEADS.includes(type)) {\n const url = `/leads/${lead ? lead.id : ''}`;\n const linkText = 'Leads';\n const data = { url, linkText, avatar: userTriggerAvatar };\n\n if (type === NOTIFICATIONS_TYPES.LEAD_ASSIGN) {\n return {\n ...data,\n title: `${userTriggerName} assigned you to a lead`,\n description: `You where assigned to the lead ${lead && lead.firstName} ${lead &&\n lead.lastName}`,\n };\n } else if (type === NOTIFICATIONS_TYPES.LEAD_UNASSIGN) {\n return {\n ...data,\n title: `${userTriggerName} unassigned you from a lead`,\n description: `You where unassigned of the lead ${lead && lead.firstName} ${lead &&\n lead.lastName}`,\n };\n } else if (type === NOTIFICATIONS_TYPES.LEAD_UPDATE) {\n return {\n ...data,\n title: `${userTriggerName} update a lead you're assigned`,\n description: `Update in the lead ${lead && lead.firstName} ${lead && lead.lastName}`,\n };\n } else if (type === NOTIFICATIONS_TYPES.LEAD_EXPIRATION) {\n const expiration = moment(disposition.expirationDate);\n const created = moment(createdAt).format('YYYY-MM-DD');\n const difference = expiration.diff(created, 'days');\n\n if (difference === 0) {\n return {\n ...data,\n title: `${lead && lead.firstName} disposition close to expire`,\n description: `${lead && lead.firstName} disposition expires today!`,\n };\n } else {\n return {\n ...data,\n title: `${lead && lead.firstName} disposition close to expire`,\n description: `${lead && lead.firstName} disposition expires in ${difference} days`,\n };\n }\n }\n }\n if (NOTIFICATIONS_TYPES_GROUPS.MAILS.includes(type)) {\n const { id: emailId, subject, from } = email;\n const url = `/email/${emailId}?folder=inbox`;\n const data = { url, linkText: 'Email' };\n\n if (type === NOTIFICATIONS_TYPES.MAIL_FROM_LEAD) {\n const title = `Mail receved from lead ${lead && lead.firstName} ${lead && lead.lastName}`;\n const description = `A lead sent a replay mail with subject: ${subject}`;\n\n return { ...data, title, description };\n }\n\n if (type === NOTIFICATIONS_TYPES.MAIL_RECEIVED) {\n const title = `You received a mail from ${from}`;\n const description = `You have a new email subject:${subject}`;\n\n return { ...data, title, description };\n }\n }\n if (NOTIFICATIONS_TYPES_GROUPS.CAMPAIGNS.includes(type)) {\n const url = `/campaigns/${campaign.id}`;\n const linkText = 'Campaigns';\n const data = { url, linkText, avatar: userTriggerAvatar };\n\n if (type === NOTIFICATIONS_TYPES.CAMPAIGN_ASSIGN) {\n return {\n ...data,\n title: `${userTriggerName} assigned you to a campaign`,\n description: `You where assigned to the campaign \"${campaign.name}\"`,\n };\n } else if (type === NOTIFICATIONS_TYPES.CAMPAIGN_UNASSIGN) {\n return {\n ...data,\n title: `${userTriggerName} unassigned you from a campaign`,\n description: `You where unassigned of the campaign \"${campaign.name}\"`,\n };\n } else if (type === NOTIFICATIONS_TYPES.CAMPAIGN_UPDATE) {\n return {\n ...data,\n title: `${userTriggerName} update a campaign you're assigned`,\n description: `Update in the campaign \"${campaign.name}\"`,\n };\n }\n }\n if (type === 'NEW_SMS') {\n // if (NOTIFICATIONS_TYPES_GROUPS.MESSAGES.includes(type))\n const url = lead && `/leads/${lead ? lead.id : ''}`;\n let linkText = 'Lead sms';\n let from = `${lead && lead.firstName}`;\n let description = `You have a unread sms from ${lead && lead.firstName} ${lead &&\n lead.lastName}`;\n\n if (!lead) {\n description = sms.text;\n from = `+1${sms.receivedFrom}`;\n linkText = 'Sms received';\n }\n\n const data = { url, linkText, avatar: userTriggerAvatar };\n\n return {\n ...data,\n title: `${from} sent you a new sms`,\n description,\n };\n }\n if (type === 'MISSED_CALL') {\n return {\n ...(lead\n ? {\n title: `${lead.firstName} called you`,\n url: `/leads/${lead.id}`,\n linkText: 'Lead call',\n description: `You missed a call from ${lead.firstName} ${lead.lastName}`,\n }\n : {\n title: 'Someone called you',\n url: '/reports/inbound-calls-logs',\n linkText: 'See more',\n description: 'You missed a call from an unknown number',\n }),\n avatar: userTriggerAvatar,\n };\n }\n throw Error('This notification type is invalid');\n}\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Row, Heading, Button, Loader, Icon } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { NotificationsListItem } from './NotificationsListItem';\nimport { OnAllNotificationMarkRead, OnAllNotificationMarkReadError } from '../notifications-store';\nimport { markAllNotificationsAsRead, markNotificationsAsRead } from '../notifications-actions';\nimport PropTypes from 'prop-types';\n\nexport const NotificationCard = ({ user, agency, items, count, loading, unread, next }) => {\n const [updating, setUpdating] = useState(false);\n\n useEffect(() => {\n if (unread.length > 0) {\n /**\n * When the notification card opens,\n * after 2 seconds, mark the unread\n * notifications as read\n */\n const timeout = setTimeout(() => {\n markNotificationsAsRead(unread.map((notification) => notification.id));\n }, 2000);\n\n return () => clearTimeout(timeout);\n }\n }, [unread]);\n\n const markAllAsRead = useCallback(() => {\n setUpdating(true);\n\n markAllNotificationsAsRead(user, agency);\n }, [user, agency]);\n\n useSubscription(\n OnAllNotificationMarkRead,\n () => {\n setUpdating(false);\n },\n [],\n );\n\n useSubscription(\n OnAllNotificationMarkReadError,\n (e) => {\n setUpdating(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const notifications = useMemo(\n () => items.map((item) => ),\n [items],\n );\n\n const loader = loading ? (\n \n \n \n ) : null;\n\n const more =\n !loading && items.length < count ? (\n \n \n Load More\n \n \n ) : null;\n\n const content =\n notifications.length > 0 ? (\n notifications\n ) : (\n \n \n \n );\n\n return (\n \n \n \n Notifications\n \n Mark all as read\n \n \n \n \n {content}\n {more}\n {loader}\n \n \n );\n};\n\nNotificationCard.propTypes = {\n user: PropTypes.string.isRequired,\n agency: PropTypes.string.isRequired,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n }),\n ).isRequired,\n count: PropTypes.number.isRequired,\n loading: PropTypes.bool.isRequired,\n unread: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n }),\n ).isRequired,\n next: PropTypes.func.isRequired,\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchNotifications } from '../notifications-actions';\nimport { OnFetchNotifications, OnFetchNotificationsError } from '../notifications-store';\n\nconst initialState = {\n items: [],\n count: 0,\n error: null,\n loading: true,\n unread: [],\n};\n\n/**\n * Manages states of notification list\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n * @param {number} unread - The number of unread notifications\n *\n * @returns {object} The hook state\n */\nexport function useNotificationsList(user, agency, unread) {\n const [state, setState] = useState(initialState);\n const [page, setPage] = useState(1);\n\n const fetch = useCallback(() => {\n setState((prevState) => ({ ...prevState, loading: true, unread: [] }));\n\n fetchNotifications(user, agency, page);\n }, [user, agency, page]);\n\n const next = useCallback(() => {\n setPage((prevPage) => prevPage + 1);\n }, []);\n\n const refresh = useCallback(() => {\n setState((prevState) => {\n if (prevState.loading) {\n return prevState;\n }\n\n if (page === 1) {\n fetchNotifications(user, agency, 1);\n } else {\n setPage(1);\n }\n\n return {\n ...prevState,\n loading: true,\n error: null,\n unread: [],\n };\n });\n }, [user, agency, page]);\n\n useSubscription(\n OnFetchNotifications,\n ({ notificationsList }) => {\n setState((prevState) => ({\n count: notificationsList?.count ?? 0,\n items:\n page === 1 ? notificationsList.items : [...prevState.items, ...notificationsList.items],\n unread: notificationsList.items.filter((item) => item.read === false),\n error: null,\n loading: false,\n }));\n },\n [page],\n );\n\n useSubscription(\n OnFetchNotificationsError,\n (e) => {\n console.log('error fetching notifications');\n setState((prevState) => ({\n ...prevState,\n error: e,\n }));\n },\n [],\n );\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useEffect(() => {\n refresh();\n }, [refresh, unread]);\n\n return {\n ...state,\n next,\n refresh,\n };\n}\n","import { useEffect } from 'react';\nimport { useSubscription } from '@apollo/client/react/hooks';\nimport { message } from '../../../shared/components/toast/Toast';\nimport { NEW_SMS_NOTIFICATIONS_SUBSCRIPTION } from '../notifications-querys';\n\nexport function useNewSMSMessageNotifications(userId: string, agencyId: string) {\n const variables = { userId, agencyId };\n\n const { error } = useSubscription(NEW_SMS_NOTIFICATIONS_SUBSCRIPTION, {\n variables,\n onSubscriptionData(options) {\n const { subscriptionData } = options;\n if (!subscriptionData.data.Notification.node.sms) return;\n message(\n subscriptionData.data.Notification.node.id,\n subscriptionData.data.Notification.node.sms,\n );\n },\n });\n\n useEffect(() => {\n console.log('[Error] Error comming from the sms notification subscription: ', error?.message);\n }, [error]);\n}\n","import React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport IconCount from '../../shared/components/IconCount';\nimport { Dropdown } from '@8base/boost';\nimport { NotificationCard } from './components/NotificationCard';\nimport { useNotificationsCount } from './hooks/useNotificationsCount';\nimport { useNotificationsList } from './hooks/useNotificationsList';\nimport { useNewSMSMessageNotifications } from './hooks/useNewSMSMessagesNotifications';\n\n// import { useSubscription } from '@cobuildlab/react-simple-state';\n// import { OnNotificationMarkRead, OnAllNotificationMarkRead } from './notifications-store';\n// import * as toast from '../../shared/components/toast/Toast';\n\n/**\n * @param {object} props - Component Props.\n * @param {string} props.user - User id.\n * @param {string} props.agency - Agency id.\n * @returns {React.ReactNode} NotificationsIcon component.\n */\nconst NotificationsIcon = ({ user, agency }) => {\n const count = useNotificationsCount(user, agency);\n const notifications = useNotificationsList(user, agency, count.number);\n useNewSMSMessageNotifications(user, agency);\n\n //TODO: reactive subscriptions when safe\n /*useSubscription(\n OnNotificationMarkRead,\n () => {\n count.refresh();\n },\n [count.refresh],\n );\n\n useSubscription(\n OnAllNotificationMarkRead,\n ({ notificationUpdateByFilter }) => {\n toast.success('Success', `${notificationUpdateByFilter.count} notifications marked as read`);\n\n count.refresh();\n },\n [count.refresh],\n );*/\n\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nNotificationsIcon.propTypes = {\n user: PropTypes.string.isRequired,\n agency: PropTypes.string.isRequired,\n};\n\nexport default NotificationsIcon;\n","// import { useQuery } from '@apollo/react-hooks';\n// import { useQuery } from '@apollo/client/react/hooks';\n// import { useEffect } from 'react';\n// import { FETCH_NOTIFICATIONS_COUNT, SUBSCRIPTION_NOTIFICATION } from '../notifications-querys';\n// import * as toast from '../../../shared/components/toast/Toast';\n\n/**\n * @typedef {object} UseNotificationsCount\n * @property {number} number - number of notifications.\n * @property {boolean} loading - Whether the query is running or not.\n * @property {() => Promise} refetch - refetch information about the count.\n */\n\n/**\n * Hook that returns a live count\n * of not readed notifications\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n * @returns {UseNotificationsCount} The hook result\n */\nexport function useNotificationsCount(user, agency) {\n /*const { data, loading, refetch, subscribeToMore, error } = useQuery(FETCH_NOTIFICATIONS_COUNT, {\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n user: {\n id: {\n equals: user,\n },\n },\n agency: {\n id: {\n equals: agency,\n },\n },\n read: {\n equals: false,\n },\n },\n },\n });\n\n useEffect(() => {\n if (error) {\n console.log('Query error:', error.message);\n }\n }, [error]);\n\n useEffect(() => {\n let timer = null;\n\n const unsubscribe = subscribeToMore({\n document: SUBSCRIPTION_NOTIFICATION,\n variables: {\n user,\n agency,\n },\n updateQuery: (prev, { subscriptionData: { data } }) => {\n **\n * Timeout to avoid doing fetchs\n * if the function is called to many times\n * in a short period of time\n **\n timer = setTimeout(() => {\n refetch();\n }, 1000);\n\n if (data.Notification.node.read === false) {\n if (data.Notification.node.sms) {\n toast.message(data.Notification.node.id, data.Notification.node.sms);\n }\n\n if (data.Notification.node.email) {\n toast.email(data.Notification.node.id, data.Notification.node.email);\n }\n }\n\n return prev;\n },\n onError: (e) => console.log('Subscription error:', e, user, agency),\n });\n\n return () => {\n unsubscribe();\n clearTimeout(timer);\n };\n }, [user, agency, refetch, subscribeToMore]);\n\n let number = data?.notificationsList.count || 0;\n number = number > 99 ? 99 : number;*/\n\n /*return {\n number,\n loading,\n refresh: refetch,\n };*/\n\n //Notifications count intering solution\n //Removing notifications count logic from the useNotificationsList hook\n //TODO: resctructure notification counts logic\n\n return {\n number: 0,\n loading: false,\n refresh: {},\n };\n}\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const onFetchChannelMembers = createEvent();\nexport const onFetchChannelMembersError = createEvent();\n\nexport const onFetchUnreadMessages = createEvent();\nexport const onFetchUnreadMessagesError = createEvent();\n","import gql from 'graphql-tag';\n\nexport const CHAT_CHANNEL_MEMBER_SUBSCRIPTION = gql`\n subscription($id: ID!) {\n ChannelMember(\n filter: { node: { user: { id: { equals: $id } } }, mutation_in: [create, update] }\n ) {\n node {\n id\n lastReadTS\n }\n mutation\n }\n }\n`;\nexport const CHAT_CHANNEL_MEMBER_QUERY = gql`\n query FetchChannelMembersList($id: ID!) {\n channelMembersList(filter: { user: { id: { equals: $id } } }) {\n items {\n id\n channel {\n id\n }\n lastReadTS\n }\n }\n }\n`;\n\nexport const UNREAD_MESSAGES_QUERY = gql`\n query FetchMessagesList($id: ID!, $date: DateTime) {\n messagesList(\n filter: {\n channel: { id: { equals: $id } }\n createdAt: { gt: $date }\n # createdBy: { not_self: true }\n }\n ) {\n items {\n text\n createdBy {\n id\n }\n }\n count\n }\n }\n`;\nexport const NEW_MESSAGE_SUBSCRIPTION = gql`\n subscription($user: ID!) {\n Message(\n filter: {\n node: {\n channel: { members: { some: { user: { id: { equals: $user } } } } }\n # createdBy: { id: { not_equals: $user } }\n }\n mutation_in: create\n }\n ) {\n node {\n id\n createdBy {\n id\n }\n }\n }\n }\n`;\n","import { OnApolloClient } from '../../shared/session/session-events';\nimport {\n onFetchChannelMembers,\n onFetchChannelMembersError,\n onFetchUnreadMessages,\n onFetchUnreadMessagesError,\n} from './chat-events';\nimport { CHAT_CHANNEL_MEMBER_QUERY, UNREAD_MESSAGES_QUERY } from './chat-querys';\n\n/**\n * @param {string } userId - User id.\n */\nexport async function fetchChannelsMembers(userId) {\n const client = OnApolloClient.get();\n let response;\n\n try {\n response = await client.query({\n query: CHAT_CHANNEL_MEMBER_QUERY,\n variables: { id: userId },\n fetchPolicy: 'network-only',\n });\n onFetchChannelMembers.dispatch(response.data);\n } catch (error) {\n onFetchChannelMembersError.dispatch(error);\n throw error;\n }\n return response.data;\n}\n/**\n * @param {string} userId - User id.\n * @param {Array} channels - channels\n */\nexport async function fetchUnreadMessages(userId, channels) {\n const client = OnApolloClient.get();\n\n const responses = channels.map(async ({ channel, lastReadTS }) => {\n const variables = { id: channel.id, date: lastReadTS };\n try {\n const response = await client.query({\n query: UNREAD_MESSAGES_QUERY,\n variables,\n fetchPolicy: 'network-only',\n });\n return response;\n } catch (error) {\n return {\n error,\n };\n }\n });\n\n const results = await Promise.all(responses);\n\n if (results.find((item) => item.error) === -1) {\n onFetchUnreadMessagesError.dispatch(results.filter((item) => item.error));\n return;\n }\n const responsesData = results.map((item) => item.data);\n onFetchUnreadMessages.dispatch(responsesData);\n\n return responsesData;\n}\n","import { ApolloClient, InMemoryCache, HttpLink, split, from } from '@apollo/client';\nimport { WebSocketLink } from '@apollo/client/link/ws';\nimport { getMainDefinition } from '@apollo/client/utilities';\nimport { setContext } from '@apollo/client/link/context';\nimport { onError } from '@apollo/client/link/error';\nimport { OnTokenExpired } from '../session/session-events';\n\nconst EIGHTBASE_WS_ENDPOINT = 'wss://ws.8base.com';\nconst ENVIRONMENT_NAME = process.env.REACT_APP_ENVIRONMENT_NAME;\nconst WORKSPACE_ENDPOINT = process.env.REACT_APP_WORKSPACE_ENDPOINT;\nconst WORKSPACE_ID = process.env.REACT_APP_WORKSPACE_ID;\n\n/**\n * @param {Function} getToken - Function to get the token.\n * @param {object} headers - Extra header to the client.\n *\n * @returns {object} Apollo client.\n */\nexport function createApolloClient(getToken, headers = {}) {\n const httpLink = new HttpLink({\n uri: WORKSPACE_ENDPOINT,\n });\n\n const authLink = setContext((_, { headers: _headers }) => {\n return {\n headers: {\n ...headers,\n ..._headers,\n authorization: `Bearer ${getToken()}`,\n },\n };\n });\n\n const errorLink = onError((error) => {\n if (error.graphQLErrors) {\n // eslint-disable-next-line no-param-reassign\n error.graphQLErrors = error.graphQLErrors.map((options) => {\n if (options.message === 'Token expired') {\n OnTokenExpired.dispatch(options.message);\n\n return { ...options, message: 'Your session has expired' };\n }\n\n return options;\n });\n }\n\n if (error.response) {\n // eslint-disable-next-line no-param-reassign\n error.response.errors = error.response.errors?.map((options) => {\n if (options.message === 'Token expired') {\n OnTokenExpired.dispatch(options.message);\n\n return { ...options, message: 'Your session has expired' };\n }\n\n return options;\n });\n }\n });\n\n const wsLink = new WebSocketLink({\n uri: `${EIGHTBASE_WS_ENDPOINT}`,\n options: {\n reconnect: true,\n connectionParams: () => {\n const params = {\n token: getToken(),\n workspaceId: WORKSPACE_ID,\n };\n if (\n ENVIRONMENT_NAME &&\n typeof ENVIRONMENT_NAME === 'string' &&\n ENVIRONMENT_NAME.length > 0 &&\n ENVIRONMENT_NAME.toLowerCase() !== 'master'\n ) {\n params.environmentName = ENVIRONMENT_NAME;\n }\n return params;\n },\n },\n webSocketImpl: class WebSocketWithoutProtocol extends WebSocket {\n // eslint-disable-next-line no-useless-constructor\n constructor(url) {\n super(url); // ignore protocol\n }\n },\n });\n\n const splitLink = split(\n ({ query }) => {\n const definition = getMainDefinition(query);\n return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';\n },\n wsLink,\n httpLink,\n );\n\n const link = from([authLink, errorLink, splitLink]);\n\n const client = new ApolloClient({\n uri: WORKSPACE_ENDPOINT,\n link: link,\n cache: new InMemoryCache(),\n });\n\n return client;\n}\n","import React, { useState } from 'react';\nimport { createApolloClient } from '.';\nimport PropTypes from 'prop-types';\nimport { getUserToken } from '../helpers';\nimport { ApolloProvider } from '@apollo/client';\n/**\n * @returns {object} Apollo client\n */\nexport function apolloClient() {\n return createApolloClient(() => getUserToken());\n}\n// createApolloClient\n/**\n * @param {object} props - Props\n * @param {React.Component} props.children - Children element\n * @returns {React.FC} - React Component.\n */\nexport function Apollo({ children }) {\n const [apollo] = useState(() => createApolloClient(() => getUserToken()));\n return {children};\n}\n\nApollo.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n};\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport IconCount from 'shared/components/IconCount';\nimport Chat from '@cobuildlab/8base-chat';\nimport { getUserToken } from '../../shared/helpers';\nimport '@cobuildlab/8base-chat/dist/8base-chat.css';\nimport { fetchChannelsMembers, fetchUnreadMessages } from './chat-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { onFetchChannelMembers, onFetchUnreadMessages } from './chat-events';\nimport { apolloClient } from '../../shared/apollo/Apollo';\nimport { NEW_MESSAGE_SUBSCRIPTION } from './chat-querys';\n\nconst WORKSPACE_ENDPOINT = process.env.REACT_APP_WORKSPACE_ENDPOINT;\nconst WORKSPACE_ID = process.env.REACT_APP_WORKSPACE_ID;\n\n/**\n * @param {object} props props\n * @param {string} props.user user id\n * @returns {React.FC} Chat icon component\n */\nfunction ChatIcon({ user }) {\n const [userToken] = useState(() => getUserToken());\n const [channelsMembers, setChannelsMembers] = useState([]);\n const [unreadCount, setUnreadCount] = useState(0);\n const [showChatSidebar, setShowChatSidebar] = useState(false);\n const toggleSidebar = () => {\n setShowChatSidebar((value) => !value);\n };\n useEffect(() => {\n if (showChatSidebar) {\n return;\n }\n fetchChannelsMembers(user.id);\n }, [user, showChatSidebar]);\n\n useSubscription(\n onFetchChannelMembers,\n ({ channelMembersList: { items } }) => {\n console.log('items', items);\n\n setChannelsMembers(items);\n },\n [],\n );\n\n useEffect(() => {\n if (channelsMembers.length > 0) {\n fetchUnreadMessages(user.id, channelsMembers);\n }\n }, [user, channelsMembers]);\n\n useSubscription(\n onFetchUnreadMessages,\n (data) => {\n const count = data.reduce((prevCount, { messagesList }) => {\n const messages = messagesList.items.filter((item) => item.createdBy.id !== user.id);\n return prevCount + Number(messages.length);\n }, 0);\n\n setUnreadCount(count);\n },\n [],\n );\n\n useEffect(() => {\n const client = apolloClient();\n const subcription = client.subscribe({\n query: NEW_MESSAGE_SUBSCRIPTION,\n variables: {\n user: user.id,\n },\n });\n const subcriptionCallback = subcription.subscribe(({ data }) => {\n if (data?.Message?.node?.id) {\n const message = data?.Message?.node;\n\n if (message.createdBy.id === user.id) {\n return;\n }\n\n setUnreadCount((prevCount) => prevCount + 1);\n }\n });\n return () => {\n subcriptionCallback.unsubscribe();\n };\n }, [user]);\n return (\n <>\n \n {showChatSidebar && (\n \n )}\n \n );\n}\n\nChatIcon.propTypes = {\n user: PropTypes.string.isRequired,\n};\n\nexport default ChatIcon;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport IconCount from './IconCount';\nimport DialogProfile from './dialog/DialogProfile';\nimport AvatarWithStatus from './AvatarWithStatus';\nimport { routes } from './Menu';\nimport { withRouter } from 'react-router-dom';\nimport { withAuth } from '@8base/react-sdk';\nimport { compose } from 'recompose';\nimport { Row, Text, Icon } from '@8base/boost';\nimport Dropdown from './ui/dropdowns/Dropdown';\nimport { getUserAgencies, getActiveAgency } from '../utils/agency-utils';\nimport { isCompanyAvailableFromAgencyId, isAdminInCompany } from '../utils/company-utils';\nimport { DropdownOption } from './ui/dropdowns/DropdownOption';\nimport { DropdownWrap } from './ui/dropdowns/DropdownWrap';\nimport { OnSessionFetch } from '../session/session-events';\nimport { DialogInvitations } from '../../modules/onboarding/components/DialogInvitations';\nimport {\n declineAgencyInvitation,\n acceptAgencyInvitation,\n} from '../../modules/agency-invitation/agency-invitation-actions';\nimport {\n declineCompanyInvitation,\n acceptCompanyInvitation,\n} from '../../modules/company-invitation/company-invitation-actions';\nimport * as R from 'ramda';\nimport { useSubscription } from '@cobuildlab/react-flux-state';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchSession } from '../../modules/auth/auth.actions';\nimport agencyStore, { AGENCY_ERROR_EVENT } from '../../modules/agency/agency-store';\nimport { onErrorMixinFC } from '../mixins';\nimport { getPendingInvitations } from '../utils/invitations-utils';\nimport { useAutomaticCalls } from '../../modules/phone-calls/phone-calls-hooks';\nimport AutomaticCallsIcon from '../../modules/phone-calls/Components/AutomaticCallsIcon';\nimport NotificationsIcon from '../../modules/notifications/NotificationsIcon';\nimport ChatIcon from '../../modules/chat/ChatIcon';\nimport * as Toast from './toast/Toast';\nimport { apolloClient } from '../apollo/Apollo';\nimport {\n AGENCY_INVITATIONS_SUBSCRIPTION,\n COMPANY_INVITATIONS_SUBSCRIPTION,\n} from '../../modules/auth/queries';\nimport { useUserStatus } from '../hooks/useUserStatus';\nimport {\n OnAcceptAgencyInvitationEvent,\n OnAgencyInvitationError,\n OnDeclineAgencyInvitationEvent,\n} from 'modules/agency-invitation/agency-invitation-events';\nimport {\n OnAcceptCompanyinvitationEvent,\n OnCompanyinvitationError,\n OnDeclineCompanyinvitationEvent,\n} from 'modules/company-invitation/company-invitation-events';\n\nconst Container = styled.div`\n width: calc(100% - 56px);\n margin-left: 56px;\n background-color: white;\n border-bottom: 1px solid #e9eff4;\n`;\n\nconst BarRow = styled(Row)`\n padding: 0px 24px;\n`;\n\nconst TitleContainer = styled.div`\n flex: 1 1 100px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n padding: 10px 0px;\n\n @media screen and (max-width: 615px) {\n justify-content: center;\n }\n`;\n\nconst AgencyContainer = styled.div`\n flex: 1 1 200px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px 0px;\n`;\n\nconst IconsContainer = styled.div`\n flex: 1 1 180px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 10px 0px;\n\n @media screen and (max-width: 615px) {\n justify-content: center;\n }\n`;\n\nconst Agency = styled.div`\n height: 36px;\n padding: 11px 22px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst CurrentBadge = styled.span`\n box-sizing: border-box;\n height: 20px;\n width: 57px;\n border: 1px solid #eaeff3;\n border-radius: 5px;\n color: #9b9b9b;\n font-family: 'Poppins';\n font-size: 11px;\n line-height: 20px;\n text-align: center;\n margin-left: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst { TRIALING, ACTIVE } = SUBSCRIPTION_STATUS;\n\nconst TopBar = ({ history, auth, handleOnChangeAgency, agencyId, setAgencyId }) => {\n const getTitle = (pathname) => {\n const route = routes.find((route) => {\n let pathName = pathname\n .replace('/', ' ')\n .trim()\n .split('/');\n let routePath = route.path\n .replace('/', ' ')\n .trim()\n .split('/');\n pathName = `/${pathName[0]}`;\n routePath = `/${routePath[0]}`;\n return pathName.startsWith(routePath);\n });\n return route ? route.name : '';\n };\n const [dialogIsOpen, setDialogIsOpen] = useState(false);\n const [title, setTitle] = useState(getTitle(window.location.pathname));\n const [invitationsCount, setInvitationsCount] = useState(0);\n const [dialogInvitationIsOpen, setDialogInvitationIsOpen] = useState(false);\n const [agencyInvitations, setAgencyInvitations] = useState([]);\n const [companyInvitations, setCompanyInvitations] = useState([]);\n const [isLoadingInvitations, setIsLoadingInvitations] = useState(false);\n const { user } = OnSessionFetch.get() || {};\n\n const setInvitations = () => {\n const session = OnSessionFetch.get();\n\n if (session) {\n const { agencyInvitationsList, companyInvitationsList } = session;\n const [pendingAgencyInvitations, pendingCompanyInvitations] = getPendingInvitations(\n agencyInvitationsList,\n companyInvitationsList,\n );\n\n setInvitationsCount(pendingAgencyInvitations.length + pendingCompanyInvitations.length);\n setAgencyInvitations(pendingAgencyInvitations);\n setCompanyInvitations(pendingCompanyInvitations);\n }\n };\n useEffect(() => {\n setInvitationsCount(agencyInvitations.length + companyInvitations.length);\n }, [agencyInvitations, companyInvitations]);\n\n useEffect(() => {\n const client = apolloClient();\n\n const agencyInvitationSubscription = client.subscribe({\n query: AGENCY_INVITATIONS_SUBSCRIPTION,\n variables: {\n email: user.email,\n },\n });\n const agencyInvitationSubcriptionCallback = agencyInvitationSubscription.subscribe(\n ({ data }) => {\n if (data.AgencyInvitation) {\n const invitation = data.AgencyInvitation?.node;\n setAgencyInvitations((previous) => [...previous, invitation]);\n }\n },\n );\n const companyInvitationSubscription = client.subscribe({\n query: COMPANY_INVITATIONS_SUBSCRIPTION,\n variables: {\n email: user.email,\n },\n });\n const companyInvitationSubcriptionCallback = companyInvitationSubscription.subscribe(\n ({ data }) => {\n if (data.CompanyInvitation) {\n const invitation = data.CompanyInvitation?.node;\n setCompanyInvitations((previous) => [...previous, invitation]);\n }\n },\n );\n return () => {\n agencyInvitationSubcriptionCallback.unsubscribe();\n companyInvitationSubcriptionCallback.unsubscribe();\n };\n }, [user.email]);\n useEffect(() => {\n setInvitations();\n }, []);\n\n useEffect(() => {\n const unlisten = history.listen((location) => {\n setTitle(getTitle(location.pathname));\n\n if (!isCompanyAvailableFromAgencyId(agencyId)) {\n if (!location.pathname.startsWith('/settings/billing')) {\n history.replace('/settings/billing');\n }\n }\n });\n\n return () => unlisten();\n }, [history, agencyId]);\n\n const handleOnSubscription = async () => {\n await fetchSession();\n setIsLoadingInvitations(false);\n setDialogInvitationIsOpen(false);\n setInvitations();\n };\n\n useSimpleSubscription(OnAcceptAgencyInvitationEvent, handleOnSubscription);\n useSimpleSubscription(OnDeclineAgencyInvitationEvent, handleOnSubscription);\n useSimpleSubscription(OnAgencyInvitationError, onErrorMixinFC);\n useSimpleSubscription(OnAcceptCompanyinvitationEvent, handleOnSubscription);\n useSimpleSubscription(OnDeclineCompanyinvitationEvent, handleOnSubscription);\n useSimpleSubscription(OnCompanyinvitationError, onErrorMixinFC);\n useSimpleSubscription(OnCompanyinvitationError, onErrorMixinFC);\n useSubscription(agencyStore, AGENCY_ERROR_EVENT, onErrorMixinFC);\n\n useSimpleSubscription(\n OnSessionFetch,\n () => {\n const agency = getActiveAgency();\n\n if (agency) {\n setAgencyId(agency.id);\n }\n },\n [],\n );\n\n const handleOnAcceptAgencyInvitation = (invitation) => {\n setIsLoadingInvitations(true);\n acceptAgencyInvitation(R.clone(invitation));\n };\n const handleOnDeclineAgencyInvitation = (invitation) => {\n setIsLoadingInvitations(true);\n declineAgencyInvitation(R.clone(invitation));\n };\n const handleOnAcceptCompanyInvitation = (invitation) => {\n setIsLoadingInvitations(true);\n acceptCompanyInvitation(R.clone(invitation));\n };\n const handleOnDeclineCompanyInvitation = (invitation) => {\n setIsLoadingInvitations(true);\n declineCompanyInvitation(R.clone(invitation));\n };\n\n const isAgencyEnabled = useCallback((agency) => {\n const { company } = agency;\n const [subscription] = company.subscriptions.items;\n\n return subscription.status === TRIALING || subscription.status === ACTIVE;\n }, []);\n\n const optionComponent = (agency) => (props) => {\n // eslint-disable-next-line\n const { active } = props;\n const { name } = agency;\n const isEnabled = isAgencyEnabled(agency);\n\n return (\n \n {name}\n {active && Current}\n {!isEnabled && }\n \n );\n };\n const agencies = getUserAgencies();\n const { active, setActive, statusType, agencySetting } = useAutomaticCalls(auth);\n const isCompanyAvailable = isCompanyAvailableFromAgencyId(agencyId);\n const status = useUserStatus();\n\n return (\n \n \n \n \n {title}\n \n \n \n {agencyId !== '' && (\n \n {agencies.length > 1 ? (\n ({\n value: agency.id,\n Component: optionComponent(agency),\n disabled: !isAgencyEnabled(agency) && !isAdminInCompany(agency.company),\n onDisabledClick: () => Toast.error('This agency is not available right now'),\n }))}\n />\n ) : (\n \n {agencyId !== '' && (\n {agencies.find((agency) => agency.id === agencyId).name}\n )}\n \n )}\n \n )}\n \n \n \n {isCompanyAvailable && (\n <>\n {active && }\n {\n if (invitationsCount > 0) {\n setDialogInvitationIsOpen(true);\n }\n }}\n />\n \n \n \n )}\n {user && (\n setDialogIsOpen(!dialogIsOpen)}\n />\n )}\n \n \n \n setDialogIsOpen(false)}\n activeAgency={agencies.find((agency) => agency.id === agencyId)}\n callsState={active}\n callsAction={setActive}\n showSwitch={agencySetting}\n />\n setDialogInvitationIsOpen(false)}\n isLoading={isLoadingInvitations}\n onClickAcceptAgencyInvitation={handleOnAcceptAgencyInvitation}\n onClickDeclineAgencyInvitation={handleOnDeclineAgencyInvitation}\n onClickAcceptCompanyInvitation={handleOnAcceptCompanyInvitation}\n onClickDeclineCompanyInvitation={handleOnDeclineCompanyInvitation}\n />\n \n );\n};\n\nTopBar.propTypes = {\n history: PropTypes.object.isRequired,\n handleOnChangeAgency: PropTypes.func.isRequired,\n agencyId: PropTypes.string.isRequired,\n setAgencyId: PropTypes.func.isRequired,\n auth: PropTypes.object.isRequired,\n};\n\nexport default compose(withRouter, withAuth)(TopBar);\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Breadcrumbs as BreadcrumbsBoost, Paper } from '@8base/boost';\r\nimport styled from 'styled-components';\r\nimport { withRouter } from 'react-router-dom';\r\nimport { matchPath } from 'react-router';\r\n\r\nconst BreadcrumbsContainer = styled.div`\r\n padding: 5px 24px;\r\n a {\r\n text-decoration: none !important;\r\n }\r\n`;\r\n\r\nconst Breadcrumb = styled.span`\r\n opacity: 0.9;\r\n color: #384a59;\r\n font-size: 14px;\r\n line-height: 20px;\r\n font-family: 'Poppins';\r\n`;\r\n\r\nconst routeComponent = (name) => () => {name};\r\n\r\nconst routes = [\r\n {\r\n path: '/app',\r\n component: routeComponent('Lead Volt'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/campaigns',\r\n component: routeComponent('Campaigns'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/leads',\r\n component: routeComponent('Lead Management'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/leads/upload',\r\n component: routeComponent('Upload'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/tasks/list',\r\n component: routeComponent('Tasks > List'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/tasks/calendar',\r\n component: routeComponent('Tasks > Calendar'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/email',\r\n component: routeComponent('Emails'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/workflow/workflow-automation',\r\n component: routeComponent('Workflow Automations'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/workflow/email-template',\r\n component: routeComponent('Workflow Automations > Email Templates'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/workflow/sms-template',\r\n component: routeComponent('Workflow Automations > SMS Templates'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/general',\r\n component: routeComponent('Settings > Profile'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/email',\r\n component: routeComponent('Settings > Email'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/billing',\r\n component: routeComponent('Settings > Billing'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/company',\r\n component: routeComponent('Settings > Company'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/company-invitations',\r\n component: routeComponent('Settings > Company Invitations'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/invitations',\r\n component: routeComponent('Settings > Invitations'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/voice-mail-messages',\r\n component: routeComponent('Settings > Voice Mail Messages'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/phone-call',\r\n component: routeComponent('Settings > Phone Calls Settings'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/vendors',\r\n component: routeComponent('Settings > Vendors'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/services/email/inbound',\r\n component: routeComponent('Settings > Inbound Service Configuration'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/services/email/outbound',\r\n component: routeComponent('Settings > Outbound Service Configuration'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/agency',\r\n component: routeComponent('Settings > Agency'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/phone-numbers',\r\n component: routeComponent('Settings > Phone Numbers'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/settings/team',\r\n component: routeComponent('Settings > Team'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/reports/phone-call-recordings',\r\n component: routeComponent('Reports > Phone Call Recordings'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/reports/leads-funnel',\r\n component: routeComponent('Reports > Leads Funnel'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/reports/phone-calls-logs',\r\n component: routeComponent('Reports > Phone Calls Logs'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/reports/email-logs',\r\n component: routeComponent('Reports > Email Logs'),\r\n matchOptions: { exact: true },\r\n },\r\n {\r\n path: '/app/reports/sms-logs',\r\n component: routeComponent('Reports > SMS Logs'),\r\n matchOptions: { exact: true },\r\n },\r\n];\r\nconst ignoreRoutes = ['/dashboard'];\r\n\r\nconst Breadcrumbs = ({ location }) => {\r\n return (\r\n <>\r\n {ignoreRoutes.indexOf(location.pathname) === -1 ? (\r\n \r\n \r\n \r\n \r\n \r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nBreadcrumbs.propTypes = {\r\n location: PropTypes.object.isRequired,\r\n};\r\n\r\nexport default withRouter(Breadcrumbs);\r\n","import gql from 'graphql-tag';\n\nexport const FETCH_PHONE_CALL_RECORDINGS = gql`\n query FetchPhoneCallRecordings(\n $filter: PhoneCallRecordingFilter\n $first: Int\n $skip: Int\n $orderBy: [PhoneCallRecordingOrderBy]\n ) {\n phoneCallRecordingsList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n items {\n id\n recordingSid\n recordingUrl\n duration\n inboundCall {\n to {\n number {\n code\n number\n }\n }\n from\n duration\n createdAt\n }\n call {\n to\n from {\n number {\n code\n number\n }\n }\n duration\n lead {\n firstName\n lastName\n }\n user {\n firstName\n lastName\n }\n createdAt\n }\n }\n count\n }\n }\n`;\n\nexport const DELETE_PHONE_CALL_RECORDING = gql`\n mutation DeletePhoneCallRecording($data: PhoneCallRecordingDeleteInput) {\n phoneCallRecordingDelete(data: $data) {\n success\n }\n }\n`;\n\nexport const FETCH_FILE_UPLOAD_INFO = gql`\n query FetchFileUploadInfo {\n fileUploadInfo {\n policy\n signature\n apiKey\n path\n }\n }\n`;\n","import { FETCH_FILE_UPLOAD_INFO } from '../../modules/phone-calls/phone-call-recordings/phone-call-recordings-queries';\nimport { OnApolloClient } from '../session/session-events'; // eslint-disable-line import/no-unresolved\n\n/**\n * Uploads file in Filestack and retrieves data needed to connect with entities in 8base\n *\n * @param {File} file - The files loaded\n *\n * @returns {Promise} Promise with the result of the request\n */\nexport const uploadFile = async (file) => {\n const client = OnApolloClient.get();\n\n const info = await client.query({\n query: FETCH_FILE_UPLOAD_INFO,\n fetchPolicy: 'network-only',\n });\n\n const {\n fileUploadInfo: { apiKey, policy, path, signature },\n } = info.data;\n const form = new FormData();\n\n form.append('fileUpload', file);\n\n const endpoint = `https://www.filestackapi.com/api/store/S3?key=${apiKey}&path=${path}&policy=${policy}&signature=${signature}`;\n\n const response = await fetch(endpoint, {\n method: 'POST',\n body: form,\n });\n\n const body = await response.json();\n const url = body.url.split('/');\n const { [url.length - 1]: handle } = url;\n\n return {\n handle,\n filename: body.filename,\n };\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchVoiceMailMessagesEvent = createEvent();\n\nexport const OnFetchVoiceMailMessagesError = createEvent();\n\nexport const OnCreateVoiceMailMessageEvent = createEvent();\n\nexport const OnCreateVoiceMailMessageError = createEvent();\n\nexport const OnUpdateVoiceMailMessageEvent = createEvent();\n\nexport const OnUpdateVoiceMailMessageError = createEvent();\n\nexport const OnDeleteVoiceMailMessageEvent = createEvent();\n\nexport const OnDeleteVoiceMailMessageError = createEvent();\n","import gql from 'graphql-tag';\n\nexport const VoiceMailMessageFragment = gql`\n fragment VoiceMailMessageFragment on VoiceMailMessage {\n id\n name\n active\n type\n createdAt\n audio {\n id\n fileId\n filename\n downloadUrl\n }\n createdBy {\n id\n firstName\n lastName\n }\n }\n`;\n\nexport const FETCH_VOICE_MAIL_MESSAGES = gql`\n query FetchVoiceMailMessages(\n $filter: VoiceMailMessageFilter\n $orderBy: [VoiceMailMessageOrderBy]\n $first: Int\n $skip: Int\n ) {\n voiceMailMessagesList(filter: $filter, orderBy: $orderBy, first: $first, skip: $skip) {\n items {\n ...VoiceMailMessageFragment\n }\n count\n }\n }\n ${VoiceMailMessageFragment}\n`;\n\nexport const CREATE_VOICE_MAIL_MESSAGE = gql`\n mutation CreateVoiceMailMessage($data: VoiceMailMessageCreateInput!) {\n voiceMailMessageCreate(data: $data) {\n ...VoiceMailMessageFragment\n }\n }\n ${VoiceMailMessageFragment}\n`;\n\nexport const UPDATE_VOICE_MAIL_MESSAGE = gql`\n mutation UpdateVoiceMailMessage($data: VoiceMailMessageUpdateInput!) {\n voiceMailMessageUpdate(data: $data) {\n ...VoiceMailMessageFragment\n }\n }\n ${VoiceMailMessageFragment}\n`;\n\nexport const DELETE_VOICE_MAIL_MESSAGE = gql`\n mutation DeleteVoiceMailMessage($data: VoiceMailMessageDeleteInput) {\n voiceMailMessageDelete(data: $data) {\n success\n }\n }\n`;\n","import Flux from '@cobuildlab/flux-state';\n\n/**\n * Event that triggers when voice mail recordings are fetched\n *\n * @type {string}\n */\nexport const FETCH_VOICE_MAIL_MESSAGES_EVENT = 'onFetchVoiceMailMessagesEvent';\n\n/**\n * Event that triggers when voice mail recordings fetching fail\n *\n * @type {string}\n */\nexport const FETCH_VOICE_MAIL_MESSAGES_EVENT_ERROR = 'onFetchVoiceMailMessagesEventError';\n\n/**\n * Event that triggers when a new voice mail message is created\n *\n * @type {string}\n */\nexport const CREATE_VOICE_MAIL_MESSAGE_EVENT = 'onCreateVoiceMailMessageEvent';\n\n/**\n * Event that triggers when a voice mail message creation fails\n *\n * @type {string}\n */\nexport const CREATE_VOICE_MAIL_MESSAGE_EVENT_ERROR = 'onCreateVoiceMailMessageEventError';\n\n/**\n * Event that triggers when a voice mail message is updated\n *\n * @type {string}\n */\nexport const UPDATE_VOICE_MAIL_MESSAGE_EVENT = 'onUpdateVoiceMailMessageEvent';\n\n/**\n * Event that triggers when a voice mail message update fails\n *\n * @type {string}\n */\nexport const UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR = 'onUpdateVoiceMailMessageEventError';\n\n/**\n * Event that triggers when a voice mail message is deleted\n *\n * @type {string}\n */\nexport const DELETE_VOICE_MAIL_MESSAGE_EVENT = 'onDeleteVoiceMailMessageEvent';\n\n/**\n * Event that triggers when a voice mail message delete fails\n *\n * @type {string}\n */\nexport const DELETE_VOICE_MAIL_MESSAGE_EVENT_ERROR = 'onDeleteVoiceMailMessageEventError';\n\nclass VoiceMailMessageStore extends Flux.DashStore {\n constructor() {\n super();\n\n this.addEvent(FETCH_VOICE_MAIL_MESSAGES_EVENT);\n this.addEvent(FETCH_VOICE_MAIL_MESSAGES_EVENT_ERROR);\n this.addEvent(UPDATE_VOICE_MAIL_MESSAGE_EVENT);\n this.addEvent(UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR);\n this.addEvent(CREATE_VOICE_MAIL_MESSAGE_EVENT);\n this.addEvent(CREATE_VOICE_MAIL_MESSAGE_EVENT_ERROR);\n this.addEvent(DELETE_VOICE_MAIL_MESSAGE_EVENT);\n this.addEvent(DELETE_VOICE_MAIL_MESSAGE_EVENT_ERROR);\n }\n}\n\nexport default new VoiceMailMessageStore();\n","import Flux from '@cobuildlab/flux-state';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { uploadFile } from '../../../shared/utils/storage-utils';\nimport { onVoiseMailMessageList, onVoiseMailMessageListError } from '../phone-calls-events';\nimport {\n OnCreateVoiceMailMessageError,\n OnCreateVoiceMailMessageEvent,\n OnDeleteVoiceMailMessageError,\n OnDeleteVoiceMailMessageEvent,\n OnFetchVoiceMailMessagesError,\n OnFetchVoiceMailMessagesEvent,\n OnUpdateVoiceMailMessageError,\n OnUpdateVoiceMailMessageEvent,\n} from './voice-mail-message-events';\nimport {\n FETCH_VOICE_MAIL_MESSAGES,\n UPDATE_VOICE_MAIL_MESSAGE,\n CREATE_VOICE_MAIL_MESSAGE,\n DELETE_VOICE_MAIL_MESSAGE,\n} from './voice-mail-message-queries';\nimport {\n CREATE_VOICE_MAIL_MESSAGE_EVENT,\n CREATE_VOICE_MAIL_MESSAGE_EVENT_ERROR,\n UPDATE_VOICE_MAIL_MESSAGE_EVENT,\n UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR,\n DELETE_VOICE_MAIL_MESSAGE_EVENT,\n DELETE_VOICE_MAIL_MESSAGE_EVENT_ERROR,\n} from './voice-mail-message-store';\n\n/**\n * Creates a filter for VaiceMailMessages query\n *\n * @param {object} filter - Data provided\n *\n * @returns {object} 8base adapted object to filter voice mail messages\n */\nconst createFilter = (filter) => {\n let byName = {};\n let byUrl = {};\n let byActive = {};\n let byAgency = {};\n let byProperty = {};\n\n if (filter.name && Array.isArray(filter.name)) {\n const [name, namePredicate] = filter.name;\n byName = { name: { [namePredicate]: name } };\n }\n\n if (filter.url && Array.isArray(filter.url)) {\n const [url, urlPredicate] = filter.url;\n byUrl = { url: { [urlPredicate]: url } };\n }\n\n if (filter.active && Array.isArray(filter.active)) {\n const [active, activePredicate] = filter.active;\n byActive = { active: { [activePredicate]: active } };\n }\n\n if (filter.user && Array.isArray(filter.user)) {\n const [user, userPredicate] = filter.user;\n\n byProperty = {\n OR: [{ createdBy: { id: { [userPredicate]: user } } }, { type: { equals: 'PUBLIC' } }],\n };\n }\n\n byAgency = filter.agency ? { agency: { id: { equals: filter.agency } } } : {};\n\n return {\n ...byName,\n ...byUrl,\n ...byActive,\n ...byAgency,\n ...byProperty,\n };\n};\n\n/**\n * Fetches voice mail messages\n *\n * @param {object} data - Data to filter the results\n * @param {number} page - The page to fetch the data from\n * @param {string} orderBy - Ordering way of the fetching\n * @param {boolean} list - Is the event is set in the voice mails list\n * @returns {Promise} The request result\n */\nexport const fetchVoiceMailMessages = async (\n data,\n page = 1,\n orderBy = 'createdAt_DESC',\n list = true,\n) => {\n const client = OnApolloClient.get();\n const filter = createFilter(data);\n const first = 10;\n const skip = (page - 1) * first;\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_VOICE_MAIL_MESSAGES,\n variables: { filter, orderBy, first, skip },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchVoiceMailMessages', e);\n\n OnFetchVoiceMailMessagesError.dispatch(e);\n return;\n }\n\n log('fetchVoiceMailMessages', response.data);\n OnFetchVoiceMailMessagesEvent.dispatch(response.data);\n return response.data;\n};\nexport const fetchVoiceMailMessagesForCalls = async (data) => {\n const client = OnApolloClient.get();\n const filter = createFilter(data);\n const first = 20;\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_VOICE_MAIL_MESSAGES,\n variables: { filter, first },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchVoiceMailMessages', e);\n\n // Flux.dispatchEvent(FETCH_VOICE_MAIL_MESSAGES_EVENT_ERROR, e);\n onVoiseMailMessageListError.dispatch(e);\n\n return;\n }\n\n log('fetchVoiceMailMessages', response.data);\n // Flux.dispatchEvent(FETCH_VOICE_MAIL_MESSAGES_EVENT, response.data);\n onVoiseMailMessageList.dispatch(response.data);\n\n return response.data;\n};\n/**\n * Creates a new voice mail message\n *\n * @param {object} voiceMail - Voice mail object to create\n * @param {string} agencyId - Id of the agency related to the voice mail message\n * @param {Function} onProgress - Callback function to track progress of the file upload\n *\n * @returns {Promise} The request result\n */\nexport const createVoiceMailMessage = async (voiceMail, agencyId, onProgress = () => {}) => {\n const client = OnApolloClient.get();\n let uploadedInfo = null;\n let response = null;\n const data = {\n name: voiceMail.name,\n active: true,\n type: voiceMail.type,\n agency: {\n connect: {\n id: agencyId,\n },\n },\n };\n\n try {\n uploadedInfo = await uploadFile(voiceMail.file, onProgress);\n } catch (e) {\n error('createVoiceMailMessage', e);\n\n Flux.dispatchEvent(CREATE_VOICE_MAIL_MESSAGE_EVENT_ERROR, e);\n OnCreateVoiceMailMessageError.dispatch(e);\n return;\n }\n\n data.audio = {\n create: {\n fileId: uploadedInfo.handle,\n filename: uploadedInfo.filename,\n },\n };\n\n try {\n response = await client.mutate({\n mutation: CREATE_VOICE_MAIL_MESSAGE,\n variables: { data },\n });\n } catch (e) {\n error('createVoiceMailMessage', e);\n\n Flux.dispatchEvent(CREATE_VOICE_MAIL_MESSAGE_EVENT_ERROR, e);\n OnCreateVoiceMailMessageError.dispatch(e);\n\n return;\n }\n\n log('createVoiceMailMessage', response.data);\n\n Flux.dispatchEvent(CREATE_VOICE_MAIL_MESSAGE_EVENT, response.data);\n OnCreateVoiceMailMessageEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Updates a specific voice mail message\n *\n * @param {object} voiceMail - Voicemail message info to update\n * @param {Function} onProgress - Callback function to track progress of the file upload\n * @returns {Promise} The request result\n */\nexport const updateVoiceMailMessage = async (voiceMail, onProgress = () => {}) => {\n const client = OnApolloClient.get();\n let response = null;\n let uploadedInfo = null;\n\n try {\n if (voiceMail.file instanceof File) {\n uploadedInfo = await uploadFile(voiceMail.file, onProgress);\n } else {\n uploadedInfo = voiceMail.file;\n }\n } catch (e) {\n error('updateVoiceMailMessage', e);\n\n Flux.dispatchEvent(UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR, e);\n\n return;\n }\n\n const data = {\n id: voiceMail.id,\n name: voiceMail.name,\n active: voiceMail.active,\n type: voiceMail.type,\n audio: uploadedInfo.handle\n ? {\n create: {\n fileId: uploadedInfo.handle,\n filename: uploadedInfo.filename,\n },\n }\n : {\n connect: {\n id: uploadedInfo.id,\n fileId: uploadedInfo.fileId,\n },\n },\n };\n\n try {\n response = await client.mutate({\n mutation: UPDATE_VOICE_MAIL_MESSAGE,\n variables: { data },\n });\n } catch (e) {\n error('updateVoiceMailMessage', e);\n\n Flux.dispatchEvent(UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR, e);\n OnUpdateVoiceMailMessageError.dispatch(e);\n\n return;\n }\n\n log('updateVoiceMailMessage', response.data);\n\n Flux.dispatchEvent(UPDATE_VOICE_MAIL_MESSAGE_EVENT, response.data);\n OnUpdateVoiceMailMessageEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Deletes the specified voice mail message\n *\n * @param {string} id - Voice mail message Id to delete\n *\n * @returns {Promise} The request result\n */\nexport const deleteVoiceMailMessage = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: DELETE_VOICE_MAIL_MESSAGE,\n variables: { data: { id } },\n });\n } catch (e) {\n error('deleteVoiceMailMessage', e);\n\n Flux.dispatchEvent(DELETE_VOICE_MAIL_MESSAGE_EVENT_ERROR, e);\n OnDeleteVoiceMailMessageError.dispatch(e);\n return;\n }\n\n log('deleteVoiceMailMessage', response.data);\n OnDeleteVoiceMailMessageEvent.dispatch(response.data);\n Flux.dispatchEvent(DELETE_VOICE_MAIL_MESSAGE_EVENT, response.data);\n};\n","import React from 'react';\nimport { Card, Text, Icon, Row, Dialog, Button } from '@8base/boost';\nimport { PrimaryBtn as ActionButton } from '../../../shared/components/ui/buttons/PrimaryBtn';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Name = styled(Text)`\n font-size: 1.2rem !important;\n`;\n\nconst Body = styled(Dialog.Body)`\n max-height: 300px !important;\n`;\n\nconst Item = styled(Card.Section)`\n padding: 12px !important;\n cursor: pointer;\n &:hover {\n background: #eee;\n }\n`;\n\nclass VoiceMailMessagesDialog extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n isOpen: false,\n selected: null,\n };\n }\n\n open = () => this.setState({ isOpen: true });\n\n close = () => this.setState({ isOpen: false });\n\n handleSubmit = () => {\n const { onSubmit } = this.props;\n const { selected } = this.state;\n\n this.setState({ isOpen: false }, () => onSubmit(selected));\n };\n\n render() {\n const { messages } = this.props;\n const { isOpen, selected } = this.state;\n\n const items = messages.map((message) => (\n this.setState({ selected: message })}>\n \n {message.name}\n {selected && selected.id === message.id && (\n \n )}\n \n \n ));\n\n return (\n \n \n \n {items}\n \n \n \n \n \n Send Message\n \n \n \n \n );\n }\n}\n\nVoiceMailMessagesDialog.propTypes = {\n messages: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n }).isRequired,\n ).isRequired,\n selected: PropTypes.shape({\n id: PropTypes.string.isRequired,\n }),\n onSubmit: PropTypes.func.isRequired,\n};\n\nVoiceMailMessagesDialog.defaultProps = {\n selected: null,\n};\n\nexport default VoiceMailMessagesDialog;\n","import { Button, styled } from '@8base/boost';\n\nexport const ControlButton = styled(Button)`\n background-color: ${({ disabled }) =>\n disabled ? 'rgba(255,255,255,.3) !important' : ' transparent !important'};\n color: inherit !important;\n`;\n","import React, { useState, useEffect, useRef, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchVoiceMailMessagesForCalls } from '../voice-mail-message/voice-mail-message-actions';\nimport { getActiveAgency } from '../../../shared/utils/agency-utils';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport VoiceMailMessagesDialog from './VoiceMailMessagesDialog';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { ControlButton } from './ControlButton';\nimport { onVoiseMailMessageList } from '../phone-calls-events';\n\nconst Icon = styled.img`\n height: 1.5em;\n`;\n\nconst voicemailIconUrl = require('shared/assets/images/voicemail.svg');\n\nconst initialState = {\n loading: true,\n sending: false,\n selected: null,\n items: [],\n};\n\n/**\n * Voice Mail Button component\n *\n * @param {object} props - The component's prop object\n * @param {Function} props.onSubmitVoiceMail - Function to be executed after send button is clicked\n * @param {Function} props.onVoiceMailEnded - Fuction to be called after voice mail message is sent\n *\n * @returns {React.FC} The component to render\n */\nfunction VoiceMailButton({ onSubmitVoiceMail, onVoiceMailEnded }) {\n const [state, setState] = useState(initialState);\n const [user] = useUser();\n const agency = getActiveAgency();\n const modalRef = useRef(null);\n const audioRef = useRef(null);\n\n const open = useCallback(() => modalRef.current.open(), []);\n\n const handleSubmit = useCallback(\n (message) =>\n setState((state) => ({\n ...state,\n loading: true,\n selected: message,\n })),\n [],\n );\n\n const handleVoiceMailSubmit = useCallback(() => {\n if (state.selected) {\n setState((state) => ({ ...state, loading: false, sending: true }));\n\n onSubmitVoiceMail(audioRef.current);\n }\n }, [state.selected, setState, onSubmitVoiceMail]);\n\n const handleVoiceMailEnded = useCallback(() => {\n setState((state) => ({ ...state, sending: false }));\n\n onVoiceMailEnded();\n }, [onVoiceMailEnded]);\n\n useEffect(() => {\n fetchVoiceMailMessagesForCalls({\n agency: agency.id,\n user: [user.id, 'equals'],\n active: [true, 'equals'],\n });\n }, [user, agency.id]);\n\n /**\n * Effect that attaches the \"canplaythrouhg\" event to wait that the file is ready so\n * the callback can use the audio element properly\n */\n useEffect(() => {\n const audio = audioRef.current;\n\n audio.addEventListener('canplaythrough', handleVoiceMailSubmit);\n\n return () => audio.removeEventListener('canplaythrough', handleVoiceMailSubmit);\n }, [handleVoiceMailSubmit]);\n\n /**\n * Effect that attaches the \"ended\" event to the audio element to\n * connect back the microphone on voice mail message ended\n */\n useEffect(() => {\n const audio = audioRef.current;\n\n audio.addEventListener('ended', handleVoiceMailEnded);\n\n return () => audio.removeEventListener('ended', handleVoiceMailEnded);\n }, [handleVoiceMailEnded]);\n\n useSubscription(onVoiseMailMessageList, ({ voiceMailMessagesList }) => {\n setState({\n ...state,\n loading: false,\n items: voiceMailMessagesList.items,\n });\n });\n\n return (\n <>\n \n \n \n {state.sending ? 'Sending...' : 'Recordings'}\n \n \n \n );\n}\n\nVoiceMailButton.propTypes = {\n onSubmitVoiceMail: PropTypes.func.isRequired,\n onVoiceMailEnded: PropTypes.func.isRequired,\n};\n\nexport default VoiceMailButton;\n","import { createPortal } from 'react-dom';\nimport PropTypes from 'prop-types';\n\n/**\n * React portal for render the control outside main react tree\n * It renders in a div with the id=phone-calls-controls at the root of the body\n *\n * @param {object} props Props\n * @param {object} props.children React element\n * @returns {object} React element\n */\nconst ControlsPortal = ({ children }) => {\n const controlsRoot = document.getElementById('phone-calls-controls');\n return createPortal(children, controlsRoot);\n};\n\nControlsPortal.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n};\nexport default ControlsPortal;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled, { keyframes } from 'styled-components';\nimport { formatPhoneNumber } from '../phone-calls-utils';\nimport { CALL_TYPES } from '../phone-calls-model';\nimport moment from 'moment';\nimport { Text } from '@8base/boost';\nconst callPhoneIconUrl = require('shared/assets/images/call-phone.svg');\nconst pulse = keyframes`\n 0% {\n box-shadow: 0 0 0 0 rgba(255,255,255, 0.4);\n }\n 70% {\n box-shadow: 0 0 0 10px rgba(255,255,255, 0);\n }\n 100% {\n box-shadow: 0 0 0 0 rgba(255,255,255, 0);\n }\n`;\nconst Icon = styled.img`\n height: 1.5em;\n`;\nconst IconPulse = styled.div`\n box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);\n animation: ${({ calling }) => calling && pulse} 2s infinite;\n\n width: 1.5em;\n height: 1.5em;\n border-radius: 50%;\n`;\nconst Container = styled.div`\n width: 260px;\n h2 {\n font-size: 1.2em;\n font-weight: bolder;\n display: flex;\n div {\n margin-left: 10px;\n }\n }\n`;\n\n/**\n * @param {object} props - The component's props\n * @param {number} props.duration - duration of the call in milisecons\n * @param {string} props.phoneNumber - The number beign called\n * @param {string} props.callerNumber - The number that started the call\n * @param {string} props.receiverName - The name to display\n * @param {boolean} props.calling - If the call is acitive\n * @param {boolean} props.type - The type of call, either inbound or outbound\n *\n * @returns {object} React component\n */\nfunction CallInfo({ duration, phoneNumber, receiverName, calling, callerNumber, campaign, type }) {\n const label = type === CALL_TYPES.INBOUND ? 'Inbound' : 'Outbound';\n const from = formatPhoneNumber(callerNumber);\n const to = formatPhoneNumber(phoneNumber);\n\n const displayName = type === CALL_TYPES.INBOUND ? receiverName || from : receiverName || to;\n\n return (\n \n {(type === CALL_TYPES.OUTBOUND || (type === CALL_TYPES.INBOUND && receiverName !== null)) && (\n

    From: {from}

    \n )}\n

    \n {displayName}{' '}\n \n \n \n \n {campaign}\n \n

    \n {(type === CALL_TYPES.INBOUND || (type === CALL_TYPES.OUTBOUND && receiverName !== null)) && (\n

    To: {to}

    \n )}\n

    \n {label} call ᛫ {moment(duration).format('mm:ss')}\n

    \n
    \n );\n}\n\nCallInfo.propTypes = {\n phoneNumber: PropTypes.string.isRequired,\n receiverName: PropTypes.string.isRequired,\n duration: PropTypes.number.isRequired,\n calling: PropTypes.bool.isRequired,\n callerNumber: PropTypes.string.isRequired,\n campaign: PropTypes.string.isRequired,\n type: PropTypes.oneOf([CALL_TYPES.INBOUND, CALL_TYPES.OUTBOUND]).isRequired,\n};\n\nexport default CallInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Button, Icon, Grid } from '@8base/boost';\n// const callPhoneIconUrl = require('shared/assets/images/call-phone.svg');\n\nconst DialPadContainer = styled.section`\n width: 100%;\n position: fixed;\n background-color: var(--color-blue-3);\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n padding: 20px;\n color: white;\n z-index: 1;\n position: fixed;\n width: 250px;\n height: 300px;\n margin: 0 auto;\n left: 0;\n right: 0;\n top: calc(50% - 150px);\n transition: all ease-in-out 0.3s;\n transform: translate(100vw, 100vh) scale(0.01);\n opacity: 0;\n ${({ active }) =>\n active &&\n `\n opacity: 0.9;\n transform: scale(1) translate(0,0)\n `};\n`;\nconst DialCloseBtn = styled(Button)`\n position: absolute;\n top: 1em;\n right: 1em;\n /* background-color: transparent !important; */\n height: auto !important;\n padding: 0.1em !important;\n`;\nconst DialBtn = styled(Button)`\n font-size: 1.5em !important;\n background-color: transparent !important;\n height: 2.2em !important;\n width: 2.2em !important;\n padding: 0 !important;\n color: inherit !important;\n margin: 7px 0;\n`;\n/**\n * @param {object} props props.\n * @param {boolean} props.show If the pad is acitive.\n * @param {Function} props.close Close callback.\n * @param {Function} props.send Close callback.\n * @returns {object} React component\n */\nfunction DialPad({ show, close, send }) {\n return (\n \n \n \n \n \n \n send('1')}>\n 1\n \n \n \n send('2')}>\n 2\n \n \n \n send('3')}>\n 3\n \n \n \n send('4')}>\n 4\n \n \n \n send('5')}>\n 5\n \n \n \n send('6')}>\n 6\n \n \n \n send('7')}>\n 7\n \n \n \n send('8')}>\n 8\n \n \n \n send('9')}>\n 9\n \n \n \n send('*')}>\n *\n \n \n \n send('0')}>\n 0\n \n \n \n send('#')}>\n #\n \n \n \n \n );\n}\n\nDialPad.propTypes = {\n show: PropTypes.bool.isRequired,\n close: PropTypes.func.isRequired,\n send: PropTypes.func.isRequired,\n};\n\nexport default DialPad;\n","import gql from 'graphql-tag';\n\nexport const LEAD_NOTE_FRAGMENT = gql`\n fragment LEAD_NOTE_FRAGMENT on LeadNote {\n id\n createdAt\n text\n title\n notesLeadRelation {\n id\n }\n }\n`;\n\n// export const FETCH_LEAD_NOTES = gql`\n// query FetchLeadNotes($filter: LeadNoteFilter) {\n// leadNotesList(filter: $filter) {\n// count\n// items {\n// id\n// title\n// text\n// createdAt\n// }\n// }\n// }\n// `;\nexport const FETCH_LEAD_NOTES = gql`\n query FetchLeadNotes(\n $filterLeadNotes: LeadNoteFilter\n $filterDispositionNotes: LeadDispositionFilter\n ) {\n leadNotesList(filter: $filterLeadNotes) {\n count\n items {\n id\n title\n text\n createdAt\n createdBy {\n firstName\n lastName\n }\n }\n }\n leadDispositionsList(filter: $filterDispositionNotes) {\n items {\n id\n notes\n createdAt\n createdBy {\n firstName\n lastName\n }\n }\n }\n }\n`;\n\nexport const NOTE_CREATE_MUTATION = gql`\n mutation CreateLeadNote($data: LeadNoteCreateInput!) {\n leadNoteCreate(data: $data) {\n ...LEAD_NOTE_FRAGMENT\n }\n }\n ${LEAD_NOTE_FRAGMENT}\n`;\n\nexport const NOTE_UPDATE_MUTATION = gql`\n mutation UpdateLeadNote($data: LeadNoteUpdateInput!) {\n leadNoteUpdate(data: $data) {\n ...LEAD_NOTE_FRAGMENT\n }\n }\n ${LEAD_NOTE_FRAGMENT}\n`;\n\nexport const NOTE_DELETE_MUTATION = gql`\n mutation DeleteLeadNote($id: ID!) {\n leadNoteDelete(data: { id: $id }) {\n success\n }\n }\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_AUTO_FRAGMENT = gql`\n fragment LEAD_AUTO_FRAGMENT on LeadTypeAuto {\n id\n alternate\n otherInfo\n currentBodilyInjuryCoverages\n currentPropertyDamageCoverages\n }\n`;\n\nexport const LEAD_TYPE_AUTO_UPDATE_MUTATION = gql`\n mutation LeadTypeAutoUpdateMutation($data: LeadTypeAutoUpdateInput!) {\n leadTypeAutoUpdate(data: $data) {\n ...LEAD_AUTO_FRAGMENT\n }\n }\n ${LEAD_AUTO_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_COMMERCIAL_AUTO_FRAGMENT = gql`\n fragment LEAD_COMMERCIAL_AUTO_FRAGMENT on LeadTypeCommercialAuto {\n id\n name\n businessName\n businessType\n coverageAmount\n numberOfDrivers\n numberOfVehicles\n numberOfEmployees\n payroll\n sales\n updatedAt\n yearsInBusiness\n createdAt\n }\n`;\n\nexport const LEADS_TYPE_COMMERCIAL_AUTO_UPDATE_MUTATION = gql`\n mutation LeadTypeCommercialAutoUpdateMutation($data: LeadTypeCommercialAutoUpdateInput!) {\n leadTypeCommercialAutoUpdate(data: $data) {\n ...LEAD_COMMERCIAL_AUTO_FRAGMENT\n }\n }\n ${LEAD_COMMERCIAL_AUTO_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_DRIVER_FRAGMENT = gql`\n fragment LEAD_DRIVER_FRAGMENT on LeadDriver {\n additionalDrivers\n additionalVehicles\n ageFirstLicensed\n annualMileage\n antiLockBreaks\n averageDaysPerWeekUsed\n averageOneWayMileage\n birthDate\n bankruptcyInPast5Years\n cellPhone\n completedBehindTheWheel\n continuouslyInsuredMonths\n continuouslyInsuredYears\n coverageLevel\n createdAt\n creditRating\n currentBodilyInjuryCoverages\n currentCollisionDeductible\n currentComprehensiveDeductible\n currentCoverageLevel\n currentInsuranceCompanyMonths\n currentInsuranceCompanyYears\n currentPropertyDamageCoverages\n dUIDWIInThePast5Years\n dateOfDUIDWI\n daytimePhone\n desiredCollisionCoverage\n desiredComprehensiveCoverage\n eNewsletter\n education\n email\n eveningPhone\n fillingRequired\n firstName\n fullTimeStudent\n gender\n howManyIncidentsInThePast5Years\n id\n incidentsPast5Years\n insuranceCompany\n insuredPast30Days\n lastName\n licensedState\n licenseStatus\n makeOfVehicle\n maritalStatus\n modelOfVehicle\n monthsInCurrentResidence\n multiplePolicyDiscount\n occupation\n ownership\n policyExpirationDate\n preferredContactNumber\n preferredContactTime\n primaryDriver\n primaryUse\n relationshipToApplicant\n salvagedVehicle\n securitySystem\n style\n suspendedOrRevokedInThePast5Years\n ticketsAccidentsClaimsPast3Years\n trim\n updatedAt\n vehicleParking\n vin\n violationsPast5Years\n yearOfVehicle\n yearsAtCurrentResidence\n yearsInField\n activityPast5Years\n address {\n city\n country\n state\n street1\n street2\n zip\n }\n currentResidence {\n city\n country\n street1\n street2\n zip\n state\n }\n }\n`;\n\nexport const FETCH_LEAD_DRIVERS = gql`\n query FetchLeadDrivers($id: ID!) {\n lead(id: $id) {\n drivers {\n items {\n ...LEAD_DRIVER_FRAGMENT\n }\n }\n }\n }\n ${LEAD_DRIVER_FRAGMENT}\n`;\n\nexport const LEAD_DRIVER_CREATE_MUTATION = gql`\n mutation LeadDriverCreateMutation($data: LeadDriverCreateInput!) {\n leadDriverCreate(data: $data) {\n ...LEAD_DRIVER_FRAGMENT\n }\n }\n ${LEAD_DRIVER_FRAGMENT}\n`;\n\nexport const LEAD_DRIVER_UPDATE_MUTATION = gql`\n mutation LeadDriverUpdateMutation($data: LeadDriverUpdateInput!) {\n leadDriverUpdate(data: $data) {\n ...LEAD_DRIVER_FRAGMENT\n }\n }\n ${LEAD_DRIVER_FRAGMENT}\n`;\n\nexport const LEAD_DRIVER_DELETE_MUTATION = gql`\n mutation LeadDriverDeleteMutation($data: LeadDriverDeleteInput!) {\n leadDriverDelete(data: $data) {\n success\n }\n }\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_GENERAL_LIABILITY_FRAGMENT = gql`\n fragment LEAD_GENERAL_LIABILITY_FRAGMENT on LeadTypeGeneralLiability {\n id\n natureOfBusiness\n companyName\n grossSales\n numberOfEmployees\n payroll\n policyExpirationDate\n }\n`;\n\nexport const LEAD_TYPE_GENERAL_LIABILITY_UPDATE_MUTATION = gql`\n mutation LeadTypeGeneralLiabilityUpdateMutation($data: LeadTypeGeneralLiabilityUpdateInput!) {\n leadTypeGeneralLiabilityUpdate(data: $data) {\n ...LEAD_GENERAL_LIABILITY_FRAGMENT\n }\n }\n ${LEAD_GENERAL_LIABILITY_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_LIFE_FRAGMENT = gql`\n fragment LEAD_LIFE_FRAGMENT on LeadTypeLife {\n id\n birthDay\n birthMonth\n birthYear\n faceAmount\n heightFeet\n heightInches\n policyType\n lifeInsuranceInformation\n knownMedicalCondition\n smoke\n term\n weight\n age\n telemarketerName\n callbackTime\n beneficiary\n spouse\n spouseAge\n bankAccount\n code\n driveRecording\n dateGenerated\n }\n`;\n\nexport const LEAD_TYPE_LIFE_UPDATE_MUTATION = gql`\n mutation LeadTypeLifeUpdateMutation($data: LeadTypeLifeUpdateInput!) {\n leadTypeLifeUpdate(data: $data) {\n ...LEAD_LIFE_FRAGMENT\n }\n }\n ${LEAD_LIFE_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_HOME_FRAGMENT = gql`\n fragment LEAD_HOME_FRAGMENT on LeadTypeHome {\n id\n addressToBeInsured {\n city\n country\n state\n street1\n street2\n zip\n }\n ageOfRoof\n bathrooms\n bedrooms\n bestTimeToContact\n brushHazardWithin500Feet\n burglarAlarm\n businessConductedOnPremises\n cathedralVaultedCeilings\n centralHeatingAir\n claims\n comments\n constructionType\n continuouslyInsured\n copperWaterPipes\n coverageNeededOnContents\n coverageNeededOnHouse\n credit\n currentInsuranceCompany\n currentlyInsured\n deadBolts\n dob\n dogType\n dwellingType\n enclosedPorchPatio\n fencedInPool\n fireAlarm\n fireExtinguishers\n fireHydrantProximity\n fireStationProximity\n fireplaces\n floodPain\n foundationType\n frequencyOfPayment\n garageType\n hardwoodFloors\n heatType\n homeUpgradesDescribed\n homeValue\n homeUpgrades\n hotTub\n indoorSprinklers\n insuredSince\n mannedSecurityStation\n monitoredBurglarAlarm\n newPurchase\n numberOfClaims\n occupancyStatus\n otherInfo\n policyExpiration\n porches\n premium\n requestedDeductible\n requestedLiability\n sauna\n servicePanelType\n smokeDetectors\n smokerInHousehold\n squareFootage\n stories\n sumpPump\n swimmingPool\n tennisCourts\n timeAtCurrentResidence\n timeAtPreviousResidence\n timeWithCurrentCompany\n wiringType\n woodBurningStove\n yearBuilt\n }\n`;\n\nexport const LEAD_TYPE_HOME_UPDATE_MUTATION = gql`\n mutation LeadTypeHomeUpdateMutation($data: LeadTypeHomeUpdateInput!) {\n leadTypeHomeUpdate(data: $data) {\n ...LEAD_HOME_FRAGMENT\n }\n }\n ${LEAD_HOME_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_WORKERS_COMPENSATION_FRAGMENT = gql`\n fragment LEAD_WORKERS_COMPENSATION_FRAGMENT on LeadTypeWorkersCompensation {\n id\n annualPayroll\n companyName\n natureOfBusiness\n numberOfEmployees\n policyExpirationDate\n }\n`;\n\nexport const LEAD_TYPE_WORKERS_COMPENSATION_UPDATE_MUTATION = gql`\n mutation LeadTypeWorkersCompensationUpdateMutation(\n $data: LeadTypeWorkersCompensationUpdateInput!\n ) {\n leadTypeWorkersCompensationUpdate(data: $data) {\n ...LEAD_WORKERS_COMPENSATION_FRAGMENT\n }\n }\n ${LEAD_WORKERS_COMPENSATION_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LEAD_EMPLOYEE_BENEFITS_FRAGMENT = gql`\n fragment LEAD_EMPLOYEE_BENEFITS_FRAGMENT on LeadTypeEmployeeBenefit {\n id\n annualPayroll\n companyName\n natureOfBusiness\n numberOfEmployees\n }\n`;\n\nexport const LEAD_TYPE_EMPLOYEE_BENEFITS_UPDATE_MUTATION = gql`\n mutation LeadTypeEmployeeBenefitUpdateMutation($data: LeadTypeEmployeeBenefitUpdateInput!) {\n leadTypeEmployeeBenefitUpdate(data: $data) {\n ...LEAD_EMPLOYEE_BENEFITS_FRAGMENT\n }\n }\n ${LEAD_EMPLOYEE_BENEFITS_FRAGMENT}\n`;\n","import gql from 'graphql-tag';\n\nexport const LeadHistoryFragment = gql`\n fragment LeadHistoryFragment on LeadHistory {\n id\n entity\n operation\n difference\n createdAt\n createdBy {\n id\n firstName\n lastName\n }\n lead {\n id\n firstName\n lastName\n email\n }\n note {\n id\n title\n text\n }\n task {\n id\n title\n date\n priority\n status\n type {\n id\n name\n }\n description\n }\n email {\n id\n from\n to\n subject\n body\n thread {\n id\n identifier\n lead {\n id\n firstName\n middleName\n lastName\n email\n }\n }\n }\n stage {\n id\n name\n }\n sms {\n id\n text\n phoneNumber\n lead {\n id\n firstName\n lastName\n }\n createdBy {\n id\n firstName\n lastName\n }\n }\n call {\n id\n duration\n status\n phoneCallDispositionRelation {\n carrier\n currentPremium\n quotedPremium\n status {\n name\n }\n expirationDate\n insurance\n notes\n ifsScore\n createdBy {\n id\n firstName\n lastName\n email\n }\n createdAt\n }\n }\n }\n`;\n\nexport const FETCH_LEAD_HISTORY_QUERY = gql`\n query FetchLeadHistories(\n $filter: LeadHistoryFilter\n $first: Int\n $skip: Int\n $orderBy: [LeadHistoryOrderBy]\n ) {\n leadHistoriesList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n items {\n ...LeadHistoryFragment\n }\n count\n }\n }\n ${LeadHistoryFragment}\n`;\n\nexport const FETCH_LEAD_HISTORY_BY_ID = gql`\n query FetchLeadHistory($id: ID!) {\n leadHistory(id: $id) {\n ...LeadHistoryFragment\n }\n }\n ${LeadHistoryFragment}\n`;\n\nexport const FETCH_LEAD_HISTORY_QUERY_RESOLVER = gql`\n query FetchLeadHistoriesResolver(\n $filter: LeadHistoryFilter\n $first: Int\n $skip: Int\n $orderBy: [LeadHistoryOrderBy]\n $user: ID!\n $agency: ID!\n ) {\n leadHistoriesResolver(\n filter: $filter\n first: $first\n skip: $skip\n orderBy: $orderBy\n agency: $agency\n user: $user\n ) {\n count\n items {\n id\n createdAt\n updatedAt\n deletedAt\n entity\n operation\n difference\n lead {\n firstName\n lastName\n id\n }\n createdBy {\n id\n firstName\n lastName\n }\n note {\n text\n title\n id\n }\n task {\n date\n priority\n status\n type {\n name\n }\n title\n description\n }\n email {\n thread {\n email\n lead {\n email\n }\n }\n subject\n from\n to\n body\n }\n call {\n duration\n status\n }\n sms {\n text\n phoneNumber\n type\n createdBy {\n firstName\n lastName\n }\n }\n stage {\n name\n }\n }\n }\n }\n`;\n","import gql from 'graphql-tag';\nimport { LEAD_NOTE_FRAGMENT } from './leads-notes/leads-notes-queries';\nimport { LEAD_AUTO_FRAGMENT } from './leads-type-auto/leads-type-auto-queries';\nimport { LEAD_COMMERCIAL_AUTO_FRAGMENT } from './leads-type-commercial-auto/leads-type-commercial-auto-queries';\nimport { LEAD_DRIVER_FRAGMENT } from './leads-drivers/leads-drivers-queries';\nimport { LEAD_GENERAL_LIABILITY_FRAGMENT } from './leads-type-general-liability/leads-type-general-liability-queries';\nimport { LEAD_LIFE_FRAGMENT } from './leads-type-life/leads-type-life-queries';\nimport { LEAD_HOME_FRAGMENT } from './leads-type-home/leads-type-home-queries';\nimport { LEAD_WORKERS_COMPENSATION_FRAGMENT } from './leads-type-workers-compensation/leads-type-workers-compensation-queries';\nimport { LEAD_EMPLOYEE_BENEFITS_FRAGMENT } from './leads-type-employee-benefits/leads-type-employee-benefits-queries';\nimport { LeadHistoryFragment as LEAD_HISTORY_FRAGMENT } from './leads-history/leads-history-queries';\n\nexport const AGENT_FRAGMENT = gql`\n fragment AGENT_FRAGMENT on Agent {\n id\n user {\n id\n firstName\n lastName\n }\n }\n`;\n\nexport const USER_FRAGMENT = gql`\n fragment USER_FRAGMENT on User {\n id\n firstName\n lastName\n avatar {\n id\n downloadUrl\n }\n }\n`;\n\nexport const LEAD_TASK_FRAGMENT = gql`\n fragment LEAD_TASK_FRAGMENT on LeadTask {\n id\n title\n date\n priority\n status\n description\n createdAt\n type {\n id\n name\n }\n agents {\n items {\n ...AGENT_FRAGMENT\n }\n }\n users {\n items {\n ...USER_FRAGMENT\n }\n }\n lead {\n id\n firstName\n lastName\n }\n }\n ${USER_FRAGMENT}\n ${AGENT_FRAGMENT}\n`;\n\nexport const LEAD_FRAGMENT = gql`\n fragment LEAD_FRAGMENT on Lead {\n gender\n updatedAt\n phone {\n code\n number\n }\n callCadence {\n lastCalled\n }\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n id\n type\n phone {\n code\n number\n }\n }\n }\n id\n ifsScore\n firstName\n lastName\n middleName\n createdAt\n birthDay\n birthMonth\n birthYear\n campaign {\n id\n name\n agency {\n id\n }\n }\n contacts {\n items {\n id\n firstName\n lastName\n phoneNumber\n }\n }\n assignees {\n items {\n ...USER_FRAGMENT\n }\n }\n address {\n country\n street1\n street2\n zip\n city\n state\n }\n notesLeadRelation {\n items {\n ...LEAD_NOTE_FRAGMENT\n }\n }\n tasksLeadRelation {\n items {\n ...LEAD_TASK_FRAGMENT\n }\n }\n leadLeadStageHistoryRelation(first: 1, orderBy: createdAt_DESC) {\n items {\n stage {\n id\n name\n }\n }\n }\n stage {\n id\n name\n }\n priority\n email\n creditScore\n leadLeadTypeAutoRelation {\n ...LEAD_AUTO_FRAGMENT\n }\n leadLeadTypeCommercialAutoRelation {\n ...LEAD_COMMERCIAL_AUTO_FRAGMENT\n }\n leadLeadTypeGeneralLiabilityRelation {\n ...LEAD_GENERAL_LIABILITY_FRAGMENT\n }\n leadLeadTypeHomeRelation {\n ...LEAD_HOME_FRAGMENT\n }\n leadLeadTypeLifeRelation {\n ...LEAD_LIFE_FRAGMENT\n }\n leadLeadTypeWorkersCompensationRelation {\n ...LEAD_WORKERS_COMPENSATION_FRAGMENT\n }\n leadLeadTypeEmployeeBenefitRelation {\n ...LEAD_EMPLOYEE_BENEFITS_FRAGMENT\n }\n drivers {\n items {\n ...LEAD_DRIVER_FRAGMENT\n }\n }\n amount\n }\n ${USER_FRAGMENT}\n ${AGENT_FRAGMENT}\n ${LEAD_TASK_FRAGMENT}\n ${LEAD_NOTE_FRAGMENT}\n ${LEAD_COMMERCIAL_AUTO_FRAGMENT}\n ${LEAD_AUTO_FRAGMENT}\n ${LEAD_DRIVER_FRAGMENT}\n ${LEAD_GENERAL_LIABILITY_FRAGMENT}\n ${LEAD_LIFE_FRAGMENT}\n ${LEAD_HOME_FRAGMENT}\n ${LEAD_WORKERS_COMPENSATION_FRAGMENT}\n ${LEAD_EMPLOYEE_BENEFITS_FRAGMENT}\n`;\n\nexport const LEAD_FRAGMENT_V2 = gql`\n fragment LEAD_FRAGMENT on Lead {\n gender\n updatedAt\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n id\n phone {\n code\n number\n }\n }\n }\n id\n firstName\n lastName\n middleName\n createdAt\n campaign {\n id\n name\n agency {\n id\n }\n }\n assignees {\n items {\n ...USER_FRAGMENT\n }\n }\n leadLeadStageHistoryRelation(first: 1, orderBy: createdAt_DESC) {\n items {\n stage {\n id\n name\n }\n }\n }\n stage {\n id\n name\n }\n amount\n priority\n history(first: 1, orderBy: createdAt_DESC) {\n items {\n ...LeadHistoryFragment\n }\n }\n }\n ${USER_FRAGMENT}\n ${LEAD_HISTORY_FRAGMENT}\n`;\n\nexport const LEADS_FOR_TASK_LIST_QUERY_V2 = gql`\n query FetchLeadsV2($skip: Int, $first: Int, $filter: LeadFilter, $sort: [LeadSort!]) {\n leadsList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\n count\n items {\n id\n firstname\n lastname\n }\n }\n }\n`;\n\nexport const LEADS_LIST_QUERY_V2 = gql`\n query FetchLeadsV2($skip: Int, $first: Int, $filter: LeadFilter, $sort: [LeadSort!]) {\n leadsList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\n count\n items {\n ...LEAD_FRAGMENT\n }\n }\n }\n ${LEAD_FRAGMENT_V2}\n`;\n\nexport const LEADS_COUNT = gql`\n query FetchLeadsCount($skip: Int, $first: Int, $filter: LeadFilter, $sort: [LeadSort!]) {\n leadsList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\n count\n }\n }\n`;\n\nexport const LEADS_LIST_LIGHT_QUERY = gql`\n query FetchLeadsLight($skip: Int, $first: Int, $filter: LeadFilter, $sort: [LeadSort!]) {\n leadsList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\n items {\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n id\n type\n phone {\n code\n number\n }\n }\n }\n id\n firstName\n lastName\n createdAt\n campaign {\n id\n name\n }\n assignees {\n items {\n id\n firstName\n lastName\n }\n }\n stage {\n id\n name\n }\n lastHistoryActionData\n lastHistoryActionType\n }\n }\n }\n`;\n\nexport const LEADS_LIST_LIGHT_SUBSCRIPTION = gql`\n subscription($filter: LeadFilter) {\n Lead(filter: { mutation_in: [create, delete, update], node: $filter }) {\n mutation\n updatedFields\n node {\n phones {\n code\n number\n }\n leadLeadPhoneNumberRelation {\n items {\n id\n phone {\n code\n number\n }\n }\n }\n id\n firstName\n lastName\n createdAt\n campaign {\n id\n name\n }\n assignees {\n items {\n id\n firstName\n lastName\n }\n }\n stage {\n id\n name\n }\n amount\n priority\n lastHistoryActionData\n lastHistoryActionType\n }\n }\n }\n`;\n\nexport const LEADS_LIST_QUERY = gql`\n query FetchLeads($skip: Int, $first: Int, $filter: LeadFilter, $sort: [LeadSort!]) {\n leadsList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\n count\n items {\n ...LEAD_FRAGMENT\n history(first: 1, orderBy: createdAt_DESC) {\n items {\n ...LeadHistoryFragment\n }\n }\n }\n }\n }\n ${LEAD_FRAGMENT}\n ${LEAD_HISTORY_FRAGMENT}\n`;\n\nexport const LEADS_LIST_SUBSCRIPTION = gql`\n subscription($filter: LeadFilter) {\n Lead(filter: { mutation_in: [create, delete, update], node: $filter }) {\n mutation\n updatedFields\n node {\n ...LEAD_FRAGMENT\n }\n }\n }\n ${LEAD_FRAGMENT_V2}\n`;\n\nexport const FILTER_OPTIONS_QUERY = gql`\n query FetchFilterOptions($agencyId: ID) {\n agencyUsersList(filter: { agency: { id: { equals: $agencyId } } }) {\n items {\n id\n user {\n firstName\n lastName\n id\n }\n }\n }\n campaignsList(filter: { agency: { id: { equals: $agencyId } } }) {\n items {\n id\n name\n }\n }\n }\n`;\n\nexport const LEAD_USERS_UPDATE_MUTATION = gql`\n mutation UpdateLeadAssignees($data: LeadUpdateInput!) {\n leadUpdate(data: $data) {\n id\n assignees {\n items {\n id\n firstName\n lastName\n }\n }\n }\n }\n`;\n\nexport const LEAD_CREATE_MUTATION = gql`\n mutation CreateLead($data: LeadCreateInput!) {\n leadCreate(data: $data) {\n id\n }\n }\n`;\n\nexport const LEAD_UPDATE_MUTATION = gql`\n mutation UpdateLead($filter: LeadKeyFilter, $data: LeadUpdateInput!) {\n leadUpdate(filter: $filter, data: $data, force: true) {\n id\n }\n }\n`;\n\nexport const LEAD_DELETE_MUTATION = gql`\n mutation DeleteLead($data: LeadDeleteInput!) {\n leadDelete(data: $data, force: true) {\n success\n }\n }\n`;\n\nexport const TASK_CREATE_MUTATION = gql`\n mutation CreateLeadTask($data: LeadTaskCreateInput!) {\n leadTaskCreate(data: $data) {\n ...LEAD_TASK_FRAGMENT\n }\n }\n ${LEAD_TASK_FRAGMENT}\n`;\n\nexport const TASK_UPDATE_MUTATION = gql`\n mutation UpdateLeadTask($data: LeadTaskUpdateInput!) {\n leadTaskUpdate(data: $data) {\n ...LEAD_TASK_FRAGMENT\n }\n }\n ${LEAD_TASK_FRAGMENT}\n`;\n\nexport const LEAD_TASK_TYPE_LIST_QUERY = gql`\n query LeadTasksTypeList {\n leadTaskTypesList {\n items {\n id\n name\n }\n }\n }\n`;\n\nexport const LEAD_DETAIL_QUERY = gql`\n query FetchLeadDetails($id: ID) {\n lead(id: $id) {\n ...LEAD_FRAGMENT\n }\n }\n ${LEAD_FRAGMENT}\n`;\n\nexport const CREATE_SMS_MUTATION = gql`\n mutation CreateSmsMessage($data: SMSMessageCreateInput!) {\n sMSMessageCreate(data: $data) {\n id\n }\n }\n`;\n\nexport const FETCH_SMS_LIST = gql`\n query FetchSms($first: Int, $skip: Int, $filter: SMSMessageFilter!, $sort: [SMSMessageSort!]) {\n sMSMessagesList(\n orderBy: createdAt_DESC\n first: $first\n skip: $skip\n filter: $filter\n sort: $sort\n ) {\n count\n items {\n id\n text\n type\n receivedFrom\n to\n from {\n id\n number {\n code\n number\n }\n }\n user {\n id\n firstName\n lastName\n }\n lead {\n id\n firstName\n lastName\n campaign {\n id\n agency {\n id\n }\n }\n }\n createdBy {\n id\n firstName\n lastName\n }\n createdAt\n }\n }\n }\n`;\n\nexport const FETCH_LEADS_COUNT_IN_CAMPAIGN = gql`\n query FetchCampaignLeadsCount($campaignId: ID) {\n leadsList(\n filter: { campaign: { id: { equals: $campaignId } } }\n groupBy: { query: { id: { as: \"count\", fn: { aggregate: COUNT } } } }\n ) {\n groups {\n count: Int\n }\n }\n }\n`;\n\nexport const FETCH_MESSAGES_BY_LEAD = gql`\n query FetchLeadSms($filter: SMSMessageFilter!, $orderBy: [SMSMessageOrderBy]) {\n sMSMessagesList(filter: $filter, orderBy: $orderBy) {\n items {\n text\n type\n createdAt\n user {\n firstName\n }\n }\n }\n }\n`;\n\nexport const FETCH_LEAD_RECORDINGS = gql`\n query LeadRecordingsById($leadId: ID, $first: Int, $skip: Int) {\n phoneCallRecordingsList(\n filter: {\n id: { is_not_empty: true }\n OR: [\n { call: { lead: { id: { equals: $leadId } } } }\n { inboundCall: { lead: { id: { equals: $leadId } } } }\n ]\n }\n sort: { createdAt: DESC }\n first: $first\n skip: $skip\n ) {\n count\n items {\n id\n recordingSid\n recordingUrl\n duration\n inboundCall {\n to {\n number {\n number\n code\n }\n }\n from\n duration\n createdAt\n }\n call {\n to\n from {\n number {\n code\n number\n }\n }\n duration\n lead {\n firstName\n lastName\n }\n user {\n firstName\n lastName\n }\n createdAt\n }\n }\n }\n }\n`;\n\nexport const ASSIGN_USERS_TO_LEAD = gql`\n mutation AssignUsersToLead($leadId: ID, $users: [UserKeyFilter!]) {\n leadUpdate(data: { id: $leadId, assignees: { connect: $users } }) {\n id\n assignees {\n items {\n id\n }\n }\n }\n }\n`;\n\n// REFACTOR\nexport const FETCH_LEAD = gql`\n query FetchLead($id: ID) {\n lead(id: $id) {\n id\n firstName\n middleName\n lastName\n email\n priority\n birthDay\n birthMonth\n birthYear\n gender\n ifsScore\n creditScore\n amount\n createdAt\n updatedAt\n campaign {\n id\n }\n address {\n country\n state\n city\n zip\n street1\n street2\n }\n stage {\n id\n name\n }\n assignees {\n items {\n id\n firstName\n lastName\n avatar {\n downloadUrl\n }\n }\n }\n leadLeadPhoneNumberRelation {\n items {\n id\n type\n phone {\n code\n number\n }\n }\n }\n leadLeadTypeAutoRelation {\n ...LEAD_AUTO_FRAGMENT\n }\n leadLeadTypeCommercialAutoRelation {\n ...LEAD_COMMERCIAL_AUTO_FRAGMENT\n }\n leadLeadTypeGeneralLiabilityRelation {\n ...LEAD_GENERAL_LIABILITY_FRAGMENT\n }\n leadLeadTypeLifeRelation {\n ...LEAD_LIFE_FRAGMENT\n }\n leadLeadTypeHomeRelation {\n ...LEAD_HOME_FRAGMENT\n }\n leadLeadTypeWorkersCompensationRelation {\n ...LEAD_WORKERS_COMPENSATION_FRAGMENT\n }\n leadLeadTypeEmployeeBenefitRelation {\n ...LEAD_EMPLOYEE_BENEFITS_FRAGMENT\n }\n }\n }\n ${LEAD_AUTO_FRAGMENT}\n ${LEAD_COMMERCIAL_AUTO_FRAGMENT}\n ${LEAD_GENERAL_LIABILITY_FRAGMENT}\n ${LEAD_LIFE_FRAGMENT}\n ${LEAD_HOME_FRAGMENT}\n ${LEAD_WORKERS_COMPENSATION_FRAGMENT}\n ${LEAD_EMPLOYEE_BENEFITS_FRAGMENT}\n`;\n\nexport const UPDATE_LEAD = gql`\n mutation UpdateLead($filter: LeadKeyFilter, $data: LeadUpdateInput!) {\n leadUpdate(filter: $filter, data: $data) {\n id\n }\n }\n`;\n\nexport const FETCH_CAMPAIGNS = gql`\n query FetchCampaigns($filter: CampaignFilter) {\n campaignsList(filter: $filter) {\n items {\n id\n name\n }\n }\n }\n`;\n\nexport const FETCH_LEAD_TASKS = gql`\n query FetchLeadTasks($filter: LeadTaskFilter, $sort: [LeadTaskSort!]) {\n leadTasksList(filter: $filter, sort: $sort) {\n count\n items {\n id\n title\n date\n priority\n status\n description\n type {\n id\n name\n }\n users {\n items {\n id\n firstName\n lastName\n avatar {\n downloadUrl\n }\n }\n }\n agents {\n items {\n id\n user {\n id\n firstName\n lastName\n }\n }\n }\n lead {\n id\n }\n createdAt\n }\n }\n }\n`;\n\nexport const DELETE_LEAD_PHONE_NUMBERS = gql`\n mutation DeleteLeadPhoneNumbers($filter: LeadPhoneNumberFilter!, $force: Boolean) {\n leadPhoneNumberDeleteByFilter(filter: $filter, force: $force) {\n success\n }\n }\n`;\n","import Flux from '@cobuildlab/flux-state';\nimport { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchLeadEvent = createEvent();\n\nexport const OnFetchLeadEventError = createEvent();\n\nexport const OnUpdateLeadAmount = createEvent();\n\nexport const OnUpdateLeadAmountError = createEvent();\n\nexport const OnFetchCampaigns = createEvent();\n\nexport const OnFetchCampaignsError = createEvent();\n\nexport const OnUpdateLeadCampaign = createEvent();\n\nexport const OnUpdateLeadCampaignError = createEvent();\n\nexport const OnUpdateLeadAssignees = createEvent();\n\nexport const OnUpdateLeadAssigneesError = createEvent();\n\nexport const OnFetchLeadTasks = createEvent();\n\nexport const OnFetchLeadTasksError = createEvent();\n\nexport const OnFetchLeadMessages = createEvent();\n\nexport const OnFetchLeadMessagesError = createEvent();\n\nexport const OnLeadMessageCreate = createEvent();\n\nexport const OnLeadMessageCreateError = createEvent();\n\nexport const OnFetchLeadRecordings = createEvent();\n\nexport const OnFetchLeadRecordingsError = createEvent();\n\n/**\n * Event that triggers an error.\n *\n * @type {string}\n */\nexport const LEADS_ERROR_EVENT = 'onLeadError';\n\n/**\n * Event that triggers a Lead List event.\n *\n * @type {string}\n */\nexport const LEADS_LIST_EVENT = 'onLeadList';\n\n/**\n * Event that triggers a Lead List event.\n *\n * @type {string}\n */\nexport const LEADS_CREATE_EVENT = 'onLeadCreated';\n\nexport const LEADS_BULK_CREATE_EVENT = 'onLeadBulkCreated';\n\nexport const LEADS_CHUNK_BULK_CREATE_EVENT = 'onLeadChunkBulkCreated';\n\nexport const VALIDATED_LEAD_DATA_FOR_UPLOAD = 'onValidatedLeadDataForUpload';\n\nexport const FILTER_OPTIONS_EVENT = 'onFilterOptions';\n\nexport const FILTER_OPTIONS_ERROR_EVENT = 'onFilterOptionsError';\n\nexport const USERS_UPDATE_EVENT = 'onUsersUpdateEvent';\n\nexport const USERS_UPDATE_EVENT_ERROR = 'onUsersUpdateEventError';\n\nexport const TASK_CREATE_EVENT = 'onTaskCreate';\n\nexport const TASK_UPDATE_EVENT = 'onTaskUpdate';\n\nexport const TASK_ERROR_EVENT = 'onTaskError';\n\nexport const TASK_TYPE_LIST_EVENT = 'onTaskList';\n\nexport const TASK_TYPE_LIST_ERROR = 'onTaskListError';\n\nexport const LEAD_DETAIL_EVENT = 'onLeadDetail';\n\nexport const LEAD_DETAIL_ERROR_EVENT = 'onLeadDetailError';\n\nexport const LEADS_UPDATE_EVENT = 'onLeadUpdate';\n\nexport const LEAD_DELETE_ERROR_EVENT = 'onLeadDeleteError';\n\nexport const LEAD_DELETE_EVENT = 'onLeadDelete';\n\nexport const FETCH_USERS_IN_AGENCY = 'onUserInAgencyFetch';\n\nexport const FETCH_USERS_IN_AGENCY_ERROR = 'onFetchingUserInAgencyError';\n\nexport const FETCH_SMS_LIST_EVENT = 'onSMSMessagesList';\n\nexport const DELETE_LEADS_RESULT = 'OnDeleteLeadsDone';\n\nexport const ASSIGN_USERS_TO_LEAD_EVENT = 'onAssignUsersToLead';\n\nexport const ASSIGN_USERS_TO_LEAD_ERROR = 'onAssignUsersToLeadError';\n\nclass LeadStore extends Flux.DashStore {\n constructor() {\n super();\n this.addEvent(LEADS_CHUNK_BULK_CREATE_EVENT);\n this.addEvent(VALIDATED_LEAD_DATA_FOR_UPLOAD);\n this.addEvent(LEADS_ERROR_EVENT);\n this.addEvent(LEADS_LIST_EVENT);\n this.addEvent(LEADS_CREATE_EVENT);\n this.addEvent(FILTER_OPTIONS_ERROR_EVENT);\n this.addEvent(FILTER_OPTIONS_EVENT);\n this.addEvent(TASK_CREATE_EVENT);\n this.addEvent(TASK_UPDATE_EVENT);\n this.addEvent(TASK_ERROR_EVENT);\n this.addEvent(TASK_TYPE_LIST_EVENT);\n this.addEvent(TASK_TYPE_LIST_ERROR);\n this.addEvent(LEAD_DETAIL_EVENT);\n this.addEvent(LEAD_DETAIL_ERROR_EVENT);\n this.addEvent(LEADS_UPDATE_EVENT);\n this.addEvent(LEAD_DELETE_EVENT);\n this.addEvent(LEAD_DELETE_ERROR_EVENT);\n this.addEvent(FETCH_USERS_IN_AGENCY);\n this.addEvent(FETCH_USERS_IN_AGENCY_ERROR);\n this.addEvent(USERS_UPDATE_EVENT);\n this.addEvent(USERS_UPDATE_EVENT_ERROR);\n this.addEvent(LEADS_BULK_CREATE_EVENT);\n this.addEvent(FETCH_SMS_LIST_EVENT);\n this.addEvent(DELETE_LEADS_RESULT);\n this.addEvent(ASSIGN_USERS_TO_LEAD_EVENT);\n this.addEvent(ASSIGN_USERS_TO_LEAD_ERROR);\n }\n}\n\nexport default new LeadStore();\n","import { ValidationError } from '../../shared/errors';\nimport { isValidNumber, isValidPhoneNumber, isIncludesInOptions, isValidFloat } from '../../shared/validators';\nimport { isValidEmail, isValidString, isValidDate } from '@cobuildlab/validation-utils';\nimport {\n GENDERS,\n MARITAL_STATUSES,\n PRIORITIES,\n TYPE_VALUES,\n DATE_SCHEMA_FORMATS,\n} from '../../shared/constants';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport * as moment from 'moment';\n\nconst leadMessage = 'The lead must have a ';\nconst leadMessageValid = `${leadMessage} valid`;\nconst driverMessage = 'The driver must have a ';\nconst driverMessageValid = `${driverMessage} valid`;\n\nconst leadTypeFields = [\n 'leadLeadTypeAutoRelation',\n 'leadLeadTypeCommercialAutoRelation',\n 'leadLeadTypeHomeRelation',\n 'leadLeadTypeLifeRelation',\n 'leadLeadTypeGeneralLiabilityRelation',\n 'leadLeadTypeWorkersCompensationRelation',\n 'leadLeadTypeEmployeeBenefitRelation',\n];\n\nconst messages = {\n lead: {\n type: leadMessageValid + ' type',\n firstName: leadMessageValid + ' first name',\n middleName: leadMessageValid + ' middle name',\n lastName: leadMessageValid + ' last name',\n gender: leadMessageValid + ' gender',\n genderOptions:\n leadMessageValid + ' value for gender. For example' + Object.values(GENDERS).join(', '),\n dob: leadMessageValid + ' dob with the following format: ' + DATE_SCHEMA_FORMATS,\n birthMonth: leadMessageValid + ' birth month',\n birthDay: leadMessageValid + ' birth day',\n birthYear: leadMessageValid + ' birth year',\n email: leadMessageValid + ' email address',\n users: 'The lead must have at least 1 User',\n phones: 'Some phone number invalid',\n addressLine1: leadMessageValid + ' address line 1',\n addressLine2: leadMessageValid + ' address line 2',\n city: leadMessageValid + ' city',\n zip: leadMessageValid + ' zip',\n state: leadMessageValid + ' state',\n priority: leadMessageValid + ' priority',\n creditScore: leadMessageValid + ' credit score',\n campaign: leadMessage + ' campaign',\n amount: leadMessageValid + ' amount',\n },\n driver: {\n firstName: driverMessageValid + ' first name',\n lastName: driverMessageValid + ' last name',\n gender: driverMessageValid + ' gender',\n birthDate: driverMessageValid + ' birth date',\n genderOptions:\n driverMessageValid + ' value for gender. For example' + Object.values(GENDERS).join(', '),\n maritalStatus: driverMessageValid + ' marital status',\n maritalStatusOptions:\n driverMessageValid +\n ' value for marital status. For example' +\n Object.values(MARITAL_STATUSES).join(', '),\n email: driverMessageValid + ' email address',\n },\n};\n\n/**\n * Validate lead\n *\n * @param {object} lead data\n * @param {string} type - The type of operation\n */\nexport const createAndUpdateLeadValidator = (lead, type = 'CREATE') => {\n let errorMessages = [];\n\n if (\n '_type' in lead &&\n !(\n Object.values(TYPE_VALUES).includes(lead._type) ||\n Object.values(TYPE_VALUES)\n .map((type) => type.toUpperCase())\n .includes(lead._type.toUpperCase())\n )\n )\n errorMessages.push(messages.lead.type);\n\n if (!isValidString(lead.firstName)) errorMessages.push(messages.lead.firstName);\n\n if (!isValidString(lead.lastName)) errorMessages.push(messages.lead.lastName);\n\n if (!!lead.gender && !isValidString(lead.gender)) errorMessages.push(messages.lead.gender);\n else if (!!lead.gender && !isIncludesInOptions(lead.gender, Object.values(GENDERS)))\n errorMessages.push(messages.lead.genderOptions + 'Current value is: ' + lead.gender);\n\n if (lead.birthDay || lead.birthMonth || lead.birthYear) {\n if (\n !lead.birthMonth ||\n (lead.birthMonth !== '' &&\n !(isValidNumber(lead.birthMonth) || isValidString(lead.birthMonth)))\n ) {\n errorMessages.push(messages.lead.birthMonth);\n }\n\n if (!lead.birthDay || (lead.birthDay !== '' && !isValidNumber(lead.birthDay))) {\n errorMessages.push(messages.lead.birthDay);\n }\n\n if (!lead.birthYear || (lead.birthYear !== '' && !isValidNumber(lead.birthYear))) {\n errorMessages.push(messages.lead.birthYear);\n }\n }\n if (!isValidString(lead.campaign)) errorMessages.push(messages.lead.campaign);\n\n if (!!lead.email && !isValidEmail(lead.email)) errorMessages.push(messages.lead.email);\n\n if (lead.phones && lead.phones !== []) {\n for (let index = 0; index < lead.phones.length; index++) {\n if (!lead.phones[index].number || !isValidPhoneNumber(lead.phones[index].number))\n errorMessages.push(`The phone number ${index + 1} is invalid`);\n }\n }\n\n if (lead.address.street1 !== '' && !isValidString(lead.address.street1))\n errorMessages.push(messages.lead.addressLine1);\n\n if (lead.address.street2 !== '' && !isValidString(lead.address.street2))\n errorMessages.push(messages.lead.addressLine2);\n\n if (lead.address.city !== '' && !isValidString(lead.address.city))\n errorMessages.push(messages.lead.city);\n\n if (lead.address.zip !== '' && !isValidNumber(lead.address.zip))\n errorMessages.push(messages.lead.zip);\n\n if (type === 'CREATE') {\n if (Object.keys(lead).every((key) => leadTypeFields.indexOf(key) === -1)) {\n errorMessages.push('The lead must have a valid type');\n }\n }\n\n if (type === 'UPDATE') {\n try {\n parseFloat(lead.amount);\n } catch (e) {\n errorMessages.push('The lead must have a valid amount');\n }\n }\n\n if (!!lead.priority && !isValidNumber(lead.priority)) errorMessages.push(messages.lead.priority);\n\n if (type === 'CREATE' && !!lead.amount && !isValidFloat(lead.amount, 2, true))\n errorMessages.push(messages.lead.amount);\n\n // if (!!lead.creditScore && !isValidNumber(lead.creditScore))\n if (!!lead.creditScore && !isValidString(lead.creditScore))\n errorMessages.push(messages.lead.creditScore);\n\n //TODO: AGREGAR VALIDACIONES A TIPOS DE LEAD (Home, commercial, etc) Y A DRIVERS\n\n // Validate drivers\n if ('drivers' in lead) {\n for (const [, driver] of lead.drivers.create.entries()) {\n if (!isValidString(driver.firstName)) errorMessages.push(messages.driver.firstName);\n if (!isValidString(driver.lastName)) errorMessages.push(messages.driver.lastName);\n if (!!driver.email && !isValidEmail(driver.email)) errorMessages.push(messages.driver.email);\n if (!!driver.birthDate && !isValidDate(lead.birthDate))\n errorMessages.push(messages.driver.birthDate);\n if (!!driver.gender && !isValidString(driver.gender))\n errorMessages.push(messages.driver.gender);\n else if (!!driver.gender && !isIncludesInOptions(driver.gender, Object.values(GENDERS)))\n errorMessages.push(messages.driver.genderOptions);\n if (!!driver.maritalStatus && !isValidString(driver.maritalStatus))\n errorMessages.push(messages.driver.maritalStatus);\n else if (\n !!driver.maritalStatus &&\n !isIncludesInOptions(driver.maritalStatus, Object.values(MARITAL_STATUSES))\n )\n errorMessages.push(messages.driver.maritalStatusOptions);\n }\n }\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n\n/**\n * Validate lead update\n *\n * @param {object} data - The data to update the lead\n *\n * @returns {void}\n */\nexport function updateLeadValidator(data) {\n const errors = [];\n\n if (!isValidString(data.firstName)) {\n errors.push(messages.lead.firstName);\n }\n\n if (!isValidString(data.lastName)) {\n errors.push(messages.lead.lastName);\n }\n\n if (!isValidString(data.campaign)) {\n errors.push(messages.lead.campaign);\n }\n\n if (data.birthDay || data.birthMonth || data.birthYear) {\n if (\n !data.birthMonth ||\n (data.birthMonth !== '' &&\n !(isValidNumber(data.birthMonth) || isValidString(data.birthMonth)))\n ) {\n errors.push(messages.lead.birthMonth);\n }\n\n if (!data.birthDay || (data.birthDay !== '' && !isValidNumber(data.birthDay))) {\n errors.push(messages.lead.birthDay);\n }\n\n if (!data.birthYear || (data.birthYear !== '' && !isValidNumber(data.birthYear))) {\n errors.push(messages.lead.birthYear);\n }\n }\n\n if (!isValidString(data.email) || !isValidEmail(data.email)) {\n errors.push(messages.lead.email);\n }\n\n const phoneUtil = PhoneNumberUtil.getInstance();\n\n if (data.phones) {\n for (let i = 0; i < data.phones.length; i++) {\n const { [i]: phone } = data.phones;\n let p = null;\n\n if (phone.id && phone.delete) continue;\n\n if (phone.phone.number.length <= 1) {\n errors.push(`The phone #${i + 1} is invalid`);\n } else {\n try {\n p = phoneUtil.parse(phone.phone.number, 'US');\n } catch (e) {\n errors.push(`The phone #${i + 1} is invalid`);\n\n continue;\n }\n\n if (phoneUtil.isPossibleNumber(p) === false || phoneUtil.isValidNumber(p) === false) {\n errors.push(`The phone #${i + 1} is invalid`);\n }\n }\n }\n }\n\n if (data.firstAddress && !isValidString(data.firstAddress)) {\n errors.push(messages.lead.addressLine1);\n }\n\n if (data.secondAddress && !isValidString(data.secondAddress)) {\n errors.push(messages.lead.addressLine2);\n }\n\n if (data.city && !isValidString(data.city)) {\n errors.push(messages.lead.city);\n }\n\n if (data.zip && !isValidNumber(data.zipCode)) {\n errors.push(messages.lead.zipCode);\n }\n\n if (data.amount) {\n try {\n parseFloat(data.amount);\n } catch (e) {\n errors.push('Lead amount must be a valid integer.');\n }\n }\n\n if (data.priority && !isValidNumber(data.priority)) {\n errors.push(messages.lead.priority);\n }\n\n if (data.creditScore && !isValidString(data.creditScore)) {\n errors.push(messages.lead.creditScore);\n }\n\n if (errors.length !== 0) throw new ValidationError(errors);\n\n // if (!softValidation) {\n // if (\n // '_type' in lead &&\n // !!(\n // Object.values(TYPE_VALUES).includes(lead._type) ||\n // Object.values(TYPE_VALUES)\n // .map((type) => type.toUpperCase())\n // .includes(lead._type.toUpperCase())\n // )\n // )\n // errorMessages.push(messages.lead.type);\n\n // if (!isValidString(lead.firstName)) errorMessages.push(messages.lead.firstName);\n\n // if (!isValidString(lead.lastName)) errorMessages.push(messages.lead.lastName);\n // if (!isValidString(lead.campaign)) errorMessages.push(messages.lead.campaign);\n // }\n\n // if (\n // lead?.address?.street1 &&\n // lead?.address?.street1 !== '' &&\n // !isValidString(lead.address.street1)\n // )\n // errorMessages.push(messages.lead.addressLine1);\n\n // if (\n // lead?.address?.street2 &&\n // lead?.address?.street2 !== '' &&\n // !isValidString(lead.address.street2)\n // )\n // errorMessages.push(messages.lead.addressLine2);\n\n // if (lead?.address?.city && lead?.address?.city !== '' && !isValidString(lead.address.city))\n // errorMessages.push(messages.lead.city);\n\n // if (lead?.address?.zip && lead?.address?.zip !== '' && !isValidNumber(lead.address.zip))\n // errorMessages.push(messages.lead.zip);\n\n // try {\n // bigInt(lead.amount);\n // } catch (e) {\n // errorMessages.push('Lead amount must be a valid integer.');\n // }\n\n // if (lead.priority && !isValidNumber(lead.priority)) errorMessages.push(messages.lead.priority);\n\n // if (lead.creditScore && !isValidString(lead.creditScore)) {\n // errorMessages.push(messages.lead.creditScore);\n // }\n\n // //TODO: AGREGAR VALIDACIONES A TIPOS DE LEAD (Home, commercial, etc) Y A DRIVERS\n\n // // Validate drivers\n // if ('drivers' in lead) {\n // for (const [, driver] of lead.drivers.create.entries()) {\n // if (!isValidString(driver.firstName)) errorMessages.push(messages.driver.firstName);\n // if (!isValidString(driver.lastName)) errorMessages.push(messages.driver.lastName);\n // if (!!driver.email && !isValidEmail(driver.email)) errorMessages.push(messages.driver.email);\n // if (!!driver.birthDate && !isValidDate(lead.birthDate))\n // errorMessages.push(messages.driver.birthDate);\n // if (!!driver.gender && !isValidString(driver.gender))\n // errorMessages.push(messages.driver.gender);\n // else if (!!driver.gender && !isIncludesInOptions(driver.gender, Object.values(GENDERS)))\n // errorMessages.push(messages.driver.genderOptions);\n // if (!!driver.maritalStatus && !isValidString(driver.maritalStatus))\n // errorMessages.push(messages.driver.maritalStatus);\n // else if (\n // !!driver.maritalStatus &&\n // !isIncludesInOptions(driver.maritalStatus, Object.values(MARITAL_STATUSES))\n // )\n // errorMessages.push(messages.driver.maritalStatusOptions);\n // }\n // }\n}\n\n/**\n * Validate that the Task has all the fields necessaries with the right format.\n *\n * @param {object} task - the task to be validated.\n * @param {boolean} isUpdate - If the validator is for update or not.\n */\nexport const createAndUpdateTaskValidator = (task, isUpdate = false) => {\n let errorMessages = [];\n\n if (!isValidString(task.lead) && !isUpdate)\n errorMessages.push('The Task must have a selected lead');\n\n if (!isValidString(task.title)) errorMessages.push('The Task must have a valid title.');\n\n if (!isValidNumber(task.priority) && PRIORITIES.indexOf(task.priority) === -1)\n errorMessages.push('The task must have a valid priority');\n\n if (task.users.length === 0) errorMessages.push('The task must have at least 1 User');\n\n if (!isValidString(task.description) || task.description.length > 245)\n errorMessages.push('The Task must have a valid description, between 1 and 245 characters.');\n\n if (!isValidDate) errorMessages.push('The task must have a valid Date');\n\n if (!isValidString(task.type)) errorMessages.push('The task must have a valid type');\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n\n/**\n * Validator of the columns on the csv file\n *\n * @param {Array} columns - The columns on the csv\n *\n * @returns {void}\n */\nexport const createLeadsFromRicochetColumnValidator = (columns) => {\n const errors = [];\n\n if (columns.indexOf('first name') === -1) {\n errors.push('First Name column on csv is required');\n }\n\n if (columns.indexOf('last name') === -1) {\n errors.push('Last Name column on csv is required');\n }\n\n if (columns.indexOf('email') === -1) {\n errors.push('Email column on csv is required');\n }\n\n if (columns.indexOf('zip code') === -1) {\n errors.push('Zip Code column on csv is required');\n }\n\n if (columns.indexOf('phone - main') === -1) {\n errors.push('Phone - Main column on csv is required');\n }\n\n if (columns.indexOf('phone - cell') === -1) {\n errors.push('Phone - Cell column on csv is required');\n }\n\n if (columns.indexOf('phone - work') === -1) {\n errors.push('Phone - Work column on csv is required');\n }\n\n if (columns.indexOf('state') === -1) {\n errors.push('State column on csv is required');\n }\n\n if (columns.indexOf('city') === -1) {\n errors.push('City column on csv is required');\n }\n\n if (columns.indexOf('address') === -1) {\n errors.push('Address column on csv is required');\n }\n\n if (columns.indexOf('created at') === -1) {\n errors.push('Created At column on csv is required');\n }\n\n if (columns.indexOf('lead id') === -1) {\n errors.push('Lead ID column on csv is required');\n }\n\n if (errors.length > 0) {\n throw new ValidationError(errors);\n }\n};\n\n/**\n * Lead input validator from standard csv\n *\n * @param {object} lead - The lead object\n * @param {number} index - The row beign validated\n *\n * @returns {void}\n */\nexport const createLeadFromStandardValidator = (lead, index) => {\n let errorMessages = [];\n\n if ('_type' in lead && !Object.values(TYPE_VALUES).includes(lead._type))\n errorMessages.push(messages.lead.type);\n\n if (!isValidString(lead.firstName)) errorMessages.push(messages.lead.firstName);\n\n if (!isValidString(lead.lastName)) errorMessages.push(messages.lead.lastName);\n\n if (!!lead.gender && !isValidString(lead.gender)) errorMessages.push(messages.lead.gender);\n else if (!!lead.gender && !isIncludesInOptions(lead.gender, Object.values(GENDERS)))\n errorMessages.push(messages.lead.genderOptions);\n\n // dob related validations.\n if (lead.dob && !isValidDate(lead.dob)) {\n errorMessages.push(messages.lead.dob);\n } else if (!lead.dob && (lead.birthYear || lead.birthMonth || lead.birthDay)) {\n if (\n !lead.birthMonth ||\n (lead.birthMonth !== '' &&\n !(isValidNumber(lead.birthMonth) || isValidString(lead.birthMonth)))\n ) {\n errorMessages.push(messages.lead.birthMonth);\n }\n\n if (!lead.birthDay || (lead.birthDay !== '' && !isValidNumber(lead.birthDay))) {\n errorMessages.push(messages.lead.birthDay);\n }\n\n if (!lead.birthYear || (lead.birthYear !== '' && !isValidNumber(lead.birthYear))) {\n errorMessages.push(messages.lead.birthYear);\n }\n }\n\n if (!isValidString(lead.campaign)) errorMessages.push(messages.lead.campaign);\n\n if (!!lead.email && !isValidEmail(lead.email)) errorMessages.push(messages.lead.email);\n\n if (lead.phones && lead.phones !== []) {\n for (let index = 0; index < lead.phones.length; index++) {\n if (!!lead.phones[index].number && !isValidPhoneNumber(lead.phones[index].number))\n errorMessages.push(`The phone number ${index + 1} is invalid`);\n }\n }\n\n if (lead.address.street1 !== '' && !isValidString(lead.address.street1))\n errorMessages.push(messages.lead.addressLine1);\n\n if (lead.address.street2 !== '' && !isValidString(lead.address.street2))\n errorMessages.push(messages.lead.addressLine2);\n\n if (lead.address.city !== '' && !isValidString(lead.address.city))\n errorMessages.push(messages.lead.city);\n\n if (lead.address.zip !== '' && !isValidNumber(lead.address.zip))\n errorMessages.push(messages.lead.zip);\n\n if (!!lead.priority && !isValidNumber(lead.priority)) errorMessages.push(messages.lead.priority);\n\n if (!!lead.amount && !isValidFloat(lead.amount, 2, true)) errorMessages.push(messages.lead.amount);\n\n // if (!!lead.creditScore && !isValidNumber(lead.creditScore))\n if (!!lead.creditScore && !isValidString(lead.creditScore))\n errorMessages.push(messages.lead.creditScore);\n\n //TODO: AGREGAR VALIDACIONES A TIPOS DE LEAD (Home, commercial, etc) Y A DRIVERS\n if (lead.leadLeadTypeWorkersCompensationRelation) {\n const { create: data } = lead.leadLeadTypeWorkersCompensationRelation;\n\n if (data.policyExpirationDate) {\n if (/\\d{4}.\\d{2}.\\d{2}/.test(data.policyExpirationDate) === false) {\n errorMessages.push('Policy expiration date should have format YYYY-MM-DD');\n }\n }\n }\n\n if (lead.leadLeadTypeGeneralLiabilityRelation) {\n const { create: data } = lead.leadLeadTypeGeneralLiabilityRelation;\n\n if (data.policyExpirationDate) {\n if (/\\d{4}.\\d{2}.\\d{2}/.test(data.policyExpirationDate) === false) {\n errorMessages.push('Policy expiration date should have format YYYY-MM-DD');\n }\n }\n }\n\n if (lead.leadLeadTypeLifeRelation) {\n const { create: data } = lead.leadLeadTypeLifeRelation;\n\n if (data.dateGenerated === 'invalid') {\n errorMessages.push('Lead generated date should have the format YYYY-MM-DD hh:mm:ss');\n }\n }\n\n // Validate drivers\n if ('drivers' in lead) {\n for (const [, driver] of lead.drivers.create.entries()) {\n if (!isValidString(driver.firstName)) errorMessages.push(messages.driver.firstName);\n if (!isValidString(driver.lastName)) errorMessages.push(messages.driver.lastName);\n if (!!driver.email && !isValidEmail(driver.email)) errorMessages.push(messages.driver.email);\n if (!!driver.birthDate && !isValidDate(lead.birthDate))\n errorMessages.push(messages.driver.birthDate);\n if (!!driver.gender && !isValidString(driver.gender))\n errorMessages.push(messages.driver.gender);\n else if (!!driver.gender && !isIncludesInOptions(driver.gender, Object.values(GENDERS)))\n errorMessages.push(messages.driver.genderOptions);\n if (!!driver.maritalStatus && !isValidString(driver.maritalStatus))\n errorMessages.push(messages.driver.maritalStatus);\n else if (\n !!driver.maritalStatus &&\n !isIncludesInOptions(driver.maritalStatus, Object.values(MARITAL_STATUSES))\n )\n errorMessages.push(messages.driver.maritalStatusOptions);\n }\n }\n\n if (errorMessages.length !== 0)\n throw new ValidationError([`Error in row ${index}`, ...errorMessages]);\n};\n\n/**\n * Lead input validator from ricochet csv\n *\n * @param {object} lead - The lead object\n * @param {number} index - The line on the csv\n *\n * @returns {void}\n */\nexport const createLeadFromRicochetValidator = (lead, index) => {\n const errors = [];\n\n if (!isValidString(lead.firstName))\n errors.push(`On line ${index}, a valid first name is required:`, lead.firstName);\n\n if (!isValidString(lead.lastName, true))\n errors.push(`On line ${index}, a valid last name is required:`, lead.lastName);\n\n if (!isValidString(lead.email, true))\n errors.push(`On line ${index}, a valid email is required:`, lead.email);\n\n if (!moment(lead.creationDate).isValid())\n errors.push(`On line ${index}, creation date is not valid:`, lead.creationDate);\n\n for (let i = 0; i < lead.drivers.create.length; i++) {\n const driver = lead.drivers.create[i];\n\n if (driver.yearOfVehicle !== null && Number.isNaN(driver.yearOfVehicle)) {\n errors.push(`On line ${index}, vehicle ${i + 1} has an invalid year:`, driver.yearOfVehicle);\n }\n }\n\n if (errors.length) {\n throw new ValidationError(errors);\n }\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const onTaskCreate = createEvent();\n\nexport const onTaskCreateError = createEvent();\n\nexport const onTaskUpdateEvent = createEvent();\n\nexport const OnMassiveValidationError = createEvent();\n\nexport const OnMassiveValidationSuccess = createEvent();\n\nexport const OnCsvUploadFinised = createEvent();\n\nexport const OnLeadsListEvent = createEvent();\n\nexport const OnLeadsError = createEvent();\n\nexport const OnFetchSmsListEvent = createEvent();\n\nexport const OnTaskUpdateEvent = createEvent();\n\nexport const OnLeadCreateEvent = createEvent();\n\nexport const OnDeleteLeadsResult = createEvent();\n\nexport const OnAssignUserstoLeadEvent = createEvent();\n\nexport const OnAssignUserstoLeadError = createEvent();\n\nexport const OnLeadsUpdateEvent = createEvent();\n\nexport const OnDeleteLeadEvent = createEvent();\n\nexport const OnLeadsChunkBulkCreateEvent = createEvent();\n\nexport const OnValidatedLeadDataForUploadEvent = createEvent();\n\nexport const OnTaskError = createEvent();\n\nexport const OnTaskTypeListEvent = createEvent();\n\nexport const OnTaskTypeListError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport {\n LEADS_LIST_QUERY_V2,\n LEADS_LIST_LIGHT_QUERY,\n FILTER_OPTIONS_QUERY,\n LEAD_CREATE_MUTATION,\n LEAD_UPDATE_MUTATION,\n LEAD_DELETE_MUTATION,\n TASK_CREATE_MUTATION,\n TASK_UPDATE_MUTATION,\n LEAD_TASK_TYPE_LIST_QUERY,\n LEAD_USERS_UPDATE_MUTATION,\n LEAD_DETAIL_QUERY,\n // FETCH_LEAD,\n CREATE_SMS_MUTATION,\n FETCH_SMS_LIST,\n FETCH_MESSAGES_BY_LEAD,\n ASSIGN_USERS_TO_LEAD,\n UPDATE_LEAD,\n FETCH_CAMPAIGNS,\n FETCH_LEAD_TASKS,\n DELETE_LEAD_PHONE_NUMBERS,\n LEADS_FOR_TASK_LIST_QUERY_V2,\n LEADS_COUNT,\n FETCH_LEAD_RECORDINGS,\n} from './leads-queries';\nimport { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport {\n OnFetchLeadEvent,\n OnFetchLeadEventError,\n OnUpdateLeadAmount,\n OnUpdateLeadAmountError,\n OnFetchCampaigns,\n OnFetchCampaignsError,\n OnUpdateLeadCampaign,\n OnUpdateLeadCampaignError,\n OnUpdateLeadAssignees,\n OnUpdateLeadAssigneesError,\n OnFetchLeadTasks,\n OnFetchLeadTasksError,\n OnFetchLeadMessages,\n OnFetchLeadMessagesError,\n OnLeadMessageCreate,\n OnLeadMessageCreateError,\n OnFetchLeadRecordings,\n OnFetchLeadRecordingsError,\n} from './leads-store';\nimport { getLeadFromRowCsv, parsePhone, getLeadPhoneNumberRelationInput } from './leads-utils';\nimport {\n sanitize8BaseReferences,\n sanitize8BaseReference,\n sanitize8BaseEmptyFields,\n sanitize8BaseReconnects,\n sanitize8BaseReconnect,\n} from '../../shared/utils';\nimport { chunkArray } from '../../shared/utils';\nimport { getActiveAgency, getUserAgencyRoles } from '../../shared/utils/agency-utils';\nimport {\n MANAGER,\n AGENT,\n LEAD_TYPE_AUTO,\n LEAD_TYPE_COMMERCIAL_AUTO,\n LEAD_TYPE_HOME,\n LEAD_TYPE_LIFE,\n LEAD_TYPE_GENERAL_LIABILITY,\n LEAD_TYPE_WORKERS_COMPENSATION,\n LEAD_TYPE_EMPLOYEE_BENEFITS,\n} from '../../shared/constants';\nimport {\n createAndUpdateTaskValidator,\n createAndUpdateLeadValidator,\n createLeadFromStandardValidator,\n createLeadsFromRicochetColumnValidator,\n createLeadFromRicochetValidator,\n updateLeadValidator,\n} from './leads-validators';\nimport * as moment from 'moment';\nimport { LEAD_TYPE_OPTIONS, FILTER_CATEGORIES_TEXT_TYPES } from './leads-model';\nimport {\n OnCsvUploadFinised,\n OnLeadsListEvent,\n OnLeadsError,\n OnLeadCreateEvent,\n OnDeleteLeadsResult,\n OnAssignUserstoLeadEvent,\n OnAssignUserstoLeadError,\n OnLeadsUpdateEvent,\n OnDeleteLeadEvent,\n OnLeadsChunkBulkCreateEvent,\n OnValidatedLeadDataForUploadEvent,\n onTaskCreate,\n onTaskUpdateEvent,\n OnTaskError,\n OnTaskTypeListEvent,\n OnTaskTypeListError,\n OnFetchSmsListEvent,\n} from './leads-events';\n\n/**\n * Creates a filter object\n *\n * @param {object} filterData - the data of the filter\n * @param {string} search - string to find specifics leads\n * @returns {object} the filter object\n */\nexport const createFilter = (filterData, search) => {\n const roles = getUserAgencyRoles();\n const { user } = OnSessionFetch.get();\n\n const rolesFilter =\n !roles.includes(MANAGER) && roles.includes(AGENT)\n ? {\n OR: [\n {\n createdBy: {\n id: {\n equals: user.id,\n },\n },\n },\n {\n assignees: {\n some: {\n id: {\n equals: user.id,\n },\n },\n },\n },\n ],\n }\n : null;\n\n const agencyFilter = filterData.agency\n ? {\n campaign: { agency: { id: { equals: filterData.agency } } },\n }\n : {};\n\n const stageNameFilter = filterData.stage?.name\n ? { stage: { name: { contains: filterData.stage.name } } }\n : {};\n\n const typeSelectedFilter = LEAD_TYPE_OPTIONS.find((item) => item.value === filterData.leadType);\n\n const typeFilter = typeSelectedFilter\n ? {\n [typeSelectedFilter.relation]: {\n id: {\n is_not_empty: true,\n },\n },\n }\n : null;\n\n const searhArray =\n search && typeof search === 'string' && search.length > 0 && Number.isNaN(parseInt(search))\n ? search\n .split(' ')\n .map((word) => [\n { firstName: { contains: word } },\n { lastName: { contains: word } },\n { middleName: { contains: word } },\n { email: { contains: word } },\n {\n notesLeadRelation: {\n some: {\n OR: [{ title: { contains: word } }, { text: { contains: word } }],\n },\n },\n },\n ])\n .flat()\n : [];\n\n const phoneNumber = !Number.isNaN(parseInt(search))\n ? {\n leadLeadPhoneNumberRelation: {\n some: {\n OR: [\n {\n phone: {\n number: {\n contains: parsePhone(search),\n },\n },\n },\n {\n parsedPhone: {\n number: {\n contains: parsePhone(search),\n },\n },\n },\n ],\n },\n },\n }\n : null;\n\n const phoneNumberFromFilter =\n search === '' && !Number.isNaN(parseInt(filterData.phoneNumber))\n ? {\n leadLeadPhoneNumberRelation: {\n some: {\n OR: [\n {\n phone: {\n number: {\n contains: parsePhone(filterData.phoneNumber),\n },\n },\n },\n {\n parsedPhone: {\n number: {\n contains: parsePhone(filterData.phoneNumber),\n },\n },\n },\n ],\n },\n },\n }\n : null;\n\n // Here we map the posibles filter field wich type is text\n // we check all the key in 'filterData' and comprare with FILTER_CATEGORIES_TEXT_TYPES\n // If the key match with the types in the array we map them as filter type text object from 8base api.\n const textFields = Object.keys(filterData)\n .filter((key) => FILTER_CATEGORIES_TEXT_TYPES.includes(key))\n .map((key) => ({\n [key]: { contains: filterData[key] },\n }));\n\n return {\n AND: [\n ...(phoneNumber ? [phoneNumber] : []),\n ...(phoneNumberFromFilter ? [phoneNumberFromFilter] : []),\n ...textFields,\n ...[agencyFilter],\n ...[stageNameFilter],\n ...(rolesFilter ? [rolesFilter] : []),\n ...(typeFilter ? [typeFilter] : []),\n ...(filterData.leadVendor\n ? [\n {\n leadSource: { id: { equals: filterData.leadVendor } },\n },\n ]\n : []),\n ...(filterData.createdAfter\n ? [\n {\n createdAt: { gte: filterData.createdAfter },\n },\n ]\n : []),\n ...(filterData.createdBefore\n ? [\n {\n createdAt: { lte: filterData.createdBefore },\n },\n ]\n : []),\n ...(filterData.assignedTo\n ? [\n {\n assignees: {\n ...(filterData.assignedTo === 'none'\n ? {\n every: { id: { is_empty: true } },\n }\n : {\n some: { id: { equals: filterData.assignedTo } },\n }),\n },\n },\n ]\n : []),\n ...(filterData.hasNotes && filterData.hasNotes === 'Yes'\n ? [\n {\n notesLeadRelation: { some: { id: { not_equals: null } } },\n },\n ]\n : []),\n ...(filterData.hasNotes && filterData.hasNotes === 'No'\n ? [\n {\n notesLeadRelation: { none: {} },\n },\n ]\n : []),\n ...(filterData.campaign\n ? [\n {\n campaign: {\n id: {\n equals: filterData.campaign,\n },\n },\n },\n ]\n : []),\n ],\n\n ...(search && {\n OR: searhArray,\n }),\n };\n};\n\n/**\n * Creates a filter object for SMS\n *\n * @param {object} filterData - the data of the filter\n * @returns {object} the filter object\n */\nconst createSMSFilter = (filterData) => {\n const agencyFilter = filterData.agency\n ? {\n agency: { id: { equals: filterData.agency } },\n }\n : {};\n return {\n AND: [\n ...[agencyFilter],\n ...(filterData.dateStart !== '' && filterData.dateStart\n ? [\n {\n createdAt: {\n gte: moment(filterData.dateStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.dateEnd !== '' && filterData.dateEnd\n ? [\n {\n createdAt: {\n lte: moment(filterData.dateEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.assignedTo !== ''\n ? [\n {\n createdBy: { id: { equals: filterData.assignedTo } },\n },\n ]\n : []),\n ...(filterData.type !== ''\n ? [\n {\n type: { equals: filterData.type },\n },\n ]\n : []),\n ],\n };\n};\n\n/**\n * Returns a Sort Object\n *\n * @param {string} sortData - the category to be sorted\n * @returns {object} the sort object\n *\n */\nconst createSort = (sortData) => {\n return {\n ...(sortData === 'top' && { sort: [{ priority: 'DESC' }] }),\n ...(sortData === 'low' && { sort: [{ priority: 'ASC' }] }),\n ...(sortData === 'newest' && { sort: [{ createdAt: `DESC` }] }),\n ...(sortData === 'oldest' && { sort: [{ createdAt: `ASC` }] }),\n };\n};\n\n/**\n * function to fetch leads.\n *\n * @param {number} page - the current page of the leads\n * @param {object} data - an object which contains the filterData\n * @param {string} search - string to find specifics leads\n */\nexport const fetchLeads = async (page, data, search) => {\n const client = OnApolloClient.get();\n const skip = (page - 1) * 10;\n const filter = createFilter(data, search);\n console.log('fetchLeads filterdata:', data);\n console.log('fetchLeads filter:', filter);\n const sort = data.sort !== '' ? createSort(data.sort) : undefined;\n\n let response;\n\n const variables = { first: 10, skip, ...(filter && { filter }), ...(sort && sort) };\n\n try {\n response = await client.query({\n query: LEADS_FOR_TASK_LIST_QUERY_V2,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchLeads', e);\n return OnLeadsError.dispatch(e);\n }\n log('fetchLeads', response);\n OnLeadsListEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * function to fetch leads with less data.\n *\n * @param {number} page - the current page of the leads\n * @param {object} data - an object which contains the filterData\n * @param {string} search - string to find specifics leads\n */\nexport const fetchLeadsLight = async (page, data, search) => {\n const client = OnApolloClient.get();\n const skip = (page - 1) * 10;\n const filter = createFilter(data, search);\n const sort = data.sort !== '' ? createSort(data.sort) : undefined;\n let response;\n\n const variables = { first: 10, skip, ...(filter && { filter }), ...(sort && sort) };\n\n try {\n const responseCount = await client.query({\n query: LEADS_COUNT,\n fetchPolicy: 'network-only',\n variables,\n });\n\n const responseLeads = await client.query({\n query: LEADS_LIST_LIGHT_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n\n response = {\n ...responseLeads,\n data: {\n leadsList: { ...responseLeads.data.leadsList, count: responseCount.data?.leadsList.count },\n },\n };\n } catch (e) {\n error('fetchLeadsLight', e);\n return OnLeadsError.dispatch(e);\n }\n log('fetchLeadsLight', response);\n OnLeadsListEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * function to fetch leads.\n *\n * @param {string} user - User id of the assignees lead\n * @param {string} agency - Agency relatied to the leads\n * @param {string} search - Search.\n */\nexport const fetchUserLeads = async (user, agency, search = '') => {\n const client = OnApolloClient.get();\n const variables = {\n first: 50,\n filter: {\n AND: {\n campaign: {\n agency: {\n id: {\n equals: agency,\n },\n },\n },\n assignees: {\n some: {\n id: {\n equals: user,\n },\n },\n },\n },\n ...(search &&\n search !== '' && {\n OR: [\n { firstName: { contains: search } },\n { lastName: { contains: search } },\n {\n notesLeadRelation: {\n some: { OR: [{ title: { contains: search } }, { text: { contains: search } }] },\n },\n },\n ],\n }),\n },\n };\n\n let response;\n try {\n response = await client.query({\n query: LEADS_LIST_QUERY_V2,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchUserLeads', e);\n }\n log('fetchUserLeads', response);\n\n return response.data;\n};\n\nexport const fetchFilterOptions = async (agencyId) => {\n const client = OnApolloClient.get();\n let response;\n try {\n response = await client.query({\n query: FILTER_OPTIONS_QUERY,\n fetchPolicy: 'network-only',\n variables: { agencyId },\n });\n } catch (e) {\n error('filterOptions', e);\n return;\n }\n\n log('fetchFilterOptions', response.data);\n\n return response.data;\n};\n\n/**\n * Function that will update the lead/agents relation\n *\n * @param {number} leadId - The id of the lead about to update\n * @param {Array} userIds - The users that will connect with the lead\n *\n * @returns {void}\n */\nexport const updateLeadUsers = async (leadId, userIds) => {\n const users = userIds.map((uid) => ({ id: uid }));\n const client = OnApolloClient.get();\n\n const data = {\n id: leadId,\n assignees: {\n reconnect: users,\n },\n };\n\n try {\n const response = await client.mutate({\n mutation: LEAD_USERS_UPDATE_MUTATION,\n variables: { data },\n });\n\n log('updateLeadUsers', response.data);\n\n return response.data;\n } catch (e) {\n error('updateLeadUsers', e);\n\n return;\n }\n};\n\n/**\n * Updates the lead's fields provided\n *\n * @param {string} id - The lead id\n * @param {object} data - The data to update the lead\n *\n * @returns {object} - response data\n */\nexport const updateLead = async (id, data) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n updateLeadValidator(data);\n } catch (e) {\n error('updateLead', e);\n return OnLeadsError.dispatch(e);\n }\n\n const { create, update, disconnect } = getLeadPhoneNumberRelationInput(data.phones, true);\n\n if (disconnect && disconnect.length > 0) {\n try {\n response = await client.mutate({\n mutation: DELETE_LEAD_PHONE_NUMBERS,\n variables: {\n filter: {\n id: {\n in: disconnect.map((phone) => phone.id),\n },\n },\n force: true,\n },\n });\n } catch (e) {\n error('updateLead', e);\n return OnLeadsError.dispatch(e);\n }\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_UPDATE_MUTATION,\n variables: {\n filter: { id },\n data: {\n firstName: data.firstName,\n middleName: data.middleName,\n lastName: data.lastName,\n gender: data.gender,\n birthMonth: data.birthMonth,\n birthDay: data.birthDay,\n birthYear: data.birthYear,\n campaign: { connect: { id: data.campaign } },\n email: data.email,\n assignees: {\n reconnect: data.assignees.map((user) => ({\n id: user.value || user.id,\n })),\n },\n leadLeadPhoneNumberRelation: {\n create,\n update,\n },\n address: {\n street1: data.firstAddress,\n street2: data.secondAddress,\n zip: data.zipCode,\n city: data.city,\n state: data.state,\n },\n creditScore: data.creditScore,\n priority: data.priority,\n ifsScore: data.ifsScore,\n amount: data.amount || '0',\n },\n },\n });\n } catch (e) {\n error('updateLead', e);\n return OnLeadsError.dispatch(e);\n }\n\n log('updateLead', response);\n OnLeadsUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Updates the priority of the specified lead\n *\n * @param {string} id - The lead id\n * @param {string} priority - The value to set as priority\n *\n * @returns {Promise} The request result\n */\nexport const updateLeadPriority = async (id, priority) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = client.mutate({\n mutation: LEAD_UPDATE_MUTATION,\n variables: {\n data: {\n id,\n priority,\n },\n },\n });\n } catch (e) {\n error('updateLeadPriority', e);\n return OnLeadsError.dispatch(e);\n }\n\n log('updateLeadPriority', response.data);\n OnLeadsUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * @param {Array} leadList - the ids of the leads to be deleted\n */\nexport const deleteLeads = async (leadList) => {\n const client = OnApolloClient.get();\n let success = 0;\n let errors = 0;\n\n for (const lead of leadList) {\n try {\n await client.mutate({\n mutation: LEAD_DELETE_MUTATION,\n variables: { data: { id: lead, force: true } },\n });\n } catch (e) {\n error(lead + ' deleteLead', e.message);\n\n errors += 1;\n\n continue;\n }\n\n success += 1;\n }\n\n log('deleteLeads', success, errors);\n OnDeleteLeadsResult.dispatch({\n success,\n errors,\n });\n};\n\n/**\n * Deletes a Lead by id\n *\n * @param {string} id identifier of the lead\n * @returns {object} the response data\n */\nexport const deleteLead = async (id) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.mutate({\n mutation: LEAD_DELETE_MUTATION,\n variables: { data: { id, force: true } },\n });\n } catch (e) {\n error('leadDelete', e);\n return OnLeadsError.dispatch(e);\n }\n\n log('leadDelete', response);\n OnDeleteLeadEvent.dispatch(response.data);\n return response.data;\n }\n};\n\n/**\n * Creates a Lead\n *\n * @param {object} lead - The lead object to create\n */\nexport const createLead = async (lead) => {\n const client = OnApolloClient.get();\n let response;\n try {\n createAndUpdateLeadValidator(lead);\n } catch (e) {\n error('createLead', e);\n return OnLeadsError.dispatch(e);\n }\n\n sanitize8BaseReferences(lead, 'assignees');\n sanitize8BaseReference(lead, 'campaign');\n\n try {\n response = await client.mutate({\n mutation: LEAD_CREATE_MUTATION,\n variables: { data: lead },\n });\n } catch (e) {\n error('createLead', e);\n return OnLeadsError.dispatch(e);\n }\n\n log('createLead', response);\n OnLeadCreateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Creates a task\n *\n * @param {object} task - The task object\n *\n * @returns {Promise} The promises contains result from server\n */\nexport const createTask = async (task) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createAndUpdateTaskValidator(task);\n } catch (e) {\n error('createTask', e);\n\n return OnTaskError.dispatch(e);\n }\n\n sanitize8BaseEmptyFields(task);\n sanitize8BaseReferences(task, 'users');\n sanitize8BaseReferences(task, 'agents');\n sanitize8BaseReference(task, 'lead');\n sanitize8BaseReference(task, 'type');\n\n task.agency = {\n connect: {\n id: getActiveAgency().id,\n },\n };\n\n try {\n response = await client.mutate({\n mutation: TASK_CREATE_MUTATION,\n variables: { data: task },\n });\n } catch (e) {\n error('createTask', e);\n\n return OnTaskError.dispatch(e);\n }\n\n log('createTask', response);\n\n onTaskCreate.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Updates a task\n *\n * @param {object} task - The task object to update\n *\n * @returns {object} Response object or null in case it fails\n */\nexport const updateTask = async (task) => {\n const client = OnApolloClient.get();\n\n try {\n createAndUpdateTaskValidator(task, true);\n } catch (e) {\n error('updateTask', e);\n\n return OnTaskError.dispatch(e);\n }\n\n sanitize8BaseEmptyFields(task);\n sanitize8BaseReconnects(task, 'users');\n sanitize8BaseReconnects(task, 'agents');\n sanitize8BaseReconnect(task, 'type');\n\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: TASK_UPDATE_MUTATION,\n variables: { data: task },\n });\n } catch (e) {\n error('updateTask', e);\n\n return OnTaskError.dispatch(e);\n }\n\n onTaskUpdateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetch the task's types\n */\nexport const fetchLeadTaskTypes = async () => {\n const client = OnApolloClient.get();\n let response;\n try {\n response = await client.query({\n query: LEAD_TASK_TYPE_LIST_QUERY,\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchLeadTaskTypes', e);\n return OnTaskTypeListError.dispatch(e);\n }\n\n log('fetchLeadTaskTypes', response.data);\n OnTaskTypeListEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetch lead details\n *\n * @param {string} id - Lead id to fetch\n *\n * @returns {object} The Lead object fetched from db\n */\nexport const fetchLeadDetails = createAction(\n OnFetchLeadEvent,\n OnFetchLeadEventError,\n async (id) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: LEAD_DETAIL_QUERY,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n\n return response.data;\n },\n);\n\n/**\n * Updates the specified lead's amount\n *\n * @param {string} id- The lead id\n * @param {string} value - The amount value\n *\n * @returns {Promise} The request result\n */\nexport const updateLeadAmount = createAction(\n OnUpdateLeadAmount,\n OnUpdateLeadAmountError,\n async (id, value) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: UPDATE_LEAD,\n variables: {\n filter: {\n id,\n },\n data: {\n amount: value,\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Updates the campaign of the specified lead\n * to the one provided\n *\n * @param {string} lead - The lead id\n * @param {string} campaigns - The campaign id\n *\n * @returns {Promise} The request result\n */\nexport const updateLeadCampaign = createAction(\n OnUpdateLeadCampaign,\n OnUpdateLeadCampaignError,\n async (lead, campaign) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: UPDATE_LEAD,\n variables: {\n filter: {\n id: lead,\n },\n data: {\n campaign: {\n connect: {\n id: campaign,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Updates the users that are assigned to the\n * specified lead\n *\n * @param {string} lead - The lead id\n * @param {Array} users - The users is\n *\n * @returns {Promise} The request result\n */\nexport const updateLeadAssignees = createAction(\n OnUpdateLeadAssignees,\n OnUpdateLeadAssigneesError,\n async (lead, users) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: UPDATE_LEAD,\n variables: {\n filter: {\n id: lead,\n },\n data: {\n assignees: {\n reconnect: users.map((user) => ({ id: user })),\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches all the campaigns from the specified agency\n *\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The request result\n */\nexport const fetchAgencyCampaigns = createAction(\n OnFetchCampaigns,\n OnFetchCampaignsError,\n async (agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_CAMPAIGNS,\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n agency: {\n id: {\n equals: agency,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the tasks assined to the\n * specified lead\n *\n * @param {string} lead - The lead id\n *\n * @returns {Promise} The request result\n */\nexport const fetchLeadTasks = createAction(\n OnFetchLeadTasks,\n OnFetchLeadTasksError,\n async (lead) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_LEAD_TASKS,\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n lead: {\n id: {\n equals: lead,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Creates and sends an sms to the specified lead\n *\n * @param {object} message - The message object to create\n *\n * @returns {Promise} The created message object\n */\nexport const createSms = createAction(\n OnLeadMessageCreate,\n OnLeadMessageCreateError,\n async (data) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: CREATE_SMS_MUTATION,\n variables: {\n data: {\n text: data.text,\n phoneNumber: `+${data.number.code}${data.number.number}`,\n lead: { connect: { id: data.lead } },\n user: { connect: { id: data.user } },\n from: { connect: { id: data.from } },\n agency: { connect: { id: data.agency } },\n files: {\n create: data.files.map((file) => ({\n filename: file.filename,\n fileId: file.fileId,\n meta: {\n url: file.downloadUrl,\n },\n })),\n }, //make leadPhoneNumber's inclusion into the mutation dependent on the existence of data.leadPhoneNumber\n ...(data.leadPhoneNumber && {\n leadPhoneNumber: { connect: { id: data.leadPhoneNumber } },\n }),\n },\n },\n });\n\n return response.data;\n\n // const { leadId, msg, number, files, from, agency } = message;\n\n // let filesToSend = [];\n // files.forEach((file) => {\n // filesToSend.push({\n // filename: file.filename,\n // fileId: file.fileId,\n // meta: {\n // url: file.downloadUrl,\n // },\n // });\n // });\n\n // const phoneNumber = `+${number.code}${number.number}`;\n\n // const data = {\n // text: msg,\n // phoneNumber,\n // lead: { connect: { id: leadId } },\n // user: { connect: { id: user.id } },\n // files: { create: filesToSend },\n // from: { connect: { id: from } },\n // agency: { connect: { id: agency } },\n // };\n\n // try {\n // response = await client.mutate({\n // mutation: CREATE_SMS_MUTATION,\n // variables: { data },\n // });\n // } catch (e) {\n // error('createMessage', e);\n // return Flux.dispatchEvent(LEADS_ERROR_EVENT, e);\n // }\n // onCreateMessage.dispatch(response.data);\n // Flux.dispatchEvent(LEAD_SMS_MESSAGE_CREATE_EVENT, response.data);\n // return response;\n },\n);\n\n/**\n * Creates a Leads\n *\n * @param {Array} csvColumns CSV column titles\n * @param {Array} csvData Data arrays corresponding to leads\n * @param {string} campaign Campaign\n * @param {Array} formattedLeads - Lead objects ready for creation\n *\n * @returns {Promise} The request result\n */\nexport const createLeads = async (csvColumns, csvData, campaign, formattedLeads = []) => {\n const client = OnApolloClient.get();\n let leadIndex;\n let leads = formattedLeads.length > 0 ? formattedLeads : [];\n\n if (leads.length === 0) {\n try {\n csvData.forEach((row, index) => {\n leadIndex = index + 1;\n let lead = getLeadFromRowCsv(row, csvColumns, leadIndex, campaign);\n\n createLeadFromStandardValidator(lead, leadIndex);\n\n sanitize8BaseReferences(lead, 'users');\n sanitize8BaseReference(lead, 'campaign');\n delete lead._type;\n delete lead.dob;\n leads.push(lead);\n });\n } catch (e) {\n error('createLeads', e);\n if ('arr' in e) e.arr.push('Lead #' + leadIndex);\n return OnLeadsError.dispatch(e);\n }\n }\n\n OnValidatedLeadDataForUploadEvent.dispatch(true);\n const getListPromises = (chunkLeads) => {\n let r = [];\n chunkLeads.forEach((lead) => {\n const importedLead = {\n ...lead,\n imported: true,\n };\n\n r.push(\n client.mutate({\n mutation: LEAD_CREATE_MUTATION,\n variables: { data: importedLead },\n }),\n );\n });\n return r;\n };\n\n const requestPromise = (chunkLeads, isLast) =>\n Promise.all(getListPromises(chunkLeads))\n .then((response) => {\n log('createLeads', response);\n OnLeadsChunkBulkCreateEvent.dispatch({ totalChunk: chunkLeads.length });\n if (isLast) {\n OnCsvUploadFinised.dispatch();\n }\n })\n .catch((e) => {\n error('createLeads error', e);\n OnLeadsError.dispatch(e);\n });\n\n const sizeChunck = leads.length < 100 ? 20 : Math.min(Math.ceil(leads.length / 5), 50);\n\n const chunksLeads = chunkArray(leads, sizeChunck);\n\n chunksLeads.reduce(\n (promise, nextChunk, i) =>\n promise.then(() => requestPromise(nextChunk, i === chunksLeads.length - 1)),\n Promise.resolve(),\n );\n\n return null;\n};\n\n/**\n * Creates leads from the Ricochet format\n *\n * @param {Array} csvColumns - The columns in the csv\n * @param {Array>} csvData - The array of data\n * @param {string} campaign - The campaign id\n * @param {string} leadsType - The type all of the leads in the csv are going to be\n * @param {Array} formattedLeads - Lead objects ready for creation\n * @returns {Promise} The request result\n */\nexport const createLeadsFromRicochet = async (\n csvColumns,\n csvData,\n campaign,\n leadsType,\n formattedLeads = [],\n) => {\n const client = OnApolloClient.get();\n const columns = csvColumns.map((col) => col.toLowerCase().trim());\n const chunkSize = 20;\n\n try {\n createLeadsFromRicochetColumnValidator(columns);\n } catch (e) {\n error('createLeadsFromRicochet', e);\n return OnLeadsError.dispatch(e);\n }\n\n const firstName = columns.indexOf('first name');\n const lastName = columns.indexOf('last name');\n const email = columns.indexOf('email');\n const zipCode = columns.indexOf('zip code');\n const state = columns.indexOf('state');\n const city = columns.indexOf('city');\n const address = columns.indexOf('address');\n const importedLeadId = columns.indexOf('lead id');\n const creationDate = columns.indexOf('created at');\n const phones = [];\n const vehicles = {};\n\n for (let i = 0; i < columns.length; i++) {\n let result = null;\n\n if (columns[i].includes('phone')) {\n phones.push(i);\n continue;\n }\n\n result = columns[i].match(/^(\\w+) vehicle (\\w+)$/);\n\n if (result !== null) {\n const { 1: order, 2: attr } = result;\n\n if (!vehicles[order]) {\n vehicles[order] = {};\n }\n\n vehicles[order][attr] = i;\n continue;\n }\n }\n\n let leads = formattedLeads.length > 0 ? formattedLeads : [];\n\n if (leads.length === 0) {\n try {\n leads = csvData.map((row, i) => {\n const creation = row[creationDate]\n ? row[creationDate].replace(/(a|p)\\.\\s?(m)\\./, (_, first, second) =>\n `${first}${second}`.toUpperCase(),\n )\n : null;\n\n const lead = {\n firstName: row[firstName],\n middleName: ' ',\n lastName: row[lastName],\n email: row[email],\n address: [\n {\n country: 'US',\n state: row[state],\n city: row[city],\n street1: row[address],\n zip: row[zipCode],\n },\n ],\n phones: phones.map((phone) => ({ code: row[phone][0], number: row[phone].slice(1) })),\n drivers: {\n create: Object.keys(vehicles).map((order) => ({\n yearOfVehicle: vehicles[order]?.year\n ? row[vehicles[order].year]\n ? parseInt(row[vehicles[order].year])\n : null\n : null,\n makeOfVehicle: vehicles[order]?.make ? row[vehicles[order].make] : null,\n modelOfVehicle: vehicles[order]?.model ? row[vehicles[order].model] : null,\n })),\n },\n campaign: { connect: { id: campaign } },\n importedLeadId: row[importedLeadId],\n creationDate: creation\n ? moment(creation, ['MM/DD/YYYY hh:mm:ss A', 'M/D/YYYY h:mm:ss A']).toDate()\n : null,\n };\n\n if (leadsType === LEAD_TYPE_AUTO) {\n lead.leadLeadTypeAutoRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_COMMERCIAL_AUTO) {\n lead.leadLeadTypeCommercialAutoRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_HOME) {\n lead.leadLeadTypeHomeRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_LIFE) {\n lead.leadLeadTypeLifeRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_GENERAL_LIABILITY) {\n lead.leadLeadTypeGeneralLiabilityRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_WORKERS_COMPENSATION) {\n lead.leadLeadTypeWorkersCompensationRelation = { create: {} };\n }\n\n if (leadsType === LEAD_TYPE_EMPLOYEE_BENEFITS) {\n lead.leadLeadTypeEmployeeBenefitRelation = { create: {} };\n }\n\n createLeadFromRicochetValidator(lead, i + 2);\n\n return lead;\n });\n } catch (e) {\n error('createLeadsFromRicochet', e);\n return OnLeadsError.dispatch(e);\n }\n }\n\n OnValidatedLeadDataForUploadEvent.dispatch(true);\n for (let i = 0; i < Math.ceil(leads.length / chunkSize); i++) {\n const create = leads.slice(i * chunkSize, i * chunkSize + chunkSize);\n let response = null;\n\n const promises = create.map((lead) =>\n client.mutate({\n mutation: LEAD_CREATE_MUTATION,\n variables: { data: lead },\n }),\n );\n\n try {\n response = await Promise.all(promises);\n } catch (e) {\n error('createLeadsFromRicochet', e);\n return OnLeadsError.dispatch(e);\n }\n OnLeadsChunkBulkCreateEvent.dispatch({ totalChunk: create.length });\n\n log('createLeadsFromRicochet', response);\n }\n};\n\n/**\n * function to fetch SMS.\n *\n * @param {number} page - the current page of the leads\n * @param {object} data - an object which contains the filterData\n *\n * @returns {Promise} The request result\n */\nexport const fetchSMSMessages = async (page, data) => {\n let filter;\n let sort, type;\n if (data) {\n filter = createSMSFilter(data);\n if (data.sort !== '') {\n sort = createSort(data.sort).sort;\n console.log('SORT SORT', sort);\n }\n if (data.type !== '') {\n type = createSort(data.type).sort;\n console.log('TYPE SORT', type);\n }\n }\n const first = 10;\n const client = OnApolloClient.get();\n const skip = (page - 1) * first;\n\n let response;\n\n const variables = { first, skip, ...(filter && { filter }), ...(sort && { sort }) };\n\n try {\n response = await client.query({\n query: FETCH_SMS_LIST,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchSMSMessages', e);\n return OnLeadsError.dispatch(e);\n }\n\n log('fetchSMSMessages', response);\n\n OnFetchSmsListEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Fetches the messages of the specified lead\n *\n * @param {string} id - The lead id\n * @param {string} orderBy - Order of the results.\n *\n * @returns {Promise} The request result\n */\nexport const fetchLeadMessages = createAction(\n OnFetchLeadMessages,\n OnFetchLeadMessagesError,\n async (id, orderBy = 'createdAt_DESC') => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_MESSAGES_BY_LEAD,\n fetchPolicy: 'network-only',\n variables: {\n filter: {\n lead: {\n id: {\n equals: id,\n },\n },\n },\n orderBy,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * @param {Array} leadList - the list of leads\n * @param {Array} userIds - the ids of users\n */\nexport const assignUsersToLeads = async (leadList, userIds) => {\n const client = OnApolloClient.get();\n let errors = 0;\n let success = 0;\n\n await Promise.all(\n leadList.map(async (lead) => {\n let users = userIds.filter(\n (userId) => !lead.assignees.items.some((assigned) => assigned.id === userId),\n );\n\n users = users.map((userId) => ({ id: userId }));\n\n try {\n if (users.length) {\n await client.mutate({\n mutation: ASSIGN_USERS_TO_LEAD,\n variables: {\n leadId: lead.id,\n users,\n },\n });\n }\n success += 1;\n } catch (e) {\n error(`${lead.id} assign users`, e.message);\n errors += 1;\n }\n }),\n );\n\n if (errors === 0) {\n OnAssignUserstoLeadEvent.dispatch({ success });\n } else {\n OnAssignUserstoLeadError.dispatch({\n success,\n errors,\n });\n }\n};\n\n/**\n * Fetches the lead phone call recordings.\n *\n * @param {string} leadId - The lead id.\n * @param {number} page - The page number to paginate results.\n * @returns {Promise} The request result.\n */\nexport async function fetchLeadRecordings(leadId, page) {\n const client = OnApolloClient.get();\n const pageSize = 10;\n const skip = (page - 1) * pageSize;\n\n try {\n const response = await client.query({\n query: FETCH_LEAD_RECORDINGS,\n fetchPolicy: 'network-only',\n variables: { leadId, first: pageSize, skip },\n });\n\n OnFetchLeadRecordings.dispatch(response.data);\n return response.data;\n } catch (err) {\n OnFetchLeadRecordingsError.dispatch(err);\n }\n}\n","/**\n * Returns a label from an array of users\n *\n * @param {object} users - The users array to extract the label from\n *\n * @returns {string} The label string\n */\nexport function getAssignedUsersLabel(users) {\n if (!users || users.length === 0) {\n return '';\n }\n\n const [firstUser] = users;\n let firstUserFullName;\n\n if (firstUser.label !== undefined) {\n firstUserFullName = firstUser.label;\n } else {\n firstUserFullName = `${firstUser.firstName} ${firstUser.lastName}`;\n }\n\n const othersUsers = users.length > 1 ? `& ${users.length - 1} others` : '';\n\n return `${firstUserFullName} ${othersUsers}`;\n}\n\n/**\n * Map users to dropdown with check format\n *\n * @param {Array} users - All users available in dropdown\n * @param {Array} assigned - Users selected in the dropdown\n *\n * @returns {Array} Users mapped\n */\nexport function mapUserToDropdownWithCheck(users, assigned) {\n const assignedIds = assigned.map((a) => a.id);\n\n return users.map((user) => ({\n id: user.id,\n label: `${user.firstName} ${user.lastName}`,\n checked: assignedIds.includes(user.id),\n }));\n}\n\n/**\n * Map users to dropdown with check format\n *\n * @param {Array} users - All users available in dropdown\n *\n * @returns {Array} Users mapped\n */\nexport function mapUsersToDropdown(users) {\n return users.map((user) => ({\n value: user.id,\n label: `${user.firstName} ${user.lastName}`,\n }));\n}\n\n/**\n * Maps users to select input component\n *\n * @param {Array} users - Users to map\n *\n * @returns {Array} Users mapped\n */\nexport function mapUserToMultipleSelect(users) {\n return users.map((user) => ({\n id: user.id,\n label: `${user.firstName} ${user.lastName}`,\n value: user.id,\n imgUrl: user.avatar\n ? user.avatar.downloadUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n }));\n}\n","import gql from 'graphql-tag';\n\nexport const FETCH_MAILS = gql`\n query FetchEmails($filter: MailFilter, $first: Int, $skip: Int, $sort: [MailSort!]) {\n mailList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n count\n items {\n id\n subject\n from\n to\n ccopy\n type\n lead {\n id\n firstName\n lastName\n }\n user {\n id\n firstName\n lastName\n }\n createdAt\n }\n }\n }\n`;\n\nexport const FETCH_MAIL = gql`\n query FetchMail($id: ID) {\n mail(id: $id) {\n id\n type\n subject\n from\n to\n ccopy\n body\n lead {\n id\n firstName\n lastName\n }\n }\n }\n`;\n\nexport const CREATE_EMAIL_MESSAGE = gql`\n mutation CreateMail($data: MailCreateInput!) {\n mailCreate(data: $data) {\n id\n }\n }\n`;\n\nexport const UPDATE_EMAIL_STATE = gql`\n mutation UpdateMail($data: MailUpdateInput!) {\n mailUpdate(data: $data) {\n id\n subject\n from\n to\n archived\n deleted\n createdAt\n }\n }\n`;\n\nexport const FETCH_EMAIL_CONFIGURATION = gql`\n query FetchEmailConfigurations($user: ID!, $agency: ID!) {\n emailInboundServicesList(\n first: 1\n filter: { agency: { id: { equals: $agency } }, user: { id: { equals: $user } } }\n ) {\n items {\n id\n active\n }\n }\n emailOutboundServicesList(\n first: 1\n filter: { agency: { id: { equals: $agency } }, user: { id: { equals: $user } } }\n ) {\n items {\n id\n active\n username\n }\n }\n gmailServicesList(\n first: 1\n filter: { agency: { id: { equals: $agency } }, user: { id: { equals: $user } } }\n ) {\n items {\n id\n active\n profile {\n id\n email\n }\n }\n }\n outlookServicesList(\n first: 1\n filter: { agency: { id: { equals: $agency } }, user: { id: { equals: $user } } }\n ) {\n items {\n id\n active\n profile {\n id\n email\n }\n }\n }\n }\n`;\n\nexport const FETCH_GMAIL_EMAILS = gql`\n query FetchGmailEmails($first: Int, $after: String, $filter: GoogleEmailsFilter!) {\n googleEmailsList(first: $first, after: $after, filter: $filter) {\n next\n count\n items {\n id\n threadId\n labelIds\n payload {\n partId\n headers {\n name\n value\n }\n }\n internalDate\n }\n }\n }\n`;\n\nexport const FETCH_GMAIL_EMAIL = gql`\n query FetchGmailEmail($id: String!, $agency: ID!) {\n googleEmail(id: $id, agency: $agency) {\n id\n threadId\n labelIds\n payload {\n partId\n headers {\n name\n value\n }\n body\n }\n internalDate\n }\n }\n`;\n\nexport const CREATE_GOOGLE_EMAIL = gql`\n mutation CreateGoogleEmail($data: GoogleEmailCreateInput!) {\n googleEmailCreate(data: $data) {\n id\n }\n }\n`;\n\nexport const FETCH_OUTLOOK_EMAILS = gql`\n query FetchOutlookEmails($agency: ID!, $folder: OutlookFolder!, $search: String, $next: String) {\n outlookEmailsList(agency: $agency, folder: $folder, search: $search, next: $next) {\n count\n next\n items {\n id\n from {\n name\n address\n }\n to {\n name\n address\n }\n subject\n preview\n createdAt\n }\n }\n }\n`;\n\nexport const FETCH_OUTLOOK_EMAIL = gql`\n query FetchOutlookEmail($outlookId: String!, $agency: ID!) {\n outlookEmail(outlookId: $outlookId, agency: $agency) {\n id\n from {\n name\n address\n }\n to {\n name\n address\n }\n subject\n body\n createdAt\n }\n }\n`;\n\nexport const CREATE_OUTLOOK_EMAIL = gql`\n mutation CreateOutlookEmail($data: OutlookEmailCreateInput!) {\n outlookEmailCreate(data: $data) {\n id\n from {\n name\n address\n }\n to {\n name\n address\n }\n subject\n body\n createdAt\n }\n }\n`;\n\nexport const AgencyEmailServiceFragment = gql`\n fragment AgencyEmailServiceFragment on AgencyEmailService {\n id\n agency {\n id\n }\n outbound {\n id\n description\n server\n username\n }\n gmail {\n id\n profile {\n id\n name\n email\n }\n }\n outlook {\n id\n profile {\n id\n name\n email\n }\n }\n }\n`;\n\nexport const FETCH_AGENCY_EMAIL_SERVICES = gql`\n query FetchAgencyEmailService(\n $filter: AgencyEmailServiceFilter\n $first: Int\n $skip: Int\n $sort: [AgencyEmailServiceSort!]\n ) {\n agencyEmailServicesList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n count\n items {\n ...AgencyEmailServiceFragment\n }\n }\n }\n ${AgencyEmailServiceFragment}\n`;\n\nexport const CREATE_AGENCY_EMAIL_SERVICE = gql`\n mutation CreateAgencyEmailService($data: AgencyEmailServiceCreateInput!) {\n agencyEmailServiceCreate(data: $data) {\n ...AgencyEmailServiceFragment\n }\n }\n ${AgencyEmailServiceFragment}\n`;\n\nexport const FETCH_AVAILABLE_EMAIL_SERVICES = gql`\n query FetchAvailableEmailServices($agency: ID!) {\n emailOutboundServicesList(\n filter: { agency: { id: { equals: $agency } }, active: { equals: true } }\n ) {\n items {\n id\n description\n server\n username\n createdAt\n }\n }\n gmailServicesList(filter: { agency: { id: { equals: $agency } }, active: { equals: true } }) {\n items {\n id\n profile {\n id\n name\n email\n }\n createdAt\n }\n }\n outlookServicesList(filter: { agency: { id: { equals: $agency } }, active: { equals: true } }) {\n items {\n id\n profile {\n id\n name\n email\n }\n createdAt\n }\n }\n }\n`;\n\nexport const UPDATE_AGENCY_EMAIL_SERVICE = gql`\n mutation UpdateAgencyEmailService(\n $filter: AgencyEmailServiceKeyFilter\n $data: AgencyEmailServiceUpdateInput!\n ) {\n agencyEmailServiceUpdate(filter: $filter, data: $data) {\n ...AgencyEmailServiceFragment\n }\n }\n ${AgencyEmailServiceFragment}\n`;\n","import Flux from '@cobuildlab/flux-state';\nimport { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchEmails = createEvent();\n\nexport const OnFetchEmailsError = createEvent();\n\nexport const OnFetchEmail = createEvent();\n\nexport const OnFetchEmailError = createEvent();\n\nexport const OnCreateEmail = createEvent();\n\nexport const OnCreateEmailError = createEvent();\n\nexport const OnFetchEmailConfig = createEvent();\n\nexport const OnFetchEmailConfigError = createEvent();\n\nexport const OnFetchGmailList = createEvent();\n\nexport const OnFetchGmailListError = createEvent();\n\nexport const OnFetchGmailItem = createEvent();\n\nexport const OnFetchGmailItemError = createEvent();\n\nexport const OnReplyGoogleEmail = createEvent();\n\nexport const OnReplyGoogleEmailError = createEvent();\n\nexport const OnFetchOutlookEmails = createEvent();\n\nexport const OnFetchOutlookEmailsError = createEvent();\n\nexport const OnFetchOutlookEmail = createEvent();\n\nexport const OnFetchOutlookEmailError = createEvent();\n\nexport const OnCreateOutlookEmail = createEvent();\n\nexport const OnCreateOutlookEmailError = createEvent();\n\nexport const OnReplyOutlookEmail = createEvent();\n\nexport const OnReplyOutlookEmailError = createEvent();\n\nexport const OnFetchAgencyEmailService = createEvent();\n\nexport const OnFetchAgencyEmailServiceError = createEvent();\n\nexport const OnFetchAvailableEmailServices = createEvent();\n\nexport const OnFetchAvailableEmailServicesError = createEvent();\n\nexport const OnSetAgencyEmailService = createEvent();\n\nexport const OnSetAgencyEmailServiceError = createEvent();\n\n/**\n * Event that triggers when an email is updated\n *\n * @type {string}\n */\nexport const UPDATE_EMAIL_EVENT = 'onEmailUpdateEvent';\n\n/**\n * Event that triggers when email update fails\n *\n * @type {string}\n */\nexport const UPDATE_EMAIL_EVENT_ERROR = 'onEmailUpdateEventError';\n\n/**\n * Event that triggers a Update to user signature.\n *\n * @type {string}\n */\nexport const USER_SIGNATURE_UPDATE_EVENT = 'onUserSignatureUpdate';\n\nexport const USER_SIGNATURE_UPDATE_ERROR_EVENT = 'onUserSignatureUpdateError';\n\n/**\n * Event that triggers a User Signature event.\n *\n * @type {string}\n */\nexport const USER_SIGNATURE_EVENT = 'onUserSignatureEvent';\n\nexport const USER_SIGNATURE_ERROR_EVENT = 'onUserSignatureError';\n\n/**\n * Event that triggers when an email is created through google api\n */\nexport const CREATE_GOOGLE_EMAIL = 'onCreateGoogleEmail';\n\nexport const CREATE_GOOGLE_EMAIL_ERROR = 'onCreateGoogleEmailError';\n\nclass EmailStore extends Flux.DashStore {\n constructor() {\n super();\n\n this.addEvent(UPDATE_EMAIL_EVENT);\n this.addEvent(UPDATE_EMAIL_EVENT_ERROR);\n this.addEvent(USER_SIGNATURE_UPDATE_EVENT);\n this.addEvent(USER_SIGNATURE_UPDATE_ERROR_EVENT);\n this.addEvent(USER_SIGNATURE_EVENT);\n this.addEvent(USER_SIGNATURE_ERROR_EVENT);\n this.addEvent(CREATE_GOOGLE_EMAIL);\n this.addEvent(CREATE_GOOGLE_EMAIL_ERROR);\n }\n}\n\nexport default new EmailStore();\n","import gql from 'graphql-tag';\n\nexport const USER_SIGNATURE_QUERY = gql`\n query UserSigntare($id: ID) {\n user(id: $id) {\n id\n signature\n isEnableSignature\n }\n }\n`;\n","import { ValidationError } from '../../shared/errors';\nimport { isValidString, isValidEmail } from '../../shared/validators';\n\nexport const createEmailValidator = (email) => {\n let errors = [];\n\n if (!isValidString(email.subject)) errors.push('The mail must have a valid subject');\n\n if (!isValidString(email.body)) errors.push('The mail must have valid content');\n\n if (isValidString(email.to)) {\n const to = email.to.split(',');\n\n if (to.length > 0) {\n for (const address of to) {\n if (!isValidEmail(address.trim())) {\n errors.push(`${address} is not valid email address`);\n }\n }\n } else {\n errors.push('A valid email address must be set in the \"to\" field');\n }\n } else {\n errors.push('A valid email address must be set in the \"to\" field');\n }\n\n if (isValidString(email.cc)) {\n const cc = email.cc.split(',');\n\n if (cc.length > 0) {\n for (const address of cc) {\n if (!isValidEmail(address.trim())) {\n errors.push(`${address} is not valid email address`);\n }\n }\n }\n }\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","export const LIST_FILTER_OPTIONS = {\n INBOX: 'inbox',\n SEND: 'send',\n ARCHIVE: 'archive',\n TRASH: 'trash',\n LEADS: 'leads',\n};\n\nexport const SORT_OPTIONS = [\n { label: 'Date: Newest First', value: 'newest' },\n { label: 'Date: Oldest First', value: 'oldest' },\n];\n\nexport const PRE_SIGNATURE = '
    --
    ';\n\nexport const FILTER_CATEGORIES = {\n dateStart: {\n title: 'Date Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateStart',\n },\n dateEnd: {\n title: 'Date End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateEnd',\n },\n assignedTo: {\n title: 'Assigned to',\n placeholher: 'Select',\n identifier: 'assignedTo',\n options: [],\n },\n};\n\nexport const FILTER_DATA = {\n dateStart: '',\n dateEnd: '',\n assignedTo: '',\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUserSignatureEvent = createEvent();\n\nexport const OnUserSignatureError = createEvent();\n\nexport const OnCreateGoogleEmailEvent = createEvent();\n\nexport const OnCreateGoogleEmailError = createEvent();\n\nexport const OnUpdateEmailEvent = createEvent();\n\nexport const OnUpdateEmailError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { createAction } from '@cobuildlab/react-simple-state';\nimport {\n FETCH_MAILS,\n FETCH_MAIL,\n CREATE_EMAIL_MESSAGE,\n UPDATE_EMAIL_STATE,\n FETCH_EMAIL_CONFIGURATION,\n FETCH_GMAIL_EMAILS,\n FETCH_GMAIL_EMAIL,\n CREATE_GOOGLE_EMAIL,\n FETCH_OUTLOOK_EMAILS,\n FETCH_OUTLOOK_EMAIL,\n CREATE_OUTLOOK_EMAIL,\n FETCH_AGENCY_EMAIL_SERVICES,\n CREATE_AGENCY_EMAIL_SERVICE,\n FETCH_AVAILABLE_EMAIL_SERVICES,\n UPDATE_AGENCY_EMAIL_SERVICE,\n} from './email-queries';\nimport {\n OnFetchEmailConfig,\n OnFetchEmailConfigError,\n OnFetchGmailItem,\n OnFetchGmailItemError,\n OnFetchGmailList,\n OnFetchGmailListError,\n OnReplyGoogleEmail,\n OnReplyGoogleEmailError,\n OnFetchOutlookEmails,\n OnFetchOutlookEmailsError,\n OnFetchOutlookEmail,\n OnFetchOutlookEmailError,\n OnCreateOutlookEmail,\n OnCreateOutlookEmailError,\n OnReplyOutlookEmail,\n OnReplyOutlookEmailError,\n OnFetchAgencyEmailService,\n OnFetchAgencyEmailServiceError,\n OnFetchAvailableEmailServices,\n OnFetchAvailableEmailServicesError,\n OnSetAgencyEmailService,\n OnSetAgencyEmailServiceError,\n OnFetchEmails,\n OnFetchEmailsError,\n OnFetchEmail,\n OnFetchEmailError,\n OnCreateEmail,\n OnCreateEmailError,\n} from './email-store';\nimport { USER_SIGNATURE_QUERY } from '../my-account/email/email-queries';\nimport { createEmailValidator } from './email-validators';\nimport { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport { LIST_FILTER_OPTIONS } from './email-model';\nimport { EMAIL_TYPES } from '@cobuildlab/lead-volt-share';\nimport moment from 'moment';\nimport {\n OnCreateGoogleEmailError,\n OnCreateGoogleEmailEvent,\n OnUpdateEmailError,\n OnUpdateEmailEvent,\n OnUserSignatureError,\n OnUserSignatureEvent,\n} from './email-events';\n\nconst { INBOX, SEND, ARCHIVE, TRASH } = LIST_FILTER_OPTIONS;\n\nconst createFilterForList = (filters) => {\n return {\n ...(filters.folder === INBOX\n ? {\n type: {\n equals: 'INBOX',\n },\n }\n : {}),\n ...(filters.folder === SEND\n ? {\n type: {\n equals: 'SENT',\n },\n }\n : {}),\n ...(filters.folder === ARCHIVE\n ? {\n archived: {\n equals: true,\n },\n }\n : {}),\n ...(filters.folder === TRASH\n ? {\n deleted: {\n equals: true,\n },\n }\n : {}),\n ...(filters.search\n ? {\n _fullText: filters.search,\n }\n : {}),\n };\n};\n\n/**\n * Creates filter for email fetching\n *\n * @param {object} data - The data to create the filters from\n *\n * @returns {object} The filter object\n */\nconst createFilter = (data) => {\n return {\n ...(data.assignedTo\n ? {\n user: {\n id: {\n equals: data.assignedTo,\n },\n },\n }\n : {}),\n ...(data.dateStart || data.dateEnd\n ? {\n AND: [\n ...(data.dateStart\n ? [\n {\n createdAt: {\n gte: moment(data.dateStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(data.dateEnd\n ? [\n {\n createdAt: {\n lte: moment(data.dateEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ],\n }\n : {}),\n };\n};\n\n/**\n * Fetches a list of emails for the specified user\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n * @param {object} filters - The object with data to filters the results\n * @param {number} page - The page to fetch\n *\n * @returns {Promise} The request result\n */\nexport const fetchEmails = createAction(\n OnFetchEmails,\n OnFetchEmailsError,\n async (user, agency, filters, page) => {\n const client = OnApolloClient.get();\n const first = 20;\n const skip = first * (page - 1);\n const sort = [{ createdAt: 'DESC' }];\n\n const response = await client.query({\n query: FETCH_MAILS,\n fetchPolicy: 'network-only',\n variables: {\n first,\n skip,\n sort,\n filter: {\n ...createFilterForList(filters),\n user: {\n id: {\n equals: user,\n },\n },\n agency: {\n id: {\n equals: agency,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the specified email\n *\n * @param {string} id - The email id to fetch\n *\n * @returns {Promise} The request result\n */\nexport const fetchEmail = createAction(OnFetchEmail, OnFetchEmailError, async (id) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_MAIL,\n fetchPolicy: 'network-only',\n variables: {\n id,\n },\n });\n\n return response.data;\n});\n\nexport const fetchAgencyEmails = createAction(\n OnFetchEmails,\n OnFetchEmailsError,\n async (agency, page, sort = '', filters = {}) => {\n const client = OnApolloClient.get();\n const first = 10;\n const skip = first * (page - 1);\n\n console.log('filters', filters);\n\n const response = await client.query({\n query: FETCH_MAILS,\n fetchPolicy: 'network-only',\n variables: {\n first,\n skip,\n sort: sort === '' || sort === 'newest' ? [{ createdAt: 'DESC' }] : [{ createdAt: 'ASC' }],\n filter: {\n ...createFilter(filters),\n agency: {\n id: {\n equals: agency,\n },\n },\n lead: {\n id: {\n is_not_empty: true,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Creates a Email record in the database\n *\n * @param {object} email - The email object to store in db\n *\n * @returns {Promise} Result of the operation\n */\nexport const createNewEmail = createAction(OnCreateEmail, OnCreateEmailError, async (email) => {\n const client = OnApolloClient.get();\n\n createEmailValidator(email);\n\n const response = await client.mutate({\n mutation: CREATE_EMAIL_MESSAGE,\n variables: {\n data: {\n subject: email.subject,\n from: email.from,\n to: email.to\n .split(',')\n .map((to) => to.trim())\n .join(','),\n ccopy: email.cc\n .split(',')\n .map((cc) => cc.trim())\n .join(','),\n body: email.body,\n type: EMAIL_TYPES.SENT,\n attachments: {\n create: email.attachments.map((file) => ({\n filename: file.filename,\n fileId: file.fileId,\n meta: {\n url: file.downloadUrl,\n },\n })),\n },\n user: { connect: { id: email.user.id } },\n agency: { connect: { id: email.agency.id } },\n ...(email.lead\n ? {\n lead: { connect: { id: email.lead.id } },\n }\n : {}),\n ...(email.event \n ? {\n event: email.event\n } \n : {})\n },\n },\n });\n\n return response.data;\n});\n\nexport const updateEmail = async (id, archived, deleted) => {\n const client = OnApolloClient.get();\n const data = {\n id,\n archived,\n deleted,\n };\n\n try {\n const response = await client.mutate({\n mutation: UPDATE_EMAIL_STATE,\n variables: { data },\n });\n\n log('updateEmail', response.data);\n\n OnUpdateEmailEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n error('updateEmail', e);\n\n OnUpdateEmailError.dispatch(e);\n return Promise.reject(e);\n }\n};\n\n/**\n * Fetch user signature\n *\n * @returns {object} the response data\n */\nexport const fetchUserSignature = async () => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n let response;\n\n try {\n response = await client.query({\n query: USER_SIGNATURE_QUERY,\n fetchPolicy: 'network-only',\n variables: { id: user.id },\n });\n } catch (e) {\n error('fetchUserSignature', e);\n\n return OnUserSignatureError.dispatch(e);\n }\n\n log('fetchUserSignature', response);\n\n OnUserSignatureEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetches the user email configuration\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The configuration object\n */\nexport const fetchEmailConfiguration = createAction(\n OnFetchEmailConfig,\n OnFetchEmailConfigError,\n async (user, agency) => {\n const client = OnApolloClient.get();\n\n const { data } = await client.query({\n query: FETCH_EMAIL_CONFIGURATION,\n fetchPolicy: 'network-only',\n variables: {\n user,\n agency,\n },\n });\n\n const {\n emailInboundServicesList,\n emailOutboundServicesList,\n gmailServicesList,\n outlookServicesList,\n } = data;\n\n const [inbound] = emailInboundServicesList.items;\n const [outbound] = emailOutboundServicesList.items;\n const [gmail] = gmailServicesList.items;\n const [outlook] = outlookServicesList.items;\n\n return {\n inbound,\n outbound,\n gmail,\n outlook,\n };\n },\n);\n\n/**\n * Creates a filter for fetching emails from gmail API\n *\n * @param {object} data - The data to create the filter from\n *\n * @returns {object} The filter object\n */\nfunction createGmailsFilter(data) {\n return {\n agency: data.agency,\n ...(data.q\n ? {\n search: data.q,\n }\n : {}),\n ...(data.type\n ? {\n labels: [data.type],\n }\n : {}),\n };\n}\n\n/**\n * Fetch emails from google\n *\n * @param {string} agency - The agency id\n * @param {number} first - The quantity of items to fetch\n * @param {string} after - The token to user to fetch items from the next page\n * @param {string} search - The text to filter results\n *\n * @returns {Promise} The list of emails\n */\nexport const fetchGoogleEmails = createAction(\n OnFetchGmailList,\n OnFetchGmailListError,\n async (agency, first, after, filters) => {\n const client = OnApolloClient.get();\n const filter = createGmailsFilter({\n ...filters,\n agency,\n });\n\n const response = await client.query({\n query: FETCH_GMAIL_EMAILS,\n fetchPolicy: 'network-only',\n variables: {\n first,\n after,\n filter,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches an email details\n *\n * @param {string} id - The google message id\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The email object\n */\nexport const fetchGoogleEmail = createAction(\n OnFetchGmailItem,\n OnFetchGmailItemError,\n async (id, agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_GMAIL_EMAIL,\n fetchPolicy: 'network-only',\n variables: {\n id,\n agency,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Creates an email through the google api\n *\n * @param {object} data - The data needed to create the message\n *\n * @returns {Promise} The google email object\n */\nexport async function createGoogleEmail(data) {\n const client = OnApolloClient.get();\n\n try {\n createEmailValidator({\n to: data.to,\n cc: data.cc,\n subject: data.subject,\n body: data.content,\n });\n } catch (e) {\n return OnCreateGoogleEmailError.dispatch(e);\n }\n\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: CREATE_GOOGLE_EMAIL,\n variables: {\n data: {\n to: data.to,\n cc: data.cc,\n subject: data.subject,\n content: data.content,\n agency: data.agency,\n },\n },\n });\n } catch (e) {\n return OnCreateGoogleEmailError.dispatch(e);\n }\n\n OnCreateGoogleEmailEvent.dispatch(response.data);\n return response.data;\n}\n\n/**\n * Creates an email through the google api\n *\n * @param {object} data - The data needed to create the message\n *\n * @returns {Promise} The google email object\n */\nexport const replyGoogleEmail = createAction(\n OnReplyGoogleEmail,\n OnReplyGoogleEmailError,\n async (data) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: CREATE_GOOGLE_EMAIL,\n variables: {\n data: {\n to: data.to,\n subject: data.subject,\n content: data.content,\n agency: data.agency,\n threadId: data.threadId,\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches list of emails from the outlook api\n *\n * @param {string} agency - The agency id\n * @param {string} folder - The outlook folder to fetch the emails from\n * @param {string} search - Text to search on messages and filter the results\n * @param {string} next - The link to fetch the next set of results\n *\n * @returns {Promise} The request results\n */\nexport const fetchOutlookEmails = createAction(\n OnFetchOutlookEmails,\n OnFetchOutlookEmailsError,\n async (agency, next, filters) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_OUTLOOK_EMAILS,\n fetchPolicy: 'network-only',\n variables: {\n agency,\n ...(next ? { next } : {}),\n ...filters,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the specified outlook email id\n *\n * @param {string} outlookId - The email id on the outlook api\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The request result\n */\nexport const fetchOutlookEmail = createAction(\n OnFetchOutlookEmail,\n OnFetchOutlookEmailError,\n async (outlookId, agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_OUTLOOK_EMAIL,\n fetchPolicy: 'network-only',\n variables: {\n outlookId,\n agency,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Creates an outlook email\n *\n * @param {object} data - The data to send an email in outlook\n *\n * @returns {Promise} The request result\n */\nexport const createOutlookEmail = createAction(\n OnCreateOutlookEmail,\n OnCreateOutlookEmailError,\n async (data) => {\n const client = OnApolloClient.get();\n\n createEmailValidator({\n to: data.to,\n cc: data.cc,\n subject: data.subject,\n body: data.body,\n });\n\n const response = await client.mutate({\n mutation: CREATE_OUTLOOK_EMAIL,\n variables: {\n data: {\n agency: data.agency,\n to: data.to,\n body: data.body,\n subject: data.subject,\n ...(data.replyId\n ? {\n replyId: data.replyId,\n }\n : {}),\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Replies an outlook email\n *\n * @param {object} data - The data to reply an email in outlook\n *\n * @returns {Promise} The request result\n */\nexport const replyOutlookEmail = createAction(\n OnReplyOutlookEmail,\n OnReplyOutlookEmailError,\n async (data) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: CREATE_OUTLOOK_EMAIL,\n variables: {\n data: {\n agency: data.agency,\n body: data.body,\n replyId: data.replyId,\n },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the agency email service that is\n * using by default\n *\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The email service\n */\nexport const fetchAgencyEmailService = createAction(\n OnFetchAgencyEmailService,\n OnFetchAgencyEmailServiceError,\n async (agency) => {\n const client = OnApolloClient.get();\n\n const first = 1;\n const filter = {\n agency: {\n id: {\n equals: agency,\n },\n },\n };\n\n const response = await client.query({\n query: FETCH_AGENCY_EMAIL_SERVICES,\n fetchPolicy: 'network-only',\n variables: {\n first,\n filter,\n },\n });\n\n let [item] = response.data.agencyEmailServicesList.items;\n\n if (!item) {\n const {\n data: { agencyEmailServiceCreate },\n } = await client.mutate({\n mutation: CREATE_AGENCY_EMAIL_SERVICE,\n variables: {\n data: {\n agency: {\n connect: {\n id: agency,\n },\n },\n },\n },\n });\n\n item = agencyEmailServiceCreate;\n }\n\n return { agencyEmailService: item };\n },\n);\n\n/**\n * Fetches available email services in the specified agency\n *\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The list of active email services in the agency\n */\nexport const fetchAvailableEmailServices = createAction(\n OnFetchAvailableEmailServices,\n OnFetchAvailableEmailServicesError,\n async (agency) => {\n const client = OnApolloClient.get();\n\n const {\n data: { emailOutboundServicesList, gmailServicesList, outlookServicesList },\n } = await client.query({\n query: FETCH_AVAILABLE_EMAIL_SERVICES,\n fetchPolicy: 'network-only',\n variables: {\n agency,\n },\n });\n\n const results = [\n ...emailOutboundServicesList.items,\n ...gmailServicesList.items,\n ...outlookServicesList.items,\n ];\n\n results.sort((a, b) => {\n if (new Date(a.createdAt) < new Date(b.createdAt)) {\n return -1;\n }\n\n if (new Date(a.createdAt) > new Date(b.createdAt)) {\n return 1;\n }\n\n return 0;\n });\n\n return {\n agencyAvailableEmailServices: {\n items: results,\n },\n };\n },\n);\n\n/**\n * Sets the default email service to use in the agency\n *\n * @param {string} id - The agency email service id\n * @param {string} emailService - The email service id to set on the agency\n * @param {string} type - The type of service beign set, either \"outbound\", \"gmail\", \"outlook\"\n *\n * @returns {Promise} The update agency email service\n */\nexport const setAgencyEmailService = createAction(\n OnSetAgencyEmailService,\n OnSetAgencyEmailServiceError,\n async (id, emailService, type) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: UPDATE_AGENCY_EMAIL_SERVICE,\n variables: {\n filter: {\n id: id,\n },\n data: {\n outbound: { reconnect: {} },\n gmail: { reconnect: {} },\n outlook: { reconnect: {} },\n [type]: {\n reconnect: { id: emailService },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n","import gql from 'graphql-tag';\n\nexport const AGENTS_LIST_QUERY = gql`\n query FetchAgencyUsersList($filter: AgencyUserFilter) {\n agencyUsersList(filter: $filter) {\n items {\n id\n user {\n id\n firstName\n lastName\n avatar {\n id\n downloadUrl\n }\n }\n agency {\n id\n name\n }\n }\n }\n }\n`;\n\nexport const CREATE_AGENCY_MUTATION = gql`\n mutation CreateAgency($data: AgencyCreateInput!) {\n agencyCreate(data: $data) {\n id\n name\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnAgentsListEvent = createEvent();\n\nexport const OnAgentsError = createEvent();\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { AGENTS_LIST_QUERY } from './agents-queries';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { OnAgentsError, OnAgentsListEvent } from './agents-events';\n\n/**\n * Filter for agents list query.\n *\n * @param {object} filterData filter data agency ID\n * @returns {object} filters\n */\nconst createFilter = (filterData) => {\n return {\n ...(filterData.agency && filterData.agency !== ''\n ? {\n agency: { id: { equals: filterData.agency } },\n }\n : {}),\n };\n};\n\n/**\n * Fetch agents\n *\n * @param {object} filterData agency filter\n * @returns {Array} response data\n */\nexport const fetchAgents = async (filterData = {}) => {\n const client = OnApolloClient.get();\n const filter = createFilter(filterData);\n let response;\n\n const variables = {\n ...(filter && { filter }),\n };\n\n try {\n response = await client.query({\n query: AGENTS_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchAgents', e);\n\n return OnAgentsError.dispatch(e);\n }\n\n log('fetchAgents', response);\n\n const data = { agentsList: response.data.agencyUsersList };\n OnAgentsListEvent.dispatch(data);\n\n return data;\n};\n","export const SUBSCRIPTIONS_OPERATIONS = {\n CREATE: 'create',\n DELETE: 'delete',\n UPDATE: 'update',\n};\nexport const _8baseDateFormat = 'YYYY-MM-DDThh:mm:ssZ';\n","import React, { useState, useEffect, useRef } from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport moment from 'moment';\nimport {\n SelectField,\n TextAreaField,\n InputField,\n DateInputField,\n Label,\n Loader,\n} from '@8base/boost';\nimport { DialogForm, SelectMultipleAgents, Margin } from '../../../../shared/components';\nimport { fetchLeadTaskTypes, fetchUserLeads } from '../../leads-actions';\nimport { mapUserToMultipleSelect } from '../../../users/user-utils';\nimport { findPriority, priorityMap } from '../../leads-utils';\nimport { PRIORITY_OPTIONS } from '../../../../shared/constants';\nimport { createTask, updateTask } from '../../leads-actions';\nimport { createNewEmail } from 'modules/email/email-actions';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport { useAgency } from '../../../../shared/hooks/useAgency';\nimport { fetchAgents } from '../../../agents/agents-actions';\nimport { usePromise } from '@cobuildlab/hooks-utils';\nimport { _8baseDateFormat } from '../../../../shared/constants/8base';\nimport * as toast from 'shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { onTaskCreate, OnTaskError, onTaskUpdateEvent } from 'modules/leads/leads-events';\nimport { OnFetchEmailConfig } from 'modules/email/email-store';\n\nconst formType = {\n LEADS: 'LEADS',\n CALENDAR: 'CALENDAR',\n};\nconst TaskContainer = styled.div`\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n row-gap: 12px;\n column-gap: 15px;\n align-items: flex-end;\n grid-template-areas:\n ${(props) => props.type === formType.CALENDAR && `'leads leads leads leads'`}\n 'title title title title'\n 'type date date date'\n 'assignedTo assignedTo assignedTo assignedTo'\n 'taskPriority taskPriority taskPriority taskPriority'\n 'description description description description';\n`;\n\nconst Title = styled(InputField)`\n grid-area: title;\n`;\nconst LeadsBox = styled.div`\n grid-area: leads;\n`;\nconst DateBox = styled.div`\n grid-area: date;\n`;\n\nconst AssignedTo = styled.div`\n grid-area: assignedTo;\n`;\nconst TaskPriority = styled.div`\n grid-area: taskPriority;\n`;\nconst Description = styled.div`\n grid-area: description;\n & textarea {\n height: 85px;\n }\n`;\n\nconst UserBoxLoader = styled.div`\n position: relative;\n box-sizing: border-box;\n border-radius: 5px;\n border: 1px dashed #d0d7dd;\n display: flex;\n justify-content: center;\n padding: 15px;\n margin-top: 15px;\n`;\n\nconst initialState = {\n users: [],\n leads: [],\n types: [],\n loading: false,\n};\n\nconst initialForm = {\n id: null,\n title: '',\n agents: [],\n users: [],\n date: undefined,\n priority: '',\n description: '',\n type: {},\n lead: {},\n};\n\nconst taskTypesReducer = ({ leadTaskTypesList }) => leadTaskTypesList.items;\nconst taskLeadsReducer = ({ leadsList }) => leadsList.items;\n\nconst TaskForm = ({\n onClose,\n isOpen,\n leadId,\n task,\n setLeadForTask,\n agents,\n type,\n onSuccess,\n date,\n leads,\n}) => {\n const hasAgents = Array.isArray(agents) && agents.length > 0;\n const hasLeads = Array.isArray(leads) && leads.length > 0;\n const initialFormState = task\n ? {\n ...task,\n users: task.users.items,\n agents: task.agents.items,\n type: task.type,\n }\n : initialForm;\n const [state, setState] = useState(() => {\n if (hasAgents) initialState.users = agents;\n return initialState;\n });\n\n const [form, setForm] = useState(() => {\n const taskDate = task?.date\n ? task.date\n : date\n ? moment(date.dateStr).format(_8baseDateFormat)\n : null;\n\n const form = {\n ...initialFormState,\n date: taskDate,\n search: '',\n };\n return form;\n });\n\n const [search, setSearch] = useState(form.search);\n\n const [user] = useUser();\n const agency = useAgency();\n const [config, setConfig] = useState(null);\n const [service, setService] = useState(null);\n\n const [taskTypes, loadingTaskTypes] = usePromise(() => fetchLeadTaskTypes(), {\n initialState: initialState.types,\n reducer: taskTypesReducer,\n });\n\n const [fetchedleads, loadingLeads] = usePromise(\n () => fetchUserLeads(user.id, agency.id, search),\n {\n skip: type !== formType.CALENDAR || hasLeads,\n initialState: initialState.leads,\n reducer: taskLeadsReducer,\n },\n [user.id, agency.id, type, search],\n );\n\n const [, loadingAgents] = usePromise(\n () => fetchAgents({ agency: agency.id }),\n {\n skip: hasAgents,\n onCompleted: ({ agentsList }) => {\n setState((currentState) => ({\n ...currentState,\n users: agentsList.items.map((item) => item.user),\n }));\n },\n },\n [agency.id],\n );\n const searchTimeout = useRef(undefined);\n\n useEffect(() => {\n if (searchTimeout.current) clearTimeout(searchTimeout.current);\n\n searchTimeout.current = setTimeout(() => {\n setSearch(form.search);\n }, 1500);\n }, [form.search]);\n\n const handleFormChange = (name, value) => setForm({ ...form, [name]: value });\n\n useEffect(() => {\n const newData = {};\n if (!form.type.id && taskTypes.length > 0) {\n newData.type = taskTypes[0];\n }\n if (!form.priority || form.priority === '') {\n newData.priority = PRIORITY_OPTIONS[0].value;\n }\n if ((!form.users.length || form.users.length <= 0) && state.users.length > 0) {\n newData.users = state.users.filter((item) => item.id === user.id);\n }\n if (Object.keys(newData).length > 0) {\n setForm((currentForm) => ({ ...currentForm, ...newData }));\n }\n }, [form.type, form.priority, form.users, taskTypes, state.users, user]);\n\n useEffect(() => {\n // If the agents props array gets updated set the users again\n if (hasAgents && state.users !== agents) {\n setState((current) => ({ ...current, users: agents }));\n }\n }, [agents, state.users, hasAgents]);\n\n const usedLeads = hasLeads ? leads : fetchedleads;\n\n const taskCreateHandler = async () => {\n setState((current) => ({ ...current, loading: true }));\n const leadID = form.lead.id || leadId;\n\n const selectedUsers = form.users.map((user) => user.id);\n\n const data = {\n id: task ? task.id : undefined,\n date: form.date\n ? moment(form.date).format(_8baseDateFormat)\n : moment().format(_8baseDateFormat),\n description: form.description,\n title: form.title,\n priority: form.priority,\n users: selectedUsers,\n type: form.type.id,\n };\n\n let result = null;\n\n if (task) {\n updateTask(data);\n } else {\n data.lead = leadID;\n\n createTask(data);\n }\n\n createNewEmail({\n to: user.email,\n cc: '',\n from: 'leadvolt-no-reply@8base.com',\n subject: form.title,\n body: form.description,\n attachments: [],\n agency: { id: agency.id },\n lead: {\n id: leadID || undefined,\n },\n user: { id: user.id },\n event: {\n start: form.date ? moment(form.date) : moment(),\n end: form.date ? moment(form.date).add(10, 'minutes') : moment().add(10, 'minutes'),\n summary: form.title,\n description: form.description,\n location: form.type.name,\n url: 'https://app.leadvolt.com/',\n organizer: {\n name: `${user.firstName} ${user.lastName}`,\n email: user.email,\n },\n },\n });\n\n return result;\n };\n\n const onFormSuccess = (result) => {\n setForm(initialForm);\n setLeadForTask();\n onSuccess(result);\n onClose();\n };\n\n useEventSubscription(onTaskCreate, () => {\n toast.success('Success', 'Task successfully created');\n setState((current) => ({ ...current, loading: false }));\n onFormSuccess();\n });\n\n useEventSubscription(\n OnFetchEmailConfig,\n ({ gmail, outlook, outbound }) => {\n if (gmail && gmail.active) {\n setService(gmail);\n setConfig('GMAIL');\n } else if (outlook && outlook.active) {\n setService(outlook);\n setConfig('OUTLOOK');\n } else {\n setService(outbound);\n setConfig('MANUAL');\n }\n },\n [],\n );\n\n useEventSubscription(onTaskUpdateEvent, () => {\n toast.success('Success', 'Task successfully updated');\n setState((current) => ({ ...current, loading: false }));\n onFormSuccess();\n });\n\n useEventSubscription(OnTaskError, (err) => {\n onErrorMixinFC(err);\n setState((current) => ({ ...current, loading: false }));\n });\n\n return (\n \n \n {type === formType.CALENDAR && (\n \n handleFormChange('search', value),\n }}\n />\n {loadingLeads ? (\n \n \n \n ) : (\n <>\n {\n handleFormChange(\n 'lead',\n usedLeads.find((lead) => lead.id === selectedLead),\n );\n },\n }}\n options={usedLeads.map((lead) => ({\n value: lead.id,\n label: `${lead.firstName} ${lead.lastName}`,\n }))}\n placeholder={''}\n disabled={loadingLeads || task}\n />\n \n )}\n \n )}\n\n handleFormChange('title', value),\n }}\n />\n {\n handleFormChange(\n 'type',\n taskTypes.find((type) => type.id === selectedType),\n );\n },\n }}\n options={taskTypes.map((type) => ({ value: type.id, label: type.name }))}\n placeholder={''}\n disabled={loadingTaskTypes}\n />\n \n handleFormChange('date', value),\n }}\n />\n \n \n \n \n {loadingAgents || form.users.length === 0 ? (\n \n \n \n ) : (\n {\n if (!users) {\n toast.error(`Can't remove this user, select other user first.`);\n }\n handleFormChange('users', users ? users : []);\n }}\n defaultValue={mapUserToMultipleSelect(form.users)}\n options={mapUserToMultipleSelect(state.users)}\n />\n )}\n \n \n \n handleFormChange('priority', findPriority(value, PRIORITY_OPTIONS)),\n }}\n options={priorityMap(PRIORITY_OPTIONS)}\n placeholder={''}\n />\n \n \n handleFormChange('description', value),\n }}\n />\n \n \n \n );\n};\n\nTaskForm.propTypes = {\n date: PropTypes.object,\n agents: PropTypes.array,\n leads: PropTypes.array,\n task: PropTypes.shape({\n id: PropTypes.number.isRequired,\n type: PropTypes.object.isRequired,\n users: PropTypes.arrayOf(\n PropTypes.shape({\n items: PropTypes.array.isRequired,\n }).isRequired,\n ).isRequired,\n agents: PropTypes.arrayOf(\n PropTypes.shape({\n items: PropTypes.array.isRequired,\n }).isRequired,\n ).isRequired,\n date: PropTypes.string.isRequired,\n }),\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n leadId: PropTypes.string,\n setLeadForTask: PropTypes.func,\n type: PropTypes.string,\n onSuccess: PropTypes.func,\n};\n\nTaskForm.defaultProps = {\n task: null,\n leadId: '',\n leadField: false,\n type: 'CALENDAR',\n agents: [],\n setLeadForTask: () => {},\n onSuccess: () => {},\n date: null,\n leads: null,\n};\n\nexport default TaskForm;\n","import React, { useState, useCallback, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Card as BaseCard,\n Button,\n Row,\n Heading,\n Icon,\n InputField,\n SelectField,\n DateInputField,\n TextAreaField,\n} from '@8base/boost';\nimport styled from 'styled-components';\nimport TaskForm from '../../leads/components/forms/TaskForm';\nimport { useLeadStages } from '../phone-calls-hooks';\nimport { parseListToSelectOptions } from '../phone-calls-utils';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as toast from 'shared/components/toast/Toast';\nimport { createLeadDisposition, fetchLeadDataService } from '../phone-calls-actions';\nimport { removeEmptyKeys } from '../../../shared/utils';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { usePromise } from '@cobuildlab/hooks-utils';\nimport { CALL_TYPES } from '../phone-calls-model';\nimport { onLeadDispositionCreate, onLeadDispositionCreateError } from '../phone-calls-events';\n\nconst Card = styled(BaseCard)`\n box-shadow: none !important;\n border-left: none !important;\n`;\n\n/**\n * @param {object} props props\n * @param {Function} props.close close callback\n * @param {string} props.lead Lead id\n * @returns {object} React Component\n */\nfunction LeadCallForm({ close, lead, callId, calling, callType }) {\n const [addTaskModal, setAddTaskModal] = useState(false);\n const [loading, setLoading] = useState(false);\n const { ifsScore } = useAgency();\n const [form, setForm] = useState({\n carrier: '',\n quotedPremium: '',\n currentPremium: '',\n status: '',\n expirationDate: '',\n ifsScore: '',\n insurance: '',\n notes: '',\n amount: parseFloat(0),\n });\n\n const handleChange = useCallback((type, value) => {\n setForm((state) => ({ ...state, [type]: value }));\n }, []);\n\n const [leadStagesList] = useLeadStages();\n\n const statusOptions = parseListToSelectOptions(leadStagesList);\n const scoresOptions = parseListToSelectOptions(ifsScore);\n const defaultStatus = statusOptions[0]?.value;\n const defaultScore = scoresOptions[0]?.value;\n\n usePromise(\n () => fetchLeadDataService(lead),\n {\n onError: (e) => {\n toast.error(JSON.stringify(e));\n },\n onCompleted: (lead) => {\n setForm((state) => ({ ...state, amount: parseFloat(lead.amount) }));\n },\n },\n [lead],\n );\n\n useEffect(() => {\n setForm((state) => ({ ...state, status: defaultStatus, ifsScore: defaultScore }));\n }, [defaultScore, defaultStatus]);\n\n const submitForm = useCallback(() => {\n setLoading(true);\n const newForm = removeEmptyKeys(form);\n\n createLeadDisposition({ ...newForm, lead, callId, callType, amount: String(newForm?.amount || 0) });\n }, [form, lead, callId, callType]);\n\n useEventSubscription(onLeadDispositionCreate, () => {\n setLoading(false);\n\n toast.success('Success', 'Lead disposition stored successfuly');\n\n close();\n });\n\n useEventSubscription(onLeadDispositionCreateError, (e) => {\n setLoading(false);\n toast.error(JSON.stringify(e));\n });\n\n return (\n <>\n \n \n \n Update Lead Information\n \n \n \n \n \n handleChange('carrier', value) }}\n />\n \n \n handleChange('currentPremium', value),\n }}\n />\n \n \n handleChange('quotedPremium', value),\n }}\n />\n \n \n handleChange('status', value),\n }}\n />\n \n \n handleChange('amount', parseFloat(value)),\n }}\n />\n \n \n \n \n \n handleChange('expirationDate', value),\n }}\n />\n \n \n handleChange('ifsScore', value),\n }}\n />\n \n \n handleChange('insurance', value),\n }}\n />\n \n \n handleChange('notes', value),\n }}\n stretch\n />\n \n \n \n \n \n \n \n \n setAddTaskModal(false)}\n leadId={lead}\n type={'LEADS'}\n />\n \n );\n}\n\nLeadCallForm.propTypes = {\n close: PropTypes.func.isRequired,\n lead: PropTypes.string.isRequired,\n callId: PropTypes.string.isRequired,\n calling: PropTypes.bool.isRequired,\n callType: PropTypes.oneOf([CALL_TYPES.OUTBOUND, CALL_TYPES.INBOUND]).isRequired,\n};\n\nexport default LeadCallForm;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUsersInAgencyFetch = createEvent();\n\nexport const OnUsersInAgencyFetchError = createEvent();\n\nexport const OnFetchAgents = createEvent();\n\nexport const OnFetchAgentsError = createEvent();\n\nexport const OnFetchManagerAndAgentUsersEvent = createEvent();\n\nexport const OnFetchManagerAndAgentUsersError = createEvent();\n\nexport const OnAdminDeletedEvent = createEvent();\n\nexport const OnAdminDeletedError = createEvent();\n","import gql from 'graphql-tag';\n\nexport const FETCH_USERS = gql`\n query FetchUsers(\n $filter: UserFilter\n $first: Int\n $skip: Int\n $orderBy: [UserOrderBy]\n $sort: [UserSort!]\n ) {\n usersList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy, sort: $sort) {\n count\n items {\n id\n firstName\n lastName\n email\n avatar {\n id\n downloadUrl\n }\n }\n }\n }\n`;\n\nexport const MUTATION_DELETE_ADMIN = gql`\n mutation DeleteAdmin($data: AdminDeleteInput, $filter: AdminKeyFilter, $force: Boolean) {\n adminDelete(data: $data, filter: $filter, force: $force) {\n success\n }\n }\n`;\n\nexport const FETCH_USER_INFORMATION = gql`\n query FetchUsersInformation($userId: ID, $agencyId: ID, $from: DateTime, $to: DateTime) {\n leadsList(\n filter: {\n assignees: { some: { id: { equals: $userId } } }\n campaign: { agency: { id: { equals: $agencyId } } }\n history: {\n some: {\n AND: [\n { createdAt: { gte: $from } }\n { createdAt: { lte: $to } }\n { stage: { name: { equals: \"Sold\" } } }\n ]\n }\n }\n }\n groupBy: { query: { amount: { as: \"amount\", fn: { aggregate: SUM } } } }\n ) {\n groups {\n amount: String\n }\n }\n phoneCallsList(\n filter: {\n AND: [\n { status: { equals: \"completed\" } }\n { user: { id: { equals: $userId } } }\n { agency: { id: { equals: $agencyId } } }\n { createdAt: { gte: $from } }\n { createdAt: { lte: $to } }\n ]\n }\n groupBy: { query: { duration: { as: \"duration\", fn: { aggregate: SUM } } } }\n ) {\n groups {\n duration: Int\n }\n }\n sMSMessagesList(\n filter: {\n AND: [\n { user: { id: { equals: $userId } } }\n { lead: { campaign: { agency: { id: { equals: $agencyId } } } } }\n { createdAt: { gte: $from } }\n { createdAt: { lte: $to } }\n ]\n }\n ) {\n count\n }\n leadTasksList(\n filter: {\n AND: [\n { lead: { campaign: { agency: { id: { equals: $agencyId } } } } }\n { lead: { assignees: { some: { id: { equals: $userId } } } } }\n { createdAt: { gte: $from } }\n { createdAt: { lte: $to } }\n ]\n }\n ) {\n count\n }\n leadHistoriesList(\n filter: {\n AND: [\n { entity: { equals: \"TASK\" } }\n { operation: { equals: \"UPDATE\" } }\n { task: { status: { equals: \"Closed\" } } }\n { lead: { assignees: { some: { id: { equals: $userId } } } } }\n { lead: { campaign: { agency: { id: { equals: $agencyId } } } } }\n { createdAt: { gte: $from } }\n { createdAt: { lte: $to } }\n ]\n }\n groupBy: { query: { task: { id: { as: \"count\", fn: { aggregate: COUNT } } } } }\n ) {\n groups {\n count: Int\n }\n }\n }\n`;\n\nexport const CREATE_STRIPE_CUSTOMER = gql`\n mutation CreateStripeCustomer($data: CreateStripeCustomerInput) {\n createStripeCustomer(data: $data) {\n id\n email\n name\n phone\n metadata\n }\n }\n`;\n","import {\n OnAdminDeletedError,\n OnAdminDeletedEvent,\n OnFetchAgents,\n OnFetchAgentsError,\n OnFetchManagerAndAgentUsersError,\n OnFetchManagerAndAgentUsersEvent,\n OnUsersInAgencyFetch,\n OnUsersInAgencyFetchError,\n} from './user-events';\nimport { MUTATION_DELETE_ADMIN, FETCH_USERS, FETCH_USER_INFORMATION } from './user-queries';\nimport { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { createAction } from '@cobuildlab/react-simple-state';\n\n/**\n * @deprecated - use \"fetchAgencyAgents\" instead\n *\n * Fetches users with the rol manager or agents in the given agency\n *\n * @param {number} agencyId - Id of the agency to bring the users from\n *\n * @returns {object} - The response object or null if it fails\n */\nexport const fetchManagerAndAgents = async (agencyId) => {\n const client = OnApolloClient.get();\n let response = null;\n\n const filter = {\n userAgencyUserRelation: {\n some: {\n agency: { id: { equals: agencyId } },\n },\n },\n };\n\n try {\n response = await client.query({\n query: FETCH_USERS,\n fetchPolicy: 'network-only',\n variables: { filter },\n });\n } catch (e) {\n error('fetchManagerAndAgents', e);\n\n return OnFetchManagerAndAgentUsersError.dispatch(e);\n }\n\n log('fetchManagerAndAgents', response.data);\n OnFetchManagerAndAgentUsersEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Fetches all users in an agency\n *\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The request result\n */\nexport const fetchAgencyAgents = createAction(OnFetchAgents, OnFetchAgentsError, async (agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_USERS,\n variables: {\n filter: {\n userAgencyUserRelation: {\n some: {\n agency: {\n id: {\n equals: agency,\n },\n },\n },\n },\n },\n },\n });\n\n return response.data;\n});\n\n/**\n * Fetches users that belongs to an agency\n *\n * @param {string} agencyId - The agency id\n * @param {number} page - The page to fetch the users\n * @param {string} search - The search value\n *\n * @returns {Promise} The request result\n */\nexport const fetchUsersInAgency = async (agencyId, page = 1, search = '') => {\n const client = OnApolloClient.get();\n let response = null;\n\n const filter = {\n userAgencyUserRelation: {\n some: {\n agency: { id: { equals: agencyId } },\n },\n },\n };\n\n if (search !== '') {\n filter.OR = [{ firstName: { contains: search } }, { lastName: { contains: search } }];\n }\n\n const first = 10;\n const skip = page === 0 ? 0 : first * (page - 1);\n const orderBy = 'createdAt_DESC';\n\n try {\n response = await client.query({\n query: FETCH_USERS,\n fetchPolicy: 'network-only',\n variables: page === 0 ? { filter, orderBy } : { filter, first, skip, orderBy },\n });\n } catch (e) {\n error('fetchUsersInAgency', e);\n\n return OnUsersInAgencyFetchError.dispatch(e);\n }\n\n log('fetchUsersInAgency', response.data);\n\n return OnUsersInAgencyFetch.dispatch(response.data);\n};\n\n/**\n * Deletes the given admin from the db\n *\n * @param {object} admin - The admin to remove\n *\n * @returns {void}\n */\nexport const removeAdminFromCompany = async (admin) => {\n const client = OnApolloClient.get();\n const variables = { filter: { id: admin.id }, force: true };\n\n let response;\n try {\n response = await client.mutate({\n mutation: MUTATION_DELETE_ADMIN,\n variables,\n });\n } catch (e) {\n error('deleteAdminError', e);\n return OnAdminDeletedError.dispatch(e);\n }\n\n log('deleteAdmin', response.data);\n OnAdminDeletedEvent.dispatch(response.data);\n return response.data;\n};\n\nexport const fetchUserInfoInAgency = async (id, agencyId, from, to) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_USER_INFORMATION,\n fetchPolicy: 'network-only',\n variables: {\n userId: id,\n agencyId,\n from,\n to,\n },\n });\n\n log('fetchUserInfoInAgency', response.data);\n\n return response.data;\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { useEvent, useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchUsersInAgency } from './user-actions';\nimport { OnUsersInAgencyFetch, OnUsersInAgencyFetchError } from './user-events';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport { LIST_INITIAL_STATE } from '../../shared/constants';\nimport { onOnlineUsersList } from '../phone-calls/phone-calls-events';\nimport { useUser } from '../../shared/hooks/useUser';\n\n/**\n * Hook to fetch the users in the specified agency\n *\n * @param agency - The agency id\n * @param page - The page to fetch the users from\n * @param search - The search value\n *\n * @returns The hook state\n */\nexport function useUsersInAgency(\n agency: string,\n page = 1,\n search = '',\n): State & { refetch: () => void } {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n\n const fetch = useCallback(() => {\n setState((state) => ({\n ...state,\n loading: true,\n }));\n\n fetchUsersInAgency(agency, page, search);\n }, [agency, page, search]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useSubscription(\n OnUsersInAgencyFetch,\n ({ usersList }) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: usersList.items,\n count: usersList.count,\n }));\n },\n [],\n );\n\n useSubscription(\n OnUsersInAgencyFetchError,\n (e) => {\n onErrorMixinFC(e);\n setState((state) => ({\n ...state,\n error: e,\n loading: false,\n items: [],\n count: 0,\n }));\n },\n [],\n );\n\n return {\n ...state,\n refetch: fetch,\n };\n}\n\n/**\n * Hook to fetch the users in the specified agency\n * whenever the user wants\n *\n * @param agency - The agency id\n * @param page - The page to fetch the users from\n *\n * @returns The hook state\n */\nexport function useUsersInAgencyLater(agency: string, page = 1): State & { fetch: () => void } {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n\n const fetch = useCallback(() => {\n setState((state) => ({\n ...state,\n loading: true,\n }));\n\n fetchUsersInAgency(agency, page);\n }, [agency, page]);\n\n useSubscription(\n OnUsersInAgencyFetch,\n ({ usersList }) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: usersList.items,\n count: usersList.count,\n }));\n },\n [],\n );\n\n useSubscription(\n OnUsersInAgencyFetchError,\n (e) => {\n onErrorMixinFC(e);\n setState((state) => ({\n ...state,\n error: e,\n loading: false,\n items: [],\n count: 0,\n }));\n },\n [],\n );\n\n return {\n ...state,\n fetch,\n };\n}\n\n/**\n * Hook that returns the list of online users\n *\n * @returns Online users list\n */\nexport function useOnlineUsers(): Array {\n const [user] = useUser();\n const userList = useEvent(onOnlineUsersList, {\n initialValue: [],\n });\n\n return userList.filter((onlineUser: { id: string }) => onlineUser.id !== user?.id);\n}\n\ntype State = {\n items: Array>;\n count: number;\n loading: boolean;\n};\n\ntype User = {\n id: string;\n firstName: string;\n lastName: string;\n};\n","import React, { useCallback, useMemo } from 'react';\nimport AvatarWithStatus from '../../../shared/components/AvatarWithStatus';\nimport PropTypes from 'prop-types';\nimport { Row, Card, Checkbox, Text } from '@8base/boost';\n\n/**\n * User card with status and avatar icon\n *\n * @param {object} props - Props.\n * @param {object} props.user - User data.\n * @returns {React.FC} - React component.\n */\nexport default function UserCard({ user, selected, setSelected }) {\n const onChange = useCallback(\n (value) => {\n if (value) {\n setSelected((prevState) => [...prevState, user.id]);\n } else {\n setSelected((prevState) => prevState.filter((id) => id !== user.id));\n }\n },\n [user, setSelected],\n );\n\n const isSelected = useMemo(() => selected?.some((id) => id === user.id) || false, [\n user,\n selected,\n ]);\n\n return (\n \n \n \n \n \n {`${user.firstName} ${user.lastName}`}\n \n \n \n );\n}\n\nUserCard.propTypes = {\n user: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n status: PropTypes.string.isRequired,\n avatar: PropTypes.shape({\n downloadUrl: PropTypes.string,\n }),\n }).isRequired,\n selected: PropTypes.arrayOf(PropTypes.string).isRequired,\n setSelected: PropTypes.func.isRequired,\n};\n","import React from 'react';\nimport { Card, Row, Text, Icon, Checkbox } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nexport const PhoneCard = ({ code, number, onRemove }) => {\n return (\n \n \n \n \n \n \n +{code} {number}\n \n \n onRemove({ code, number })}\n />\n \n \n \n );\n};\n\nPhoneCard.propTypes = {\n code: PropTypes.string.isRequired,\n number: PropTypes.string.isRequired,\n onRemove: PropTypes.func.isRequired,\n};\n","import React, { useCallback, useMemo, useState } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n Modal,\n Text,\n Row,\n useModal,\n Column,\n Icon as BoostIcon,\n Select,\n Input,\n styled,\n} from '@8base/boost';\nimport { onTransferCall, onTransferCallError } from '../phone-calls-events';\nimport { Box } from '../../../shared/components/Box';\nimport { ControlButton } from './ControlButton';\nimport transferIcon from 'shared/assets/images/trasnfer.svg';\nimport { useOnlineUsers } from '../../users/users-hooks';\nimport { transferCall } from '../phone-calls-actions';\nimport UserCard from '../../users/components/UserCard';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { PhoneCard } from './PhoneCard';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\n\nexport const modalId = 'transfer-call-dialog';\n\nconst Card = styled.div`\n background-color: var(--color-blue-3);\n border-radius: 10px;\n width: 380px;\n color: white;\n`;\n\nconst Close = styled.span`\n height: 24px;\n background-color: #ff2a25;\n border-radius: 50%;\n`;\n\nconst Icon = styled.img`\n height: 1.5em;\n`;\n\nconst phoneUtil = PhoneNumberUtil.getInstance();\n\nexport const TransferCallDialog = () => {\n const { isOpen, closeModal, args } = useModal(modalId);\n const [selected, setSelected] = useState([]);\n const [loading, setLoading] = useState(false);\n const [region, setRegion] = useState('US');\n const [number, setNumber] = useState('');\n const online = useOnlineUsers();\n const [phones, setPhones] = useState([]);\n\n const close = useCallback(() => closeModal(modalId), [closeModal]);\n\n const onChange = useCallback(\n (args) => {\n if (!loading) {\n setSelected(args);\n }\n },\n [loading, setSelected],\n );\n\n const onAddPhoneNumber = useCallback(() => {\n if (region && number.length > 1) {\n let phone = null;\n\n try {\n phone = phoneUtil.parse(number, region);\n } catch (e) {\n toast.error('The phone number you entered is not valid');\n\n return;\n }\n\n // If the phone number is already added\n if (phones.some((p) => p.number === phone.getNationalNumber())) {\n toast.error('You already entered this phone number');\n\n return;\n }\n\n // If the phone number is valid\n if (phoneUtil.isPossibleNumber(phone) && phoneUtil.isValidNumber(phone)) {\n setPhones((prevState) => [\n ...prevState,\n {\n code: phone.getCountryCode().toString(),\n number: phone.getNationalNumber().toString(),\n },\n ]);\n\n setNumber('');\n } else {\n toast.error('The phone number you entered is not valid');\n }\n }\n }, [phones, region, number]);\n\n const onRemovePhoneNumber = useCallback((phone) => {\n setPhones((prevState) => prevState.filter((p) => p.number !== phone.number));\n }, []);\n\n const onSubmit = useCallback(() => {\n setLoading(true);\n\n transferCall(selected, phones, args.callId, args.callType);\n }, [selected, phones, args]);\n\n useSubscription(\n onTransferCall,\n () => {\n setLoading(false);\n\n toast.success('Success', 'Transferring call to the selected users');\n\n closeModal(modalId);\n },\n [],\n );\n\n useSubscription(\n onTransferCallError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const users = useMemo(\n () =>\n online.map((user) => (\n \n )),\n [selected, online, onChange],\n );\n\n const numbers = useMemo(\n () =>\n phones.map((phone) => (\n \n )),\n [phones, onRemovePhoneNumber],\n );\n\n return (\n \n \n \n \n \n \n Select users to join the call\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {numbers}\n {users}\n \n \n \n \n \n Transfer\n \n \n \n \n \n );\n};\n","import React, { useCallback } from 'react';\nimport { styled, useModal } from '@8base/boost';\nimport { ControlButton } from './ControlButton';\nimport PropTypes from 'prop-types';\n\nimport transferIcon from 'shared/assets/images/trasnfer.svg';\n\nimport { TransferCallDialog, modalId } from './TransferCallDialog';\n\nconst Icon = styled.img`\n height: 1.5em;\n`;\n\nexport const TransferCallButton = ({ callId, callType }) => {\n const { openModal } = useModal(modalId);\n\n const onClick = useCallback(() => {\n openModal(modalId, { callId, callType });\n }, [callId, callType, openModal]);\n\n return (\n <>\n \n Transfer\n \n \n \n );\n};\n\nTransferCallButton.propTypes = {\n callId: PropTypes.string,\n callType: PropTypes.string,\n};\n\nTransferCallButton.defaultProps = {\n callId: '',\n callType: '',\n};\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport styled, { keyframes, css } from 'styled-components';\nimport { Transition } from 'react-transition-group';\nimport { Button, Column } from '@8base/boost';\nimport VoiceMailButton from './VoiceMailButton';\nimport { usePhoneCallControls } from '../phone-calls-hooks';\nimport ControlsPortal from './ControlsPortal';\nimport CallInfo from './CallInfo';\nimport DialPad from './DialPad';\nimport LeadCallForm from './LeadCallForm';\nimport * as toast from 'shared/components/toast/Toast';\nimport { TransferCallButton } from './TransferCallButton';\nimport { Box } from '../../../shared/components/Box';\nimport { ControlButton } from './ControlButton';\nimport { OnApolloClient, OnSessionFetch } from 'shared/session/session-events';\nimport { PHONE_CALL_PARTICIPANT_SUBSCRIPTION } from '../phone-calls-querys';\nimport { useEffect, useState } from 'react';\n\nconst slideIn = keyframes`\n0% {\n transform: translateX(100%);\n}\n100% {\n transform: translateX(0);\n}\n`;\nconst slideOut = keyframes`\n0% {\n transform: translateX(0);\n}\n100% {\n transform: translateX(100%);\n}\n`;\n\nconst animateSlideInOut = css`\n animation: 0.6s\n ${({ state }) => {\n switch (state) {\n case 'entering':\n return slideIn;\n case 'exiting':\n return slideOut;\n default:\n return '';\n }\n }}\n ease-in-out;\n`;\n\nconst Container = styled.div`\n bottom: 0;\n right: 0;\n height: 100vh;\n position: fixed;\n max-width: 320px;\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr auto;\n grid-template-areas: '.' 'controls';\n box-shadow: ${({ isLead }) => (isLead ? '-5px 0 15px rgba(0,0,0,0.1)' : `initial`)};\n z-index: 100;\n ${animateSlideInOut}\n`;\nconst Controls = styled(Column)`\n border-top-left-radius: ${({ isLead }) => (isLead ? '0px' : '10px')};\n background-color: var(--color-blue-3);\n grid-area: controls;\n padding: 20px;\n color: white;\n /* width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n z-index: 1;\n & > * {\n margin: 5px;\n } */\n`;\n\nconst Icon = styled.img`\n height: 1.5em;\n`;\n\nconst muteIconUrl = require('shared/assets/images/mute.svg');\nconst padIconUrl = require('shared/assets/images/fax.svg');\nconst hangupIconUrl = require('shared/assets/images/hangup.svg');\nconst callPhoneIconUrl = require('shared/assets/images/call-phone.svg');\n\n/**\n * Render the controls in fixed position (right-side) on the viewport\n * this component use the value ot the phone call provider to handle the actions of call (hangup, transfer, mute etc.)\n *\n * @param {object} props props\n * @param {Function} props.animateBack Callback set the layout anamation to the initial state\n * @returns {object} React element\n */\nfunction CallControls({ animateBack }) {\n const {\n // Values\n show,\n duration,\n from,\n to,\n lead,\n calling,\n type,\n _type,\n callId,\n campaign,\n ringing,\n muted,\n showDialPad,\n // Methods\n muteToggle,\n handleVoiceMail,\n handleVoiceMailEnded,\n handleHangUp,\n close,\n acceptCall,\n ignoreCall,\n rejectCall,\n toggleDialPad,\n closeDialPad,\n sendDialDigit,\n } = usePhoneCallControls();\n\n const [displayToast, setDisplayToast] = useState(false);\n\n const { user } = OnSessionFetch.get() || {};\n\n const closeCallback = useCallback(() => {\n if (calling && lead) {\n toast.error('Please hang up the call before closing this panel');\n return;\n }\n console.log('Call dialog closed');\n\n animateBack();\n close();\n }, [animateBack, close, calling, lead]);\n\n useEffect(() => {\n //handle the toast display here, rather than inside the subscription, b/c that causes multiple toasts to appear\n if (displayToast) {\n toast.info('You were removed from the conference because another agent was already in it');\n }\n }, [displayToast]);\n\n useEffect(() => {\n let timeoutId;\n if (displayToast) {\n timeoutId = setTimeout(() => {\n setDisplayToast(false);\n }, 5000); // Reset flag after 5 seconds\n }\n\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [displayToast]);\n\n useEffect(() => {\n try {\n const client = OnApolloClient.get();\n const phoneCallParticipantSubscription = client.subscribe({\n query: PHONE_CALL_PARTICIPANT_SUBSCRIPTION,\n variables: {\n userId: user.id,\n },\n });\n\n const phoneCallParticipantSubscriptionCallback = phoneCallParticipantSubscription.subscribe(\n ({ data }) => {\n if (data.PhoneCallParticipant.node.wasRemovedFromCall) {\n setDisplayToast(true);\n }\n },\n );\n\n return () => {\n phoneCallParticipantSubscriptionCallback.unsubscribe();\n setDisplayToast(false);\n };\n } catch (error) {\n console.error('Error in phoneCallParticipantSubscription useEffect:', error);\n }\n }, []);\n\n return (\n \n \n {(state) => (\n <>\n \n \n {lead && (\n \n )}\n \n \n \n \n \n \n \n {muted ? 'Unmute' : 'Mute'}\n \n \n \n \n \n \n \n \n \n \n Pad\n \n \n \n \n \n \n {ringing && (\n <>\n \n Ignore\n \n acceptCall(lead)}\n disabled={!calling}>\n accept\n \n \n Reject\n \n \n )}\n\n {!ringing && (\n \n Hangup\n \n )}\n \n {' '}\n \n )}\n \n \n );\n}\n\nCallControls.propTypes = {\n animateBack: PropTypes.func.isRequired,\n};\nexport default CallControls;\n","import { useEffect, useState } from 'react';\nimport { useUser } from 'shared/hooks/useUser';\nimport { createUserPushSubscription } from '../notifications-actions';\n\nexport function usePushNotifications() {\n const [status, setStatus] = useState('');\n const [user] = useUser();\n const WEB_PUSH_PUBLIC_KEY: string = process.env.REACT_APP_WEB_PUSH_PUBLIC_KEY as string;\n\n useEffect(() => {\n //console.log('executing usePushNotifications');\n if ('serviceWorker' in navigator && 'PushManager' in window && 'Notification' in window) {\n //console.log('stuff is there');\n const promise = new Promise((resolve, reject) => {\n const permission = Notification.requestPermission((result) => {\n resolve(result);\n });\n\n if (permission) {\n permission.then(resolve, reject);\n }\n });\n\n promise.then((result) => setStatus(result));\n }\n }, []);\n\n useEffect(() => {\n if (status === 'granted') {\n console.log('status', status);\n (async () => {\n const registration = await navigator.serviceWorker.ready;\n let pushSubscription;\n //console.log('react app server key', process.env.WEB_PUSH_PUBLIC_KEY);\n const actualSub = await registration.pushManager.getSubscription();\n console.log('ACTUAL SUB ', actualSub);\n if (!actualSub) {\n console.log('there is no subscription, creating a new one');\n pushSubscription = await registration.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: urlBase64ToUint8Array(\n WEB_PUSH_PUBLIC_KEY, //create a WEB_PUSH_PUBLIC_KEY env variable\n ),\n });\n const metadata = JSON.parse(JSON.stringify(pushSubscription));\n createUserPushSubscription({\n endpoint: pushSubscription.endpoint,\n user: user.id,\n metadata: {\n keys: metadata.keys,\n },\n });\n }\n })();\n }\n }, [status, user]);\n\n return status;\n}\n\n/**\n * urlBase64ToUint8Array\n *\n * @param base64String - A public vavid key\n */\nfunction urlBase64ToUint8Array(base64String: string): Uint8Array {\n var padding = '='.repeat((4 - (base64String.length % 4)) % 4);\n // eslint-disable-next-line no-useless-escape\n var base64 = (base64String + padding).replace(/\\-/g, '+').replace(/_/g, '/');\n\n var rawData = window.atob(base64);\n var outputArray = new Uint8Array(rawData.length);\n\n for (var i = 0; i < rawData.length; ++i) {\n outputArray[i] = rawData.charCodeAt(i);\n }\n return outputArray;\n}\n","import React, { useState, useCallback, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport TopBar from './TopBar';\nimport Menu from './Menu';\nimport styled, { keyframes, css } from 'styled-components';\nimport Breadcrumbs from './Breadcrumbs';\nimport CallControls from '../../modules/phone-calls/Components/CallControls';\nimport { Transition } from 'react-transition-group';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { Loader } from 'shared/components';\nimport { getActiveAgency, setActiveAgency } from '../utils/agency-utils';\nimport { useAgency } from '../hooks/useAgency';\nimport { OnSessionFetch } from '../session/session-events';\nimport { usePushNotifications } from 'modules/notifications/hooks/usePushNotifications';\nimport { OnPhoneCallRegistryEvent } from 'modules/phone-calls/phone-calls-events';\n\nconst moveLeft = keyframes`\n 0% {\n width: calc(100%)\n }\n 100% {\n width: calc(100% - 320px)\n }\n`;\nconst moveRight = keyframes`\n 0% {\n width: calc(100% - 320px)\n }\n 100% {\n width: calc(100%)\n }\n`;\nconst left = css`\n width: calc(100% - 320px);\n`;\nconst animateToLeft = css`\n animation: 0.6s\n ${({ state }) => {\n switch (state) {\n case 'entering':\n return moveLeft;\n case 'exiting':\n return moveRight;\n case 'entered':\n return left;\n default:\n return '';\n }\n }}\n ease-in-out;\n`;\nconst LayoutContainer = styled.div`\n position: relative;\n ${animateToLeft}\n`;\n\nconst LayoutContent = styled.div`\n width: calc(100% - 56px);\n margin-left: 56px;\n`;\n\nconst Layout = ({ children }) => {\n const agency = useAgency();\n const [show, setShow] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [agencyId, setAgencyId] = useState(agency?.id);\n\n usePushNotifications();\n\n useSimpleSubscription(OnPhoneCallRegistryEvent, ({ phoneCallCreate: { lead } }) => {\n if (lead) {\n setTimeout(() => {\n setShow(true);\n }, 0);\n }\n });\n\n useSimpleSubscription(\n OnSessionFetch,\n () => {\n if (isLoading) {\n setIsLoading(false);\n }\n },\n [isLoading],\n );\n\n const handleOnChangeAgency = async (agencyId) => {\n setIsLoading(true);\n await setActiveAgency(agencyId);\n window.location.reload();\n };\n\n useEffect(() => {\n if (agencyId === '') {\n const agency = getActiveAgency();\n if (agency) setAgencyId(agency.id);\n }\n }, [agencyId, isLoading]);\n\n const animateBack = useCallback(() => setShow(false), []);\n\n let childrenLayout;\n if (isLoading) {\n childrenLayout = ;\n } else {\n childrenLayout = children;\n }\n\n return (\n <>\n \n {(state) => (\n \n {agency && (\n \n )}\n \n \n \n {childrenLayout}\n \n \n )}\n \n\n \n \n );\n};\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n};\n\nexport default Layout;\n","import React from 'react';\nimport { withAuth } from '@8base/app-provider';\nimport { Route, Redirect } from 'react-router-dom';\nimport PropTypes from 'prop-types';\n\n\n/**\n * Depending on the props available, the rendered component\n * must be handled appropriately and then returned.\n *\n * @param {object} props - The router match props object\n *\n * @returns {React.Component} The component to render\n */\nconst renderComponent = (props) => {\n const { render, children, component, ...restProps } = props;\n\n let rendered = null;\n\n if (component) {\n rendered = React.createElement(component, { ...restProps }, children);\n }\n\n if (render) {\n rendered = render({ ...restProps, children });\n }\n\n if (typeof children === 'function') {\n rendered = children(restProps);\n } else if (children) {\n rendered = children;\n } else if (!rendered) {\n throw new Error(\n 'Error: must specify either a render prop, a render function as children, or a component prop.',\n );\n }\n\n return rendered;\n};\n\nclass ProtectedRoute extends React.Component {\n renderRoute = () => {\n const {\n auth: { isAuthorized },\n ...restProps\n } = this.props;\n\n if (isAuthorized) {\n return renderComponent(restProps);\n }\n /**\n * If the user should be redirected to a different path when not authorized, add\n * that route as the redirect's pathname.\n */\n return ;\n };\n\n render() {\n const { children, component, render, ...rProps } = this.props;\n\n return ;\n }\n}\n\nProtectedRoute.propTypes = {\n auth: PropTypes.shape({\n isAuthorized: PropTypes.bool.isRequired,\n }).isRequired,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n component: PropTypes.elementType,\n render: PropTypes.func,\n};\n\nProtectedRoute.defaultProps = {\n children: undefined,\n component: undefined,\n render: undefined,\n};\n\nexport default withAuth(ProtectedRoute);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Button } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst StyledBtn = styled(Button)`\n height: 40px;\n width: 159px;\n border-radius: 4px;\n box-sizing: border-box;\n ${({ type }) => {\n switch (type) {\n case 'danger':\n return `\n border: 1px solid #ff0000 !important;\n background-color: #ff0000 !important; \n `;\n case 'success':\n return `\n border: 1px solid #3db4aa !important;\n background-color: #3db4aa !important; \n `;\n default:\n return `\n border: 1px solid #ff0000 !important;\n background-color: #ff0000 !important; \n `;\n }\n }}\n`;\n\nconst DeleteBtn = ({ text, onClick, ...rest }) => {\n return (\n \n {text}\n \n );\n};\n\nDeleteBtn.propTypes = {\n type: PropTypes.string,\n text: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n};\n\nDeleteBtn.defaultProps = {\n type: 'danger',\n};\n\nexport default DeleteBtn;\n","import React from 'react';\nimport { Dialog, Grid, Button, Text } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport DeleteBtn from './ui/buttons/DeleteBtn';\n\nconst YesNoDialog = ({\n type,\n onYes,\n onNo,\n text,\n isOpen,\n title,\n yesText = 'Yes',\n noText = 'No',\n onClose,\n isLoading = false,\n}) => {\n return (\n \n \n \n \n \n {text}\n \n \n \n \n \n \n \n \n );\n};\n\nYesNoDialog.propTypes = {\n type: PropTypes.string,\n onYes: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onNo: PropTypes.func.isRequired,\n title: PropTypes.string.isRequired,\n text: PropTypes.any.isRequired,\n isOpen: PropTypes.bool.isRequired,\n isLoading: PropTypes.bool,\n yesText: PropTypes.string,\n noText: PropTypes.string,\n};\n\nYesNoDialog.defaultProps = {\n type: 'danger',\n yesText: 'Yes',\n noText: 'No',\n isLoading: false,\n};\n\nexport default YesNoDialog;\n","import React, { useCallback, useEffect } from 'react';\nimport {\n Paper,\n Row as BoostRow,\n Column,\n Radio,\n Text as BoostText,\n Icon,\n Paragraph,\n} from '@8base/boost';\nimport { PropTypes } from 'prop-types';\nimport styled from '@emotion/styled';\n\nconst Container = styled(Paper)`\n width: 100%;\n cursor: pointer;\n box-shadow: none !important;\n border: ${({ selected }) => (selected ? ' 2px solid #3db4aa' : '1px solid #d0d7dd')};\n`;\n\nconst UserPrice = styled(Paragraph)`\n width: 100%;\n`;\n\nconst OthersPrice = styled(Paragraph)`\n width: 100%;\n font-size: 11px !important;\n`;\n\nconst Row = styled(BoostRow)`\n &:first-child > span {\n font-size: inherit !important;\n }\n padding: 16px;\n`;\n\nconst Total = styled(BoostRow)`\n border-top: 1px solid #cfd7de;\n padding: 8px 16px;\n`;\n\nconst Text = styled(BoostText)`\n font-size: 1.3rem !important;\n`;\n\nconst PlanCard = ({\n type,\n plan,\n selected,\n numberOfSeats,\n onSelect,\n onQuantityChange,\n min,\n readOnly,\n}) => {\n const { id, name, monthlyPrice } = plan;\n const capitalizeName = name.toUpperCase();\n\n const handleSelect = useCallback(() => {\n onSelect(plan);\n }, [plan, onSelect]);\n\n const handlePlus = useCallback(() => {\n onQuantityChange((quantity) => quantity + 1);\n }, [onQuantityChange]);\n\n const handleMinus = useCallback(() => {\n onQuantityChange((quantity) => {\n if (quantity - 1 < min) return quantity;\n\n return quantity - 1;\n });\n }, [min, onQuantityChange]);\n\n const quantity = id === selected ? numberOfSeats : 1;\n\n return (\n \n \n {type === 'form' && (\n \n \n \n )}\n \n \n {capitalizeName}\n \n {plan.description}\n \n \n \n {' '}\n {' / mo. / user'}\n \n \n $1 / mo. / phone\n \n \n \n \n \n \n \n {!readOnly && !plan.isFreeTrial && type !== 'item' && id === selected && (\n \n )}\n \n {!readOnly && !plan.isFreeTrial && type !== 'item' && id === selected && (\n \n )}\n \n \n \n \n \n );\n};\n\nPlanCard.propTypes = {\n type: PropTypes.oneOf(['form', 'item']),\n readOnly: PropTypes.bool,\n plan: PropTypes.object.isRequired,\n selected: PropTypes.string,\n numberOfSeats: PropTypes.number,\n min: PropTypes.number,\n onSelect: PropTypes.func,\n onQuantityChange: PropTypes.func,\n};\n\nPlanCard.defaultProps = {\n type: 'form',\n readOnly: false,\n selected: '',\n numberOfSeats: 1,\n min: 1,\n onSelect: () => {},\n onQuantityChange: () => {},\n};\n\nexport { PlanCard };\n","import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { Icon as IconBoost, Tooltip } from '@8base/boost';\nimport COMPANY_INFORMATION_SVG from '../../assets/images/create-company.svg';\nimport BILLING_INFORMATION_SVG from '../../assets/images/Billing-information.svg';\nimport AGENCY_INFORMATION_SVG from '../../assets/images/First-Agency-Info.svg';\nimport SUBSCRIPTION_PLAN_SVG from '../../assets/images/Subscription-plan.svg';\nimport CALL_GREEN_SVG from '../../assets/images/call-green.svg';\nimport CHAT_GREEN_SVG from '../../assets/images/chat-green.svg';\nimport COMPOSE_EMAIL_GREEN_SVG from '../../assets/images/compose-email-green.svg';\nimport COMPOSE_EMAIL_WHITE_SVG from '../../assets/images/compose-email-white.svg';\nimport INFO_SVG from '../../assets/images/info.svg';\nimport TASKS_GREEN_SVG from '../../assets/images/tasks-green.svg';\nimport INBOX_GREEN_SVG from '../../assets/images/inbox-green.svg';\nimport UPDATE_GRAY_SVG from '../../assets/images/update-grey.svg';\nimport SEARCH_DARK_SVG from '../../assets/images/Search-dark.svg';\nimport FILTER_GREEN_SVG from '../../assets/images/filter-green.svg';\nimport FILTER_GREY_SVG from '../../assets/images/filter-grey.svg';\nimport RECORDING_GREEN_SVG from '../../assets/images/recording-green.svg';\nimport CALL_PHONE_GREEN_SVG from '../../assets/images/call-phone-green.svg';\nimport { FaTimes } from 'react-icons/fa';\n\nconst sizes = {\n xs: '16px',\n sm: '20px',\n md: '24px',\n lg: '32px',\n};\n\nexport const Icon = styled.img`\n width: ${(props) => sizes[props.size]};\n height: ${(props) => sizes[props.size]};\n cursor: ${({ cursor }) => cursor || 'pointer'};\n`;\n\nconst StyledIconBoost = styled(IconBoost)`\n cursor: pointer;\n`;\n\nexport const IconAskInfo = (props) => {\n return (\n \n \n \n );\n};\n\nIconAskInfo.propTypes = {\n tooltipPlacement: PropTypes.string,\n tooltipText: PropTypes.string,\n};\n\nIconAskInfo.defaultProps = {\n tooltipPlacement: 'top',\n tooltipText: '',\n};\n\nexport const IconCompanyInformation = (props) => (\n \n);\n\nexport const IconBillingInformation = (props) => (\n \n);\n\nexport const IconAgencyInformation = (props) => (\n \n);\n\nexport const IconSubscriptionPlan = (props) => (\n \n);\n\nexport const IconInfo = (props) => (\n \n);\n\nexport const IconCheck = (props) => (\n \n);\n\nexport const IconPlus = (props) => ;\n\n/**\n *\n * @param {object} props object or attributes to define type of Icon\n * @returns {React.Component} theComponent to render\n */\nexport const IconTrash = (props) => {\n if (props.gray) {\n return (\n \n );\n }\n\n return (\n \n );\n};\n\nIconTrash.propTypes = {\n gray: PropTypes.bool,\n};\n\nIconTrash.defaultProps = {\n gray: false,\n};\n\nexport const IconUpdateAlt = (props) => (\n \n);\n\nexport const IconSort = (props) => (\n \n);\n\nexport const IconLeftArrow = (props) => (\n \n);\n\nexport const IconRightArrow = (props) => (\n \n);\n\nexport const IconCallGreen = (props) => (\n \n);\n\nexport const IconChatGreen = (props) => (\n \n);\n\nexport const IconComposeEmailGreen = (props) => (\n \n);\n\nexport const IconComposeEmailWhite = (props) => (\n \n);\n\nexport const IconTasksGreen = (props) => (\n \n);\n\nexport const IconPerformanceGreen = (props) => (\n \n);\n\nexport const IconInboxGreen = (props) => (\n \n);\n\nexport const IconUpdate = (props) => (\n \n);\n\nexport const IconUpdateGrey = (props) => (\n \n);\n\nexport const IconSearchDark = (props) => (\n \n);\n\nexport const CustomIconBoost = (props) => ;\n\nexport const IconFilterGreen = (props) => (\n \n);\n\nexport const IconFilterGrey = (props) => (\n \n);\n\nexport const IconClose = styled(FaTimes)`\n width: 16px;\n height: 16px;\n`;\n\nexport const IconRecordingGreen = (props) => (\n \n);\n\nexport const CallPhoneGreen = (props) => (\n \n);\n","import React from 'react';\nimport { Label as BoostLabel } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\n\nimport styled from 'styled-components';\n\nconst StyledLabel = styled(BoostLabel)`\n margin-bottom: 4px !important;\n`;\n\nconst Label = ({ kind, text, ...rest }) => {\n return ;\n};\n\nLabel.propTypes = {\n kind: PropTypes.string,\n text: PropTypes.string.isRequired,\n};\n\nLabel.defaultProps = {\n kind: 'secondary',\n};\n\nexport { Label };\n","export const BLACK = '#323C47';\nexport const PRIMARY = '#3db4aa';\nexport const TEXT_LIGHT_GRAY = '#878C93';\nexport const GRAY_30 = '#CFD7DE'; // PLACEHOLDER_COLOR\nexport const ICON_GRAY = '#A5AFB6';\n","import { GRAY_30 } from '../constants/colors';\nimport { CardElement } from '@stripe/react-stripe-js';\nimport { error } from '@cobuildlab/pure-logger';\nimport { OnSessionFetch } from '../session/session-events';\n\n/**\n * Options for stripe input elements.\n *\n * @type {object}\n */\nexport const options = {\n iconStyle: 'solid',\n style: {\n base: {\n '::placeholder': { color: GRAY_30 },\n },\n },\n};\n\n/**\n * Creates a stripe token, use this on submit form handler, and pass the\n * token & error to the action.\n *\n * @param {object} stripe - Stripe object.\n * @param {object} elements - Stripe elements.\n * @param {object} data - the data to get the stripeData\n * @returns {Promise} The stripe response.\n */\nexport const createToken = async (stripe, elements, data) => {\n const { cardHolderName: name } = data;\n\n const cardData = {\n name,\n };\n const cardElement = elements.getElement(CardElement);\n\n let response;\n try {\n response = await stripe.createToken(cardElement, cardData);\n } catch (e) {\n error('stripeError: ', e);\n return { error: e };\n }\n\n return response;\n};\n\n/**\n * Creates a stripe token, use this on submit form handler, and pass the\n * token & error to the action.\n *\n * @param {object} stripe - Stripe object.\n * @param {object} elements - Stripe elements.\n * @param {object} data - The data to get the stripeData.\n * @returns {Promise} The stripe response = { paymentMethod || error }.\n */\nexport const createPaymentMethod = async (stripe, elements, data) => {\n const { email } = OnSessionFetch.get().user;\n const {\n cardHolderName: name,\n addressLine1: line1,\n addressLine2: line2,\n city,\n state,\n country,\n } = data;\n\n const card = elements.getElement(CardElement);\n const billing_details = {\n name,\n email,\n address: {\n city,\n state,\n country,\n line1,\n line2,\n },\n };\n\n let response;\n try {\n response = await stripe.createPaymentMethod({\n type: 'card',\n billing_details,\n card,\n });\n } catch (e) {\n error('stripeError: ', e);\n return { error: e };\n }\n\n return response;\n};\n","import React, { useEffect, useCallback } from 'react';\nimport { PropTypes } from 'prop-types';\nimport { Row, SelectField, Column, Icon, Input, InputField } from '@8base/boost';\nimport { Label } from '../../../../../shared/components/ui/inputs/Label';\nimport { options } from '../../../../../shared/stripe/stripe';\nimport { CardElement } from '@stripe/react-stripe-js';\nimport styled from 'styled-components';\n\nconst CardContainer = styled(Row)`\n border: 1px solid #d0d7dd;\n border-radius: 5px;\n padding-right: 10px;\n`;\n\n/**\n * This component is Form to change the Payment Method\n *\n * @param {object} props - The components prop object\n * @param {object} props.data - refer to the data from the current user/company\n * @param {boolean} props.hasFreeTrial - indicates if the plan has a free trial\n * @param {Function} props.onChange - refer to the function to submit the Form\n *\n * @returns {React.Component} - This Component return a Form\n */\nconst PaymentForm = ({ data, hasFreeTrial, onChange, onReady, hasMembershipCode }) => {\n const { cardHolderName, addressLine1, addressLine2, city, state, membershipCode } = data;\n const { card } = data;\n\n useEffect(() => {\n if (card.paymentMethodId) {\n onChange('card', {\n last4: card.last4,\n expireDate: card.expireDate,\n paymentMethodId: card.paymentMethodId,\n useOldMethod: true,\n });\n }\n }, [card.paymentMethodId, card.last4, card.expireDate, onChange]);\n\n const handleCardEdit = useCallback(() => {\n onChange('card', {\n ...card,\n useOldMethod: false,\n });\n }, [card, onChange]);\n\n const handleCardUndo = useCallback(() => {\n if (card.paymentMethodId) {\n onChange('card', {\n last4: card.last4,\n expireDate: card.expireDate,\n paymentMethodId: card.paymentMethodId,\n useOldMethod: true,\n });\n }\n }, [card.paymentMethodId, card.last4, card.expireDate, onChange]);\n\n const statesOptions = [\n { value: 'AL', label: 'AL' },\n { value: 'AK', label: 'AK' },\n { value: 'AZ', label: 'AZ' },\n { value: 'AR', label: 'AR' },\n { value: 'CA', label: 'CA' },\n { value: 'CO', label: 'CO' },\n { value: 'CT', label: 'CT' },\n { value: 'DE', label: 'DE' },\n { value: 'FL', label: 'FL' },\n { value: 'GA', label: 'GA' },\n { value: 'HI', label: 'HI' },\n { value: 'ID', label: 'ID' },\n { value: 'IL', label: 'IL' },\n { value: 'IN', label: 'IN' },\n { value: 'IA', label: 'IA' },\n { value: 'KS', label: 'KS' },\n { value: 'KY', label: 'KY' },\n { value: 'LA', label: 'LA' },\n { value: 'ME', label: 'ME' },\n { value: 'MD', label: 'MD' },\n { value: 'MA', label: 'MA' },\n { value: 'MI', label: 'MI' },\n { value: 'MN', label: 'MN' },\n { value: 'MS', label: 'MS' },\n { value: 'MO', label: 'MO' },\n { value: 'MT', label: 'MT' },\n { value: 'NE', label: 'NE' },\n { value: 'NV', label: 'NV' },\n { value: 'NH', label: 'NH' },\n { value: 'NJ', label: 'NJ' },\n { value: 'NM', label: 'NM' },\n { value: 'NY', label: 'NY' },\n { value: 'NC', label: 'NC' },\n { value: 'ND', label: 'ND' },\n { value: 'OH', label: 'OH' },\n { value: 'OK', label: 'OK' },\n { value: 'OR', label: 'OR' },\n { value: 'PA', label: 'PA' },\n { value: 'RI', label: 'RI' },\n { value: 'SC', label: 'SC' },\n { value: 'SD', label: 'SD' },\n { value: 'TN', label: 'TN' },\n { value: 'TX', label: 'TX' },\n { value: 'UT', label: 'UT' },\n { value: 'VT', label: 'VT' },\n { value: 'VA', label: 'VA' },\n { value: 'WA', label: 'WA' },\n { value: 'WV', label: 'WV' },\n { value: 'WI', label: 'WI' },\n { value: 'WY', label: 'WY' },\n ];\n\n return (\n \n \n onChange('cardHolderName', value),\n }}\n />\n \n \n );\n};\n\nPaymentForm.defaultProps = {\n selectedPlan: null,\n hasFreeTrial: false,\n onReady: () => {},\n data: {\n cardHolderName: '',\n addressLine1: '',\n addressLine2: '',\n city: '',\n state: '',\n card: {\n last4: '',\n expireDate: '',\n paymentMethodId: '',\n useOldMethod: false,\n },\n },\n};\n\nPaymentForm.propTypes = {\n onChange: PropTypes.func.isRequired,\n hasFreeTrial: PropTypes.bool,\n data: PropTypes.shape({\n cardHolderName: PropTypes.string,\n addressLine1: PropTypes.string,\n addressLine2: PropTypes.string,\n city: PropTypes.string,\n state: PropTypes.string,\n card: PropTypes.shape({\n last4: PropTypes.string,\n expireDate: PropTypes.string,\n paymentMethodId: PropTypes.string,\n useOldMethod: PropTypes.bool,\n }),\n }),\n onReady: PropTypes.func,\n};\n\nexport { PaymentForm };\n","export const model = {\n id: null, // Company id\n name: '', // Name of the company\n agencyId: null, // Id of the first agency created on the company\n membershipCode: null,\n agencyName: '', // Name of the first agency created on the company\n taxId: '', // Tax id on the company\n website: '',//Website for Twilio Subaccount registration\n numberOfSeats: 1, // Numbers of seats to pay monthly\n subscriptionPlan: null, // The selected subscription plan\n agentEmails: [], // List of emails to invite agents\n managerEmails: [], // List of emails to invite managers\n adminEmails: [], // List of emails to invite admins\n coupon: '', // Coupon id to redeem for a discount\n businessPhone: '',//For sole proprietorship brands\n mobilePhone: '',//For sole proprietorship brands\n brandName: '',//For sole proprietorship brands\n firstName: '', //For sole proprietorship brands\n lastName:'',//For sole proprietorship brands\n cardHolderName: '', // Name on the card for the payment method\n country: 'US', // Country (Is always US)\n addressLine1: '', // Payment method data: address line 1\n addressLine2: '', // Payment method data: address line 2\n postalCode: '',// Postal code for Twilio Subaccount Registration\n city: '', // Payment method data: city\n state: '', // Payment method data: state\n businessType: '', //Type of business that the company is\n callerIdName: '', //Name to display on calls from this agency\n card: {\n // Payment method data: card information\n /**\n * When the customer already has a registered payment method\n * this variable allows him to retry on this same payment method\n * instead of creating another payment method\n */\n useOldMethod: false,\n last4: '', // Last 4 characters on the card\n expireDate: '', // Expire date on the card\n /**\n * Stripe payment method id to retry\n * the payment from\n */\n paymentMethodId: '',\n },\n invoice: null, // The Latest invoice on the company\n companySub: null, // The subscription registered for this company\n};\n","import gql from 'graphql-tag';\n\nexport const CREATE_COMPANY_MUTATION = gql`\n mutation CreateCompany($data: CompanyCreateInput!) {\n companyCreate(data: $data) {\n id\n name\n agencyCompanyRelation {\n items {\n id\n name\n }\n }\n }\n }\n`;\n\nexport const companyFragment = gql`\n fragment companyFragment on Company {\n id\n name\n adminCompanyRelation(filter: $filterAdmins) {\n count\n items {\n id\n user {\n id\n email\n firstName\n lastName\n status\n }\n }\n }\n agencyCompanyRelation {\n items {\n id\n name\n }\n }\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n stripeSubscriptionId\n subscriptionPlan {\n id\n name\n isFreeTrial\n }\n }\n }\n }\n`;\n\nexport const COMPANIES_QUERY = gql`\n query FetchCompaniesList($filter: CompanyFilter, $filterAdmins: AdminFilter) {\n companiesList(filter: $filter) {\n items {\n ...companyFragment\n }\n }\n }\n ${companyFragment}\n`;\n\nexport const FETCH_COMPANY_FOR_BILLING_STATUS = gql`\n query FetchCompanyForBilling($id: ID) {\n company(id: $id) {\n id\n name\n status\n taxId\n agencyCompanyRelation {\n items {\n id\n name\n }\n }\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n numberOfSeats\n stripeCustomerId\n stripeSubscriptionId\n expireDate\n pendingUpdate\n subscriptionPlan {\n id\n name\n isFreeTrial\n monthlyPrice\n annualPrice\n annualSavings\n monthlyStripePlanID\n description\n }\n }\n }\n companyInvoices(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n invoiceId\n status\n paymentIntentStatus\n paymentMethodId\n }\n }\n companyPaymentMethods(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n nameOnCard\n expireDate\n last4\n addressLine1\n addressLine2\n city\n state\n paymentMethodId\n }\n }\n }\n usersList(\n filter: { userAgencyUserRelation: { some: { agency: { company: { id: { equals: $id } } } } } }\n ) {\n count\n }\n }\n`;\n\nexport const COMPANY_BILLING_SUBSCRIPTION = gql`\n subscription($id: ID) {\n Company(filter: { mutation_in: [update], node: { id: { equals: $id } } }) {\n node {\n id\n name\n status\n taxId\n agencyCompanyRelation {\n items {\n id\n name\n }\n }\n subscriptions(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n status\n numberOfSeats\n stripeCustomerId\n stripeSubscriptionId\n expireDate\n pendingUpdate\n subscriptionPlan {\n id\n name\n isFreeTrial\n monthlyPrice\n annualPrice\n annualSavings\n monthlyStripePlanID\n description\n }\n }\n }\n companyInvoices(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n invoiceId\n status\n paymentIntentStatus\n paymentMethodId\n }\n }\n companyPaymentMethods(first: 1, orderBy: createdAt_DESC) {\n items {\n id\n nameOnCard\n expireDate\n last4\n addressLine1\n addressLine2\n city\n state\n paymentMethodId\n }\n }\n }\n mutation\n }\n }\n`;\n\nexport const COMPANY_QUERY = gql`\n query FetchCompany($id: ID, $filterAdmins: AdminFilter) {\n company(id: $id) {\n ...companyFragment\n }\n }\n ${companyFragment}\n`;\n\nexport const UPDATE_COMPANY_MUTATION = gql`\n mutation UpdateCompany(\n $data: CompanyUpdateInput!\n $filter: CompanyKeyFilter\n $filterAdmins: AdminFilter\n ) {\n companyUpdate(data: $data, filter: $filter) {\n ...companyFragment\n }\n }\n ${companyFragment}\n`;\n\nexport const SUBSCRIPTION_PLANS_QUERY = gql`\n query FetchSubscriptionPlans($filter: SubscriptionPlanFilter) {\n subscriptionPlansList(filter: $filter, orderBy: order_ASC) {\n count\n items {\n id\n name\n isFreeTrial\n monthlyPrice\n annualPrice\n annualSavings\n monthlyStripePlanID\n description\n }\n }\n }\n`;\n\nexport const GET_MEMBERSHIP_INFO = gql`\n query getCompanyFromMembershipCode($membershipCode: String) {\n company(membershipCode: $membershipCode) {\n id\n name\n companyPaymentMethods {\n items {\n paymentMethodId\n }\n }\n subscriptions {\n items {\n stripeCustomerId\n }\n }\n }\n }\n`;\n","import { ValidationError } from '../../shared/errors';\nimport { isValidString, isValidNumber } from '../../shared/validators';\nimport { isPossiblePhoneNumber } from 'react-phone-number-input';\n\n/**\n * Validates input date to create new companies\n *\n * @param {object} user - The user creating the company\n * @param {object} company - The company data to create\n *\n * @returns {void}\n */\nexport const createCompanyValidator = (user, company, isSoleProprietorship, hasMembershipCode) => {\n console.log('isSOle', isSoleProprietorship);\n const { agentEmails, managerEmails, adminEmails, numberOfSeats, coupon } = company;\n const errorMessages = [];\n const pattern = /[^a-zA-Z0-9\\s\\.\\,]/g;\n if (!isValidString(company.name) && !isSoleProprietorship)\n errorMessages.push('The Company must have a valid name');\n\n if (!isValidString(company.firstName) && isSoleProprietorship)\n errorMessages.push('The Company must have a valid First Name');\n\n if (!isValidString(company.lastName) && isSoleProprietorship)\n errorMessages.push('The Company must have a valid Last Name');\n\n if (!isValidString(company.brandName) && isSoleProprietorship)\n errorMessages.push('The Company must have a valid Brand Name');\n if (!isPossiblePhoneNumber(company.businessPhone) && isSoleProprietorship)\n errorMessages.push('You must input a valid business phone number');\n if (!isPossiblePhoneNumber(company.mobilePhone) && isSoleProprietorship)\n errorMessages.push('You must input a valid mobile phone number');\n\n if (!isValidString(company.taxId) && !isSoleProprietorship)\n errorMessages.push('The company must have a valid Tax ID');\n\n if (!isValidString(company.postalCode))\n errorMessages.push('The company must have a valid ZIP Code');\n\n if (!isValidNumber(numberOfSeats, true))\n errorMessages.push('The number of seats must be a valid number');\n if (!isValidString(company.callerIdName))\n errorMessages.push('The company must have a valid Caller ID Name');\n if (pattern.test(company.callerIdName)) {\n errorMessages.push(\n 'The Caller ID may only contain letters(A-Z), numbers(0-9), periods(.), commas(,), or spaces( )',\n );\n }\n\n if (isValidNumber(numberOfSeats, true)) {\n if (parseInt(numberOfSeats) > 10000) {\n errorMessages.push('The number cannot be greater than 10.000');\n }\n\n const invited = agentEmails.length + managerEmails.length + adminEmails.length;\n\n if (invited > numberOfSeats - 1) {\n errorMessages.push(\n `You cannot invite more than ${numberOfSeats - 1} user${\n numberOfSeats - 1 === 1 ? '' : 's'\n }`,\n );\n }\n\n const invitations = [...agentEmails, ...managerEmails, ...adminEmails];\n\n if (invitations.some((email) => email === user.email)) {\n errorMessages.push('You cannot use your own email in the invitations');\n }\n }\n\n if (!company.subscriptionPlan) errorMessages.push('You must select a Subscription Plan');\n\n if (!isValidString(company.agencyName)) errorMessages.push('You must enter a valid Agency name');\n if (!company.businessType) errorMessages.push('You must select a company type');\n\n if (company.subscriptionPlan && !company.subscriptionPlan.isFreeTrial) {\n if (!isValidString(company.cardHolderName) && !hasMembershipCode)\n errorMessages.push('You must enter the name on the Credit Card');\n if (!company.addressLine1 && !isValidString(company.addressLine1)) {\n errorMessages.push('You must enter at least one billing address');\n }\n }\n\n if (company.subscriptionPlan && company.subscriptionPlan.isFreeTrial) {\n if (\n company.agentEmails.length > 0 ||\n company.managerEmails.length > 0 ||\n company.adminEmails.length > 0\n ) {\n errorMessages.push('You cannot send invitations when you only have your seat available');\n }\n }\n\n if (errorMessages.length) throw new ValidationError(errorMessages);\n};\n\nexport const updateCompanyValidator = (company) => {\n let errors = [];\n\n if (!isValidString(company.name)) errors.push('The Company must have a valid name');\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","import { isValidNumber } from '@cobuildlab/validation-utils';\nimport { ValidationError } from '../../shared/errors';\n\n/**\n *\n * @param {object} company - The company input object\n *\n * @returns {void}\n */\nexport const onboardingInvitationsValidator = (company) => {\n const errors = [];\n\n if (!isValidNumber(company.numberOfSeats, true))\n errors.push('The number of seats must be a valid number');\n\n if (isValidNumber(company.numberOfSeats, true)) {\n if (parseInt(company.numberOfSeats) > 10000) {\n errors.push('The number cannot be greater than 10.000');\n }\n\n const { agentEmails, managerEmails, adminEmails, numberOfSeats } = company;\n const invited = agentEmails.length + managerEmails.length + adminEmails.length;\n\n if (invited > numberOfSeats) {\n errors.push(\n `You cannot invite more than ${numberOfSeats} user${numberOfSeats === 1 ? '' : 's'}`,\n );\n }\n }\n\n if (errors.length) throw new ValidationError(errors);\n};\n","import {\n AGENCY_AGENT_INVITATION,\n AGENCY_MANAGER_INVITATION,\n} from '../../shared/constants/agency-invitations';\n\nexport const agentsMapSelectOptions = (agent) => {\n if (agent.value !== undefined && agent.label !== undefined) {\n return agent;\n }\n\n return {\n id: agent.id,\n value: agent.id,\n label: `${agent.user.firstName} ${agent.user.lastName}`,\n imgUrl: agent.user.avatar\n ? agent.user.avatar.previewUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n };\n};\n\nexport const agentsSelectValues = (agents) => {\n return agents !== null ? agents.map(agentsMapSelectOptions) : [];\n};\n\n/**\n * Function for transform the array of agents\n * to an string like \"Jonh Due & 6 others\"\n *\n * @param {Array} agents - The list of agents.\n * @returns {string} - The formated text.\n */\nexport const getAssignedAgents = (agents) => {\n if (!agents || agents.length === 0) {\n return '';\n }\n\n const firstUser = agents[0];\n let firstUserFullName;\n\n if (firstUser.label !== undefined) {\n firstUserFullName = firstUser.label;\n } else {\n firstUserFullName = `${firstUser.user.firstName} ${firstUser.user.lastName}`;\n }\n\n const othersUsers = agents.length > 1 ? `& ${agents.length - 1} others` : '';\n\n return `${firstUserFullName} ${othersUsers}`;\n};\n\n/**\n * Function for transform the array of agentEmails & managerEmails\n * to a list of invitations.\n *\n * @param {Array} agentEmails - The list of agent emails.\n * @param {Array} managerEmails - The list of manager emails.\n * @param {Array} adminEmails - The list of admin emails.\n * @returns {Array} The agencyInvitations.\n */\nexport const generateInvitationsFromEmails = (agentEmails, managerEmails, adminEmails) => {\n const agentInvitations = agentEmails.map((email) => {\n return {\n email,\n type: AGENCY_AGENT_INVITATION,\n };\n });\n const managerInvitations = managerEmails.map((email) => {\n return {\n email,\n type: AGENCY_MANAGER_INVITATION,\n };\n });\n const agencyInvitations = agentInvitations.concat(managerInvitations);\n const companyInvitations = adminEmails.map((email) => {\n return {\n email,\n };\n });\n\n return { agencyInvitations, companyInvitations };\n};\n","import gql from 'graphql-tag';\n\nexport const CompanyInvoiceFragment = gql`\n fragment CompanyInvoiceFragment on CompanyInvoice {\n id\n invoiceId\n total\n status\n paymentIntentStatus\n paymentMethodId\n createdAt\n }\n`;\n\nexport const PAYMENT_UPDATE_MUTATION = gql`\n mutation UpdatePaymentMethod($data: CompanySubUpdateInput!) {\n companySubUpdate(data: $data) {\n id\n }\n }\n`;\n\nexport const FETCH_COMPANY_INVOICES = gql`\n query FetchCompanyInvoices(\n $filter: CompanyInvoiceFilter\n $first: Int\n $skip: Int\n $orderBy: [CompanyInvoiceOrderBy]\n ) {\n companyInvoicesList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n count\n items {\n ...CompanyInvoiceFragment\n }\n }\n }\n ${CompanyInvoiceFragment}\n`;\n\nexport const CREATE_COMPANY_SUBSCRIPTION = gql`\n mutation CreateStripeSubscription($data: CreateStripeSubscriptionInput!) {\n createStripeSubscription(data: $data) {\n id\n status\n latest_invoice {\n id\n status\n payment_intent {\n id\n status\n client_secret\n last_payment_error\n }\n }\n }\n }\n`;\n\nexport const CREATE_PAYMENT_METHOD = gql`\n mutation CreatePaymentMethod($data: CreateStripePaymentMethodInput!) {\n createStripePaymentMethod(data: $data) {\n id\n }\n }\n`;\n\nexport const FETCH_PAYMENT_INTENT = gql`\n query FetchPaymentIntent($stripeInvoiceId: String!) {\n stripePaymentIntent(stripeInvoiceId: $stripeInvoiceId) {\n client_secret\n status\n last_payment_error {\n message\n }\n }\n }\n`;\n\nexport const FETCH_COUPONS = gql`\n query FetchCoupons($filter: CompanySubCouponFilter, $first: Int, $skip: Int) {\n companySubCouponsList(filter: $filter, first: $first, skip: $skip) {\n count\n items {\n id\n percentage\n months\n }\n }\n }\n`;\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString, isValidInteger } from '@cobuildlab/validation-utils';\n\nexport const paymentValidator = (creditCard, paymentMethod, stripeError) => {\n let errorMessages = [];\n\n if (stripeError) errorMessages.push(stripeError.message);\n\n if (!paymentMethod) errorMessages.push('You must enter a valid Credit Card');\n\n if (!isValidString(creditCard.cardHolderName))\n errorMessages.push('You must enter the name on the Credit Card');\n\n if (!isValidString(creditCard.addressLine1))\n errorMessages.push('A Credit Card must have a valid Address Line 1');\n\n if (!isValidString(creditCard.addressLine2))\n errorMessages.push('A Credit Card must have a valid Address Line 2');\n\n if (!isValidString(creditCard.city)) errorMessages.push('A Credit Card must have a valid City');\n\n if (!isValidString(creditCard.state)) errorMessages.push('A Credit Card must have a valid State');\n\n if (!isValidString(creditCard.country))\n errorMessages.push('A Credit Card must have a valid Country');\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n\n/**\n * The renew subscription input validator\n *\n * @param {object} data - The data submitted to renew a subscription\n *\n * @returns {void}\n */\nexport const renewSubscriptionValidator = (data) => {\n const { subscription, oldSubscription } = data;\n const errors = [];\n\n if (!isValidString(subscription.paymentMethodId))\n errors.push('You need to create a valid payment method first');\n\n if (!subscription.subscriptionPlan) errors.push('You must select a valid plan');\n\n if (!isValidInteger(subscription.numberOfSeats)) {\n errors.push('Number of seats must be a valid integer');\n } else {\n if (subscription.numberOfSeats < oldSubscription.numberOfSeats) {\n errors.push('The new subscription cannot have less seats than the old one');\n }\n }\n\n if (!isValidString(subscription.stripeCustomerId))\n errors.push('This account does not have a valid stripe customer id');\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnSubscriptionCanceled = createEvent();\n\nexport const OnSubscriptionCanceledError = createEvent();\n\nexport const OnSubscriptionRenew = createEvent();\n\nexport const OnSubscriptionRenewError = createEvent();\n\nexport const OnUpcomingInvoiceFetch = createEvent();\n\nexport const OnUpcomingInvoiceFetchError = createEvent();\n\nexport const OnValidCouponFetch = createEvent();\n\nexport const OnValidCouponFetchError = createEvent();\n\nexport const OnFetchCompanyInvoicesEvent = createEvent();\n\nexport const OnFetchCompanyInvoicesError = createEvent();\n","import { OnApolloClient } from '../../../shared/session/session-events';\nimport { CardElement } from '@stripe/react-stripe-js';\nimport {\n FETCH_COMPANY_INVOICES,\n CREATE_COMPANY_SUBSCRIPTION,\n CREATE_PAYMENT_METHOD,\n FETCH_PAYMENT_INTENT,\n FETCH_COUPONS,\n} from './billing-queries';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport { SUBSCRIPTION_STATUS, INVOICE_STATUS } from '@cobuildlab/lead-volt-share';\nimport { renewSubscriptionValidator } from './billing-validators';\nimport {\n OnFetchCompanyInvoicesError,\n OnFetchCompanyInvoicesEvent,\n OnSubscriptionCanceled,\n OnSubscriptionCanceledError,\n OnSubscriptionRenew,\n OnSubscriptionRenewError,\n OnUpcomingInvoiceFetch,\n OnUpcomingInvoiceFetchError,\n OnValidCouponFetch,\n OnValidCouponFetchError,\n} from './billing-events';\n\nconst { INCOMPLETE } = SUBSCRIPTION_STATUS;\nconst { OPEN } = INVOICE_STATUS;\n\n/**\n * Fetches the company invoices\n *\n * @param {string} companyId - The company id\n * @param {number} page - The page to fetch the invoices\n *\n * @returns {Promise} The request result\n */\nexport const fetchCompanyInvoices = async (companyId, page = 1) => {\n const client = OnApolloClient.get();\n const filter = { company: { id: { equals: companyId } } };\n const first = 10;\n const skip = first * (page - 1);\n const orderBy = 'createdAt_DESC';\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COMPANY_INVOICES,\n variables: { filter, first, skip, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchCompanyInvoices', e);\n return OnFetchCompanyInvoicesError.dispatch(e);\n }\n\n log('fetchCompanyInvoices', response.data);\n\n return OnFetchCompanyInvoicesEvent.dispatch(response.data);\n};\n\n/**\n * Cancels the specified subscription\n *\n * @param {string} id - The company subscription id\n *\n * @returns {Promise} The request result\n */\nexport const cancelSubscription = async (id) => {\n let response = null;\n\n try {\n response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/cancel-subscription`,\n {\n method: 'delete',\n body: JSON.stringify({\n companySubscriptionId: id,\n }),\n },\n );\n } catch (e) {\n error('cancelSubscription', e);\n\n return OnSubscriptionCanceledError.dispatch(e);\n }\n\n const result = await response.json();\n\n if (!response.ok) {\n const message = result.message ? result.message : 'Something happened, please try again';\n\n error('cancelSubscription', message);\n\n return OnSubscriptionCanceledError.dispatch(new Error(message));\n }\n\n log('cancelSubscription', response);\n\n return OnSubscriptionCanceled.dispatch(result);\n};\n\n/**\n * Renew company subscription\n *\n * @param {object} subscription - The subscription to create\n * @param {object} oldSubscription - The old subscription information\n * @param {object} stripe - The stripe object\n * @param {object} elements - The stripe's element object\n *\n * @returns {Promise} The request result\n */\nexport const renewCompanySubscription = async (subscription, oldSubscription, stripe, elements) => {\n try {\n renewSubscriptionValidator({ subscription, oldSubscription });\n } catch (e) {\n error('renewCompanySubscription', e);\n\n return OnSubscriptionRenewError.dispatch(e);\n }\n\n const { stripeCustomerId, subscriptionPlan } = subscription;\n let paymentMethod = { id: subscription.paymentMethodId };\n let companySubscription = null;\n\n if (subscription.status === INCOMPLETE) {\n let paymentIntent = null;\n let result = null;\n\n try {\n paymentIntent = await fetchPaymentIntentFromInvoice(subscription.stripeInvoiceId);\n } catch (e) {\n error('renewCompanySubscription', e);\n\n return OnSubscriptionRenewError.dispatch(e);\n }\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('renewCompanySubscription', e);\n\n return OnSubscriptionRenewError.dispatch(e);\n }\n\n if (result.error) return OnSubscriptionRenewError.dispatch(new Error(result.error.message));\n\n if (result.paymentIntent.status === 'requires_payment_method') {\n error('renewCompanySubscription', new Error(result.paymentIntent.last_payment_error.message));\n\n return OnSubscriptionRenewError.dispatch(\n new Error(result.paymentIntent.last_payment_error.message),\n );\n }\n\n log('renewCompanySubscription', result);\n\n return OnSubscriptionRenew.dispatch(result);\n }\n\n try {\n companySubscription = await createSubscription(\n subscription.companyId,\n stripeCustomerId,\n subscriptionPlan.id,\n subscription.numberOfSeats,\n );\n } catch (e) {\n error('renewCompanySubscription', e);\n\n return OnSubscriptionRenewError.dispatch(e);\n }\n\n let invoice = companySubscription.latest_invoice;\n let paymentIntent = invoice.payment_intent;\n\n if (companySubscription.status === INCOMPLETE) {\n if (invoice.status === OPEN) {\n if (paymentIntent.status === 'requires_action') {\n let result = null;\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('renewCompanySubscription', e);\n\n return OnSubscriptionRenewError.dispatch(e);\n }\n\n if (result.error) return OnSubscriptionRenewError.dispatch(new Error(result.error.message));\n\n return OnSubscriptionRenew.dispatch(result);\n }\n\n if (paymentIntent.status === 'requires_payment_method') {\n return OnSubscriptionRenewError.dispatch(\n new Error(paymentIntent.last_payment_error.message),\n );\n }\n }\n }\n\n return OnSubscriptionRenew.dispatch({ paymentIntent });\n};\n\n/**\n * Voids the specified invoice\n *\n * @param {string} stripeInvoiceId - The stripe invoice id\n *\n * @returns {Promise} The request result\n */\nexport const voidInvoice = async (stripeInvoiceId) => {\n const response = await fetch(`${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/void-invoice`, {\n method: 'post',\n body: JSON.stringify({\n stripeInvoiceId,\n }),\n });\n\n const result = await response.json();\n\n if (!response.ok) {\n const message = result.message ? result.message : 'Something happened, please try again';\n\n error('voidInvoice', result);\n\n throw new Error(message);\n }\n\n log('voidInvoice', result);\n\n return result.invoice;\n};\n\n/**\n * Create payment method\n *\n * @param {object} data - Data to create the payment method with\n * @param {string} customerId - The customer to attach the payment method\n * @param {object} stripe - The stripe object\n * @param {object} elements - The elements object\n *\n * @returns {Promise} The request result\n */\nexport const createPaymentMethod = async (data, customerId, stripe, elements) => {\n const cardElement = elements.getElement(CardElement);\n const client = OnApolloClient.get();\n\n const result = await stripe.createPaymentMethod({\n type: 'card',\n card: cardElement,\n ...data,\n });\n\n if (result.error) {\n error('createPaymentMethod', result.error);\n\n throw new Error(result.error.message);\n }\n\n const response = await client.mutate({\n mutation: CREATE_PAYMENT_METHOD,\n variables: {\n data: {\n paymentMethodId: result.paymentMethod.id,\n customerId: customerId,\n },\n },\n });\n\n return response.data.createStripePaymentMethod;\n};\n\n/**\n * Creates a subscription object\n *\n * @param {string} companyId - The company id\n * @param {string} customerId - The customer id\n * @param {string} planId - The subscription plan id\n * @param {number} quantity - The quantity of seats to buy\n * @param {string} couponId - The coupon id to redeem\n *\n * @returns {Promise} The request result\n */\nexport const createSubscription = async (companyId, customerId, planId, quantity, couponId) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: CREATE_COMPANY_SUBSCRIPTION,\n variables: {\n data: {\n companyId,\n customerId,\n subscriptionPlanId: planId,\n couponId,\n quantity,\n },\n },\n });\n\n log('createSubscription', response.data);\n\n return response.data.createStripeSubscription;\n};\n\n/**\n * Fetches the payment intent from an invoice\n *\n * @param {string} stripeInvoiceId - The stripe invoice id\n *\n * @returns {Promise} The request result\n */\nexport async function fetchPaymentIntentFromInvoice(stripeInvoiceId) {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_PAYMENT_INTENT,\n fetchPolicy: 'network-only',\n variables: {\n stripeInvoiceId,\n },\n });\n\n return response.data.stripePaymentIntent;\n}\n\n/**\n * Updates the specified subscription item\n *\n * @param {string} companyId - The company id\n * @param {string} itemId - The item id\n * @param {number} quantity - The quantity to sum to the item\n *\n * @returns {Promise} The request result\n */\nexport const updateSubscriptionItem = async (companyId, itemId, quantity) => {\n const { token } = JSON.parse(localStorage.getItem('auth'));\n\n const response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/update-subscription-plan-item`,\n {\n method: 'post',\n body: JSON.stringify({\n companyId,\n itemId,\n quantity,\n }),\n headers: {\n Authorization: `Bearer ${token}`,\n },\n },\n );\n\n const body = await response.json();\n\n if (!response.ok) {\n const message = body.message ? body.message : 'Something happened, prease try again';\n\n error('updateSubscriptionItem', message);\n\n throw new Error(message);\n }\n\n log('updateSubscriptionItem', body);\n\n return { subscription: body.subscription };\n};\n\n/**\n * Retrieve the upcoming subscription invoice\n *\n * @param {string} companyId - The company id\n *\n * @returns {Promise} The request result\n */\nexport const retrieveUpcomingInvoice = async (companyId) => {\n const { token } = JSON.parse(localStorage.getItem('auth'));\n let response = null;\n\n try {\n response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/retrieve-upcoming-invoice/${companyId}`,\n {\n method: 'get',\n headers: {\n Authorization: `Bearer ${token}`,\n },\n },\n );\n } catch (e) {\n error('retrieveUpcomingInvoice', e);\n\n return OnUpcomingInvoiceFetchError.dispatch(e);\n }\n\n const body = await response.json();\n\n if (!response.ok) {\n const message = body.message ? body.message : 'Something happened, please try again';\n\n error('retrieveUpcomingInvoice', body);\n\n return OnUpcomingInvoiceFetchError.dispatch(new Error(message));\n }\n\n if (body.errors) {\n const [e] = body.errors;\n error('retrieveUpcomingInoice', e.message);\n\n return OnUpcomingInvoiceFetchError.dispatch(new Error(e.message));\n }\n\n log('retrieveUpcomingInvoice', body);\n\n return OnUpcomingInvoiceFetch.dispatch(body);\n};\n\n/**\n * Fetches a valid coupon\n *\n * @param {string} id - The id of the coupon to find\n *\n * @returns {Promise} The coupon object or null\n */\nexport async function fetchValidCoupon(id) {\n const client = OnApolloClient.get();\n const filter = {\n id: { equals: id },\n valid: { equals: true },\n };\n const first = 1;\n\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COUPONS,\n variables: {\n filter,\n first,\n },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchValidCoupon', e.message);\n\n return OnValidCouponFetchError.dispatch(e);\n }\n\n const [coupon] = response.data.companySubCouponsList.items;\n\n return OnValidCouponFetch.dispatch(coupon || null);\n}\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnBoardingError = createEvent();\n\nexport const OnCreateCompanyEvent = createEvent();\n\nexport const OnOnBoardingInvitationsCreateError = createEvent();\n\nexport const OnOnBoardingProcessFinished = createEvent();\n","import { log, error } from '@cobuildlab/pure-logger';\nimport {\n CREATE_COMPANY_MUTATION,\n UPDATE_COMPANY_MUTATION,\n GET_MEMBERSHIP_INFO,\n} from '../company/company-queries';\nimport { createCompanyValidator } from '../company/company-validators';\nimport {\n IFS_SCORES_DEFAULT,\n SUBSCRIPTION_STATUS,\n INVOICE_STATUS,\n} from '@cobuildlab/lead-volt-share';\nimport { OnSessionFetch, OnApolloClient } from '../../shared/session/session-events';\nimport { onboardingInvitationsValidator } from './onboarding-validators';\nimport { generateInvitationsFromEmails } from '../agents/agents-utils';\nimport { AGENCY_ROLES } from '../../shared/constants';\nimport { UPDATE_USER } from '../auth/queries';\nimport {\n createPaymentMethod,\n createSubscription,\n fetchPaymentIntentFromInvoice,\n} from '../my-account/billing/billing-actions';\nimport {\n CREATE_INVITATION,\n CREATE_INVITATION_COMPANY,\n} from '../my-account/invitations/invitations-queries';\nimport { CREATE_STRIPE_CUSTOMER } from '../users/user-queries';\nimport {\n OnBoardingError,\n OnCreateCompanyEvent,\n OnOnBoardingInvitationsCreateError,\n OnOnBoardingProcessFinished,\n} from './onboarding-events';\n\nconst { INCOMPLETE } = SUBSCRIPTION_STATUS;\nconst { OPEN } = INVOICE_STATUS;\n\n/**\n * Creates a company.\n *\n * @param {object} stripe - The stripe object\n * @param {object} elements - the stripe elements object\n * @param {object} company - The company object with the data to create\n *\n * @returns {Promise} the created company.\n */\nexport const createCompany = async (stripe, elements, company, membershipInfo) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n const numberOfSeats = company.subscriptionPlan.isFreeTrial ? 1 : parseInt(company.numberOfSeats);\n let paymentMethod = null;\n let response = null;\n let customer = null;\n\n let { hasMembershipCode, customerId, paymentMethod: parentPaymentMethod } = membershipInfo;\n let isSoleProprietorship = company.businessType === 'Sole Proprietorship' ? true : false;\n try {\n createCompanyValidator(user, company, isSoleProprietorship, hasMembershipCode);\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n if (hasMembershipCode) {\n let create, update;\n //console.log('Got into HAS MEMBERSHIP CODE!!');\n\n /*\n Get customer ID based on input membership code\n */\n customer = { id: customerId };\n\n /**\n * Create different create/update company payloads depending on if the business is a sole proprietorship\n */\n if (company.businessType === 'Sole Proprietorship') {\n create = {\n name: company.firstName + ' ' + company.lastName + ' Sole Proprietorship',\n firstName: company.firstName,\n lastName: company.lastName,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n postalCode: company.postalCode,\n city: company.city,\n state: company.state,\n brandName: company.brandName,\n contactPhone: company.businessPhone,\n mobilePhone: company.mobilePhone,\n\n // status: Status has the PENDING status by default\n adminCompanyRelation: {\n create: [{ user: { connect: { id: user.id } } }],\n },\n agencyCompanyRelation: {\n create: [\n {\n name: company.agencyName,\n callerIdName: company.callerIdName,\n ifsScore: IFS_SCORES_DEFAULT,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n agencyAgencyUserRelation: {\n create: [\n {\n user: {\n connect: { id: user.id },\n },\n roles: AGENCY_ROLES.MANAGER,\n },\n ],\n },\n },\n ],\n },\n };\n\n update = {\n id: company.id,\n name: company.firstName + ' ' + company.lastName + ' Sole Proprietorship',\n firstName: company.firstName,\n lastName: company.lastName,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n postalCode: company.postalCode,\n city: company.city,\n state: company.state,\n brandName: company.brandName,\n contactPhone: company.businessPhone,\n mobilePhone: company.mobilePhone,\n agencyCompanyRelation: {\n update: [\n {\n data: {\n id: company.agencyId,\n name: company.agencyName,\n callerIdName: company.callerIdName,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n },\n },\n ],\n },\n };\n } else {\n create = {\n name: company.name,\n taxId: company.taxId,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n city: company.city,\n state: company.state,\n postalCode: company.postalCode,\n website: company.website,\n // status: Status has the PENDING status by default\n adminCompanyRelation: {\n create: [{ user: { connect: { id: user.id } } }],\n },\n agencyCompanyRelation: {\n create: [\n {\n name: company.agencyName,\n callerIdName: company.callerIdName,\n ifsScore: IFS_SCORES_DEFAULT,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n agencyAgencyUserRelation: {\n create: [\n {\n user: {\n connect: { id: user.id },\n },\n roles: AGENCY_ROLES.MANAGER,\n },\n ],\n },\n },\n ],\n },\n };\n\n update = {\n id: company.id,\n name: company.name,\n taxId: company.taxId,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n city: company.city,\n state: company.state,\n postalCode: company.postalCode,\n website: company.website,\n agencyCompanyRelation: {\n update: [\n {\n data: {\n id: company.agencyId,\n callerIdName: company.callerIdName,\n name: company.agencyName,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n },\n },\n ],\n },\n };\n }\n\n try {\n /**\n * If the company does not exists create the company registry,\n * in the contrary just update its data\n */\n company.id\n ? console.log('create company', JSON.stringify(create, null, 2))\n : console.log('update company', JSON.stringify(update, null, 2));\n response = await client.mutate({\n mutation: company.id ? UPDATE_COMPANY_MUTATION : CREATE_COMPANY_MUTATION,\n variables: {\n data: company.id ? update : create,\n },\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n const resCompany = company.id ? response.data.companyUpdate : response.data.companyCreate;\n\n OnCreateCompanyEvent.dispatch({ company: resCompany });\n /**\n * Get payment method from the parent company based on the membership code\n */\n\n paymentMethod = { id: parentPaymentMethod };\n\n let companySubscription = null;\n\n /**\n * If this is a new attempt, retry the subscription pay\n */\n if (company.companySub && company.companySub.status === INCOMPLETE) {\n const { invoice } = company;\n let paymentIntent = null;\n let result = null;\n\n try {\n paymentIntent = await fetchPaymentIntentFromInvoice(invoice.invoiceId);\n console.log('paymentIntent RETRY', paymentIntent);\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n if (result.error) {\n error('createCompany', new Error(result.error.message));\n return OnBoardingError.dispatch(new Error(result.error.message));\n }\n\n if (result.paymentIntent.status === 'requires_payment_method') {\n error('createCompany', new Error(result.paymentIntent.last_payment_error.message));\n\n return OnBoardingError.dispatch(new Error(result.paymentIntent.last_payment_error.message));\n }\n\n log('createCompany', result);\n\n return result;\n }\n\n /**\n * If it is the first attempt, create the new subscription object\n */\n try {\n companySubscription = await createSubscription(\n resCompany.id,\n customer.id,\n company.subscriptionPlan.id,\n numberOfSeats,\n company.coupon,\n );\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n let invoice = companySubscription.latest_invoice;\n let paymentIntent = invoice.payment_intent;\n //console.log('customer.id', customer.id);\n //console.log('from createSubscription, invoice:', invoice, 'paymentIntent', paymentIntent);\n\n if (companySubscription.status === INCOMPLETE) {\n if (invoice.status === OPEN) {\n if (paymentIntent.status === 'requires_action') {\n let result = null;\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n if (result.error) {\n error('createCompany', new Error(result.error.message));\n\n return OnBoardingError.dispatch(new Error(result.error.message));\n }\n }\n\n if (paymentIntent.status === 'requires_payment_method') {\n error('createCompany', new Error(paymentIntent.last_payment_error.message));\n\n return OnBoardingError.dispatch(new Error(paymentIntent.last_payment_error.message));\n }\n }\n }\n } else {\n /**\n * Create stripe customer and suscription objects\n * to charge the customer\n */\n try {\n customer = await createCustomer(\n company.subscriptionPlan.isFreeTrial\n ? {}\n : {\n line1: company.addressLine1,\n line2: company.addressLine2,\n city: company.city,\n state: company.state,\n country: 'US',\n },\n );\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n const create = {\n name: company.name,\n taxId: company.taxId,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n city: company.city,\n state: company.state,\n postalCode: company.postalCode,\n website: company.website,\n // status: Status has the PENDING status by default\n adminCompanyRelation: {\n create: [{ user: { connect: { id: user.id } } }],\n },\n agencyCompanyRelation: {\n create: [\n {\n name: company.agencyName,\n callerIdName: company.callerIdName,\n ifsScore: IFS_SCORES_DEFAULT,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n agencyAgencyUserRelation: {\n create: [\n {\n user: {\n connect: { id: user.id },\n },\n roles: AGENCY_ROLES.MANAGER,\n },\n ],\n },\n },\n ],\n },\n };\n\n const update = {\n id: company.id,\n name: company.name,\n taxId: company.taxId,\n addressLine1: company.addressLine1,\n addressLine2: company.addressLine2,\n city: company.city,\n state: company.state,\n postalCode: company.postalCode,\n website: company.website,\n agencyCompanyRelation: {\n update: [\n {\n data: {\n id: company.agencyId,\n callerIdName: company.callerIdName,\n name: company.agencyName,\n twilioBusinessType: company.businessType,\n userSelectedAgencyRelation: { connect: { id: user.id } },\n },\n },\n ],\n },\n };\n\n try {\n /**\n * If the company does not exists create the company registry,\n * in the contrary just update its name and tax id\n */\n response = await client.mutate({\n mutation: company.id ? UPDATE_COMPANY_MUTATION : CREATE_COMPANY_MUTATION,\n variables: {\n data: company.id ? update : create,\n },\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n const resCompany = company.id ? response.data.companyUpdate : response.data.companyCreate;\n\n OnCreateCompanyEvent.dispatch({ company: resCompany });\n /**\n * If the payment method is already saved and the user wants to use it, just use it.\n * In the contrary, if a new payment method is entered, create the payment method\n */\n if (!company.subscriptionPlan.isFreeTrial) {\n if (company.card.useOldMethod && company.card.paymentMethodId) {\n paymentMethod = { id: company.card.paymentMethodId };\n } else {\n try {\n paymentMethod = await createPaymentMethod(\n {\n billing_details: {\n address: {\n line1: company.addressLine1,\n line2: company.addressLine2,\n city: company.city,\n state: company.state,\n country: 'US',\n },\n email: user.email,\n name: company.cardHolderName,\n },\n metadata: { company_id: resCompany.id },\n },\n customer.id,\n stripe,\n elements,\n );\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n }\n }\n\n let companySubscription = null;\n\n /**\n * If this is a new attempt, retry the subscription pay\n */\n if (company.companySub && company.companySub.status === INCOMPLETE) {\n const { invoice } = company;\n let paymentIntent = null;\n let result = null;\n\n try {\n paymentIntent = await fetchPaymentIntentFromInvoice(invoice.invoiceId);\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n if (result.error) {\n error('createCompany', new Error(result.error.message));\n return OnBoardingError.dispatch(new Error(result.error.message));\n }\n\n if (result.paymentIntent.status === 'requires_payment_method') {\n error('createCompany', new Error(result.paymentIntent.last_payment_error.message));\n\n return OnBoardingError.dispatch(new Error(result.paymentIntent.last_payment_error.message));\n }\n\n log('createCompany', result);\n\n return result;\n }\n\n /**\n * If it is the first attempt, create the new subscription object\n */\n try {\n companySubscription = await createSubscription(\n resCompany.id,\n customer.id,\n company.subscriptionPlan.id,\n numberOfSeats,\n company.coupon,\n );\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n let invoice = companySubscription.latest_invoice;\n let paymentIntent = invoice.payment_intent;\n if (companySubscription.status === INCOMPLETE) {\n if (invoice.status === OPEN) {\n if (paymentIntent.status === 'requires_action') {\n let result = null;\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethod.id,\n });\n } catch (e) {\n error('createCompany', e);\n return OnBoardingError.dispatch(e);\n }\n\n if (result.error) {\n error('createCompany', new Error(result.error.message));\n\n return OnBoardingError.dispatch(new Error(result.error.message));\n }\n }\n\n if (paymentIntent.status === 'requires_payment_method') {\n error('createCompany', new Error(paymentIntent.last_payment_error.message));\n\n return OnBoardingError.dispatch(new Error(paymentIntent.last_payment_error.message));\n }\n }\n }\n }\n};\n\n/**\n * Creates a new customer in stripe\n *\n * @param {object} customer - The customer object to create\n *\n * @returns {Promise} The request result\n */\nexport const createCustomer = async (customer) => {\n const client = OnApolloClient.get();\n const withData = Object.keys(customer).length > 0;\n\n const response = await client.mutate({\n mutation: CREATE_STRIPE_CUSTOMER,\n variables: {\n ...(withData ? customer : {}),\n },\n });\n\n return response.data.createStripeCustomer;\n};\n\n/**\n * Retries an invoice with a new payment method\n *\n * @param {string} customerId - The customer id\n * @param {string} paymentMethodId - The payment method id\n * @param {string} priceId - The price id\n * @param {string} subscriptionId - The subscription id\n * @param {number} quantity - The quantity of products to pay per month\n * @returns {Promise} The request result\n */\nexport const retryInvoiceWithNewPaymentMethod = async (\n customerId,\n paymentMethodId,\n priceId,\n subscriptionId,\n quantity,\n) => {\n const response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/retry-stripe-invoice-webhook`,\n {\n method: 'post',\n body: JSON.stringify({\n customerId,\n paymentMethodId,\n priceId,\n subscriptionId,\n quantity,\n }),\n },\n );\n\n const result = await response.json();\n\n if (!response.ok) {\n const message = result.message ? result.message : 'Something happened, please try again';\n\n throw new Error(message);\n }\n\n if (result.error) throw result;\n\n return {\n subscription: result.subscription,\n paymentMethodId,\n priceId,\n };\n};\n\n/**\n * Processes the company subscription\n *\n * @param {object} company - The company object\n * @param {string} agencyId - The agency id\n *\n * @returns {Promise} The request result\n */\nexport const finalizeCompanySubscription = async (company, agencyId) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n\n try {\n await client.mutate({\n mutation: UPDATE_COMPANY_MUTATION,\n variables: {\n data: { id: company.id, status: 'ACTIVE' },\n },\n });\n } catch (e) {\n error('finalizeCompanySubscription', e);\n return OnBoardingError.dispatch(e);\n }\n\n try {\n await client.mutate({\n mutation: UPDATE_USER,\n variables: {\n data: {\n id: user.id,\n selectedAgency: { connect: { id: agencyId } },\n },\n },\n });\n } catch (e) {\n error('finalizeCompanySubscription', e);\n return OnBoardingError.dispatch(e);\n }\n return OnOnBoardingProcessFinished.dispatch();\n};\n\n/**\n * Creates the invitations present on the onboarding screen\n *\n * @param {object} company - The company data to create the invitations from\n *\n * @returns {Promise} The request result\n */\nexport const createInvitations = async (company) => {\n const client = OnApolloClient.get();\n let response = null;\n let errors = [];\n const { id: companyId, agentEmails, managerEmails, adminEmails, agencyId } = company;\n const {\n agencyInvitations: agencyInvs,\n companyInvitations: companyInvs,\n } = generateInvitationsFromEmails(agentEmails, managerEmails, adminEmails);\n\n if (company.subscriptionPlan.isFreeTrial) return;\n\n try {\n onboardingInvitationsValidator(company);\n } catch (e) {\n error('createInvitations', e);\n\n return OnOnBoardingInvitationsCreateError.dispatch(e);\n }\n\n for (const invitation of agencyInvs) {\n try {\n response = await client.mutate({\n mutation: CREATE_INVITATION,\n variables: {\n data: {\n email: invitation.email,\n type: invitation.type,\n agency: { connect: { id: agencyId } },\n },\n },\n });\n } catch (e) {\n error('createInvitations', e);\n\n errors.push(invitation.email);\n }\n }\n\n for (const invitation of companyInvs) {\n try {\n response = await client.mutate({\n mutation: CREATE_INVITATION_COMPANY,\n variables: {\n data: {\n email: invitation.email,\n type: invitation.type,\n company: { connect: { id: companyId } },\n },\n },\n });\n } catch (e) {\n error('createInvitations', e);\n\n errors.push(invitation.email);\n }\n }\n\n if (errors.length > 0) {\n const message = errors.join(', ');\n OnOnBoardingInvitationsCreateError.dispatch({\n message: \"The following invitations couldn't be sent, please try again manually: \" + message,\n });\n }\n\n log('createInvitations', response);\n\n return response;\n};\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { updateCompanyValidator } from './company-validators';\nimport {\n COMPANIES_QUERY,\n COMPANY_QUERY,\n SUBSCRIPTION_PLANS_QUERY,\n UPDATE_COMPANY_MUTATION,\n} from './company-queries';\nimport {\n OnCompanyError,\n OnCompanyfetched,\n OnCompanyUpdated,\n OnfetchCompanyList,\n OnSubcriptionPlansListError,\n OnSubcriptionPlansListEvent,\n} from './campany-events';\n\n/**\n * Creates a filter object\n *\n * @param {object} data - the data used to filter the search\n *\n * @returns {object} the filter object\n */\nconst createFilter = (data) => {\n return { id: { in: data.companyIds } };\n};\n\n/**\n * Created a filter object for subscription plans\n *\n * @param {object} data - The data used to filter the results\n *\n * @returns {object} The filter object\n */\nexport const createSubscriptionPlansFilter = (data) => {\n const filter = {};\n\n if (data.isFreeTrial !== undefined) filter.isFreeTrial = { equals: data.isFreeTrial };\n\n return filter;\n};\n\n/**\n * Fetches the company given the filter data\n *\n * @param {number} id - The company's id\n * @param {string} userID - The user id\n *\n * @returns {Promise} The request result\n */\nexport const fetchCompany = async (id, userID) => {\n const client = OnApolloClient.get();\n const filterAdmins = { user: { id: { not_equals: userID } } };\n\n let response;\n try {\n response = await client.query({\n query: COMPANY_QUERY,\n variables: { id, filterAdmins },\n });\n } catch (e) {\n error('fetchCompany', e);\n return OnCompanyError.dispatch(e);\n }\n\n log('fetchCompany', response.data);\n OnCompanyfetched.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetches the companies given the filter data\n *\n * @param {object} data - Object that contains filter data\n * @param {string} userID - The user id\n *\n * @returns {Promise} The request result\n */\nexport const fetchCompanies = async (data, userID) => {\n const client = OnApolloClient.get();\n const filter = createFilter(data);\n const filterAdmins = { user: { id: { not_equals: userID } } };\n\n let response;\n try {\n response = await client.query({\n query: COMPANIES_QUERY,\n fetchPolicy: 'no-cache',\n variables: { filter, filterAdmins },\n });\n } catch (e) {\n error('fetchCompanies', e);\n return OnCompanyError.dispatch(e);\n }\n\n log('fetchCompanies', response.data);\n OnfetchCompanyList.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetches the subscription plans for the company.\n *\n * @param {object} filters - The filter object\n *\n * @returns {Promise} The data.\n */\nexport const fetchSubscriptionPlans = async (filters = {}) => {\n const client = OnApolloClient.get();\n const filter = createSubscriptionPlansFilter(filters);\n let response = null;\n\n try {\n response = await client.query({\n query: SUBSCRIPTION_PLANS_QUERY,\n variables: { filter },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchSubscriptionPlans: ', e);\n return OnSubcriptionPlansListError.dispatch(e);\n }\n\n log('fetchSubscriptionPlans', response.data);\n return OnSubcriptionPlansListEvent.dispatch(response.data);\n};\n\n/**\n * Updates the company in db\n *\n * @param {object} company - The company object\n * @param {string} userID - The user id\n * @returns {void}\n */\nexport const updateCompany = async (company, userID) => {\n const client = OnApolloClient.get();\n\n const variables = {\n data: {\n name: company.name,\n },\n filter: {\n id: company.id,\n },\n filterAdmins: {\n user: {\n id: { not_equals: userID },\n },\n },\n };\n\n let response;\n try {\n updateCompanyValidator(company);\n\n response = await client.mutate({\n mutation: UPDATE_COMPANY_MUTATION,\n variables,\n });\n\n log('updateCompany', response.data);\n } catch (e) {\n error('updateCompany', e);\n return OnCompanyError.dispatch(e);\n }\n\n OnCompanyUpdated.dispatch(response.data);\n return response.data;\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchSubscriptionPlans } from '../company/company-actions';\nimport { LIST_INITIAL_STATE } from '../../shared/constants';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport {\n OnSubcriptionPlansListError,\n OnSubcriptionPlansListEvent,\n} from 'modules/company/campany-events';\n\n/**\n * Fetches subscription plans available\n *\n * @param {object} filters -Filters object\n *\n * @returns {object} The list fetching state\n */\nexport function useSubscriptionPlans(filters = {}) {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n const [filter, setFilter] = useState(filters);\n\n const fetch = useCallback(() => {\n setState((state) => ({\n ...state,\n loading: true,\n }));\n\n fetchSubscriptionPlans(filter);\n }, [filter]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useEventSubscription(OnSubcriptionPlansListEvent, ({ subscriptionPlansList }) => {\n setState((state) => ({\n ...state,\n loading: false,\n count: subscriptionPlansList.count,\n items: subscriptionPlansList.items,\n }));\n });\n\n useEventSubscription(OnSubcriptionPlansListError, onErrorMixinFC);\n\n return {\n ...state,\n setFilter,\n fetch,\n };\n}\n","import { useState, useEffect } from 'react';\nimport { FETCH_COMPANY_FOR_BILLING_STATUS, COMPANY_BILLING_SUBSCRIPTION } from './company-queries';\nimport { useQuery } from '@apollo/client/react/hooks';\n\n/**\n * Hook that uses the company billing status\n *\n * @param {string} id - The company id\n *\n * @returns {object} - The company billing status\n */\nexport function useCompany(id) {\n const [companyId, setCompanyId] = useState(id ? id : 'fake-company-id');\n const { data, loading, error, subscribeToMore, startPolling, stopPolling } = useQuery(\n FETCH_COMPANY_FOR_BILLING_STATUS,\n {\n variables: { id: companyId ? companyId : 'fake-company-id' },\n fetchPolicy: 'network-only',\n },\n );\n\n useEffect(() => {\n if (companyId) {\n const unsubscribe = subscribeToMore({\n document: COMPANY_BILLING_SUBSCRIPTION,\n variables: { id: companyId },\n updateQuery: (prev, { subscriptionData }) => {\n if (!subscriptionData.data) return prev;\n\n return subscriptionData.data.Company.node;\n },\n });\n\n return () => unsubscribe();\n }\n }, [companyId, subscribeToMore]);\n\n return {\n data,\n loading,\n error,\n setCompany: setCompanyId,\n startPolling,\n stopPolling,\n };\n}\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchValidCoupon } from '../billing-actions';\nimport { OnValidCouponFetch } from '../billing-events';\nimport PropTypes from 'prop-types';\nimport {\n Paper,\n Input,\n Button as BoostButton,\n Column as BoostColumn,\n Row as BoostRow,\n Text as BoostText,\n Icon,\n styled,\n} from '@8base/boost';\n\nconst Card = styled(Paper)`\n width: 100%;\n box-shadow: none !important;\n border: 1px solid #d0d7dd;\n margin-top: 15px;\n`;\n\nconst Text = styled(BoostText)`\n font-size: 1.3rem !important;\n`;\n\nconst Button = styled(BoostButton)`\n border: none;\n box-shadow: none !important;\n`;\n\nconst Column = styled(BoostColumn)`\n padding: 16px;\n`;\n\nconst Footer = styled(BoostRow)`\n border-top: 1px solid #cfd7de;\n padding: 8px 16px;\n`;\n\nexport const CouponInput = ({ onChange }) => {\n const [text, setText] = useState('');\n const [coupon, setCoupon] = useState(null);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n if (text) {\n setLoading(true);\n\n const timeout = window.setTimeout(() => fetchValidCoupon(text), 1000);\n\n return () => window.clearTimeout(timeout);\n } else {\n setLoading(false);\n }\n }, [text]);\n\n useSubscription(\n OnValidCouponFetch,\n (value) => {\n setLoading(false);\n setCoupon(value);\n },\n [],\n );\n\n const handleClear = useCallback(() => {\n setCoupon(null);\n onChange('');\n }, [onChange]);\n\n const handleBlur = useCallback(() => {\n onChange(text);\n }, [text, onChange]);\n\n return (\n \n \n \n GET A DISCOUNT\n \n {((!text && !coupon) || loading) && (\n Redeem your coupon to get a discount\n )}\n {text && !loading && !coupon && (\n The code you entered does not belong to any active coupon\n )}\n {!loading && coupon && (\n \n {coupon.percentage}% off on every seat you buy for the next {coupon.months} months\n \n )}\n \n
    \n \n \n
    \n
    \n );\n};\n\nCouponInput.propTypes = {\n onChange: PropTypes.func.isRequired,\n};\n","import React, { useState, useCallback, useEffect } from 'react';\n//import 'react-phone-number-input/style.css';\nimport PhoneInput from 'react-phone-number-input/input';\nimport { log } from '@cobuildlab/pure-logger';\nimport { SUBSCRIPTION_STATUS, COMPANY_STATUS } from '@cobuildlab/lead-volt-share';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { Grid, Column, InputField, Label, Loader, Row, styled, SelectField } from '@8base/boost';\nimport { DialogForm, FormTitle, TagsInput, SelectInput } from '../../../shared/components';\nimport { PlanCard } from '../../company/components/PlanCard';\nimport useDebounce from 'shared/utils/useDebounce';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n IconCompanyInformation,\n IconBillingInformation,\n IconAgencyInformation,\n IconSubscriptionPlan,\n} from '../../../shared/components/ui/Icons';\nimport { PaymentForm } from '../../my-account/billing/payment-method/components/PaymentForm';\nimport { useElements, useStripe } from '@stripe/react-stripe-js';\nimport { model } from '../../company/company-model';\nimport {\n createCompany,\n finalizeCompanySubscription,\n createInvitations,\n} from '../onboarding-actions';\nimport { fetchSession } from '../../auth/auth.actions';\nimport { useSubscriptionPlans } from '../onboarding-hooks';\nimport PropTypes from 'prop-types';\nimport * as R from 'ramda';\nimport { OnSessionError, OnSessionFetch } from '../../../shared/session/session-events';\nimport { useCompany } from '../../company/company-hooks';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { isValidInteger } from '../../../shared/validators';\nimport { CouponInput } from '../../my-account/billing/components/CouponInput';\nimport { GET_MEMBERSHIP_INFO } from 'modules/company/company-queries';\nimport {\n OnBoardingError,\n OnCreateCompanyEvent,\n OnOnBoardingInvitationsCreateError,\n OnOnBoardingProcessFinished,\n} from '../onboarding-events';\n\nconst { TRIALING, ACTIVE } = SUBSCRIPTION_STATUS;\nconst { PENDING } = COMPANY_STATUS;\n\nconst Error = styled(Label)`\n color: #fe4b3d !important;\n`;\n\nconst emailRegexp = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@(([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{2,})$/;\n\nconst CompanyForm = ({ id, isOpen, onCloseForm }) => {\n const stripe = useStripe();\n const elements = useElements();\n const { data, loading: loadingCompany, setCompany, startPolling, stopPolling } = useCompany(id);\n const [loading, setLoading] = useState(true);\n const [form, setForm] = useState(R.clone(model));\n const [loadingSubmit, setLoadingSubmit] = useState(false);\n const [hasMembershipCode, setHasMembershipCode] = useState(false);\n const [loadingMembershipLookup, setLoadingMembershipLookup] = useState(false);\n const [customerId, setCustomerId] = useState(null);\n const [paymentMethod, setPaymentMethod] = useState(null);\n const [parentCompanyName, setParentCompanyName] = useState(null);\n const { items: subscriptionPlans, loading: loadingPlans } = useSubscriptionPlans();\n const client = OnApolloClient.get();\n\n useEffect(() => {\n startPolling(5 * 1000);\n return () => stopPolling();\n }, [startPolling, stopPolling]);\n\n useEffect(() => {\n if (stripe && elements && !loadingPlans && !loadingCompany) {\n setLoading(false);\n }\n }, [stripe, elements, loadingPlans, loadingCompany]);\n\n /**\n * When subscription plans list finish loading\n * select the first one in the list\n */\n useEffect(() => {\n if (subscriptionPlans.length > 0) {\n setForm((state) => ({\n ...state,\n subscriptionPlan:\n state.subscriptionPlan === null ? subscriptionPlans[0] : state.subscriptionPlan,\n }));\n }\n }, [subscriptionPlans]);\n\n /**\n * In case the subscription plan is a free trial, erase all information\n * related to the credit card\n */\n useEffect(() => {\n if (form.subscriptionPlan && form.subscriptionPlan.isFreeTrial) {\n setForm((state) => ({\n ...state,\n cardHolderName: '',\n addressLine1: '',\n addressLine2: '',\n country: '',\n city: '',\n state: '',\n }));\n }\n }, [form.subscriptionPlan]);\n\n const debouncedMembershipCode = useDebounce(form.membershipCode, 1000);\n /**\n *\n * Debounce membership code that is input and populate fields with data from parent company\n */\n useEffect(() => {\n async function fetchMembershipCode() {\n setLoadingMembershipLookup(true);\n return await client.query({\n query: GET_MEMBERSHIP_INFO,\n variables: { membershipCode: debouncedMembershipCode },\n });\n }\n if (debouncedMembershipCode) {\n fetchMembershipCode()\n .then((res) => {\n //console.log('membershipCodeFetched', res.data);\n setLoadingMembershipLookup(false);\n if (res?.data?.company?.id) {\n //console.log('entered the if!');\n let paymentMethod = res.data.company?.companyPaymentMethods.items[0].paymentMethodId;\n let custId = res.data.company?.subscriptions.items[0].stripeCustomerId;\n let company_name = res.data.company?.name;\n setHasMembershipCode(true);\n setCustomerId(custId);\n setParentCompanyName(company_name);\n setPaymentMethod(paymentMethod);\n } else {\n if (hasMembershipCode) {\n setHasMembershipCode(false);\n }\n }\n })\n .catch((err) => {\n console.log('error fetching membership code', err);\n });\n }\n }, [debouncedMembershipCode]);\n\n useEffect(() => {\n if (!form.membershipCode) {\n setHasMembershipCode(false);\n }\n }, [form.membershipCode]);\n\n /*useEffect(() => {\n console.log('hasMembershipCode', hasMembershipCode);\n console.log('customerId', customerId);\n console.log('paymentMethod', paymentMethod);\n console.log('parent company name', parentCompanyName);\n }, [hasMembershipCode, paymentMethod, customerId, parentCompanyName]);\n useEffect(() => {\n console.log('membershipCodeLoading?', loadingMembershipLookup);\n }, [loadingMembershipLookup]);*/\n /**\n * In case the number of seats of the plan is just the currently\n * authenticated user, remove all invitations information\n */\n useEffect(() => {\n if (isValidInteger(form.numberOfSeats, true) && parseInt(form.numberOfSeats) === 0) {\n setForm((state) => ({\n ...state,\n agentEmails: [],\n managerEmails: [],\n adminEmails: [],\n }));\n }\n }, [form.numberOfSeats]);\n\n /**\n * Effect that is executed on every company change,\n * works with a GraphQL subscription\n */\n useEffect(() => {\n if (data?.company) {\n log('company', data?.company);\n\n const [paymentMethod] = data.company.companyPaymentMethods.items;\n const [subscription] = data.company.subscriptions.items;\n const [invoice] = data.company.companyInvoices.items;\n\n setForm((state) => ({\n ...state,\n id: data.company.id,\n name: data.company.name,\n taxId: data.company.taxId,\n agencyId: data.company.agencyCompanyRelation.items[0].id,\n agencyName: data.company.agencyCompanyRelation.items[0].name,\n cardHolderName: paymentMethod ? paymentMethod.nameOnCard : state.cardHolderName,\n addressLine1: paymentMethod ? paymentMethod.addressLine1 : state.addressLine1,\n addressLine2: paymentMethod ? paymentMethod.addressLine2 : state.addressLine2,\n city: paymentMethod ? paymentMethod.city : state.city,\n state: paymentMethod ? paymentMethod.state : state.state,\n callerIdName: data.company.agencyCompanyRelation.items[0].callerIdName,\n card: {\n ...state.card,\n last4: paymentMethod?.last4,\n expireDate: paymentMethod?.expireDate,\n paymentMethodId: paymentMethod?.paymentMethodId,\n },\n invoice: invoice ? invoice : null,\n subscriptionPlan: subscription ? subscription.subscriptionPlan : state.subscriptionPlan,\n companySub: subscription,\n numberOfSeats: subscription ? subscription.numberOfSeats : state.numberOfSeats,\n }));\n\n if (data.company.status === PENDING) {\n if (\n invoice &&\n subscription &&\n (subscription.status === TRIALING || subscription.status === ACTIVE)\n ) {\n setLoadingSubmit(true);\n\n finalizeCompanySubscription(data.company, data.company.agencyCompanyRelation.items[0].id);\n }\n }\n }\n }, [data]);\n\n useSimpleSubscription(OnCreateCompanyEvent, ({ company }) => {\n setCompany(company.id);\n });\n\n useSimpleSubscription(OnOnBoardingProcessFinished, async () => {\n Toast.success('Success', 'Loading information...');\n\n await createInvitations(form);\n console.log('FETCH SESSION');\n fetchSession();\n });\n\n useSimpleSubscription(\n OnSessionFetch,\n () => {\n setLoadingSubmit(false);\n },\n [],\n );\n useSimpleSubscription(OnOnBoardingInvitationsCreateError, ({ message }) => {\n Toast.warn(message);\n });\n\n useSimpleSubscription(\n OnSessionError,\n (e) => {\n onErrorMixinFC(e);\n\n setLoadingSubmit(false);\n },\n [],\n );\n\n useSimpleSubscription(OnBoardingError, (e) => {\n onErrorMixinFC(e);\n\n setLoadingSubmit(false);\n });\n\n const onChange = useCallback((name, value) => {\n setForm((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const onSeatsChange = useCallback((change) => {\n setForm((state) => ({\n ...state,\n numberOfSeats: typeof change === 'number' ? change : change(state.numberOfSeats),\n }));\n }, []);\n\n const onSubmit = useCallback(async () => {\n if (!stripe || !elements) return;\n let membershipInfo = {\n hasMembershipCode,\n customerId,\n paymentMethod,\n };\n\n setLoadingSubmit(true);\n const company = R.clone(form);\n\n if (data?.company) {\n const [subscription] = data.company.subscriptions.items;\n\n if (subscription && (subscription.status === TRIALING || subscription.status === ACTIVE)) {\n finalizeCompanySubscription(\n data.company.id,\n data.company.agencyCompanyRelation.items[0].id,\n );\n } else {\n createCompany(stripe, elements, company, membershipInfo);\n }\n } else {\n createCompany(stripe, elements, company, membershipInfo);\n }\n }, [stripe, elements, form, data]);\n\n const handleValidationReject = useCallback((failedEmails) => {\n const result = failedEmails.filter((item) => item.length !== 0);\n\n if (result.length > 0) {\n Toast.warn('To invite a user you should use a valid email');\n }\n }, []);\n\n const hasMoreThan1Seat =\n form.subscriptionPlan &&\n !form.subscriptionPlan.isFreeTrial &&\n isValidInteger(form.numberOfSeats, true) &&\n parseInt(form.numberOfSeats) > 0;\n\n const businessOptions = [\n { value: 'Limited Liability Corporation', label: 'LLC' },\n { value: 'Corporation', label: 'CORPORATION' },\n { value: 'Sole Proprietorship', label: 'SOLE PROPRIETORSHIP' },\n { value: 'Co-operative', label: 'CO-OPERATIVE' },\n { value: 'Partnership', label: 'PARTNERSHIP' },\n { value: 'Non-profit Corporation', label: 'NON-PROFIT CORPORATION' },\n ];\n\n const plans = subscriptionPlans\n .filter((plan) => {\n const subscription = data?.company?.subscriptions.items[0];\n\n if (subscription) {\n return subscription.subscriptionPlan.id === plan.id;\n }\n\n return true;\n })\n .map((plan) => {\n const subscription = data?.company?.subscriptions.items[0];\n\n return (\n onChange('subscriptionPlan', subscription)}\n onQuantityChange={onSeatsChange}\n readOnly={subscription ? true : false}\n />\n );\n });\n\n return (\n \n \n \n \n \n\n onChange('businessType', value),\n }}\n />\n\n {form.businessType !== 'Sole Proprietorship' ? (\n <>\n onChange('name', value),\n }}\n />\n\n onChange('website', value),\n }}\n />\n {loadingMembershipLookup && Searching for code...}\n {hasMembershipCode && (\n Welcome, {parentCompanyName} member!\n )}\n onChange('membershipCode', value),\n }}\n />\n\n \n \n onChange('taxId', value),\n }}\n />\n \n \n onChange('postalCode', value),\n }}\n />\n \n \n \n ) : (\n <>\n \n \n onChange('firstName', value),\n }}\n />\n \n \n onChange('lastName', value),\n }}\n />\n \n \n onChange('postalCode', value),\n }}\n />\n \n \n\n \n \n Business Phone Number\n onChange('businessPhone', value)}\n />\n \n \n Mobile Phone Number\n onChange('mobilePhone', value)}\n />\n \n \n onChange('brandName', value),\n }}\n />\n {loadingMembershipLookup && (\n Searching for code...\n )}\n {hasMembershipCode && (\n Welcome, {parentCompanyName} member!\n )}\n onChange('membershipCode', value),\n }}\n />\n \n )}\n \n onChange('agencyName', value),\n }}\n />\n onChange('callerIdName', value),\n }}\n />\n \n onChange(\n 'agentEmails',\n email.filter((item) => typeof item === 'string' && item.length > 0),\n )\n }\n tags={form.agentEmails}\n disabled={!hasMoreThan1Seat}\n onlyUnique\n validationRegex={emailRegexp}\n onValidationReject={handleValidationReject}\n addOnBlur\n />\n \n onChange(\n 'managerEmails',\n email.filter((item) => typeof item === 'string' && item.length > 0),\n )\n }\n tags={form.managerEmails}\n disabled={!hasMoreThan1Seat}\n onlyUnique\n validationRegex={emailRegexp}\n onValidationReject={handleValidationReject}\n addOnBlur\n />\n \n onChange(\n 'adminEmails',\n email.filter((item) => typeof item === 'string' && item.length > 0),\n )\n }\n tags={form.adminEmails}\n disabled={!hasMoreThan1Seat}\n onlyUnique\n validationRegex={emailRegexp}\n onValidationReject={handleValidationReject}\n addOnBlur\n />\n {!hasMoreThan1Seat && To invite other users you need to buy more seats}\n {form.subscriptionPlan && !form.subscriptionPlan.isFreeTrial && (\n onChange('coupon', value)} />\n )}\n \n \n \n \n \n {loadingPlans && (\n \n \n \n )}\n {plans}\n \n \n \n \n \n \n );\n};\n\nCompanyForm.propTypes = {\n id: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n onCloseForm: PropTypes.func.isRequired,\n};\n\nCompanyForm.defaultProps = {\n id: '',\n};\n\nexport { CompanyForm };\n","import React, { useEffect, useState } from 'react';\n\nexport default function useDebounce(func, wait) {\n const [debouncedFunc, setDebouncedFunc] = useState(func);\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedFunc(func);\n }, wait);\n return () => {\n clearTimeout(handler);\n };\n }, [func]);\n return debouncedFunc;\n}\n","import React, { useState } from 'react';\nimport { Apollo } from '../../shared/apollo/Apollo';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { withAuth } from '@8base/react-sdk';\nimport YesNoDialog from '../../shared/components/YesNoDialog';\nimport { CompanyForm } from './components/CompanyForm';\nimport PropTypes from 'prop-types';\n\nconst CreateCompanyView = (props) => {\n const [isOpen] = useState(true);\n const [logoutIsOpen, setLogoutIsOpen] = useState(false);\n const [showAnnualPrice] = useState(false);\n\n const logout = async () => {\n const { auth, client } = props;\n await client.clearStore();\n localStorage.clear();\n auth.authClient.logout();\n };\n\n const onOpenLogout = () => {\n setLogoutIsOpen(true);\n };\n\n const onCloseLogout = () => {\n setLogoutIsOpen(false);\n };\n\n return (\n <>\n \n \n \n \n \n );\n};\n\nCreateCompanyView.propTypes = {\n id: PropTypes.string,\n};\n\nCreateCompanyView.defaultProps = {\n id: '',\n};\n\nexport default withAuth(withApollo(CreateCompanyView));\n","import React from 'react';\nimport { Loader } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst MainLoaderContainer = styled.div`\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst MainLoader = () => (\n \n \n \n);\n\nexport default MainLoader;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Dialog, Paragraph, Row, Button as BoostButton, useModal } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst Button = styled(BoostButton)`\n ${({ color }) =>\n color === 'primary' &&\n `\n &:hover {\n border: 1px solid #3db4aa !important;\n background-color: #3db4aa !important;\n }\n `}\n`;\n\nexport const modalId = 'decision-dialog';\n\nconst DecisionDialog: React.FC = () => {\n const { isOpen, args } = useModal(modalId);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n if (isOpen) {\n setLoading(false);\n }\n }, [isOpen]);\n\n const title = args.title;\n const text = args.text;\n const color = args.color || 'danger';\n const confirmText = args.confirmText;\n const cancelText = args.cancelText;\n const onClose = args.onClose;\n const onCancel = args.onCancel;\n\n const handleConfirm = useCallback(() => {\n setLoading(true);\n\n args.onConfirm();\n }, [args]);\n\n return (\n \n \n \n {text}\n \n \n \n \n \n \n \n \n );\n};\n\nexport default DecisionDialog;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Dialog, Paragraph, Row, Column, Button, useModal } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\nimport { OnSessionError } from '../../../shared/session/session-events';\nimport { updateMeta } from '../../auth/auth.actions';\nimport { META_AGENCY_SELECTED_NAME } from '../../../shared/constants/meta';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport MainLoader from '../../../shared/components/ui/MainLoader';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { withAuth } from '@8base/react-sdk';\nimport DecisionDialog from '../../../shared/components/dialog/DecisionDialog';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport PropTypes from 'prop-types';\n\n/**\n * Switch agency view\n *\n * @param {object} props - The component props object\n * @param {object} props.auth - The 8base auth object\n * @param {object} props.client - The 8base apollo client\n *\n * @returns {React.FC} The component to render\n */\nfunction SwitchAgencyView({ auth, client }) {\n const [user] = useUser();\n const [loading, setLoading] = useState(true);\n const { openModal, closeModal } = useModal('decision-dialog');\n\n useEffect(() => {\n const selectAgency = user.userAgencyUserRelation.items.find(({ agency }) => {\n const [subscription] = agency.company.subscriptions.items;\n\n return (\n subscription.status === SUBSCRIPTION_STATUS.ACTIVE ||\n subscription.status === SUBSCRIPTION_STATUS.TRIALING\n );\n });\n\n if (selectAgency) {\n const {\n agency: { id },\n } = selectAgency;\n updateMeta(META_AGENCY_SELECTED_NAME, id);\n } else {\n setLoading(false);\n }\n }, [user]);\n\n const handleLogout = useCallback(async () => {\n await client.clearStore();\n localStorage.clear();\n auth.authClient.logout();\n }, [client, auth]);\n\n const handleCancel = useCallback(() => {\n openModal('decision-dialog', {\n title: 'Logout',\n text: 'Are you sure you want to log out?',\n confirmText: 'Yes, logout',\n cancelText: 'Cancel',\n onClose: () => closeModal('decision-dialog'),\n onCancel: () => closeModal('decision-dialog'),\n onConfirm: () => handleLogout(),\n });\n }, [handleLogout, openModal, closeModal]);\n\n useSubscription(\n OnSessionError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n if (loading) return ;\n\n return (\n \n \n \n \n \n It looks like the service of the company you are trying to access haven not been paid,\n please contact the people in charge of this enterprise so they can put the service back\n on\n \n \n \n \n \n \n \n \n \n \n );\n}\n\nSwitchAgencyView.propTypes = {\n auth: PropTypes.shape({\n authClient: PropTypes.shape({\n logout: PropTypes.func.isRequired,\n }).isRequired,\n }).isRequired,\n client: PropTypes.shape({\n clearStore: PropTypes.func.isRequired,\n }).isRequired,\n};\n\nexport default withAuth(withApollo(SwitchAgencyView));\n","import React, { useState, useEffect } from 'react';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { withAuth } from '@8base/react-sdk';\nimport YesNoDialog from '../../shared/components/YesNoDialog';\nimport { fetchSession, updateMeta, skipInvitations } from '../auth/auth.actions';\nimport { META_AGENCY_SELECTED_NAME } from '../../shared/constants/meta';\nimport { OnSessionFetch } from '../../shared/session/session-events';\nimport { DialogInvitations } from './components/DialogInvitations';\nimport {\n declineAgencyInvitation,\n acceptAgencyInvitation,\n} from '../agency-invitation/agency-invitation-actions';\nimport {\n declineCompanyInvitation,\n acceptCompanyInvitation,\n} from '../company-invitation/company-invitation-actions';\nimport * as R from 'ramda';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport { getPendingInvitations } from '../../shared/utils/invitations-utils';\nimport {\n OnAcceptAgencyInvitationEvent,\n OnAgencyInvitationError,\n OnDeclineAgencyInvitationEvent,\n} from 'modules/agency-invitation/agency-invitation-events';\nimport {\n OnAcceptCompanyinvitationEvent,\n OnCompanyinvitationError,\n OnDeclineCompanyinvitationEvent,\n} from 'modules/company-invitation/company-invitation-events';\n\nconst InvitationsView = () => {\n const [isOpen] = useState(true);\n const [isLoading, setIsLoading] = useState(false);\n const [isSkipOpen, setIsSkipOpen] = useState(false);\n const [agencyInvitations, setAgencyInvitations] = useState([]);\n const [companyInvitations, setCompanyInvitations] = useState([]);\n\n const setInvitations = () => {\n const { agencyInvitationsList, companyInvitationsList } = OnSessionFetch.get();\n const [pendingAgencyInvitations, pendingCompanyInvitations] = getPendingInvitations(\n agencyInvitationsList,\n companyInvitationsList,\n );\n\n if (!pendingAgencyInvitations.length && !pendingCompanyInvitations.length) {\n return skipInvitations();\n }\n setIsLoading(false);\n setAgencyInvitations(agencyInvitationsList.items);\n setCompanyInvitations(companyInvitationsList.items);\n };\n\n const onSkipOpen = () => {\n setIsSkipOpen(true);\n };\n\n const onSkipClose = () => {\n setIsSkipOpen(false);\n };\n\n const onAcceptAgencyInvitation = (invitation) => {\n setIsLoading(true);\n acceptAgencyInvitation(R.clone(invitation));\n };\n\n const onDeclineAgencyInvitation = (invitation) => {\n setIsLoading(true);\n declineAgencyInvitation(R.clone(invitation));\n };\n\n const onAcceptCompanyInvitation = (invitation) => {\n setIsLoading(true);\n acceptCompanyInvitation(R.clone(invitation));\n };\n\n const onDeclineCompanyInvitation = (invitation) => {\n setIsLoading(true);\n\n declineCompanyInvitation(R.clone(invitation));\n };\n\n useSimpleSubscription(OnAgencyInvitationError, (err) => {\n if (err) {\n setIsLoading(false);\n onErrorMixinFC(err);\n }\n });\n\n useSimpleSubscription(OnAcceptAgencyInvitationEvent, async ({ agencyUser }) => {\n await updateMeta(META_AGENCY_SELECTED_NAME, agencyUser.agency.id);\n await fetchSession();\n setInvitations();\n });\n\n useSimpleSubscription(OnDeclineAgencyInvitationEvent, async (data) => {\n await fetchSession();\n setInvitations();\n });\n\n useSimpleSubscription(OnCompanyinvitationError, (err) => {\n if (err) {\n setIsLoading(false);\n onErrorMixinFC(err);\n }\n });\n\n useSimpleSubscription(\n OnAcceptCompanyinvitationEvent,\n async ({\n agencyUsersUpdate: {\n items: { 0: agencyUser },\n },\n }) => {\n await updateMeta(META_AGENCY_SELECTED_NAME, agencyUser.agency.id);\n await fetchSession();\n setInvitations();\n },\n );\n\n useSimpleSubscription(OnDeclineCompanyinvitationEvent, async () => {\n await fetchSession();\n setInvitations();\n });\n\n useEffect(() => {\n setInvitations();\n }, []);\n\n return (\n <>\n \n \n \n );\n};\nexport default withAuth(withApollo(InvitationsView));\n","import React from 'react';\nimport { useCompany } from '../../modules/company/company-hooks';\n\n/**\n * Higher order component that injects the current company\n *\n * @param {React.Component} WrappedComponent - The component to wrap\n *\n * @returns {React.Fc} The component to render\n */\nconst withCompany = (WrappedComponent) => (props) => {\n const company = useCompany();\n\n return ;\n};\n\nexport default withCompany;\n","import Rollbar from 'rollbar';\n\nexport const rollbar = new Rollbar({\n accessToken: process.env.REACT_APP_ROLLBAR_TOKEN,\n captureUncaught: true,\n captureUnhandledRejections: true,\n enabled: process.env.NODE_ENV === 'production',\n});\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { log } from '@cobuildlab/pure-logger';\nimport { compose } from 'recompose';\nimport { withRouter, Redirect } from 'react-router-dom';\nimport { View as SimpleView } from '@cobuildlab/react-simple-state';\nimport { withAuth } from '@8base/react-sdk';\nimport { SUBSCRIPTION_STATUS, COMPANY_STATUS } from '@cobuildlab/lead-volt-share';\nimport {\n OnSessionError,\n OnApolloClient,\n OnSessionFetch,\n OnMetaUpdate,\n OnInvitationsSkipped,\n OnSelectedAgencyChange,\n OnTokenExpired,\n} from '../session/session-events';\nimport CreateCompanyView from '../../modules/onboarding/CreateCompanyView';\nimport SwitchAgencyView from '../../modules/agency/components/SwitchAgencyView';\nimport InvitationsView from '../../modules/onboarding/InvitationsView';\nimport { fetchSession } from '../../modules/auth/auth.actions';\nimport withCompany from '../hoc/withCompany';\nimport MainLoader from './ui/MainLoader';\nimport { rollbar } from '../../shared/rollbar';\nimport { getUserAgencies } from '../../shared/utils/agency-utils';\nimport { getAdminCompanies } from '../../shared/utils/company-utils';\nimport { getPendingInvitations } from '../../shared/utils/invitations-utils';\nimport * as toast from '../../shared/components/toast/Toast';\n\nconst { CANCELED, UNPAID } = SUBSCRIPTION_STATUS;\nconst { ACTIVE } = COMPANY_STATUS;\n\n/**\n * User Session component\n */\nclass Session extends SimpleView {\n constructor(props) {\n super(props);\n\n this.state = {\n isLoading: true,\n sessionRequired: true,\n apolloRequired: true,\n skipInvitations: false,\n sessionError: false,\n systemHasError: false,\n rollbar,\n };\n\n this.throwError = this.throwError.bind(this);\n }\n\n static getDerivedStateFromError(error) {\n // Update the status so that the following rendering shows the spare interface\n return { systemHasError: true };\n }\n\n componentDidCatch(error, errorInfo) {\n if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {\n console.log(`Error: ${error}`);\n console.log(`ErrorInfo: ${JSON.stringify(errorInfo)}`);\n }\n\n toast.error(`${error}`);\n\n // Log the error to an error reporting service\n this.state.rollbar.error(error);\n }\n\n componentDidUpdate(prevProps) {\n const { data: prevComp } = prevProps.company;\n const { data: currComp } = this.props.company;\n\n /**\n * If the company is active but the subscription status\n * has changed to canceled, refresh the page\n */\n if (currComp && currComp.company && currComp.company.status === ACTIVE) {\n if (prevComp && prevComp.company) {\n const [prevSub] = prevComp.company.subscriptions.items;\n const [currSub] = currComp.company.subscriptions.items;\n\n if (prevSub.status !== currSub.status && currSub.status === CANCELED) {\n window.location.reload();\n }\n }\n }\n }\n\n async componentDidMount() {\n this.subscribe(OnSessionError, async (e) => {\n log('OnSessionError:message', e.message);\n\n setTimeout(async () => {\n this.setState({ sessionError: true });\n }, 5000);\n });\n\n this.subscribe(OnApolloClient, () => {\n this.setState({ apolloRequired: false }, fetchSession);\n });\n\n this.subscribe(OnTokenExpired, async () => {\n await this.props.client.clearStore();\n localStorage.clear();\n this.props.auth.authClient.logout();\n });\n\n this.subscribe(OnSessionFetch, async ({ user }) => {\n if (user.selectedAgency) {\n this.props.company.setCompany(user.selectedAgency.company.id);\n }\n\n this.setState({\n isLoading: false,\n sessionRequired: false,\n });\n });\n\n this.subscribe(OnSelectedAgencyChange, () => {\n fetchSession();\n });\n\n this.subscribe(OnInvitationsSkipped, () => {\n this.setState({\n skipInvitations: true,\n });\n });\n\n this.subscribe(OnMetaUpdate, fetchSession);\n\n return OnApolloClient.dispatch(this.props.client);\n }\n\n throwError(msg) {\n throw new Error(msg);\n }\n\n render() {\n const {\n apolloRequired,\n sessionRequired,\n skipInvitations,\n systemHasError,\n sessionError,\n isLoading,\n } = this.state;\n\n if (!this.props.auth.isAuthorized) {\n return ;\n }\n\n if (systemHasError) return null;\n\n if (sessionError && (apolloRequired || sessionRequired)) {\n return this.props.children;\n }\n\n if (apolloRequired || sessionRequired || isLoading) return ;\n\n /**\n * Handle user with no company or agency\n */\n const session = OnSessionFetch.get();\n const agencies = getUserAgencies();\n let company = getAdminCompanies().find((company) => company.status === 'PENDING');\n\n const [agencyInvitations, companyInvitations] = getPendingInvitations(\n session.agencyInvitationsList,\n session.companyInvitationsList,\n );\n\n if (!skipInvitations && (agencyInvitations.length > 0 || companyInvitations.length > 0))\n return ;\n\n if (agencies.length === 0) return ;\n\n if (company) return ;\n\n /**\n * Handle user with subscription not paid or failed\n *\n * 1. Get the status of the subscription and invoice\n * in the company he has selected\n */\n company = session.user.selectedAgency.company;\n const { location } = this.props;\n const [subscription] = company.subscriptions.items;\n\n if (subscription.status === UNPAID || subscription.status === CANCELED) {\n const isAdmin = getAdminCompanies().some((c) => c.id === company.id);\n\n /**\n * 2. If the status on the subscription is different than \"active\" or trialing\n * and he is an admin, redirect him to the billing view; if he is not\n * an admin, then change its selected agency\n */\n if (isAdmin) {\n if (location.pathname !== '/settings/billing') {\n return ;\n }\n } else {\n return ;\n }\n }\n\n return this.props.children;\n }\n}\n\nSession.propTypes = {\n client: PropTypes.any.isRequired,\n children: PropTypes.any.isRequired,\n};\n\nexport default compose(withRouter, withAuth, withApollo, withCompany)(Session);\n","import React from 'react'; // eslint-disable-line @typescript-eslint/no-use-before-define\nimport { Dropdown } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst StyledBody = styled(Dropdown.Body)`\n ${({ left }) => left && `left: ${left} !important;`}\n`;\n\ntype Props = {\n pin?: string;\n left?: string;\n children: React.ReactNode;\n closeOnClickOutside?: boolean;\n};\n\nconst DropdownBodyOnTable: React.FC = ({ children, left, closeOnClickOutside, pin }) => {\n return (\n \n {children}\n \n );\n};\n\nDropdownBodyOnTable.defaultProps = {\n pin: 'right',\n left: undefined,\n closeOnClickOutside: true,\n};\n\nexport { DropdownBodyOnTable };\n","import styled from 'styled-components';\n\nexport const TextEllipsis = styled.p`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n","import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Table as BoostTable,\n Menu,\n Icon,\n Checkbox,\n Pagination,\n Dropdown,\n Text,\n} from '@8base/boost';\nimport styled from 'styled-components';\nimport { DropdownBodyOnTable } from '../ui/dropdowns/DropdownBodyOnTable';\nimport { IconSort } from '../ui/Icons';\nimport { TextEllipsis } from '../ui/text/TextEllipsis';\n\nconst Table = styled(BoostTable)`\n & div[role='loader'] > div[role='loader'] div {\n border-color: #3db4aa !important;\n }\n`;\n\nconst Body = styled(Table.Body)`\n min-height: 500px;\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst ActionsCell = styled(Table.BodyCell)`\n display: flex;\n justify-content: flex-start !important;\n`;\n\nconst StyledCell = styled(Table.BodyCell)`\n padding: 8px 16px !important;\n`;\n\nconst CustomHeaderCell = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 16px !important;\n padding-right: 6px !important;\n`;\n\nconst DataTable = ({\n data,\n Actions,\n columns,\n isLoading,\n columnsSize,\n dropdownOptions,\n withCheck,\n withLabelActions,\n withPagination,\n withIconSort,\n ignoreColumns,\n leftDropdown,\n}) => {\n const paginationCtnRef = useRef();\n\n return (\n \n \n {withCheck && (\n \n \n \n )}\n {columns.map((column, index) => {\n return (\n \n {column.name}\n {withIconSort && }\n \n );\n })}\n {withLabelActions ? 'Actions' : ''}\n \n \n {(row, index) => (\n \n {withCheck && (\n \n \n \n )}\n {Object.keys(row)\n .filter((key) => ignoreColumns.indexOf(key) === -1)\n .map((key, index) => {\n if (columns[index] && columns[index].customBodyRender !== undefined) {\n const { customBodyRender } = columns[index];\n const CustomCellValue = customBodyRender(row, row[key]);\n\n return (\n \n \n \n );\n }\n return (\n \n {row[key]}\n \n );\n })}\n \n {Actions && }\n \n \n \n \n \n {() => (\n \n {dropdownOptions.map((option, index) => (\n option.onClick(row.id)} key={index}>\n {option.name}\n \n ))}\n \n )}\n \n \n \n \n )}\n \n {withPagination && (\n \n \n \n \n \n )}\n
    \n );\n};\n\nDataTable.propTypes = {\n leftDropdown: PropTypes.string,\n ignoreColumns: PropTypes.array,\n data: PropTypes.array.isRequired,\n Actions: PropTypes.func.isRequired,\n columns: PropTypes.array.isRequired,\n isLoading: PropTypes.bool.isRequired,\n withCheck: PropTypes.bool.isRequired,\n withIconSort: PropTypes.bool.isRequired,\n columnsSize: PropTypes.string.isRequired,\n withPagination: PropTypes.bool.isRequired,\n withLabelActions: PropTypes.bool.isRequired,\n dropdownOptions: PropTypes.array.isRequired,\n};\n\nDataTable.defaultProps = {\n ignoreColumns: [],\n leftDropdown: '0px',\n};\n\nexport default DataTable;\n","import { Link } from 'react-router-dom';\nimport styled from 'styled-components';\n\nconst CustomLink = styled(Link)`\n opacity: 0.9;\n color: #3db4aa;\n font-family: 'Poppins';\n font-size: 14px;\n line-height: 21px;\n text-decoration: none;\n`;\n\nexport default CustomLink;\n","import PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Margin = styled.div`\n ${(props) => {\n const { top, right, left, bottom } = props;\n\n return `\n margin: ${top} ${right} ${bottom} ${left};\n `;\n }}\n`;\n\nMargin.propTypes = {\n top: PropTypes.string,\n right: PropTypes.string,\n left: PropTypes.string,\n bottom: PropTypes.string,\n};\n\nMargin.defaultProps = {\n top: '0px',\n right: '0px',\n left: '0px',\n bottom: '0px',\n};\n\nexport default Margin;\n","import React from 'react';\nimport { Card as BoostCard, Heading } from '@8base/boost';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport CustomLink from './ui/CustomLink';\nimport Margin from './ui/Margin';\n\nconst StyledHeading = styled(Heading)`\n color: #3db4aa;\n font-size: 60px;\n line-height: 70px;\n font-family: 'Poppins';\n @media (max-width: 1400px) {\n font-size: 45px;\n line-height: 50px;\n }\n`;\n\nconst Text = styled.p`\n color: #323c47;\n font-family: 'Poppins';\n font-weight: 600;\n line-height: 22px;\n @media (min-width: 1400px) {\n font-size: 16px;\n }\n`;\n\nconst Card = styled(BoostCard)`\n flex: 1 1 200px;\n margin: 4px !important;\n`;\n\nconst CardIndicator = ({ title, text, link }) => {\n return (\n \n \n {title}\n {text}\n \n {link.name}\n \n \n \n );\n};\n\nCardIndicator.propTypes = {\n link: PropTypes.object.isRequired,\n text: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n};\n\nexport default CardIndicator;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Heading, Grid } from '@8base/boost';\nimport styled from 'styled-components';\nimport CustomLink from '../ui/CustomLink';\n\nconst StyledLayout = styled(Grid.Layout)`\n padding: 16px 24px;\n\n a {\n text-align: right;\n margin-top: 0px !important;\n }\n`;\n\nconst StyledHeading = styled(Heading)`\n font-family: 'Poppins';\n font-weight: 600 !important;\n line-height: 28px !important;\n font-size: 16px !important;\n color: #323c47 !important;\n`;\n\nconst TableHeader = ({ title, link }) => {\n return (\n \n \n {title}\n \n {link && (\n \n {link.name}\n \n )}\n \n );\n};\n\nTableHeader.propTypes = {\n link: PropTypes.object,\n title: PropTypes.string.isRequired,\n};\nTableHeader.defaultProps = {\n link: { path: '', name: '' },\n};\nexport default TableHeader;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst PaperHeaderContainer = styled.div`\n padding: 16px 24px;\n border-bottom: 1px solid #eaf0f5;\n`;\n\nconst PaperHeader = ({ children }) => {\n return {children};\n};\n\nPaperHeader.propTypes = {\n children: PropTypes.any.isRequired,\n};\n\nexport default PaperHeader;\n","import React from 'react';\nimport { Text } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\n/**\n * Styled title into the card\n */\nconst StyledTitle = styled(Text)`\n font-family: Poppins;\n font-size: 16px;\n line-height: 28px;\n color: #323c47;\n font-weight: 600;\n\n & first-letter {\n text-transform: capitalize;\n }\n`;\n\nconst Title = ({ children }) => {\n return {children};\n};\n\nTitle.propTypes = {\n children: PropTypes.any.isRequired,\n};\n\nexport { Title };\n","import React from 'react';\nimport { Icon } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst Btn = styled.button`\n box-sizing: border-box;\n height: 36px;\n width: 36px;\n border: 1px solid #e2e9ef;\n border-radius: 4px;\n background-color: #ffffff;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n`;\n\nconst PlusBtn = (props) => {\n return (\n \n \n \n );\n};\n\nexport default PlusBtn;\n","import React from 'react';\nimport { Card, Column, Text } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\nimport moment from 'moment';\nimport styled from 'styled-components';\n\nconst PointerCard = styled(Card)`\n margin: 11px !important;\n cursor: pointer;\n width: 60px;\n height: 108px;\n border: 1px solid ${({ active }) => (active ? '#3DB4AA' : '#EAEFF3')};\n border-radius: 8px;\n background-color: #ffffff;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.06);\n @media screen and (max-width: 1400px) {\n margin-right: 8px !important;\n margin-left: 8px !important;\n }\n @media screen and (max-width: 1300px) {\n width: 50px;\n height: 90px;\n }\n\n @media screen and (max-width: 600px) {\n width: 40px;\n height: 90px;\n margin-right: 5px !important;\n margin-left: 5px !important;\n }\n`;\n\nconst Bar = styled.div`\n width: ${({ width }) => width};\n height: ${({ width }) => width};\n border-radius: 15px;\n background-color: ${({ active }) => (active ? '#3DB4AA' : '')};\n margin: 0 0 7px 0 !important;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst DayComponent = ({ points, active, weekday, date, day, width, onClick }) => {\n const dateToSelect = moment(date).format('YYYY-MM-DD');\n const pointsBackgrounds = ['#3DB4AA', '#F6C01E', '#F46800', '#FF0000', '#9B9B9B'];\n\n return (\n onClick(dateToSelect)}>\n \n \n \n {weekday}\n \n \n \n {day}\n \n \n {points.length > 0\n ? points.map((point, index) => (\n \n ))\n : null}\n \n \n \n );\n};\n\nDayComponent.defaultProps = {\n width: '30px',\n points: 0,\n};\n\nDayComponent.propTypes = {\n points: PropTypes.array,\n width: PropTypes.string,\n date: PropTypes.string.isRequired,\n weekday: PropTypes.string.isRequired,\n day: PropTypes.string.isRequired,\n active: PropTypes.bool.isRequired,\n onClick: PropTypes.func.isRequired,\n};\n\nexport default DayComponent;\n","import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport DayComponent from './DayComponent';\nimport rightArrow from '../../assets/images/right-arrow.svg';\nimport leftArrow from '../../assets/images/left-arrow.svg';\nimport moment from 'moment';\n\nconst WeekComponent = ({ week, selectedDay, onRightClick, onLeftClick, onSelectDay, tasks }) => {\n return (\n <>\n \n {week.map((day, key) => {\n const active = day.fullDate === selectedDay;\n const pointsActives = [];\n const pointsInActives = [];\n tasks.forEach((task) => {\n if (moment(task.date).format('YYYY-MM-DD') === day.fullDate && pointsActives.length < 3) {\n pointsActives.push(task.priority);\n }\n if (\n moment(task.date).format('YYYY-MM-DD') === day.fullDate &&\n pointsInActives.length < 3\n ) {\n pointsInActives.push(4);\n }\n });\n\n return (\n \n );\n })}\n \n \n );\n};\n\nWeekComponent.propTypes = {\n week: PropTypes.array.isRequired,\n selectedDay: PropTypes.string.isRequired,\n onLeftClick: PropTypes.func.isRequired,\n onRightClick: PropTypes.func.isRequired,\n onSelectDay: PropTypes.func.isRequired,\n tasks: PropTypes.array.isRequired,\n};\n\nexport default WeekComponent;\n","import React from 'react';\nimport { Loader as BoostLoader } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst LoaderContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 10px 0px;\n`;\n\nconst SmallLoader = () => {\n return (\n \n \n \n );\n};\n\nexport default SmallLoader;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Table, Menu, Icon, Dropdown, Text } from '@8base/boost';\nimport styled from 'styled-components';\nimport { DropdownBodyOnTable } from '../ui/dropdowns/DropdownBodyOnTable';\n\nimport SmallLoader from '../ui/SmallLoader';\nimport { TextEllipsis } from '../ui/text/TextEllipsis';\n\nconst TableBody = styled(Table.Body)`\n max-height: 60vh;\n\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nconst ActionsCell = styled(Table.BodyCell)`\n display: flex;\n justify-content: space-between !important;\n`;\n\nconst StyledCell = styled(Table.BodyCell)`\n padding: 0px 24px !important;\n`;\n\nconst CustomHeaderCell = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 24px !important;\n padding-right: 6px !important;\n font-weight: 700 !important;\n`;\n\nconst StyledBodyRow = styled(Table.BodyRow)`\n min-height: 37px !important;\n`;\n\nconst StyledHeader = styled(Table.Header)`\n height: 37px !important;\n`;\n\nconst TableLite = ({\n data,\n Actions,\n columns,\n isLoading,\n columnsSize,\n dropdownOptions,\n ignoreColumns,\n leftDropdown,\n}) => {\n return (\n \n \n {columns.map((column, index) => {\n return (\n \n {column.name}\n \n );\n })}\n {''}\n \n {isLoading ? (\n \n ) : (\n \n {(row, index) => (\n \n {Object.keys(row)\n .filter((key) => ignoreColumns.indexOf(key) === -1)\n .map((key, index) => {\n if (columns[index] && columns[index].customBodyRender !== undefined) {\n const { customBodyRender } = columns[index];\n const CustomCellValue = customBodyRender(row, row[key]);\n\n return (\n \n \n \n );\n }\n\n return (\n \n {row[key]}\n \n );\n })}\n \n {Actions && }\n \n \n \n \n \n {() => (\n \n {dropdownOptions.map((option, index) => (\n option.onClick(row.id)} key={index}>\n {option.name}\n \n ))}\n \n )}\n \n \n \n \n )}\n \n )}\n
    \n );\n};\n\nTableLite.propTypes = {\n Actions: PropTypes.func,\n leftDropdown: PropTypes.string,\n ignoreColumns: PropTypes.array,\n data: PropTypes.array.isRequired,\n columns: PropTypes.array.isRequired,\n isLoading: PropTypes.bool.isRequired,\n columnsSize: PropTypes.string.isRequired,\n dropdownOptions: PropTypes.array.isRequired,\n};\n\nTableLite.defaultProps = {\n ignoreColumns: [],\n leftDropdown: '0px',\n Actions: null,\n};\n\nexport default TableLite;\n","import gql from 'graphql-tag';\n/**\n * Query the current users details.\n */\nexport const CURRENT_USER_QUERY = gql`\n query {\n user {\n id\n email\n lastName\n firstName\n }\n }\n`;\n/**\n * Sign up a new user mutation.\n */\nexport const USER_SIGN_UP_MUTATION = gql`\n mutation UserSignUp($user: UserCreateInput!, $authProfileId: ID) {\n userSignUpWithToken(user: $user, authProfileId: $authProfileId) {\n id\n email\n }\n }\n`;\n","import React from 'react';\nimport { compose } from 'recompose';\nimport { withAuth } from '@8base/react-sdk';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport { Query } from '@apollo/client/react/components';\nimport styled from 'styled-components';\nimport { CURRENT_USER_QUERY } from '../../../graphql';\nimport PropTypes from 'prop-types';\n\nconst Button = styled.button`\n cursor: pointer;\n font-size: 12px;\n`;\n\nclass AuthBtn extends React.Component {\n constructor(props) {\n super(props);\n\n this.renderContent = this.renderContent.bind(this);\n }\n\n renderContent({ loading }) {\n const { auth, client } = this.props;\n\n if (loading) {\n return null;\n }\n\n const Logout = () => (\n {\n await client.clearStore();\n auth.authClient.logout();\n }}>\n Logout\n \n );\n const Login = () => ;\n\n return <>{auth.isAuthorized ? : };\n }\n\n render() {\n return {this.renderContent};\n }\n}\n\nAuthBtn.propTypes = {\n client: PropTypes.shape({\n clearStore: PropTypes.func.isRequired,\n }).isRequired,\n auth: PropTypes.shape({\n isAuthorized: PropTypes.bool.isRequired,\n authClient: PropTypes.shape({\n logout: PropTypes.func.isRequired,\n authorize: PropTypes.func.isRequired,\n }).isRequired,\n }).isRequired,\n};\n\nexport default compose(withApollo, withAuth)(AuthBtn);\n","import React from 'react';\nimport { Button, Text } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\nconst StyledButton = styled(Button)`\n box-sizing: border-box;\n height: 36px;\n border: 1px solid #d0d7dd;\n opacity: 0.9;\n border-radius: 5px;\n background-color: #ffffff;\n padding: 0px 16px !important;\n width: auto;\n\n &:hover {\n background-color: #ffffff;\n border: 1px solid #d0d7dd;\n }\n`;\n\nconst StyledText = styled(Text)`\n height: 18px;\n opacity: 0.9;\n color: #323c47;\n font-family: Poppins;\n font-size: 13px;\n line-height: 18px;\n text-align: center;\n font-weight: 600;\n\n & first-letter {\n text-transform: capitalize;\n }\n`;\n\nconst ButtonIcon = ({ onClick, text = '', iconSvg, ...rest }) => {\n return (\n \n \"Lead\n {text}\n \n );\n};\n\nButtonIcon.propTypes = {\n onClick: PropTypes.func,\n text: PropTypes.string,\n iconSvg: PropTypes.string.isRequired,\n};\n\nButtonIcon.defaultProps = {\n text: '',\n onClick: () => {},\n};\n\nexport { ButtonIcon };\n","import React from 'react';\nimport { Button, Text } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\n/**\n *\n * @param props\n * @returns {*}\n * @class\n */\n\nconst StyledButton = styled(Button)`\n box-sizing: border-box;\n height: 36px;\n border: 1px solid #d0d7dd;\n opacity: 0.9;\n border-radius: 5px;\n background-color: #ffffff;\n width: auto !important;\n padding: 0px 16px !important;\n\n &:hover {\n background-color: #ffffff;\n border: 1px solid #d0d7dd;\n }\n`;\n\nconst StyledText = styled(Text)`\n height: 18px;\n opacity: 0.9;\n color: #323c47;\n font-family: Poppins;\n font-size: 13px;\n line-height: 18px;\n text-align: center;\n font-weight: 600;\n\n & first-letter {\n text-transform: capitalize;\n }\n`;\n\nconst ButtonWithoutIcon = ({ onClick, text = '', ...rest }) => {\n return (\n \n {text}\n \n );\n};\n\nButtonWithoutIcon.propTypes = {\n onClick: PropTypes.func.isRequired,\n text: PropTypes.string,\n};\n\nButtonWithoutIcon.defaultProps = {\n text: '',\n};\n\nexport { ButtonWithoutIcon };\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport moment from 'moment';\nimport { PropTypes } from 'prop-types';\n\nconst DateContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n`;\n\nconst DateBox = ({ date }) => {\n return (\n \n

    {moment(date).format('MM-DD-YYYY')}

    \n

    {moment(date).format('LT')}

    \n
    \n );\n};\n\nDateBox.propTypes = {\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date)]).isRequired,\n};\n\nexport default DateBox;\n","import { Text } from '@8base/boost';\nimport styled from '@emotion/styled';\n\nexport const TextContact = styled(Text)`\n font-family: Poppins;\n font-size: 13px;\n line-height: 20px;\n color: #3db4aa;\n text-align: right;\n font-weight: 400;\n\n &:first-letter {\n text-transform: capitalize;\n }\n`;\nexport const TextContactHeader = styled(Text)`\n font-family: Poppins;\n font-size: 10px;\n line-height: 20px;\n color: #3db4aa;\n text-align: right;\n font-weight: 300;\n\n &:first-letter {\n text-transform: capitalize;\n }\n`;\n","import React from 'react';\nimport { Text } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\n/**\n * Styled text into the table\n */\n\nconst StyledText = styled(Text)`\n font-family: Poppins;\n font-size: 13px;\n line-height: 20px;\n color: #323c47;\n text-align: right;\n font-weight: 400;\n & first-letter {\n text-transform: capitalize;\n }\n`;\n\nconst TextTable = ({ children }) => {\n return {children};\n};\n\nTextTable.propTypes = {\n children: PropTypes.any.isRequired,\n};\n\nexport { TextTable };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst colorsAndText = {\n 1: { text: 'Lo-Priority', textColor: '#3DB4AA', bg: 'rgba(61,180,170,0.1)' },\n 2: { text: 'Mid-Priority', textColor: '#F6C01E', bg: 'rgba(246,192,30,0.15)' },\n 3: { text: 'Hi-Priority', textColor: '#eb7734', bg: 'rgba(235, 119, 52, 0.1)' },\n 4: { text: 'Very Hi-Priority', textColor: '#FF0000', bg: 'rgba(255,0,0,0.08)' },\n 5: { text: 'Paid', textColor: '#3DB4AA', bg: 'rgba(61,180,170,0.1)' },\n 6: { text: 'Processing', textColor: '#1E87F6', bg: 'rgba(30, 195, 246, 0.15)' },\n 7: { text: 'Attention Required', textColor: '#FF0000', bg: 'rgba(255,0,0,0.08)' },\n};\nconst Badge = styled.span`\n opacity: 0.9;\n color: ${({ priority }) => colorsAndText[priority].textColor};\n font-family: 'Poppins';\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n box-sizing: border-box;\n padding: 0 10px;\n height: 26px;\n min-width: 110px;\n border: 1px solid ${({ priority }) => colorsAndText[priority].textColor};\n border-radius: 20px;\n background-color: ${({ priority }) => colorsAndText[priority].bg};\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n @media screen and (max-width: 1440px) {\n font-size: 10px;\n }\n`;\n\nconst PriorityBadge = ({ priority }) => {\n const priorityPos = priority === null || priority === undefined || priority > 7 ? 1 : priority;\n console.log('DEBUG', priority, priorityPos);\n return (\n \n {colorsAndText[priorityPos].text}\n \n );\n};\n\nPriorityBadge.propTypes = {\n priority: PropTypes.number.isRequired,\n};\n\nexport default PriorityBadge;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Heading, Paper, Row } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst StyledHeading = styled(Heading)`\n opacity: 0.9;\n color: #323c47 !important;\n font-family: 'Poppins';\n font-size: 22px !important;\n line-height: 24px !important;\n padding: 16px 16px 15px 24px;\n font-weight: 600 !important;\n margin-right: 0px !important;\n white-space: nowrap;\n`;\n\n/**\n * Title for details views\n *\n * @param {object} props component props\n * @param {React.Component} props.children component children\n *\n * @returns {React.FC} The react component\n */\nconst TitleDetail = ({ text, children }) => {\n return (\n \n \n {text}\n {children}\n \n \n );\n};\n\nTitleDetail.propTypes = {\n children: PropTypes.element,\n text: PropTypes.string.isRequired,\n};\n\nTitleDetail.defaultProps = {\n children: null,\n};\n\nexport default TitleDetail;\n","import React from 'react';\nimport { Text } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\nconst StyledText = styled(Text)`\n height: 19px;\n color: #323c47;\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 13px;\n line-height: 20px;\n`;\n\nconst SecondaryTitle = ({ children }) => {\n return {children};\n};\n\nSecondaryTitle.propTypes = {\n children: PropTypes.any.isRequired,\n};\n\nexport { SecondaryTitle };\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Icon } from '@8base/boost';\r\nimport styled from 'styled-components';\r\n\r\nconst Btn = styled.button`\r\n box-sizing: border-box;\r\n height: 36px;\r\n padding: 0px 5px;\r\n ${({ stretch }) => (stretch ? 'width: 100%;' : '')};\r\n border: 1px solid #cfd7de;\r\n border-radius: 4px;\r\n background-color: #ffffff;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: ${({ disabled }) => {\r\n return disabled ? 'not-allowed;' : 'pointer';\r\n }};\r\n &:hover {\r\n box-shadow: 0 2px 4px 0 rgba(50, 50, 93, 0.2);\r\n }\r\n &:active {\r\n box-shadow: inset 0 1px 3px 0 rgba(50, 50, 93, 0.14), inset 0 4px 6px 0 rgba(51, 80, 107, 0.08);\r\n }\r\n > span:not(:last-child) {\r\n margin-right: 5px;\r\n }\r\n`;\r\n\r\nconst BtnText = styled.span`\r\n color: #3db4aa;\r\n font-size: 1.4rem;\r\n font-weight: 600;\r\n line-height: 2rem;\r\n`;\r\n\r\nconst CreateButton = (props) => {\r\n return (\r\n \r\n \r\n {props.text}\r\n \r\n );\r\n};\r\n\r\nCreateButton.propTypes = {\r\n color: PropTypes.string.isRequired,\r\n size: PropTypes.string.isRequired,\r\n onClick: PropTypes.func.isRequired,\r\n text: PropTypes.string.isRequired,\r\n};\r\n\r\nexport default CreateButton;\r\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Button } from '@8base/boost';\n\nconst StyledButton = styled(Button)`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 36px !important;\n font-weight: normal !important;\n`;\n\nconst Icon = styled.img`\n max-width: 100%;\n object-fit: contain;\n margin-right: 2px;\n`;\n\nconst FilterBtn = ({ onClick }) => {\n return (\n \n \n Filters\n \n );\n};\n\nFilterBtn.propTypes = {\n onClick: PropTypes.func.isRequired,\n};\n\nexport default FilterBtn;\n","import React, { ReactNode, useMemo } from 'react';\nimport { Button as BoostButton, Text } from '@8base/boost';\nimport styled from 'styled-components';\nimport { IconFilterGrey, IconFilterGreen } from 'shared/components/ui/Icons';\n\nconst StyledButton = styled(BoostButton)`\n padding: 0 10px !important;\n ${(props) => props.isOpen && 'border-color: #3db4aa !important;'}\n\n & > *:not(:last-child) {\n margin-right: 4px !important;\n }\n`;\n\n/**\n * Button component for filtering with focus styles.\n *\n * @param {object} props - Component props.\n * @param {boolean} props.isOpen - Wheter the button is active or not.\n * @param {React.MouseEventHandler} [props.onClick] - Action to perform when clicking the button.\n * @returns {ReactNode} Button component.\n */\nexport default function FilterButtonWithFocus({ isOpen, onClick }) {\n const icon = useMemo(() => {\n return isOpen ? : ;\n }, [isOpen]);\n\n return (\n \n {icon} Filters\n \n );\n}\n","import React from 'react';\nimport { Button } from '@8base/boost';\nimport styled from 'styled-components';\n\nconst StyledButton = styled(Button)`\n display: flex;\n align-items: center;\n border-radius: 5px;\n border: solid 1px #d0d7dd;\n background-color: #fff;\n padding: 0.7rem;\n box-sizing: border-box;\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n`;\n\nconst Icon = styled.img`\n width: 2rem;\n height: 2rem;\n margin-right: 2px;\n`;\n\nconst SortBtn = () => {\n return (\n \n \n \n );\n};\n\nexport default SortBtn;\n","import React from 'react';\nimport { Input } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\nimport searchIcon from '../../../assets/images/Search-dark.svg';\n\nimport styled from 'styled-components';\n\nconst SearchIcon = styled.img`\n cursor: pointer;\n transition: all 0.2s;\n &:active {\n transform: translateY(2px);\n }\n`;\n\nconst SearchInput = ({ onIconClick, onChange, ...rest }) => {\n return (\n }\n {...rest}\n />\n );\n};\n\nSearchInput.propTypes = {\n onChange: PropTypes.func.isRequired,\n onIconClick: PropTypes.func.isRequired,\n};\n\nexport default SearchInput;\n","import PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Padding = styled.div`\n ${(props) => {\n const { top, right, left, bottom, width } = props;\n\n return `\n padding: ${top} ${right} ${bottom} ${left};\n width: ${width};\n `;\n }}\n`;\n\nPadding.propTypes = {\n top: PropTypes.string,\n right: PropTypes.string,\n left: PropTypes.string,\n bottom: PropTypes.string,\n};\n\nPadding.defaultProps = {\n top: '0px',\n right: '0px',\n left: '0px',\n bottom: '0px',\n width: 'auto',\n};\n\nexport default Padding;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, SelectField } from '@8base/boost';\nimport SearchInput from '../ui/inputs/SearchInput';\nimport FilterBtn from '../ui/buttons/FilterBtn';\nimport styled from 'styled-components';\nimport { ButtonIcon } from '../ui/buttons/ButtonIcon';\nimport Margin from '../ui/Margin';\n\nconst StyledLayout = styled(Grid.Layout)`\n padding: 16px;\n`;\n\nconst StyledBox = styled(Grid.Box)`\n display: grid;\n align-items: flex-end;\n justify-content: flex-end;\n flex-direction: row !important;\n`;\n\nconst TableToolBar = ({\n searchPlaceholder,\n selectSortByProps = {\n value: '',\n options: [],\n stretch: false,\n },\n buttonCreateProps = {\n text: 'Create',\n },\n}) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nTableToolBar.propTypes = {\n selectSortByProps: PropTypes.object.isRequired,\n searchPlaceholder: PropTypes.string.isRequired,\n buttonCreateProps: PropTypes.object.isRequired,\n};\n\nexport default TableToolBar;\n","import React from 'react';\nimport { Avatar as BoostAvatar } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Avatar = styled(BoostAvatar)`\n border: 1px solid #9b9b9b;\n`;\n\nconst Slide = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n position: relative;\n margin-top: 16px;\n`;\n\nconst Performance = styled.span`\n width: 114px;\n color: #3db4aa;\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 16px;\n line-height: 28px;\n text-align: center;\n margin-top: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst Name = styled.span`\n min-height: 24px;\n width: 120px;\n opacity: 0.9;\n color: #323c47;\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 16px;\n text-align: center;\n white-space: break-spaces;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst positions = {\n '1': {\n textColor: '#D09D07',\n bgColor: '#F6C01E',\n },\n '2': {\n textColor: '#9B9B9B',\n bgColor: '#DBDBDB',\n },\n '3': {\n textColor: '#AB5D1D',\n bgColor: '#DE953D',\n },\n};\n\nconst Position = styled.div`\n width: 20px;\n height: 20px;\n font-family: 'Poppins';\n font-size: 12px;\n font-weight: bold;\n line-height: 28px;\n text-align: center;\n position: absolute;\n left: calc(50% - 10px);\n top: -10px;\n color: ${({ value }) => positions[value].textColor};\n background-color: ${({ value }) => positions[value].bgColor};\n border: 1px solid ${({ value }) => positions[value].textColor};\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 10;\n`;\n\nconst AgentSlide = ({ imgUrl, firstName, lastName, performance, position }) => {\n return (\n \n {position > 0 && (\n \n {position}\n \n )}\n \n {performance}\n {firstName}\n \n );\n};\n\nAgentSlide.propTypes = {\n position: PropTypes.number,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n imgUrl: PropTypes.string.isRequired,\n performance: PropTypes.string.isRequired,\n};\n\nAgentSlide.defaultProps = {\n position: 0,\n};\n\nexport default AgentSlide;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Dialog, Button } from '@8base/boost';\nimport { PrimaryBtn } from '../ui/buttons/PrimaryBtn';\nimport styled from 'styled-components';\n\nconst Body = styled(Dialog.Body)`\n &::-webkit-scrollbar {\n display: none;\n }\n min-height: 30vh;\n`;\n\nconst StyledButton = styled.button`\n color: #323c47;\n text-decoration: none;\n height: 50px;\n width: 100%;\n padding-left: 24px;\n display: flex;\n align-items: center;\n text-align: center;\n ${(props) =>\n props.active\n ? `\n color: #3db4aa;\n border-top: 2.5px solid #3db4aa;\n `\n : ''}\n &:hover {\n color: #3db4aa;\n border-top: 2.5px solid #3db4aa;\n }\n`;\n\nconst Tab = styled.div`\n display: flex;\n justify-content: space-around;\n`;\n\nconst Show = styled.div`\n ${(props) => (props.active ? 'display:inhereit' : 'display:none')}\n`;\n\nconst DialogForm = ({\n title,\n isOpen,\n createText,\n children,\n onCloseDialog,\n onClickCreate,\n isLoading,\n size,\n tabs = [''],\n}) => {\n const [tabSelected, setTabSelected] = useState(0);\n if (tabs.length > 0) {\n const views = tabs.map((tab, idx) => {\n // eslint-disable-next-line\n return (selected) => {\n return {children[idx]};\n };\n });\n return (\n \n \n {tabs.map((tab, idx) => (\n setTabSelected(idx)}>\n {tab}\n \n ))}\n \n {views.map((view) => view(tabs[tabSelected]))}\n \n \n \n {createText}\n \n \n \n );\n }\n return (\n \n \n {children}\n \n \n \n {createText}\n \n \n \n );\n};\n\nDialogForm.defaultProps = {\n size: 'lg',\n createText: 'Create',\n isLoading: false,\n title: '',\n tabs: [],\n};\n\nDialogForm.propTypes = {\n size: PropTypes.string,\n createText: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n title: PropTypes.string,\n children: PropTypes.node.isRequired,\n onClickCreate: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n isLoading: PropTypes.bool,\n tabs: PropTypes.array,\n};\n\nexport default DialogForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slider from 'react-slick';\nimport AgentSlide from './AgentSlide';\nimport { IconRightArrow, IconLeftArrow } from '../ui/Icons';\nimport styled from 'styled-components';\nimport { Loader } from 'shared/components';\n\nconst Arrow = styled.div`\n top: 45% !important;\n\n &::before {\n display: none !important;\n }\n`;\n\nconst Container = styled.div`\n width: 100%;\n max-width: 550px;\n`;\n\nconst NextArrow = (props) => {\n return (\n \n \n \n );\n};\n\nconst PrevArrow = (props) => {\n return (\n \n \n \n );\n};\n\nconst AgentsSlider = ({ performers, isLoading }) => {\n const settings = {\n variableWidth: false,\n dots: false,\n infinite: false,\n slidesToShow: 5,\n slidesToScroll: 1,\n nextArrow: ,\n prevArrow: ,\n };\n\n return (\n \n \n {isLoading ? (\n \n ) : (\n performers.map((user, i) => (\n 2 ? null : i + 1}\n performance={'$' + new Intl.NumberFormat('en-US').format(user.performance)}\n />\n ))\n )}\n \n \n );\n};\n\nAgentsSlider.propTypes = {\n performers: PropTypes.array.isRequired,\n isLoading: PropTypes.bool.isRequired,\n};\n\nexport default AgentsSlider;\n","import React from 'react';\nimport { Label, Icon, Avatar } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Margin } from 'shared/components';\nimport Select, { components } from 'react-select';\n\nconst CustomMultiValueContainer = styled.span`\n padding: 5px;\n display: flex;\n height: 42px;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border: 1px solid #d0d7dd;\n border-radius: 5px;\n background-color: #ffffff;\n margin-right: 10px;\n cursor: pointer;\n margin-bottom: 10px;\n`;\n\nconst CustomOption = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst CustomLabel = styled(Label)`\n cursor: pointer !important;\n margin-left: 5px !important;\n`;\n\nconst MultiValueContainer = (props) => {\n return (\n \n \n \n );\n};\n\nconst MultiValueLabel = (props) => {\n return (\n <>\n \n \n \n );\n};\n\nconst MultiValueRemove = (props) => {\n return (\n \n \n \n );\n};\n\nconst Option = ({ data, innerProps, isDisabled }) => {\n return !isDisabled ? (\n \n \n \n \n \n \n ) : null;\n};\n\nconst IndicatorsContainer = () => {\n return (\n \n \n \n \n );\n};\n\n// Custom components prop types\n\nMultiValueLabel.propTypes = {\n data: PropTypes.shape({\n imgUrl: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nOption.propTypes = {\n data: PropTypes.shape({\n imgUrl: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n }).isRequired,\n isDisabled: PropTypes.bool,\n innerProps: PropTypes.object.isRequired,\n};\n\nOption.defaultProps = { isDisabled: false };\n\nconst SelectMultipleAgents = ({ name, options, placeholder, defaultValue, onChange }) => {\n return (\n ({\n ...base,\n alignItems: 'center',\n backgroundColor: '#fff',\n justifyContent: 'center',\n }),\n container: (base) => ({\n ...base,\n borderRadius: '5px',\n border: '1px dashed #D0D7DD',\n }),\n control: (base) => ({\n ...base,\n border: '0px',\n padding: '10px',\n }),\n menu: (base) => ({\n ...base,\n zIndex: '11',\n // maxHeight: '200px',\n }),\n menuList: (base) => ({\n ...base,\n maxHeight: '200px',\n }),\n // menu,\n }}\n />\n );\n};\n\nSelectMultipleAgents.propTypes = {\n defaultValue: PropTypes.array,\n name: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n placeholder: PropTypes.string.isRequired,\n};\n\nSelectMultipleAgents.defaultProps = {\n defaultValue: [],\n selectedValue: [],\n};\n\nexport default SelectMultipleAgents;\n","import React from 'react';\n\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\n\nconst InputContainer = styled.div`\n position: relative;\n`;\n\nconst RadioButton = styled.span`\n height: 22px;\n width: 22px;\n border: 1px solid #d0d7dd;\n border-radius: ${(props) => (props.square ? '4px' : '50%')};\n display: inline-block;\n position: absolute;\n left: ${(props) => (props.left ? '0' : '10px')};\n top: 50%;\n transform: translateY(-50%);\n\n &::after {\n height: 10px;\n width: 10px;\n content: '';\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n border-radius: ${(props) => (props.square ? '0' : '50%')};\n transform: translate(-50%, -50%);\n background-color: #3db4aa;\n opacity: 0;\n }\n`;\n\nconst Input = styled.input`\n display: none;\n &:checked ~ label span::after {\n opacity: 1;\n }\n`;\n\nconst RadioLabel = styled.label`\n padding: 10px 10px 10px 40px;\n display: flex;\n align-items: center;\n width: 100%;\n cursor: pointer;\n`;\n\nconst RadioInputField = (props) => {\n return (\n \n \n {\n props.onChange();\n }}>\n \n

    {props.label}

    \n \n
    \n );\n};\n\nRadioInputField.defaultProps = {\n label: undefined,\n square: false,\n left: false,\n};\n\nRadioInputField.propTypes = {\n onChange: PropTypes.func.isRequired,\n label: PropTypes.string,\n checked: PropTypes.bool.isRequired,\n square: PropTypes.bool,\n left: PropTypes.bool,\n};\n\nexport default RadioInputField;\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { PropTypes } from 'prop-types';\n\nconst Container = styled.div`\n border-top: 1px solid #d0d7dd;\n padding: 10px 15px;\n display: flex;\n align-items: center;\n justify-content: space-around;\n`;\n\nconst Option = styled.span`\n color: ${(props) => (props.active ? '#3db4aa' : '#384A59')};\n cursor: pointer;\n`;\n\nconst DropdownFooter = (props) => {\n return (\n \n \n \n \n );\n};\n\nDropdownFooter.propTypes = {\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n};\n\nexport default DropdownFooter;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Menu, Dropdown, Icon } from '@8base/boost';\nimport * as R from 'ramda';\nimport styled from 'styled-components';\nimport RadioInputField from '../../inputs/RadioInputField';\nimport DropdownFooter from '../DropdownFooter';\nimport { DropdownBodyOnTable } from '../DropdownBodyOnTable';\nimport { PropTypes } from 'prop-types';\nimport { customScrollBar } from 'shared/css/mixins';\n\nconst DropdownMenu = styled(Menu)`\n padding-bottom: 0 !important;\n`;\n\nconst Item = styled(Menu.Item)`\n color: #323c47 !important;\n padding: 0 !important;\n height: auto !important;\n`;\n\nconst HeaderCell = styled.span`\n display: flex;\n align-items: center;\n flex: 1;\n justify-content: space-between;\n`;\n\nconst StyledDropdown = styled(Dropdown)`\n flex: 1 !important;\n`;\n\nconst IconContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n flex: 1;\n`;\n\nconst ItemsContainer = styled.div`\n max-height: 160px;\n min-width: 140px;\n max-width: 250px;\n overflow-y: scroll;\n ${customScrollBar}\n`;\n\nconst DropdownWithCheck = ({ onConfirm, itemList, header }) => {\n const [isOpen, setIsOpen] = useState(false);\n const [items, setItems] = useState(itemList);\n const [control, setControl] = useState(\n items.reduce((ac, cv) => {\n if (cv.checked) {\n ac.push(cv.id);\n }\n\n return ac;\n }, []),\n );\n\n useEffect(() => {\n setItems(itemList);\n }, [itemList]);\n\n useEffect(() => {\n setControl(\n items.reduce((ac, cv) => {\n if (cv.checked) {\n ac.push(cv.id);\n }\n\n return ac;\n }, []),\n );\n }, [items]);\n\n const inputChangeHandler = (id) => {\n let newControl;\n\n if (control.includes(id)) {\n newControl = control.filter((oldId) => oldId !== id);\n } else {\n newControl = control.concat([id]);\n }\n\n setControl(newControl);\n };\n const onConfirmHandler = useCallback(() => {\n onConfirm(control);\n const newItemList = R.clone(items);\n\n for (const item of newItemList) {\n item.checked = control.includes(item.id);\n }\n\n setItems(newItemList);\n }, [items, control, onConfirm]);\n const onCancelHandler = useCallback(() => {\n const newControl = items.reduce((ac, cv) => {\n if (cv.checked) {\n ac.push(cv.id);\n }\n return ac;\n }, []);\n\n setControl(newControl);\n }, [items]);\n const switchHandler = () => {\n if (isOpen) {\n onCancelHandler();\n }\n\n setIsOpen((prevValue) => !prevValue);\n };\n\n const renderItems = items.map((item) => (\n \n {\n inputChangeHandler(item.id);\n }}\n />\n \n ));\n\n return (\n \n \n \n {header}\n \n \n \n \n \n \n {({ closeDropdown }) => (\n \n {renderItems}\n {\n onConfirmHandler();\n closeDropdown();\n }}\n onCancel={() => {\n onCancelHandler();\n closeDropdown();\n }}\n />\n \n )}\n \n \n );\n};\n\nDropdownWithCheck.propTypes = {\n itemList: PropTypes.array.isRequired,\n header: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,\n onConfirm: PropTypes.func.isRequired,\n};\n\nexport default DropdownWithCheck;\n","import React from 'react';\nimport { Heading, Row } from '@8base/boost';\nimport styled from '@emotion/styled';\nimport { PropTypes } from 'prop-types';\n\n/**\n * Styled FormTitle for the forms\n */\nconst StyledTitle = styled(Heading)`\n color: #7d828c;\n font-size: 12px;\n letter-spacing: 0.5px !important;\n`;\n\nconst StyledRow = styled(Row)`\n margin: 0 !important;\n min-height: 36px !important;\n`;\n\nconst FormTitle = ({ text, Icon, offsetBottom, offsetTop }) => {\n return (\n \n {Icon ? : null}\n \n \n );\n};\n\nFormTitle.defaultProps = {\n Icon: null,\n offsetBottom: 'md',\n offsetTop: 'md',\n};\n\nFormTitle.propTypes = {\n text: PropTypes.string.isRequired,\n Icon: PropTypes.any,\n offsetBottom: PropTypes.string,\n offsetTop: PropTypes.string,\n};\n\nexport { FormTitle };\n","import React from 'react';\nimport { SelectField } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\n\nconst ItemFilter = ({ onChange, value, options, placeholder, ...rest }) => {\n return (\n {\n if (option.label === '') {\n option.label = 'None';\n }\n return { label: option.label, value: option.value };\n })}\n {...rest}\n />\n );\n};\n\nItemFilter.propTypes = {\n onChange: PropTypes.func.isRequired,\n value: PropTypes.string.isRequired,\n options: PropTypes.array.isRequired,\n placeholder: PropTypes.string,\n stretch: PropTypes.bool,\n};\nItemFilter.defaultProps = {\n placeholder: 'Filter of The items',\n stretch: true,\n};\n\nexport default ItemFilter;\n","import React from 'react';\nimport { Card } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\n\n/**\n * Use this instead of Card.Body for List Views,\n * Add any css Padding, margin on this component\n *\n * @param {React.Component} children - the children component\n *\n * @returns {React.FC} The react component\n */\nconst ListCardBody = ({ children, ...rest }) => {\n return (\n \n {children}\n \n );\n};\n\nListCardBody.propTypes = {\n children: PropTypes.any.isRequired,\n};\n\nexport { ListCardBody };\n","import React, { useState, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\n\nimport { Menu, Dropdown, Icon } from '@8base/boost';\nimport { DropdownBodyOnTable } from '../../index';\nimport { customScrollBar } from 'shared/css/mixins';\n\nconst Item = styled(Menu.Item)`\n color: ${({ active }) => (active ? '#FFF' : '#323c47 ')} !important;\n ${({ active }) => (active ? 'background-color: #3DB4AA !important' : '')};\n padding: 10px !important;\n height: auto !important;\n text-transform: capitalize;\n &:hover {\n color: ${({ active }) => (active ? '#FFF' : '#3DB4AA ')} !important;\n }\n`;\n\nconst HeaderCell = styled.span`\n display: flex;\n align-items: center;\n flex: 1;\n justify-content: space-between;\n`;\n\nconst HeaderTitle = styled.span`\n ${({ active }) => (active ? 'color: #3DB4AA;' : '')}\n text-transform: capitalize;\n`;\n\nconst StyledDropdown = styled(Dropdown)`\n flex: 1 !important;\n border-radius: 5px;\n ${({ border }) => (border ? 'padding: 0.5rem 1rem;' : '')}\n ${({ border }) => (border ? 'border: 1px solid;' : '')}\n ${({ active }) => (active ? 'border-color: #3DB4AA' : 'border-color: #D0D7DD')};\n`;\n\nconst IconContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n flex: 1;\n`;\n\nconst ItemsContainer = styled.div`\n max-height: 160px;\n min-width: 140px;\n max-width: 250px;\n overflow-y: scroll;\n\n ${customScrollBar}\n`;\n\nconst SelectWithoutBorder = ({ onChange, options, placeholder, value: initialValue, border }) => {\n const [isOpen, setIsOpen] = useState(false);\n const [value, setValue] = useState(initialValue);\n\n const onItemClickHandler = useCallback(\n (value, closeDropdown) => {\n setValue(value);\n onChange(value);\n closeDropdown();\n setIsOpen((prevValue) => !prevValue);\n },\n [onChange],\n );\n\n const getValueLabel = () => {\n const selectedOption = options.find((option) => option.value === value);\n if (!selectedOption) {\n return '';\n }\n return selectedOption.label;\n };\n\n const selectClickHandler = () => {\n setIsOpen((prevValue) => !prevValue);\n };\n\n return (\n \n \n \n {value ? getValueLabel() : placeholder}\n \n \n \n \n \n \n {({ closeDropdown }) => (\n \n \n {options.map((option) => (\n {\n onItemClickHandler(option.value, closeDropdown);\n }}\n active={value === option.value}>\n {option.label.toLowerCase()}\n \n ))}\n \n \n )}\n \n \n );\n};\n\nSelectWithoutBorder.defaultProps = {\n value: undefined,\n placeholder: '',\n border: false,\n};\n\nSelectWithoutBorder.propTypes = {\n onChange: PropTypes.func.isRequired,\n value: PropTypes.any,\n options: PropTypes.array.isRequired,\n placeholder: PropTypes.string,\n border: PropTypes.bool,\n};\n\nexport default SelectWithoutBorder;\n","import React from 'react';\nimport { Label, Row, styled } from '@8base/boost';\nimport ReactTag from 'react-tagsinput';\nimport { PropTypes } from 'prop-types';\nimport { IconAskInfo } from '../ui/Icons';\nimport './tag-input.css';\n\nconst Tag = styled(ReactTag)`\n ${(props) => props.disabled && 'background-color: #F4F7F9 !important;'}\n`;\n\nconst TagsInput = ({\n onChange,\n tags,\n placeholder,\n label,\n tooltipPlacement,\n tooltipText,\n disabled,\n ...rest\n}) => {\n const inputProps = {\n placeholder,\n };\n\n return (\n <>\n \n \n onChange([...new Set(array)])}\n inputProps={inputProps}\n {...rest}\n />\n \n );\n};\n\nTagsInput.defaultProps = {\n label: '',\n disabled: false,\n placeholder: '',\n tooltipPlacement: '',\n tooltipText: '',\n};\n\nTagsInput.propTypes = {\n label: PropTypes.string,\n disabled: PropTypes.bool,\n placeholder: PropTypes.string,\n tooltipText: PropTypes.string,\n tooltipPlacement: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n tags: PropTypes.array.isRequired,\n};\nexport { TagsInput };\n","import React from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { Dropdown, Icon, Menu } from '@8base/boost';\nimport { DropdownBodyOnTable } from '../../index';\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\nconst OptionsIcon = styled.span`\n & i {\n height: 30px !important;\n width: 30px !important;\n }\n`;\n\nconst OptionsDropdown = ({ options }) => {\n const body = (\n \n {({ closeDropdown }) => (\n \n {options.map((option) => (\n {\n option.onClick();\n closeDropdown();\n }}>\n {option.label}\n \n ))}\n \n )}\n \n );\n\n return (\n \n \n \n \n \n \n {body}\n \n );\n};\n\nOptionsDropdown.propTypes = {\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n danger: PropTypes.bool,\n }),\n ).isRequired,\n};\n\nexport default OptionsDropdown;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { Icon, Dropdown, Menu } from '@8base/boost';\nimport { DropdownBodyOnTable } from './DropdownBodyOnTable';\nimport DropdownFooter from './DropdownFooter';\n\nconst DropdownMenu = styled(Menu)`\n padding-bottom: 0 !important;\n`;\n\nconst Item = styled.div`\n color: #323c47 !important;\n padding: 10px 0 !important;\n height: auto !important;\n margin-left: 15px;\n`;\n\nconst HeaderCell = styled.span`\n display: flex;\n align-items: center;\n flex: 1;\n justify-content: space-between;\n`;\n\nconst StyledDropdown = styled(Dropdown)`\n flex: 1 !important;\n`;\n\nconst IconContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n flex: 1;\n`;\n\nconst ItemsContainer = styled.div`\n max-height: 160px;\n min-width: 140px;\n max-width: 250px;\n overflow-y: scroll;\n\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nconst SimpleDropdown = ({ header, itemList }) => {\n const items = itemList.map((item) => {item.label});\n\n return (\n \n \n \n {header}\n \n \n \n \n \n \n {({ closeDropdown }) => (\n \n {items}\n {\n closeDropdown();\n }}\n onCancel={() => {\n closeDropdown();\n }}\n />\n \n )}\n \n \n );\n};\n\nSimpleDropdown.defaultProps = {\n header: '',\n};\n\nSimpleDropdown.propTypes = {\n header: PropTypes.string,\n itemList: PropTypes.array.isRequired,\n};\n\nexport default SimpleDropdown;\n","import React from 'react';\nimport { Dialog, Row, Link } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\n\nconst FilterFooter = (props) => {\n return (\n \n \n {\n props.onConfirm();\n props.closeDropdown();\n }}>\n Apply Filters\n \n {\n props.onCancel();\n props.closeDropdown();\n }}>\n {props.cancelText}\n \n\n {props.onClose && (\n {\n props.onClose();\n props.closeDropdown();\n }}>\n {props.closeText}\n \n )}\n \n \n );\n};\n\nFilterFooter.propTypes = {\n onConfirm: PropTypes.func.isRequired,\n closeDropdown: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n cancelText: PropTypes.string,\n onClose: PropTypes.func,\n closeText: PropTypes.string,\n};\n\nFilterFooter.defaultProps = {\n cancelText: 'Cancel',\n onClose: null,\n closeText: 'Close',\n};\n\nexport default FilterFooter;\n","import React, { useCallback, useState } from 'react';\nimport { DateInput, InputField } from '@8base/boost';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport ItemFilter from '../../ItemFilter';\nimport RadioInputField from '../../ui/inputs/RadioInputField';\n\nconst Container = styled.div`\n width: 204px;\n`;\n\nconst CategoryTitle = styled.strong`\n line-height: 28px;\n font-weight: 600 !important;\n display: inline-block;\n margin-bottom: 3px !important;\n`;\n\nconst RadioGroupContainer = styled.form`\n display: flex;\n justify-content: space-around;\n margin-top: 7px;\n`;\n\nconst FilterCategory = ({ category, onFilter, value }) => {\n const [inputValue, setInputValue] = useState(value);\n\n const onCategoryChange = useCallback(\n (identifier, value) => {\n onFilter(identifier, value);\n },\n [onFilter],\n );\n\n let filter;\n switch (category.type) {\n case 'text':\n filter = (\n setInputValue(value),\n onBlur: () => {\n onCategoryChange(category.identifier, inputValue);\n },\n value: inputValue,\n }}\n stretch={true}\n />\n );\n break;\n case 'date':\n filter = (\n {\n onCategoryChange(category.identifier, value);\n }}\n />\n );\n break;\n case 'radioGroup':\n filter = (\n \n {category.options.map((title) => (\n {\n onCategoryChange(category.identifier, title);\n }}\n checked={value === title}\n />\n ))}\n \n );\n break;\n default:\n filter = (\n {\n onCategoryChange(category.identifier, value);\n }}>\n );\n }\n\n return (\n \n {category.title}\n {filter}\n \n );\n};\n\nFilterCategory.propTypes = {\n category: PropTypes.any.isRequired,\n onFilter: PropTypes.func.isRequired,\n value: PropTypes.string.isRequired,\n};\n\nexport default FilterCategory;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Table, Menu, Icon, Dropdown, Text } from '@8base/boost';\nimport styled from 'styled-components';\nimport { DropdownBodyOnTable } from '../ui/dropdowns/DropdownBodyOnTable';\n\nimport SmallLoader from '../ui/SmallLoader';\nimport { TextEllipsis } from '../ui/text/TextEllipsis';\n\nconst TableBody = styled(Table.Body)`\n max-height: 60vh;\n\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nconst ActionsCell = styled(Table.BodyCell)`\n display: flex;\n justify-content: space-between !important;\n`;\n\nconst StyledCell = styled(Table.BodyCell)`\n padding: 0px 14px !important;\n flex-shrink: 0;\n min-width: 150px;\n max-width: 150px;\n`;\n\nconst CustomHeaderCell = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 24px !important;\n padding-right: 6px !important;\n font-weight: 700 !important;\n`;\n\nconst StyledBodyRow = styled(Table.BodyRow)`\n min-height: 37px !important;\n`;\n\nconst StyledHeader = styled(Table.Header)`\n height: 37px !important;\n`;\n\nconst AgingTableLite = ({\n data,\n Actions,\n columns,\n isLoading,\n columnsSize,\n dropdownOptions,\n ignoreColumns,\n leftDropdown,\n}) => {\n return (\n \n \n {columns.map((column, index) => {\n return (\n \n {column.name}\n \n );\n })}\n {''}\n \n {isLoading ? (\n \n ) : (\n \n {(row, index) => (\n \n {Object.keys(row)\n .filter((key) => ignoreColumns.indexOf(key) === -1)\n .map((key, index) => {\n if (columns[index] && columns[index].customBodyRender !== undefined) {\n const { customBodyRender } = columns[index];\n const CustomCellValue = customBodyRender(row, row[key]);\n\n return (\n \n \n \n );\n }\n\n return (\n \n {row[key]}\n \n );\n })}\n \n {Actions && }\n \n \n \n \n \n {() => (\n \n {dropdownOptions.map((option, index) => (\n option.onClick(row.id)} key={index}>\n {option.name}\n \n ))}\n \n )}\n \n \n \n \n )}\n \n )}\n
    \n );\n};\n\nAgingTableLite.propTypes = {\n Actions: PropTypes.func,\n leftDropdown: PropTypes.string,\n ignoreColumns: PropTypes.array,\n data: PropTypes.array.isRequired,\n columns: PropTypes.array.isRequired,\n isLoading: PropTypes.bool.isRequired,\n columnsSize: PropTypes.string.isRequired,\n dropdownOptions: PropTypes.array.isRequired,\n};\n\nAgingTableLite.defaultProps = {\n ignoreColumns: [],\n leftDropdown: '0px',\n Actions: null,\n};\n\nexport default AgingTableLite;\n","import { Auth, AUTH_STRATEGIES } from '@8base/auth';\n/**\n * Creating an Authentication Profile in 8base will provide\n * you with a Client ID and Domain.\n */\nconst domain = process.env.REACT_APP_AUTH_DOMAIN;\nconst clientId = process.env.REACT_APP_AUTH_CLIENT_ID;\n/**\n * The redirect and logout URIs are all configured in the\n * authentication profile that gets set up in the 8base\n * management console.\n */\nconst logoutRedirectUri = `${window.location.origin}/logout`;\nconst redirectUri = `${window.location.origin}/auth/callback`;\n/**\n * There are multiple auth strategies that can be\n * used when using 8base. By default, specifying\n * 'web_8base' will configure the 8base auth client.\n */\nexport default Auth.createClient(\n {\n strategy: AUTH_STRATEGIES.WEB_8BASE,\n subscribable: true,\n },\n {\n domain,\n clientId,\n redirectUri,\n logoutRedirectUri,\n }\n);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withAuth } from '@8base/app-provider';\nimport MainLoader from 'shared/components/ui/MainLoader';\n\nclass AuthContainerClass extends React.Component {\n async componentDidMount() {\n const { auth } = this.props;\n\n await auth.authClient.authorize();\n }\n\n render() {\n return ;\n }\n}\n\nAuthContainerClass.propTypes = {\n auth: PropTypes.object.isRequired,\n};\n\nconst AuthContainer = withAuth(AuthContainerClass);\n\nexport { AuthContainer };\n","import { Client } from '@8base/api-client';\n\n/* Instantiate new instance with workspace endpoint */\nexport const client = new Client(process.env.REACT_APP_WORKSPACE_ENDPOINT);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withAuth } from '@8base/react-sdk';\nimport moment from 'moment';\nimport * as jwtToken from 'jwt-decode';\n\nimport { client } from 'shared/api';\nimport * as gql from 'shared/graphql';\nimport MainLoader from 'shared/components/ui/MainLoader';\n\nclass CallbackContainerClass extends React.Component {\n async handleAuthentication({ idToken, email }) {\n /**\n * Auth headers for communicating with the 8base API.\n */\n client.setIdToken(idToken);\n /**\n * Check if user exists in 8base.\n */\n try {\n await client.request(gql.CURRENT_USER_QUERY);\n } catch {\n /**\n * If user doesn't exist, an error will be\n * thrown, which then the new user can be\n * created using the authResult values.\n */\n const user = { email: email };\n const namespace = 'https://leadvolt.8base.com/';\n let jwtData;\n\n try {\n jwtData = jwtToken(idToken);\n } catch (e) {\n console.error('Auth:error', e);\n }\n\n user.firstName = jwtData[namespace + 'first_name'];\n user.lastName = jwtData[namespace + 'last_name'];\n\n await client.request(gql.USER_SIGN_UP_MUTATION, {\n user,\n authProfileId: process.env.REACT_APP_AUTH_PROFILE_ID,\n });\n }\n }\n\n async componentDidMount() {\n const { auth, history } = this.props;\n /* Get authResult from auth client after redirect */\n const authResult = await auth.authClient.getAuthorizedData();\n /* Identify or create user record using authenticated details */\n await this.handleAuthentication(authResult);\n /* Add the idToken to the auth state */\n auth.authClient.setState({ token: authResult.idToken });\n /* Add last connection timestamp */\n localStorage.setItem('lastConnection', moment().unix());\n\n /* Redirect user to root path */\n history.replace('/');\n }\n\n render() {\n return ;\n }\n}\n\nCallbackContainerClass.propTypes = {\n auth: PropTypes.object.isRequired,\n history: PropTypes.object.isRequired,\n};\n\n/* withAuth injects 'auth' prop into component */\nconst CallbackContainer = withAuth(CallbackContainerClass);\n\nexport { CallbackContainer };\n","import React from 'react';\nimport { Route } from 'react-router';\n\nimport { AuthContainer } from './routes/root';\nimport { CallbackContainer } from './routes/callback';\n\nexport const AuthCallback = () => (\n \n \n \n \n);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, Grid, Dialog, Button, InputField, SelectField, TextAreaField } from '@8base/boost';\n//import { PrimaryBtn } from '../../../shared/components/ui/buttons/PrimaryBtn';\nimport UpdateIcon from '../../../shared/assets/images/update.svg';\nimport { ButtonIcon, PrimaryBtn } from 'shared/components';\nimport styled from 'styled-components';\n\nconst StyledButtonIcon = styled(ButtonIcon)`\n margin-top: 20px;\n`;\n\nconst AnnouncementForm = ({\n isOpen,\n isUpdate,\n onCloseDialog,\n announcement,\n onChangeInput,\n getRandomQuote,\n loading,\n onSubmit,\n}) => {\n return (\n \n \n \n
    \n \n \n \n \n onChangeInput('type', value),\n }}\n options={[\n {\n label: 'QUOTE',\n value: 'QUOTE',\n },\n {\n label: 'ANNOUNCEMENT',\n value: 'ANNOUNCEMENT',\n },\n ]}\n />\n \n {announcement.type === 'QUOTE' ? (\n \n \n \n ) : (\n ''\n )}\n {announcement.type === 'ANNOUNCEMENT' && (\n \n onChangeInput('title', value),\n }}\n />\n \n )}\n \n \n \n onChangeInput('content', value),\n }}\n />\n \n {announcement.type === 'QUOTE' && (\n \n \n \n )}\n {/* \n \n \n \n \n */}\n \n \n \n
    \n
    \n \n \n \n {'Save'}\n \n \n
    \n );\n};\n\nAnnouncementForm.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n isUpdate: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n getRandomQuote: PropTypes.func.isRequired,\n announcement: PropTypes.object.isRequired,\n onSubmit: PropTypes.func.isRequired,\n};\n\nexport default AnnouncementForm;\n","import gql from 'graphql-tag';\n\nconst AnnouncementFragment = gql`\n fragment AnnouncementFragment on Announcement {\n id\n title\n content\n type\n author\n }\n`;\n\nexport const ANNOUNCEMENT_LIST_QUERY = gql`\n query AnnouncementQuery($filter: AnnouncementFilter) {\n announcementsList(filter: $filter) {\n items {\n ...AnnouncementFragment\n }\n }\n }\n ${AnnouncementFragment}\n`;\n\nexport const ANNOUNCEMENT_UPDATE_MUTATION = gql`\n mutation AnnouncementUpdateMutation($data: AnnouncementUpdateInput!) {\n announcementUpdate(data: $data) {\n ...AnnouncementFragment\n }\n }\n ${AnnouncementFragment}\n`;\n\nexport const ANNOUNCEMENT_CREATE_MUTATION = gql`\n mutation AnnouncementCreateMutation($data: AnnouncementCreateInput!) {\n announcementCreate(data: $data) {\n ...AnnouncementFragment\n }\n }\n ${AnnouncementFragment}\n`;\n","import { ValidationError } from '../../shared/errors';\nimport { isValidString } from '../../shared/validators';\n\nexport const createAndUpdateAnnouncementValidator = (announcement) => {\n let errorMessages = [];\n\n if (announcement.type === 'ANNOUNCEMENT' && !isValidString(announcement.title))\n errorMessages.push('The Announcement must have a valid title');\n\n if (!isValidString(announcement.type))\n errorMessages.push('The Announcement must have a valid type');\n\n if (!isValidString(announcement.content))\n errorMessages.push('The Announcement must have a valid content');\n\n if (announcement.type === 'QUOTE' && !isValidString(announcement.author))\n errorMessages.push('The Announcement must have a valid author');\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnAnnouncementError = createEvent();\n\nexport const OnAnnouncementCreateEvent = createEvent();\n\nexport const OnAnnouncementUpdateEvent = createEvent();\n\nexport const OnAnnouncementListEvent = createEvent();\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport {\n ANNOUNCEMENT_LIST_QUERY,\n ANNOUNCEMENT_UPDATE_MUTATION,\n ANNOUNCEMENT_CREATE_MUTATION,\n} from './announcement-queries';\nimport { createAndUpdateAnnouncementValidator } from './announcement-validators';\nimport { sanitize8BaseReference } from '../../shared/utils';\nimport {\n OnAnnouncementCreateEvent,\n OnAnnouncementError,\n OnAnnouncementListEvent,\n OnAnnouncementUpdateEvent,\n} from './announcement-events';\n\n/**\n * create filters for announcements query.\n *\n * @param {object} filterData createdAt filters.\n * @returns {object} graphql filter object.\n */\nconst createFilter = (filterData) => {\n return {\n ...(filterData.dateCreatedStart && filterData.dateCreatedStart !== ''\n ? {\n createdAt: { gte: filterData.dateCreatedStart + 'T00:00:00Z' },\n }\n : {}),\n ...(filterData.agency && filterData.agency !== ''\n ? {\n agency: { id: { equals: filterData.agency } },\n }\n : {}),\n };\n};\n\n/**\n * fetch announcements\n *\n * @param {object} filterData - agency and createdAt filters\n * @param {number} attempts - The number of attempts\n *\n * @returns {object} response data\n */\nexport const fetchAnnouncements = async (filterData = {}, attempts = 0) => {\n const client = OnApolloClient.get();\n const filter = createFilter(filterData);\n let response;\n\n const variables = {\n ...(filter && { filter }),\n };\n\n try {\n response = await client.query({\n query: ANNOUNCEMENT_LIST_QUERY,\n variables,\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n if (attempts <= 0) {\n error('fetchAnnouncements', e);\n return OnAnnouncementError.dispatch(e);\n }\n return fetchAnnouncements(filterData, attempts - 1);\n }\n\n log('fetchAnnouncements', response);\n OnAnnouncementListEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Updates a announcement\n *\n * @param {object} announcement data from the update form.\n *\n * @returns {object} the response data\n */\nexport const updateAnnouncement = async (announcement) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createAndUpdateAnnouncementValidator(announcement);\n } catch (e) {\n error('updateAnnouncement', e);\n\n return OnAnnouncementError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: ANNOUNCEMENT_UPDATE_MUTATION,\n variables: { data: announcement },\n });\n } catch (e) {\n error('updateAnnouncement', e);\n\n return OnAnnouncementError.dispatch(e);\n }\n\n log('updateAnnouncement', response);\n OnAnnouncementUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Updates a announcement\n *\n * @param {object} announcement data from the update form.\n * @returns {object} the response data\n */\nexport const createAnnouncement = async (announcement) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createAndUpdateAnnouncementValidator(announcement);\n } catch (e) {\n error('createAnnouncement', e);\n\n return OnAnnouncementError.dispatch(e);\n }\n\n sanitize8BaseReference(announcement, 'agency');\n\n try {\n response = await client.mutate({\n mutation: ANNOUNCEMENT_CREATE_MUTATION,\n variables: { data: announcement },\n });\n } catch (e) {\n error('createAnnouncement', e);\n\n return OnAnnouncementError.dispatch(e);\n }\n\n log('createAnnouncement', response);\n OnAnnouncementCreateEvent.dispatch(response.data);\n\n return response.data;\n};\n","export default {\n type: '',\n title: '',\n author: '',\n content: '',\n};\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, Paper, Heading, Row } from '@8base/boost';\nimport styled from 'styled-components';\nimport AnnouncementForm from './AnnouncementForm';\nimport Loader from '../../../shared/components/ui/Loader';\nimport { onChangeDataHookMixin } from '../../../shared/mixins';\nimport { updateAnnouncement, createAnnouncement } from '../../announcement/announcement-actions';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport announcementModel from '../../announcement/announcement-model';\nimport { ADMIN, MANAGER } from '../../../shared/constants';\nimport quotes from '../../announcement/quotes.json';\nimport * as R from 'ramda';\nimport getRandomly from 'get-randomly';\nimport {\n OnAnnouncementCreateEvent,\n OnAnnouncementError,\n OnAnnouncementUpdateEvent,\n} from 'modules/announcement/announcement-events';\n\nconst StyledPaper = styled(Paper)`\n position: relative;\n min-height: 264px;\n background-color: #f3fafa !important;\n display: flex;\n justify-content: ${({ justifyContent }) => justifyContent};\n`;\n\nconst Title = styled(Heading)`\n opacity: 0.9 !important;\n color: #1e4358 !important;\n font-size: 36px !important;\n line-height: 55px !important;\n font-weight: 600 !important;\n margin-top: 10px !important;\n height: 51px !important;\n`;\n\nconst SubTitle = styled(Heading)`\n color: #323c47 !important;\n font-size: 11px !important;\n letter-spacing: 1px;\n line-height: 27px;\n font-weight: 600;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n`;\n\nconst Text = styled.p`\n width: 34rem;\n color: #1e4358;\n font-family: 'Poppins';\n font-size: 18px;\n font-style: italic;\n line-height: 24px;\n`;\n\nconst Author = styled.p`\n color: #939ea7;\n font-family: 'Poppins';\n font-size: 12px;\n line-height: 18px;\n margin-top: 15px;\n margin-left: 15px;\n`;\n\nconst UpdateButton = styled.span`\n position: absolute;\n bottom: 20px;\n right: 20px;\n height: 20px;\n opacity: 0.9;\n color: #3db4aa;\n font-family: 'Poppins';\n font-size: 14px;\n line-height: 21px;\n cursor: pointer;\n`;\n\nconst Image = styled.img`\n height: 82px;\n width: 107px;\n object-fit: contain;\n max-width: 100%;\n margin-top: 30px;\n`;\n\nconst TextHelp = styled.p`\n color: #cfd4d4;\n font-family: Poppins;\n font-size: 12px;\n line-height: 18px;\n margin-top: 15px;\n`;\n\nconst QuoteOpen = styled.span`\n width: 15px;\n color: #384a59;\n font-family: Poppins;\n font-size: 4em;\n font-style: italic;\n line-height: 0.5em;\n margin-left: -8px;\n height: 51px;\n opacity: 0.2;\n position: relative;\n top: 40px;\n left: -5px;\n`;\n\nconst QuoteClose = styled.span`\n width: 15px;\n color: #384a59;\n font-family: Poppins;\n font-size: 4em;\n font-style: italic;\n line-height: 0.5em;\n margin-left: -8px;\n height: 51px;\n opacity: 0.2;\n position: relative;\n top: 50px;\n right: 12px;\n`;\n\nconst Announcement = ({\n user,\n isUpdate,\n loading,\n onUpdate,\n announcement,\n activeAgencyId,\n userAgencyRoles,\n}) => {\n const [data, setData] = useState(announcement);\n const [isOpen, setIsOpen] = useState(false);\n const [loadingForm, setLoadingForm] = useState(false);\n const handleOnClickUpdate = () => setIsOpen(true);\n const handleOnCloseDialog = () => setIsOpen(false);\n\n const ramdomizeData = (key = 'type', value = 'QUOTE') => {\n const quote = getRandomly(quotes);\n setData({\n ...data,\n [key]: value,\n content: quote.content,\n author: quote.author,\n });\n };\n\n const handleOnChangeInput = (key, value) => {\n onChangeDataHookMixin(data, setData, key, value);\n if (key === 'type' && value === 'QUOTE') {\n ramdomizeData();\n }\n };\n\n const getRandomQuote = (event) => {\n event.preventDefault();\n onChangeDataHookMixin(data, setData, 'type', 'QUOTE');\n ramdomizeData();\n };\n\n const handleOnSubmitForm = () => {\n const announcementData = {\n title: data.title,\n content: data.content,\n type: data.type,\n author: data.author,\n };\n\n setLoadingForm(true);\n\n if (isUpdate) {\n announcementData.id = announcement.id;\n\n updateAnnouncement(announcementData);\n } else {\n announcementData.agency = activeAgencyId;\n\n createAnnouncement(announcementData);\n }\n };\n const handleOnCreateAndUpdate = () => {\n setLoadingForm(false);\n setIsOpen(false);\n onUpdate();\n setData(R.clone(announcementModel));\n };\n const userFirstName = user ? user.firstName : '';\n const defaultTitle = `Morning${userFirstName ? `, ${userFirstName}!` : ''}`;\n const userCanUpdateAndCreate =\n userAgencyRoles.includes(ADMIN) || userAgencyRoles.includes(MANAGER);\n\n useSimpleSubscription(OnAnnouncementCreateEvent, handleOnCreateAndUpdate);\n useSimpleSubscription(OnAnnouncementUpdateEvent, handleOnCreateAndUpdate);\n useSimpleSubscription(OnAnnouncementError, (e) => {\n if (e) {\n onErrorMixinFC(e);\n setLoadingForm(false);\n }\n });\n\n useEffect(() => {\n if (announcement.id !== undefined) {\n setData(announcement);\n } else {\n setData(R.clone(announcementModel));\n }\n }, [announcement]);\n\n return (\n \n {loading ? (\n \n ) : (\n <>\n {isUpdate ? (\n <>\n {announcement.type === 'QUOTE' ? (\n <>\n {defaultTitle}\n QUOTE OF THE DAY\n \n \n \n {announcement.content}\n \n \n \n {announcement.type === 'QUOTE' && - {announcement.author}}\n \n ) : (\n <>\n {announcement.title}\n
    \n {announcement.content}\n \n )}\n {userCanUpdateAndCreate && (\n Update\n )}\n \n ) : (\n <>\n \n \n {defaultTitle}\n \n \n {/*Launch Lead Manager*/}\n \n \n \n \n \"No\n There are currently no announcements\n \n \n {userCanUpdateAndCreate && (\n Create\n )}\n \n )}\n \n \n )}\n
    \n );\n};\n\nAnnouncement.propTypes = {\n user: PropTypes.object,\n isUpdate: PropTypes.bool.isRequired,\n announcement: PropTypes.object.isRequired,\n onUpdate: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n activeAgencyId: PropTypes.string.isRequired,\n userAgencyRoles: PropTypes.array.isRequired,\n};\n\nAnnouncement.defaultProps = {\n user: null,\n};\n\nexport default Announcement;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Grid, Row } from '@8base/boost';\nimport PriorityBadge from '../../../shared/components/ui/PriorityBadge';\nimport moment from 'moment';\n\nconst TaskContainer = styled.div`\n padding: 15px 24px;\n border-bottom: 1px solid #e9eff4;\n\n &:last-child {\n border-bottom: 0;\n }\n`;\n\nconst TaskTitle = styled.h3`\n height: 20px;\n width: 486px;\n opacity: 0.9;\n color: #3db4aa;\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n margin: 0;\n padding: 0;\n cursor: pointer;\n`;\n\nconst TaskText = styled.p`\n height: 19px;\n width: 446px;\n opacity: 0.9;\n color: #323c47;\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 20px;\n padding: 0;\n margin-top: 2px;\n`;\n\nconst Task = (props) => {\n const { data } = props;\n const time = moment(data.createdAt).format('LLLL');\n\n return (\n \n \n \n {data.title}\n Assigned {moment(time).fromNow()}\n \n \n \n \n \n \n );\n};\n\nTask.propTypes = {\n data: PropTypes.object.isRequired,\n};\n\nTask.defaultProps = {\n assignedBy: '',\n};\n\nexport default Task;\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Grid, Row } from '@8base/boost';\r\nimport { Title, PaperHeader, CustomLink, PlusBtn, WeekComponent } from 'shared/components';\r\nimport Loader from '../../../shared/components/ui/Loader';\r\nimport Task from './Task';\r\nimport TaskForm from '../../leads/components/forms/TaskForm';\r\nimport moment from 'moment';\r\n\r\nconst TasksByDay = ({\r\n data,\r\n isLoading,\r\n week,\r\n fromNowDate,\r\n onSelectDay,\r\n selectedDay,\r\n onLeftClick,\r\n onRightClick,\r\n selectedDayFormat,\r\n refetchTasks,\r\n activeAgencyId,\r\n leads,\r\n users,\r\n}) => {\r\n const [taskFormIsOpen, setTaskFormIsOpen] = useState(false);\r\n\r\n const closeTaskFormDialog = () => {\r\n setTaskFormIsOpen(false);\r\n };\r\n\r\n const tasksFromDay = [];\r\n\r\n data.forEach((task) => {\r\n if (moment(task.date).format('YYYY-MM-DD') === selectedDay && tasksFromDay.length < 3)\r\n tasksFromDay.push(task);\r\n });\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n Tasks for {fromNowDate}, {selectedDayFormat}\r\n \r\n \r\n \r\n setTaskFormIsOpen(true)} />\r\n \r\n \r\n View all Tasks\r\n \r\n \r\n \r\n <>\r\n \r\n \r\n \r\n {taskFormIsOpen && (\r\n \r\n )}\r\n \r\n {isLoading ? (\r\n \r\n ) : (\r\n <>\r\n {tasksFromDay.map((task, key) => (\r\n \r\n ))}\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nTasksByDay.propTypes = {\r\n data: PropTypes.array.isRequired,\r\n isLoading: PropTypes.bool.isRequired,\r\n week: PropTypes.array.isRequired,\r\n fromNowDate: PropTypes.string.isRequired,\r\n selectedDayFormat: PropTypes.string.isRequired,\r\n selectedDay: PropTypes.string.isRequired,\r\n onLeftClick: PropTypes.func.isRequired,\r\n onRightClick: PropTypes.func.isRequired,\r\n onSelectDay: PropTypes.func.isRequired,\r\n refetchTasks: PropTypes.func.isRequired,\r\n activeAgencyId: PropTypes.string.isRequired,\r\n leads: PropTypes.object.isRequired,\r\n users: PropTypes.array.isRequired,\r\n};\r\n\r\nexport default TasksByDay;\r\n","import { gql } from 'graphql-tag';\nimport { LEAD_STAGES } from '../leads/leads-model';\n\nconst CampaignFragment = gql`\n fragment CampaignFragment on Campaign {\n id\n name\n status\n createdAt\n priority\n automaticCalls\n amount\n startsAt\n endsAt\n assignees {\n items {\n id\n firstName\n lastName\n avatar {\n id\n downloadUrl\n }\n }\n }\n workflows {\n items {\n id\n name\n }\n }\n vendor {\n name\n id\n }\n campaignLeadRelation {\n count\n }\n phoneNumber {\n id\n number {\n number\n code\n }\n }\n }\n`;\n\nexport const CAMPAIGN_DETAIL_QUERY = gql`\n query FetchCampaignDetails($id: ID!) {\n campaign(id: $id) {\n ...CampaignFragment\n }\n }\n ${CampaignFragment}\n`;\n\nexport const CAMPAIGN_LIST_QUERY = gql`\n query FetchCampaignsList(\n $skip: Int\n $first: Int\n $filter: CampaignFilter\n $sort: [CampaignSort!]\n $orderBy: [CampaignOrderBy]\n ) {\n campaignsList(skip: $skip, first: $first, filter: $filter, sort: $sort, orderBy: $orderBy) {\n count\n items {\n id\n name\n status\n createdAt\n priority\n assignees {\n items {\n id\n firstName\n lastName\n }\n }\n workflows {\n items {\n id\n name\n }\n }\n campaignLeadRelation {\n count\n }\n }\n }\n }\n`;\nexport const CAMPAIGN_LIST_LIGHT_QUERY = gql`\n query FetchLightCampaignsList(\n $skip: Int\n $first: Int\n $filter: CampaignFilter\n $sort: [CampaignSort!]\n $orderBy: [CampaignOrderBy]\n ) {\n campaignsList(skip: $skip, first: $first, filter: $filter, sort: $sort, orderBy: $orderBy) {\n count\n items {\n id\n name\n }\n }\n }\n`;\n\nexport const CAMPAIGN_PROGRESS_QUERY = gql`\n query FetchCampaignProgress ($campaignId: ID) {\n campaign(id: $campaignId) {\n campaignLeadRelation(\n filter: { stages: { equals: \"${LEAD_STAGES.SOLD}\" } }\n groupBy: {\n query: {\n id: { as: \"count\", fn: { aggregate: COUNT } }\n amount: { as: \"amount\", fn: { aggregate: SUM } }\n }\n }\n ) {\n count\n groups {\n count: String\n amount: String\n }\n }\n }\n leadsList(\n filter: { campaign: { id: { equals: $campaignId } } }\n groupBy: { query: { amount: { as: \"amount\", fn: { aggregate: SUM } } } }\n ) {\n count\n groups {\n amount: String\n }\n }\n }\n`;\n\nexport const CAMPAIGN_CREATE_MUTATION = gql`\n mutation CreateCampaign($data: CampaignCreateInput!) {\n campaignCreate(data: $data) {\n ...CampaignFragment\n }\n }\n ${CampaignFragment}\n`;\n\nexport const CAMPAIGN_DELETE_MUTATION = gql`\n mutation DeleteCampaign($data: CampaignDeleteInput!) {\n campaignDelete(data: $data) {\n success\n }\n }\n`;\n\nexport const CAMPAIGN_UPDATE_MUTATION = gql`\n mutation UpdateCampaign($data: CampaignUpdateInput!) {\n campaignUpdate(data: $data) {\n ...CampaignFragment\n }\n }\n ${CampaignFragment}\n`;\n\nexport const FETCH_CAMPAIGN_LEADS = gql`\n query FetchCampaignLeads($campaignId: ID, $first: Int, $skip: Int) {\n leadsList(filter: { campaign: { id: { equals: $campaignId } } }, first: $first, skip: $skip) {\n items {\n id\n firstName\n lastName\n }\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\nimport { CampaignListResponse } from 'gerated/types';\n// import { FetchCampaignsList } from '../../shared/graphql-types';\n\nexport const OnCampaignsList = createEvent<{ campaignsList: CampaignListResponse }>();\n\nexport const OnCampaignsListError = createEvent();\n\nexport const OnCampaignReplaceList = createEvent<{ campaignsList: CampaignListResponse }>();\n\nexport const OnCampaignReplaceListError = createEvent();\n\nexport const OnCampaignCreate = createEvent();\n\nexport const OnCampaignUpdate = createEvent();\n\nexport const OnCampaignDelete = createEvent();\n\nexport const OnCampaignDeleteError = createEvent();\n\nexport const OnCampaignError = createEvent();\n\nexport const OnCampaignDeleteProgress = createEvent<{ progress: number }>();\n\nexport const OnCampaignDetailsEvent = createEvent();\n\n// Campaign Progress Events\n\nexport const OnFetchCampaignProgressEvent = createEvent();\n\nexport const OnFetchCampaignProgressError = createEvent();\n","import { ValidationError } from '../../shared/errors';\nimport { isValidNumber } from '../../shared/validators';\nimport { isValidString } from '@cobuildlab/validation-utils';\n\n/**\n * Crate and update campaign input validtor\n *\n * @param {object} campaign - The campaign object\n *\n * @returns {void}\n */\nexport const createAndUpdateCampaignValidator = (campaign) => {\n let errorMessages = [];\n\n if (!isValidString(campaign.name)) errorMessages.push('The Campaign must have a valid name');\n\n if (!isValidNumber(campaign.priority))\n errorMessages.push('The campaign must have a valid priority');\n\n if (campaign.assignees.length === 0) errorMessages.push('The campaign must have at least 1 User');\n\n if (!campaign.startsAt || !campaign.endsAt) {\n errorMessages.push('Both the start and end of the campaign are needed');\n } else {\n const start = new Date(campaign.startsAt);\n const end = new Date(campaign.endsAt);\n\n if (start > end) errorMessages.push('The end of the campaign should be after the start');\n }\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n\n/**\n * Delete campaign input validator\n *\n * @param {object} data - The data to use to delete the specified campaign\n *\n * @returns {void}\n */\nexport const deleteCampaignValidator = (data) => {\n const errors = [];\n\n if (!isValidString(data.campaignId)) {\n errors.push('No campaign was selected to delete');\n }\n\n if (!isValidString(data.nextCampaignId)) {\n errors.push('No campaign was selected to replace the old one');\n }\n\n if (errors.length > 0) {\n throw new ValidationError(errors);\n }\n};\n","import { log, error } from '@cobuildlab/pure-logger';\nimport {\n CAMPAIGN_LIST_QUERY,\n CAMPAIGN_CREATE_MUTATION,\n CAMPAIGN_DELETE_MUTATION,\n CAMPAIGN_DETAIL_QUERY,\n CAMPAIGN_UPDATE_MUTATION,\n CAMPAIGN_PROGRESS_QUERY,\n FETCH_CAMPAIGN_LEADS,\n CAMPAIGN_LIST_LIGHT_QUERY,\n} from './campaigns-queries';\nimport {\n FETCH_LEADS_COUNT_IN_CAMPAIGN,\n LEAD_USERS_UPDATE_MUTATION,\n LEAD_DELETE_MUTATION,\n} from '../leads/leads-queries';\nimport { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport {\n sanitize8BaseReconnects,\n sanitize8BaseReferences,\n sanitize8BaseEmptyFields,\n} from '../../shared/utils';\nimport {\n OnCampaignsList,\n OnCampaignsListError,\n OnCampaignReplaceList,\n OnCampaignReplaceListError,\n OnCampaignDelete,\n OnCampaignDeleteError,\n OnCampaignDeleteProgress,\n OnCampaignCreate,\n OnCampaignError,\n OnCampaignUpdate,\n OnCampaignDetailsEvent,\n OnFetchCampaignProgressError,\n OnFetchCampaignProgressEvent,\n} from './campaign-events';\nimport { createAndUpdateCampaignValidator, deleteCampaignValidator } from './campaigns-validators';\nimport { CAMPAIGN_STATUSES, MANAGER, AGENT } from '../../shared/constants';\nimport { getActiveAgency, getUserAgencyRoles } from '../../shared/utils/agency-utils';\nimport moment from 'moment';\n\n/**\n * create filters for campaigns query.\n *\n * @param filterData - createdAt, updatedAt, assignedTo and status filters.\n * @param search - string from search input.\n *\n * @returns graphql filter object.\n */\nconst createFilter = (filterData: Record, search: string) => {\n const roles = getUserAgencyRoles();\n const { user } = OnSessionFetch.get() as { user: { id: string } };\n\n return {\n ...(filterData && {\n AND: [\n ...(!roles.includes(MANAGER) && roles.includes(AGENT)\n ? [\n {\n OR: [\n {\n users: { some: { id: { equals: user.id } } },\n },\n {\n users: { every: { id: { is_empty: true } } },\n },\n ],\n },\n ]\n : []),\n ...(filterData.dateCreatedStart && filterData.dateCreatedStart !== ''\n ? [\n {\n createdAt: {\n gte: moment(filterData.dateCreatedStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.dateCreatedEnd && filterData.dateCreatedEnd !== ''\n ? [\n {\n createdAt: {\n lte: moment(filterData.dateCreatedEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.assignedTo && filterData.assignedTo !== ''\n ? [\n {\n assignees: { some: { id: { equals: filterData.assignedTo } } },\n },\n ]\n : []),\n ...(filterData.lastUpdatedStart && filterData.lastUpdatedStart !== ''\n ? [\n {\n updatedAt: {\n gte: moment(filterData.lastUpdatedStart)\n .startOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(filterData.lastUpdatedEnd && filterData.lastUpdatedEnd !== ''\n ? [\n {\n updatedAt: {\n lte: moment(filterData.lastUpdatedEnd)\n .endOf('day')\n .toISOString(),\n },\n },\n ]\n : []),\n ...(typeof filterData.status === 'number'\n ? [\n {\n status: { equals: CAMPAIGN_STATUSES[filterData.status] },\n },\n ]\n : []),\n ...(filterData.agency && filterData.agency !== ''\n ? [\n {\n agency: { id: { equals: filterData.agency } },\n },\n ]\n : []),\n ],\n }),\n ...(search && {\n name: {\n contains: search,\n },\n }),\n };\n};\n\n/**\n * create sort object for campaigns query.\n *\n * @param sortData - string from select sort.\n *\n * @returns graphql sort object.\n */\nconst createSort = (sortData: string) => {\n return {\n ...(sortData === 'top' && { sort: [{ priority: 'DESC' }] }),\n ...(sortData === 'low' && { sort: [{ priority: 'ASC' }] }),\n ...(sortData === 'newest' && { sort: [{ createdAt: 'DESC' }] }),\n ...(sortData === 'oldest' && { sort: [{ createdAt: 'ASC' }] }),\n };\n};\n\n/**\n * create order for campaigns query.\n *\n * @param order - The order to sort the results\n *\n * @returns graphql sort object.\n */\nconst createOrder = (order: string) => {\n switch (order) {\n case 'top':\n return 'priority_DESC';\n case 'low':\n return 'priority_ASC';\n case 'newest':\n return 'createdAt_DESC';\n case 'oldest':\n return 'createdAt_ASC';\n default:\n return 'createdAt_ASC';\n }\n};\n\n/**\n * Creates a campaign\n *\n * @param campaign - data from the create form.\n *\n * @returns the response data\n */\nexport const createCampaign = async (campaign: Record): Promise => {\n const client = OnApolloClient.get();\n\n if (!client) return;\n\n let newCampaign;\n\n try {\n createAndUpdateCampaignValidator(campaign);\n } catch (e) {\n error('createCampaign', e);\n\n return OnCampaignError.dispatch(e as Error);\n }\n\n sanitize8BaseEmptyFields(campaign);\n sanitize8BaseReferences(campaign, 'assignees');\n sanitize8BaseReferences(campaign, 'workflows');\n sanitize8BaseReferences(campaign, 'users');\n sanitize8BaseReferences(campaign, 'agents');\n\n campaign.agency = {\n connect: {\n id: getActiveAgency().id,\n },\n };\n\n try {\n newCampaign = await client.mutate({\n mutation: CAMPAIGN_CREATE_MUTATION,\n variables: { data: campaign },\n });\n } catch (e) {\n error('createCampaign', e);\n\n return OnCampaignError.dispatch(e as Error);\n }\n\n log('createCampaign', newCampaign);\n OnCampaignCreate.dispatch(newCampaign.data);\n return newCampaign.data;\n};\n\n/**\n * Fetches the campaign list\n *\n * @param agencyId - The agency to fetch the campaigns from\n * @param page - The page to fetch\n * @param search - The search to filter the results\n * @param sortData - Orders the data\n * @param filters - The filters to limit the results from\n *\n * @returns The request result\n */\nexport const fetchCampaignsList = async (\n agencyId: string,\n page = 1,\n search = '',\n sortData = '',\n filters: Record = {},\n): Promise => {\n const client = OnApolloClient.get();\n\n if (client) {\n const first = 10;\n const skip = first * (page - 1);\n const filter = createFilter({ agency: agencyId, ...filters }, search);\n const orderBy = createOrder(sortData);\n let response = null;\n\n try {\n response = await client.query({\n query: CAMPAIGN_LIST_QUERY,\n variables: { filter, first, skip, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchCampaignsList', e);\n\n return OnCampaignsListError.dispatch(e);\n }\n\n log('fetchCampaignsList', response);\n\n return OnCampaignsList.dispatch(response.data);\n }\n};\n\n/**\n * Action for fetch the campaigns\n *\n * @param data - filter data that contains search, filters and sort.\n * @param attempts - The number of attempts\n *\n * @returns the response data\n */\nexport const fetchCampaigns = async (\n data: Record = {},\n attempts = 0,\n): Promise => {\n const { first, search, filterData, sortData } = data;\n const client = OnApolloClient.get();\n const filter = createFilter(filterData, search);\n const sort = sortData ? createSort(sortData).sort : null;\n let response;\n\n if (client) {\n const variables = {\n ...(first && { first }),\n ...(filter && { filter }),\n ...(sort && { sort }),\n };\n\n try {\n response = await client.query({\n query: CAMPAIGN_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n if (attempts <= 0) {\n error('fetchCampaigns', e);\n return OnCampaignError.dispatch(e as Error);\n }\n return fetchCampaigns(data, attempts - 1);\n }\n\n log('fetchCampaigns', response);\n OnCampaignsList.dispatch(response.data);\n }\n};\n/**\n * Action for fetch the campaigns\n *\n * @param data - filter data that contains search, filters and sort.\n *\n * @returns the response data\n */\nexport const fetchCampaignsLight = async (\n data: Record = {},\n): Promise> => {\n const { first, search, filterData, sortData } = data;\n const client = OnApolloClient.get();\n const filter = createFilter(filterData, search);\n const sort = sortData ? createSort(sortData).sort : null;\n let response;\n\n if (client) {\n const variables = {\n ...(first && { first }),\n ...(filter && { filter }),\n ...(sort && { sort }),\n };\n\n try {\n response = await client.query({\n query: CAMPAIGN_LIST_LIGHT_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchCampaigns', e);\n return OnCampaignError.dispatch(e as Error);\n }\n\n log('fetchCampaigns', response);\n OnCampaignsList.dispatch(response.data);\n\n return response.data;\n }\n};\n/**\n * Deletes a campaign by id\n *\n * @param id - identifier of the campaign\n *\n * @returns the response data\n */\nexport const deleteCampaign = async (id: string): Promise> => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_DELETE_MUTATION,\n variables: { data: { id, force: true } },\n });\n } catch (e) {\n error('campaignDelete', e);\n return OnCampaignError.dispatch(e as Error);\n }\n\n log('campaignDelete', response);\n OnCampaignDelete.dispatch(response.data);\n return response.data;\n }\n};\n\n/**\n * Show details of a campaign\n *\n * @param id - identifier of the campaign\n *\n * @returns the response data\n */\nexport const fetchCampaignDetail = async (id: string): Promise> => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.query({\n query: CAMPAIGN_DETAIL_QUERY,\n variables: { id },\n });\n } catch (e) {\n error('fetchCampaignDetail', e);\n OnCampaignError.dispatch(e as Error);\n return OnCampaignError.dispatch(e as Error);\n }\n\n log('fetchCampaignDetail', response);\n OnCampaignDetailsEvent.dispatch(response.data);\n\n return response.data;\n }\n};\n\n/**\n * Fetches a specific campaign progess\n *\n * @param id - The id of the campaign\n *\n * @returns The request result\n */\nexport const fetchCampaignProgress = async (id: string): Promise> => {\n const client = OnApolloClient.get();\n let response = null;\n\n if (!client) return;\n\n try {\n response = await client.query({\n query: CAMPAIGN_PROGRESS_QUERY,\n fetchPolicy: 'no-cache',\n variables: { campaignId: id },\n });\n } catch (e) {\n error('fetchCampaignProgress', e);\n\n return OnFetchCampaignProgressError.dispatch(e);\n }\n\n log('fetchCampaignProgress', response.data);\n\n OnFetchCampaignProgressEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Updates a campaign\n *\n * @param campaign - data from the update form.\n * @param validate - make the validate or not.\n *\n * @returns the response data\n */\nexport const updateCampaign = async (\n campaign: Record,\n validate = false,\n): Promise> => {\n const client = OnApolloClient.get();\n let response;\n\n if (!client) return;\n\n if (validate) {\n try {\n createAndUpdateCampaignValidator(campaign);\n } catch (e) {\n error('updateCampaign', e);\n return OnCampaignError.dispatch(e as Error);\n }\n }\n\n sanitize8BaseReconnects(campaign, 'assignees');\n sanitize8BaseReconnects(campaign, 'workflows');\n\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_UPDATE_MUTATION,\n variables: { data: campaign },\n });\n } catch (e) {\n error('updateCampaign', e);\n return OnCampaignError.dispatch(e as Error);\n }\n\n log('updateCampaign', response);\n OnCampaignUpdate.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Returns a list of campaigns excepts the specified one\n * for selection when the specified is going to be deleted\n *\n * @param id - The id of the campaign to exclude\n * @param agencyId - The id of the agency where the campaigns belong\n * @param page - The page to search\n * @param search - The search to filter the results from\n *\n * @returns The request result\n */\nexport const fetchAvailableCampaigns = async (\n id: string,\n agencyId: string,\n page = 1,\n search = '',\n): Promise => {\n const client = OnApolloClient.get();\n const first = 20;\n const skip = first * (page - 1);\n const filter = {\n id: { not_equals: id },\n name: { contains: search },\n agency: { id: { equals: agencyId } },\n };\n\n let response = null;\n\n if (!client) {\n return;\n }\n\n try {\n response = await client.query({\n query: CAMPAIGN_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables: { first, skip, filter },\n });\n } catch (e) {\n error('fetchAvailableCampaigns', e);\n\n return OnCampaignReplaceListError.dispatch(e as Error);\n }\n\n log('fetchAvailableCampaigns', response.data);\n\n return OnCampaignReplaceList.dispatch(response.data);\n};\n\n/**\n * Moves the lead from one campaign to another and deletes\n * the first\n *\n * @param id - The campaign to delete\n * @param nextCampaignId - The campaign to move the leads to\n *\n * @returns The request result\n */\nexport const moveLeadsAndDelete = async (id: string, nextCampaignId: string): Promise => {\n const client = OnApolloClient.get();\n let response = null;\n\n if (!client) {\n return;\n }\n\n try {\n deleteCampaignValidator({ campaignId: id, nextCampaignId });\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n try {\n response = await client.query({\n query: FETCH_LEADS_COUNT_IN_CAMPAIGN,\n variables: { campaignId: id },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('moveLeadsAndDelete', response.data);\n\n const {\n leadsList: {\n groups: [result],\n },\n } = response.data;\n const total: number = result.count ? result.count : 0;\n let acum = 0;\n\n if (total === 0) {\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_DELETE_MUTATION,\n variables: { data: { id } },\n });\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('moveLeadsAndDelete', response.data);\n\n return OnCampaignDelete.dispatch(response.data);\n }\n\n let leads = [];\n\n do {\n try {\n response = await client.query({\n query: FETCH_CAMPAIGN_LEADS,\n fetchPolicy: 'network-only',\n variables: { campaignId: id, first: 20, skip: 0 },\n });\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n leads = response.data.leadsList.items;\n\n const promises = leads.map((lead: { id: string }) =>\n client.mutate({\n mutation: LEAD_USERS_UPDATE_MUTATION,\n variables: {\n data: { id: lead.id, campaign: { reconnect: { id: nextCampaignId } } },\n },\n }),\n );\n\n try {\n response = await Promise.all(promises);\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('moveLeadsAndDelete', response);\n\n acum += leads.length;\n\n OnCampaignDeleteProgress.dispatch({\n progress: parseInt(`${(acum * 99) / total}`),\n });\n } while (leads.length === 20);\n\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_DELETE_MUTATION,\n variables: { data: { id, force: true } },\n });\n } catch (e) {\n error('moveLeadsAndDelete', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('moveLeadsAndDelete', response.data);\n\n return OnCampaignDelete.dispatch(response.data);\n};\n\n/**\n * Deletes all of the campaign's leads and the\n * campaign itself\n *\n * @param id - The campaign id\n *\n * @returns The request result\n */\nexport const forceDeleteCampaign = async (id: string): Promise => {\n const client = OnApolloClient.get();\n let response = null;\n\n if (!client) return;\n\n try {\n response = await client.query({\n query: FETCH_LEADS_COUNT_IN_CAMPAIGN,\n variables: { campaignId: id },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('forceDeleteCampaign', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('forceDeleteCampaign', response.data);\n\n const {\n leadsList: {\n groups: [result],\n },\n } = response.data;\n const total = result.count ? result.count : 0;\n let acum = 0;\n\n if (total === 0) {\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_DELETE_MUTATION,\n variables: { data: { id } },\n });\n } catch (e) {\n error('forceDeleteCampaign', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('forceDeleteCampaign', response.data);\n\n return OnCampaignDelete.dispatch(response.data);\n }\n\n let leads = [];\n\n do {\n try {\n response = await client.query({\n query: FETCH_CAMPAIGN_LEADS,\n fetchPolicy: 'network-only',\n variables: { campaignId: id, first: 20, skip: 0 },\n });\n } catch (e) {\n error('forceDeleteCampaign', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n leads = response.data.leadsList.items;\n\n const promises = leads.map((lead: { id: string }) =>\n client.mutate({\n mutation: LEAD_DELETE_MUTATION,\n variables: {\n data: { id: lead.id, force: true },\n },\n }),\n );\n\n let res: Array>>;\n\n try {\n res = await Promise.allSettled>(promises);\n } catch (e) {\n error('forceDeleteCampaign', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('forceDeleteCampaign', res);\n\n // eslint-disable-next-line no-loop-func\n acum += res.reduce((prev: number, curr: PromiseSettledResult>) => {\n if (curr.status === 'rejected') {\n return prev;\n }\n\n return prev + 1;\n }, 0);\n\n OnCampaignDeleteProgress.dispatch({\n progress: parseInt(`${(acum * 99) / total}`),\n });\n } while (leads.length === 20);\n\n try {\n response = await client.mutate({\n mutation: CAMPAIGN_DELETE_MUTATION,\n variables: { data: { id, force: true } },\n });\n } catch (e) {\n error('forceDeleteCampaign', e);\n\n return OnCampaignDeleteError.dispatch(e as Error);\n }\n\n log('forceDeleteCampaign', response.data);\n\n return OnCampaignDelete.dispatch(response.data);\n};\n","import gql from 'graphql-tag';\n\nexport const UserFragment = gql`\n fragment UserFragment on User {\n email\n firstName\n id\n lastName\n cellPhone\n workPhone\n workPhoneExt\n timezone\n avatar {\n id\n downloadUrl\n }\n }\n`;\n\nexport const DASHBOARD_ELEMENTS_QUERY = gql`\n query FetchDashboardData($id: ID, $filter: LeadFilter, $actualMonth: LeadStageHistoryFilter) {\n agency(id: $id) {\n name\n agencyAgencyUserRelation {\n items {\n id\n user {\n ...UserFragment\n }\n }\n }\n agencyAgentRelation {\n items {\n id\n user {\n ...UserFragment\n }\n }\n }\n agencyManagerRelation {\n items {\n id\n user {\n ...UserFragment\n }\n }\n }\n agencyCampaignRelation {\n items {\n campaignLeadRelation(filter: $filter) {\n items {\n leadLeadStageHistoryRelation(filter: $actualMonth) {\n items {\n createdBy {\n id\n firstName\n }\n stage {\n name\n }\n }\n }\n updatedAt\n status\n firstName\n amount\n id\n assignees {\n items {\n ...UserFragment\n }\n }\n }\n }\n }\n }\n }\n }\n ${UserFragment}\n`;\n\nexport const LEADS_LAST_24HOURS = gql`\n query FetchLeadsLastDay($date: DateTime, $agencyId: ID) {\n agency(id: $agencyId) {\n agencyCampaignRelation {\n items {\n campaignLeadRelation(filter: { createdAt: { gte: $date } }) {\n count\n }\n }\n }\n }\n }\n`;\n\nexport const FETCH_TOP_PERFORMERS = gql`\n query FetchTopPerformers($filter: LeadFilter, $sort: [GroupBySort!], $first: Int, $skip: Int) {\n leadsList(\n groupBy: {\n query: {\n assignees: {\n id: { as: \"id\" }\n firstName: { as: \"agentFirstName\" }\n lastName: { as: \"agentLastName\" }\n avatar: { downloadUrl: { as: \"avatar\" } }\n }\n amount: { as: \"amount\", fn: { aggregate: SUM } }\n }\n sort: $sort\n first: $first\n skip: $skip\n }\n filter: $filter\n ) {\n groups {\n id: ID\n agentFirstName: String\n agentLastName: String\n avatar: String\n amount: BigInt\n }\n }\n }\n`;\nexport const FETCH_AGENCY_BI_REPORT = gql`\n query getAgencyBIReports($periodType: String, $agencyId: ID) {\n agencyReportsList(\n filter: { agencyId: { id: { equals: $agencyId } }, periodType: { equals: $periodType } }\n orderBy: periodNumber_DESC\n first: 1\n ) {\n items {\n id\n periodType\n periodNumber\n input\n output\n }\n }\n }\n`;\n\nexport const UPDATE_FEEDBACK_ON_REPORT = gql`\n mutation updateReportWithFeedback($reportId: ID, $feedbackObj: JSON) {\n agencyReportUpdate(filter: { id: $reportId }, data: { feedback: $feedbackObj }) {\n id\n feedback\n }\n }\n`;\nexport const GET_REPORT = gql`\n query getReport($reportId: ID) {\n agencyReport(id: $reportId) {\n id\n feedback\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchTopPerformersEvent = createEvent();\n\nexport const OnFetchTopPerformersError = createEvent();\n\nexport const OnDashBoardElementsEvent = createEvent();\n\nexport const OnDashBoardElementsError = createEvent();\n\nexport const OnLeadsLast24HoursEvent = createEvent();\n\nexport const OnFetchAgencyReportEvent = createEvent();\n\nexport const OnFetchAgencyReportError = createEvent();\n\nexport const OnFeedbackReportCreate = createEvent();\nexport const OnFeedbackReportCreateError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport {\n DASHBOARD_ELEMENTS_QUERY,\n LEADS_LAST_24HOURS,\n FETCH_TOP_PERFORMERS,\n FETCH_AGENCY_BI_REPORT,\n UPDATE_FEEDBACK_ON_REPORT,\n GET_REPORT,\n} from './dashboard-queries';\nimport {\n OnFetchTopPerformersEvent,\n OnFetchTopPerformersError,\n OnDashBoardElementsError,\n OnDashBoardElementsEvent,\n OnLeadsLast24HoursEvent,\n OnFetchAgencyReportEvent,\n OnFetchAgencyReportError,\n OnFeedbackReportCreate,\n OnFeedbackReportCreateError,\n} from './dashboard-events';\nimport moment from 'moment';\n\n/**\n * Method to get the users and leads from the agency\n *\n * @memberof Dashboard\n * @param {string} agencyId - id of the agency\n * @param {string} userId - The user id\n * @param {Date} dateFilter - the date filter\n *\n * @returns {Promise} The request result\n */\nexport const fetchUsers = async (agencyId, userId, dateFilter) => {\n const client = OnApolloClient.get();\n let response;\n\n const previusMonth = moment().subtract(1, 'month');\n\n const actualMonth = {\n createdAt: {\n gte: previusMonth.startOf('month').toISOString(),\n lte: previusMonth.endOf('month').toISOString(),\n },\n };\n\n const filter = {\n leadLeadStageHistoryRelation: {\n some: {\n stage: { name: { equals: 'Sold' } },\n ...dateFilter,\n },\n },\n };\n\n try {\n response = await client.query({\n query: DASHBOARD_ELEMENTS_QUERY,\n fetchPolicy: 'network-only',\n variables: { id: agencyId, filter, actualMonth },\n });\n } catch (e) {\n error('dashboard elements error', e);\n return OnDashBoardElementsError.dispatch(e.message);\n }\n\n log('fetchUsers', response.data);\n\n const { data } = response;\n\n const users = data.agency.agencyAgencyUserRelation.items;\n const leads = [];\n\n data.agency.agencyCampaignRelation.items.forEach((campaing) => {\n campaing.campaignLeadRelation.items.forEach((lead) => {\n leads.push(lead);\n });\n });\n\n const performers = users.map((user) => {\n return {\n performance: parseFloat(0),\n name: `${user.user.firstName} ${user.user.lastName}`,\n imgUrl:\n user.user.avatar !== null\n ? user.user.avatar.downloadUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n id: user.user.id,\n };\n });\n\n leads.forEach((lead) => {\n lead.assignees.items.forEach((user) => {\n let exist = false;\n performers.forEach((u, i) => {\n if (u.id === user.id) {\n performers[i].performance = performers[i].performance + parseFloat(lead.amount);\n exist = true;\n }\n });\n if (!exist) {\n const newData = {\n performance: parseFloat(lead.amount),\n name: `${user.firstName} ${user.lastName}`,\n imgUrl:\n user.avatar !== null\n ? user.avatar.downloadUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n id: user.id,\n };\n performers.push(newData);\n }\n });\n });\n\n performers.sort((a, b) => {\n if (a.performance < b.performance) {\n return 1;\n }\n if (a.performance > b.performance) {\n return -1;\n }\n return 0;\n });\n\n const myUser = performers.find((user, i) => {\n return user.id === userId;\n });\n\n const position = performers.indexOf(myUser) + 1;\n\n const elements = {\n position,\n users,\n performers,\n leads,\n };\n\n OnDashBoardElementsEvent.dispatch(elements);\n\n return response.data;\n};\n\n/**\n * Method for get new leads in 24 hours\n *\n * @memberof Dashboard\n * @param agencyId id of the agency\n */\n\nexport const fetchLeadsInLast24Hours = async (agencyId, attempts = 0) => {\n const client = OnApolloClient.get();\n const date = `${moment()\n .subtract(24, 'hours')\n .format('YYYY-MM-DD')}T00:00:00Z`;\n let response;\n try {\n response = await client.query({\n query: LEADS_LAST_24HOURS,\n fetchPolicy: 'network-only',\n variables: { date, agencyId },\n });\n } catch (e) {\n if (attempts <= 0) {\n error('dashboard elements error', e);\n return OnDashBoardElementsError.dispatch(e.message);\n }\n return fetchLeadsInLast24Hours(agencyId, attempts - 1);\n }\n OnLeadsLast24HoursEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Fetches the top performers\n *\n * @param {number} page - The page to fetch from\n * @param {object} data - The data to create the filters from\n *\n * @returns {Promise} The request result\n */\nexport async function fetchTopPerformers(page = 1, data = {}) {\n const client = OnApolloClient.get();\n const first = 10;\n const skip = first * (page - 1);\n const sort = { alias: 'amount', direction: 'DESC' };\n const filter = createPerformersFilter(data);\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_TOP_PERFORMERS,\n fetchPolicy: 'no-cache',\n variables: { filter, first, skip, sort },\n });\n } catch (e) {\n error('fetchTopPerformers', e);\n\n return OnFetchTopPerformersError.dispatch(e);\n }\n\n log('fetchTopPerformers', response.data);\n\n return OnFetchTopPerformersEvent.dispatch(response.data);\n}\n\n/**\n * Creates a filter for a list of performers\n *\n * @param {object} data - Data to create the filter from\n *\n * @returns {object} The performers filters\n */\nfunction createPerformersFilter(data = {}) {\n const filters = {\n ...(data.agency\n ? {\n campaign: { agency: { id: { equals: data.agency } } },\n }\n : {}),\n leadLeadStageHistoryRelation: {\n some: {\n stage: {\n name: { equals: 'Sold' },\n },\n ...(data.period ? data.period : {}),\n },\n },\n };\n\n return filters;\n}\n\n/**\n * Fetches the agency's Business Intelligence reports\n *\n * @param {number} agencyId - The agency for which to fetch the report\n * @param {object} periodType - The data to create the filters from\n *\n * @returns {Promise} The request result\n */\nexport async function fetchAgencyReport(agencyId, periodType = 'weekly') {\n const client = OnApolloClient.get();\n\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_AGENCY_BI_REPORT,\n fetchPolicy: 'no-cache',\n variables: { agencyId, periodType },\n });\n } catch (e) {\n error('fetchAgencyReport', e);\n\n return OnFetchAgencyReportError.dispatch(e);\n }\n\n log('fetchAgencyReport', response.data);\n\n return OnFetchAgencyReportEvent.dispatch(response.data);\n}\n\n/**\n * Mutates the agency's Business Intelligence report to reflect the feedback on the insight given by the user\n *\n * @param {number} reportId - The report that is being rated\n * @param {object} feedback - Object that holds the information of the feedback for re-training purposes\n *\n * @returns {Promise} The request result\n */\nexport async function createFeedback(reportId, feedback) {\n const client = OnApolloClient.get();\n\n let response = null,\n report = null;\n\n try {\n report = await client.query({\n query: GET_REPORT,\n fetchPolicy: 'no-cache',\n variables: { reportId },\n });\n } catch (e) {\n error('error getting report', e);\n }\n\n const feedbackObj = Array.isArray(report.data.agencyReport.feedback)\n ? [...report.data.agencyReport.feedback, feedback]\n : [feedback];\n\n try {\n response = await client.mutate({\n mutation: UPDATE_FEEDBACK_ON_REPORT,\n variables: { reportId, feedbackObj },\n });\n } catch (e) {\n error('feedbackUpdate', e);\n\n return OnFeedbackReportCreateError.dispatch(e);\n }\n\n log('content feedbackUpdate', response.data);\n\n return OnFeedbackReportCreate.dispatch(response.data);\n}\n","import gql from 'graphql-tag';\r\nimport { LEAD_TASK_FRAGMENT } from '../leads/leads-queries';\r\n\r\nexport const LEAD_TASK_DETAIL_QUERY = gql`\r\n query FetchLeadTask($id: ID!) {\r\n leadTask(id: $id) {\r\n ...LEAD_TASK_FRAGMENT\r\n }\r\n }\r\n ${LEAD_TASK_FRAGMENT}\r\n`;\r\n\r\nexport const LEAD_TASK_LIST_QUERY = gql`\r\n query FetchLeadTasks($skip: Int, $first: Int, $filter: LeadTaskFilter, $sort: [LeadTaskSort!]) {\r\n leadTasksList(skip: $skip, first: $first, filter: $filter, sort: $sort) {\r\n items {\r\n ...LEAD_TASK_FRAGMENT\r\n }\r\n }\r\n }\r\n ${LEAD_TASK_FRAGMENT}\r\n`;\r\n\r\nexport const LEAD_TASK_CREATE_MUTATION = gql`\r\n mutation CreateLeadTask($data: LeadTaskCreateInput!) {\r\n LeadTasksFragment(data: $data) {\r\n ...LeadTasksFragment\r\n }\r\n }\r\n ${LEAD_TASK_FRAGMENT}\r\n`;\r\n\r\nexport const LEAD_TASK_DELETE_MUTATION = gql`\r\n mutation DeleteLeadTask($data: LeadTaskDeleteInput!) {\r\n leadTaskDelete(data: $data) {\r\n success\r\n }\r\n }\r\n`;\r\n\r\nexport const LEAD_TASK_UPDATE_MUTATION = gql`\r\n mutation UpdateLeadTask($data: LeadTaskUpdateInput!) {\r\n leadTaskUpdate(data: $data) {\r\n ...LEAD_TASK_FRAGMENT\r\n }\r\n }\r\n ${LEAD_TASK_FRAGMENT}\r\n`;\r\n","import { ValidationError } from '../../shared/errors';\r\nimport { isValidString, isValidNumber } from '../../shared/validators';\r\n\r\nexport const createAndUpdateLeadTaskValidator = (leadTask) => {\r\n let errorMessages = [];\r\n\r\n if (!isValidString(leadTask.name)) errorMessages.push('The LeadTask must have a valid name');\r\n\r\n if (!isValidString(leadTask.name)) errorMessages.push('The LeadTask must have a valid name');\r\n\r\n if (!isValidNumber(leadTask.type)) errorMessages.push('The LeadTask must have a valid type');\r\n\r\n if (!isValidNumber(leadTask.priority))\r\n errorMessages.push('The LeadTask must have a valid priority');\r\n\r\n if (leadTask.agents.length === 0) errorMessages.push('The LeadTask must have at least 1 Agent');\r\n\r\n if (!isValidString(leadTask.emailMarketingCampaign))\r\n errorMessages.push('The LeadTask must have a email marketing');\r\n\r\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\r\n};\r\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadTaskList = createEvent();\n\nexport const OnLeadTaskDetails = createEvent();\n\nexport const OnLeadTaskCreate = createEvent();\n\nexport const OnLeadTaskUpdate = createEvent();\n\nexport const OnLeadTaskDelete = createEvent();\n\nexport const OnLeadTaskError = createEvent();\n\nexport const OnLeadTaskDetailEvent = createEvent();\n\nexport const OnLeadTaskDetailError = createEvent();\n","import { log, error } from '@cobuildlab/pure-logger';\nimport {\n LEAD_TASK_LIST_QUERY,\n LEAD_TASK_CREATE_MUTATION,\n LEAD_TASK_DELETE_MUTATION,\n LEAD_TASK_DETAIL_QUERY,\n LEAD_TASK_UPDATE_MUTATION,\n} from './lead-task-queries';\nimport { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport {\n sanitize8BaseReference,\n sanitize8BaseReconnects,\n sanitize8BaseReferences,\n sanitize8BaseEmptyFields,\n} from '../../shared/utils';\nimport { createAndUpdateLeadTaskValidator } from './lead-task-validators';\nimport { onTaskCreate } from '../leads/leads-events';\nimport { getActiveAgency } from '../../shared/utils/agency-utils';\nimport {\n OnLeadTaskError,\n OnLeadTaskList,\n OnLeadTaskUpdate,\n OnLeadTaskDelete,\n OnLeadTaskDetails,\n} from './lead-task-events';\n\n/**\n * create filters for lead tasks query.\n *\n * @param {object} filterData createdAt, updatedAt, assignedTo and status filters.\n * @param {string} search string from search input.\n * @returns {object} graphql filter object.\n */\nconst createFilter = (filterData, search) => {\n return {\n ...(filterData && {\n AND: [\n ...(filterData.assignedTo && filterData.assignedTo !== ''\n ? [\n {\n users: { some: { id: { equals: filterData.assignedTo } } },\n },\n ]\n : []),\n ...(filterData.agency && filterData.agency !== ''\n ? [\n {\n agency: {\n id: {\n equals: filterData.agency,\n },\n },\n },\n ]\n : []),\n ...(filterData.onDate && filterData.onDate !== ''\n ? [\n {\n date: { gte: filterData.onDate },\n },\n ]\n : []),\n ...(filterData.onStatus && filterData.onStatus !== ''\n ? [\n {\n status: { equals: filterData.onStatus },\n },\n ]\n : []),\n ],\n }),\n ...(search && {\n title: {\n contains: search,\n },\n }),\n };\n};\n\n/**\n * create sort object for lead tasks query.\n *\n * @param {string} sortData string from select sort.\n * @returns {object} graphql sort object.\n */\nconst createSort = (sortData) => {\n return {\n ...(sortData === 'top' && { sort: [{ priority: 'DESC' }] }),\n ...(sortData === 'low' && { sort: [{ priority: 'ASC' }] }),\n ...(sortData === 'newest' && { sort: [{ createdAt: 'DESC' }] }),\n ...(sortData === 'oldest' && { sort: [{ createdAt: 'ASC' }] }),\n };\n};\n\n/**\n * Creates a leadTask\n *\n * @param {object} leadTask data from the create form.\n * @returns {object} the response data\n */\nexport const createLeadTask = async (leadTask) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createAndUpdateLeadTaskValidator(leadTask);\n } catch (e) {\n error('createLeadTask', e);\n return OnLeadTaskError.dispatch(e);\n }\n\n sanitize8BaseEmptyFields(leadTask);\n // sanitize8BaseReference(leadTask, 'emailMarketingCampaign');\n sanitize8BaseReferences(leadTask, 'agents');\n\n leadTask.agency = {\n connect: {\n id: getActiveAgency().id,\n },\n };\n\n try {\n response = await client.mutate({\n mutation: LEAD_TASK_CREATE_MUTATION,\n variables: { data: leadTask },\n });\n } catch (e) {\n error('createLeadTask', e);\n return OnLeadTaskError.dispatch(e);\n }\n\n log('createLeadTask', response);\n\n onTaskCreate.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Action for fetch the campaigns\n *\n * @param {object} data filter data that contains search, filters and sort.\n * @param {number} attempts retry amount\n * @returns {object} the response data\n */\nexport const fetchLeadTask = async (data = {}, attempts = 0) => {\n const client = OnApolloClient.get();\n const session = OnSessionFetch.get();\n\n const { first, search, filterData, sortData, page } = data;\n const skip = (page - 1) * 10;\n const filter = createFilter(filterData, search);\n const sort = sortData ? createSort(sortData).sort : null;\n\n let response;\n if (client) {\n const variables = {\n ...(skip && { skip }),\n ...(first && { first }),\n ...(filter && { filter }),\n ...(sort && { sort }),\n };\n\n try {\n response = await client.query({\n query: LEAD_TASK_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n if (attempts <= 0) {\n error('fetchLeadTask', e);\n return OnLeadTaskError.dispatch(e);\n }\n return fetchLeadTask(data, attempts - 1);\n }\n\n log('fetchLeadTask', response, session.user.id);\n OnLeadTaskList.dispatch(response.data);\n\n return response.data;\n }\n};\n\n/**\n * Deletes a leadTask by id\n *\n * @param {string} id identifier of the leadTask\n * @returns {object} the response data\n */\nexport const deleteLeadTask = async (id) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.mutate({\n mutation: LEAD_TASK_DELETE_MUTATION,\n variables: { data: { id } },\n });\n } catch (e) {\n error('leadTaskDelete', e);\n\n return OnLeadTaskError.dispatch(e);\n }\n\n log('leadTaskDelete', response);\n OnLeadTaskDelete.dispatch(response.data);\n\n return response.data;\n }\n};\n\n/**\n * Show details of a leadTask\n *\n * @param {string} id identifier of the leadTask\n * @returns {object} the response data\n */\nexport const fetchLeadTaskDetail = async (id) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.query({\n query: LEAD_TASK_DETAIL_QUERY,\n variables: { id },\n });\n } catch (e) {\n error('fetchLeadTaskDetail', e);\n return OnLeadTaskError.dispatch(e);\n }\n\n log('fetchLeadTaskDetail', response);\n OnLeadTaskDetails.dispatch(response.data);\n\n return response.data;\n }\n};\n\n/**\n * Updates a leadTask\n *\n * @param {object} leadTask data from the update form.\n * @param {boolean} validate make the validate or not.\n * @returns {object} the response data\n */\nexport const updateLeadTask = async (leadTask, validate) => {\n const client = OnApolloClient.get();\n let response;\n\n if (validate) {\n try {\n createAndUpdateLeadTaskValidator(leadTask);\n } catch (e) {\n error('updateLeadTask', e);\n return OnLeadTaskError.dispatch(e);\n }\n }\n\n sanitize8BaseEmptyFields(leadTask);\n sanitize8BaseReconnects(leadTask, 'agents');\n sanitize8BaseReference(leadTask, 'emailMarketingLeadTask');\n\n try {\n response = await client.mutate({\n mutation: LEAD_TASK_UPDATE_MUTATION,\n variables: { data: leadTask },\n });\n } catch (e) {\n error('updateLeadTask', e);\n return OnLeadTaskError.dispatch(e);\n }\n\n OnLeadTaskUpdate.dispatch(response.data);\n\n return response.data;\n};\n","import moment from 'moment';\nimport { CAMPAIGN_STATUSES } from '../../shared/constants';\nimport bigInt from 'big-integer';\n\n/**\n * Map for showing the data formatted\n *\n * @param {object} campaign the data of the campaign.\n * @returns {object} new data of the campaign with formatted values.\n */\nexport const campaignMap = (campaign) => {\n return {\n ...campaign,\n assignees: campaign.assignees.items,\n leads: campaign.campaignLeadRelation ? campaign.campaignLeadRelation.count : 0,\n startsAt: campaign.startsAt,\n endsAt: campaign.endsAt,\n vendor: campaign.vendor ? campaign.vendor.id : null,\n status: CAMPAIGN_STATUSES.indexOf(campaign.status),\n priority: campaign.priority - 1, // convert to array index.\n workflows: campaign.workflows.items,\n createdAtFormat: moment(campaign.createdAt).format('MM-DD-YYYY, hh:mm a'),\n amount: bigInt(campaign.amount),\n };\n};\n\nexport const campaignMapTable = ({\n id,\n name,\n createdAtFormat,\n priority,\n assignees,\n workflows,\n leads,\n status,\n}) => {\n return {\n id,\n name,\n createdAtFormat,\n priority,\n assignees,\n workflows,\n leads,\n status: CAMPAIGN_STATUSES[status],\n };\n};\n\nexport const campaignMapDashboardTable = (campaign) => {\n const { id, name, agentsFormat } = campaignMap(campaign);\n\n return {\n id,\n name,\n agentsFormat,\n endsFormat: moment().format('MM-DD-YYYY'),\n };\n};\n","import moment from 'moment';\r\nimport { getAssignedAgents } from '../agents/agents-utils';\r\n\r\n/**\r\n * Map for showing the data formatted\r\n *\r\n * @param {object} leadTask the data of the leadTask.\r\n * @returns {object} new data of the leadTask with formatted values.\r\n */\r\nexport const leadTaskMap = (leadTask) => {\r\n return {\r\n ...leadTask,\r\n date: moment(leadTask.date).format('MM-DD-YYYY'),\r\n createdAtFormat: moment(leadTask.createdAt).format('MM-DD-YYYY, hh:mm a'),\r\n agentsFormat: leadTask.users.items.length\r\n ? getAssignedAgents(leadTask.users.items.map((item) => ({ user: item })))\r\n : '',\r\n type: leadTask.type,\r\n priority: leadTask.priority,\r\n };\r\n};\r\n\r\nexport const leadTaskMapTable = ({\r\n id,\r\n title,\r\n date,\r\n type,\r\n priority,\r\n status,\r\n agentsFormat,\r\n users,\r\n description,\r\n lead,\r\n}) => {\r\n const data = {\r\n id,\r\n title,\r\n date,\r\n type: type.name,\r\n priority,\r\n status,\r\n users: getAssignedAgents(users.items.map((user) => ({ user }))),\r\n agentsFormat,\r\n description,\r\n lead,\r\n };\r\n\r\n return data;\r\n};\r\n\r\nexport const leadTaskMapDashboardTable = (leadTask) => {\r\n const {\r\n id,\r\n title,\r\n date,\r\n status,\r\n createdAt,\r\n description,\r\n priority,\r\n agents,\r\n agentsFormat,\r\n } = leadTaskMap(leadTask);\r\n\r\n return {\r\n id,\r\n title,\r\n description,\r\n date,\r\n status,\r\n createdAt,\r\n priority,\r\n agents,\r\n agentsFormat,\r\n };\r\n};\r\n","import moment from 'moment';\n\n/**\n * Create data week, day, weekday and full date.\n *\n * @param {string} date - The date data\n *\n * @returns {Array} The week of the calendar\n */\nexport const getWeekForCalendar = (date) => {\n const week = [];\n\n for (let i = 0, j = 7; i < j; i++) {\n const dataWeek = {};\n const _date = moment(date).weekday(i)._d;\n\n dataWeek.day = moment(_date).format('DD');\n dataWeek.weekday = moment(_date)\n .weekday(i)\n .format('dd')\n .substr(0, 1);\n dataWeek.fullDate = moment(_date).format('YYYY-MM-DD');\n week.push(dataWeek);\n }\n\n return week;\n};\n\nexport const PERIOD_OF_TIME_OPTIONS = [\n {\n label: 'Current Year',\n value: {\n createdAt: {\n gte: moment()\n .startOf('year')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n {\n label: 'Last 30 days',\n value: {\n createdAt: {\n gte: moment()\n .subtract(30, 'days')\n .startOf('day')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n {\n label: 'Last month',\n value: {\n createdAt: {\n gte: moment()\n .subtract(1, 'months')\n .startOf('month')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n {\n label: 'Last 3 months',\n value: {\n createdAt: {\n gte: moment()\n .subtract(3, 'months')\n .startOf('month')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n {\n label: 'Last 6 months',\n value: {\n createdAt: {\n gte: moment()\n .subtract(6, 'months')\n .startOf('month')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n {\n label: 'Last Year',\n value: {\n createdAt: {\n gte: moment()\n .subtract(1, 'years')\n .startOf('year')\n .format('YYYY-MM-DDTHH:mm:ssZ'),\n },\n },\n },\n];\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Dropdown } from 'shared/components';\nimport { PRIORITIES } from '../../../shared/constants';\nimport styled from 'styled-components';\nimport { updateCampaign } from '../campaigns-actions';\n\nconst DropdownOption = styled.div`\n padding: 0px ${(props) => (props.isHead ? '0px' : '16px')};\n`;\nconst component = (priority) => (props) => {priority};\n\nconst PriorityCell = ({ rowData, value }) => {\n const [priority, setPriority] = useState(value);\n const handleOnChange = (value) => {\n setPriority(value);\n updateCampaign({ id: rowData.id, priority: value.toString() });\n };\n\n return (\n {\n return {\n value: `${index + 1}`,\n Component: component(priority),\n };\n })}\n onChange={handleOnChange}\n />\n );\n};\n\nPriorityCell.propTypes = {\n value: PropTypes.string.isRequired,\n rowData: PropTypes.object.isRequired,\n};\n\nexport default PriorityCell;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Dropdown } from 'shared/components';\nimport { CAMPAIGN_STATUSES } from '../../../shared/constants';\nimport { updateCampaign } from '../campaigns-actions';\nimport styled from 'styled-components';\n\nconst DropdownOption = styled.div`\n padding: 0px ${(props) => (props.isHead ? '0px' : '16px')};\n`;\nconst component = (priority) => (props) => {priority};\n\nconst StatusCell = ({ rowData, value }) => {\n const [status, setStatus] = useState(value);\n const handleOnChange = (value) => {\n setStatus(value);\n updateCampaign({ id: rowData.id, status: value });\n };\n\n return (\n {\n return {\n value: status,\n Component: component(status),\n };\n })}\n onChange={handleOnChange}\n />\n );\n};\n\nStatusCell.propTypes = {\n value: PropTypes.string.isRequired,\n rowData: PropTypes.object.isRequired,\n};\n\nexport default StatusCell;\n","import React from 'react';\nimport EmailMarketingCell from './components/EmailMarketingCell';\nimport PriorityCell from './components/PriorityCell';\nimport StatusCell from './components/StatusCell';\nimport { DropdownWithCheck } from 'shared/components';\nimport CustomLink from '../../shared/components/ui/CustomLink';\nimport DateBox from '../../shared/components/ui/DateBox';\n\n/**\n * Creates a customized priority cell for a Table component\n *\n * @param {object} rowData - Data user in a row of the table\n * @param {object} value - Value\n *\n * @returns {Function} Function that the table component will use to render the component\n */\nexport const priorityCellComponent = (rowData, value) => {\n const component = () => ;\n\n return component;\n};\n\n/**\n * Creates a customized email marketing cell for a Table component\n *\n * @param {object} rowData - Data user in a row of the table\n * @param {object} value - Value\n *\n * @returns {Function} Function that the table component will use to render the component\n */\nexport const emailMarketingCellComponent = (rowData, value) => {\n const component = () => ;\n\n return component;\n};\n\n/**\n * Creates a customized status cell for a Table component\n *\n * @param {object} rowData - Data user in a row of the table\n * @param {object} value - Value\n *\n * @returns {Function} Function that the table component will use to render the component\n */\nexport const statusCellComponent = (rowData, value) => {\n const component = () => ;\n\n return component;\n};\n\n/**\n * Function that generates functions for table components\n *\n * @param {object} users - All users available to select\n * @param {Function} users.onConfirm - Function to call on form confirmation\n *\n * @returns {Function} Function received by the Table component to create the customized cell\n */\nexport const dropdownUpdateCellFactory = ({ items, onConfirm, rowDataKey, label }) => {\n /**\n * Creates a customized dropdown cell for a Table component\n *\n * @param {object} rowData - Data user in a row of the table\n * @param {object} value - Value\n *\n * @returns {Function} Function that the table component will use to render the component\n */\n const dropdownUpdateCellComponent = (rowData, value) => {\n const component = () => {\n const selectedItems = rowData[rowDataKey]; // this selected items come from the record.\n let header = '';\n\n if (selectedItems.length > 0) {\n const firstItem = selectedItems[0];\n header = label(firstItem);\n header =\n selectedItems.length > 1 ? `${header} and ${selectedItems.length - 1} others` : header;\n }\n\n if (items.length === 0) return null;\n\n return (\n ({\n id: item.id,\n label: label(item),\n checked: selectedItems.some((u) => u.id === item.id),\n }))}\n header={header}\n onConfirm={(value) => onConfirm(rowData.id, value)}\n />\n );\n };\n\n return component;\n };\n\n return dropdownUpdateCellComponent;\n};\n\n/**\n * Returns a cell component with a name that links to the\n * campaign details\n *\n * @param {object} rowData - The resource object\n * @param {string} value - The value of the cell\n *\n * @returns {React.FC} the cell function component\n */\nexport const nameCellComponent = (rowData, value) => {\n const component = () => {value};\n\n return component;\n};\n\n/**\n * Returns a cell component with a date\n *\n * @param {object} rowData - The resource object\n * @param {string} value - The value of the cell\n *\n * @returns {React.FC} the cell function component\n */\nexport const dateCellComponent = (rowData, value) => {\n const component = () => ;\n\n return component;\n};\n","import React, { useState, useEffect } from 'react';\nimport { Card, Row, Column, Loader, Select, NoData, styled } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Title, SecondaryTitle } from '../../../shared/components';\nimport AgentSlide from '../../../shared/components/agents-slider/AgentSlide';\nimport { IconPerformanceGreen } from '../../../shared/components/ui/Icons';\nimport { fetchTopPerformers } from '../dashboard-action';\nimport { IconLeftArrow, IconRightArrow } from '../../../shared/components/ui/Icons';\nimport { PERIOD_OF_TIME_OPTIONS } from '../dashboard-utils';\nimport { OnFetchTopPerformersEvent } from '../dashboard-events';\nimport Slider from 'react-slick';\nimport PropTypes from 'prop-types';\n\nconst Container = styled.div`\n width: 100%;\n max-width: 550px;\n`;\n\nconst Arrow = styled.div`\n top: 45% !important;\n\n &::before {\n display: none !important;\n }\n`;\n\nconst currency = new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n notation: 'compact',\n});\n\n/**\n * Top performers component\n *\n * @param {object} props - The component's props object\n * @param {string} props.agencyId - The id of the agency to fetch the performers from\n *\n * @returns {React.ReactElement} The component to render\n */\nfunction TopPerformersSlide(props) {\n const [loading, setLoading] = useState(true);\n const [performers, setPerformers] = useState([]);\n const [period, setPeriod] = useState(\n PERIOD_OF_TIME_OPTIONS.find((p) => p.label === 'Current Year').value,\n );\n\n useEffect(() => {\n setLoading(true);\n\n fetchTopPerformers(1, {\n agency: props.agencyId,\n period,\n });\n }, [props.agencyId, period]);\n\n useSubscription(\n OnFetchTopPerformersEvent,\n ({ leadsList }) => {\n setPerformers(leadsList.groups);\n setLoading(false);\n },\n [],\n );\n\n const content = loading ? (\n \n \n \n ) : (\n \n \n {performers.length > 0 ? (\n \n \n {performers.map((performance, i) => {\n return (\n \n );\n })}\n \n \n ) : (\n \n )}\n \n );\n\n return (\n \n \n \n Top Performers\n \n \n Performance Overview\n \n \n \n {content}\n \n );\n}\n\nconst NextArrow = (props) => {\n return (\n \n \n \n );\n};\n\nconst PrevArrow = (props) => {\n return (\n \n \n \n );\n};\n\nconst settings = {\n variableWidth: false,\n dots: false,\n infinite: false,\n slidesToShow: 5,\n slidesToScroll: 1,\n nextArrow: ,\n prevArrow: ,\n};\n\nTopPerformersSlide.propTypes = {\n agencyId: PropTypes.string.isRequired,\n};\n\nexport default TopPerformersSlide;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchCampaignMetricsEvent = createEvent();\nexport const OnFetchCampaignMetricsError = createEvent();\nexport const OnFetchCampaignAgingLeadsEvent = createEvent();\nexport const OnFetchCampaignAgingLeadsError = createEvent();\nexport const OnFetchAgencyMetricsEvent = createEvent();\nexport const OnFetchAgencyMetricsError = createEvent();\nexport const OnFetchUserMetricsEvent = createEvent();\nexport const OnFetchUserMetricsError = createEvent();\nexport const OnFetchCampaignsEvent = createEvent();\nexport const OnFetchCampaignsError = createEvent();\n","import React from 'react';\nimport { Icon } from '@8base/boost';\n\n/**\n * Returns a cell component with a name that links to the\n * campaign details\n *\n * @param {object} _rowData - The resource object\n * @param {string} value - The value of the cell\n *\n * @returns {React.FC} the cell function component\n */\nexport const metricCellComponent = (_rowData, value) => {\n const component = () => (\n

    {value}

    \n );\n\n return component;\n};\nexport const leadNameCellComponent = (_rowData, value) => {\n const component = () =>

    {value}

    ;\n\n return component;\n};\n\nexport const leadStatusCellComponent = (_rowData, value) => {\n const component = () => {\n if (value === 'X') {\n return (\n
    \n \n
    \n );\n } else {\n return ;\n }\n };\n return component;\n};\n","import gql from 'graphql-tag';\n\nexport const agencyMetrics = gql`\n query AgencyMetricsAggregate($agencyId: String!, $from: DateTime, $to: DateTime) {\n agencyMetricsAggregate(agencyId: $agencyId, from: $from, to: $to) {\n speedToContact\n speedToContactAttempt\n leadsContactRate\n leadsCompetitiveRate\n leadsConversionRate\n uniqueLeadsContacted\n uniqueLeadsCompetitive\n uniqueLeadsConverted\n totalContactAttempts\n totalContactsMade\n }\n }\n`;\n\nexport const campaignMetrics = gql`\n query CampaignMetricsAggregate($campaignId: String!, $from: DateTime, $to: DateTime) {\n campaignMetricsAggregate(campaignId: $campaignId, from: $from, to: $to) {\n speedToContact\n speedToContactAttempt\n leadsContactRate\n leadsCompetitiveRate\n leadsConversionRate\n uniqueLeadsContacted\n uniqueLeadsCompetitive\n uniqueLeadsConverted\n totalContactAttempts\n totalContactsMade\n }\n }\n`;\n\nexport const userMetrics = gql`\n query UserMetricsAggregate($userId: String!, $from: DateTime, $to: DateTime) {\n userMetricsAggregate(userId: $userId, from: $from, to: $to) {\n speedToContact\n speedToContactAttempt\n leadsContactRate\n leadsCompetitiveRate\n leadsConversionRate\n uniqueLeadsContacted\n uniqueLeadsCompetitive\n uniqueLeadsConverted\n totalContactAttempts\n totalContactsMade\n }\n }\n`;\n\nexport const fetchCampaignsByAgency = gql`\n query CampaignsByAgency($agencyId: ID) {\n agency(id: $agencyId) {\n agencyCampaignRelation {\n items {\n id\n name\n }\n }\n }\n }\n`;\n\nexport const getCampaignAgingLeads = gql`\n query GET_AGING_CAMPAIGN_LEADS($campaignId: ID, $page: Int) {\n agingCampaignLeads(campaignId: $campaignId, page: $page) {\n count\n result {\n id\n leadName\n zeroToThirty\n thirtyToSixty\n sixtyToNinety\n ninetyPlus\n }\n }\n }\n`;\n","import { OnApolloClient } from 'shared/session/session-events';\nimport {\n campaignMetrics,\n agencyMetrics,\n userMetrics,\n fetchCampaignsByAgency,\n getCampaignAgingLeads,\n} from './metrics-queries';\nimport {\n OnFetchCampaignMetricsEvent,\n OnFetchCampaignMetricsError,\n OnFetchAgencyMetricsEvent,\n OnFetchAgencyMetricsError,\n OnFetchUserMetricsEvent,\n OnFetchUserMetricsError,\n OnFetchCampaignsEvent,\n OnFetchCampaignsError,\n OnFetchCampaignAgingLeadsEvent,\n OnFetchCampaignAgingLeadsError,\n} from './metrics-events';\n\nexport async function fetchCampaignMetrics(campaignId, from, to) {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: campaignMetrics,\n fetchPolicy: 'no-cache',\n variables: { campaignId: campaignId, from: from, to: to },\n });\n } catch (error) {\n console.log('error fetching campaign metrics', error);\n\n return OnFetchCampaignMetricsError.dispatch(error);\n }\n\n return OnFetchCampaignMetricsEvent.dispatch(response.data);\n}\n\nexport async function fetchAgencyMetrics(agencyId, from, to) {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: agencyMetrics,\n fetchPolicy: 'no-cache',\n variables: { agencyId: agencyId, from: from, to: to },\n });\n } catch (e) {\n console.log('error fetching agency metrics', e);\n\n return OnFetchAgencyMetricsError.dispatch(e);\n }\n\n return OnFetchAgencyMetricsEvent.dispatch(response.data);\n}\n\nexport async function fetchUserMetrics(userId, from, to) {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: userMetrics,\n fetchPolicy: 'no-cache',\n variables: { userId: userId, from: from, to: to },\n });\n } catch (e) {\n console.log('error fetching user metrics', e);\n\n return OnFetchUserMetricsError.dispatch(e);\n }\n\n return OnFetchUserMetricsEvent.dispatch(response.data);\n}\n\nexport async function fetchCampaignAgingLeads(campaignId, page) {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: getCampaignAgingLeads,\n fetchPolicy: 'no-cache',\n variables: { campaignId: campaignId, page: page },\n });\n } catch (e) {\n console.log('error fetching campaign aging leads', e);\n\n return OnFetchCampaignAgingLeadsError.dispatch(e);\n }\n\n return OnFetchCampaignAgingLeadsEvent.dispatch(response.data);\n}\n\nexport async function fetchCampaigns(agencyId) {\n const client = OnApolloClient.get();\n //const first = 10;\n //const skip = first * (page - 1);\n // const sort = { alias: 'amount', direction: 'DESC' };\n let response = null;\n\n try {\n response = await client.query({\n query: fetchCampaignsByAgency,\n fetchPolicy: 'no-cache',\n variables: { agencyId: agencyId },\n });\n } catch (e) {\n console.log('error fetching campaigns', e);\n\n return OnFetchCampaignsError.dispatch(e);\n }\n\n return OnFetchCampaignsEvent.dispatch(response.data);\n}\n","import React, { useState, useEffect, useRef } from 'react';\nimport { OnFetchCampaignsEvent, OnFetchCampaignsError } from './metrics-events';\n\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Grid, Paper, Pagination } from '@8base/boost';\nimport { AgingTableLite, TableHeader } from 'shared/components';\nimport styled from 'styled-components';\nimport { Button, SelectField } from '@8base/boost';\nimport { leadNameCellComponent, leadStatusCellComponent } from './metrics-cells';\nimport { onErrorMixinFC } from 'shared/mixins';\nimport { useHistory } from 'react-router-dom';\nimport { fetchCampaignAgingLeads } from './metrics-actions';\nimport { OnFetchCampaignAgingLeadsEvent, OnFetchCampaignAgingLeadsError } from './metrics-events';\n\nconst StyledLayoutFilters = styled(Grid.Layout)`\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 15px;\n margin-bottom: 30px;\n margin: 0 10px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\nconst StyledPaper = styled(Paper)`\n height: 25rem;\n`;\nconst Padded = styled.div`\n padding-bottom: 1.5rem;\n`;\n/**\n *\n */\nexport default function AgingTable() {\n const paginationRef = useRef(null);\n const [page, setPage] = useState(1);\n const [campaignId, setCampaignId] = useState();\n const [campaign, setCampaign] = useState('');\n const [campaigns, setCampaigns] = useState();\n const [leadCount, setLeadCount] = useState(0);\n const [fetchedLeads, setFetchedLeads] = useState([]);\n const [loading, setLoading] = useState(true);\n const history = useHistory();\n\n useEffect(() => {\n if (campaignId) {\n setLoading(true);\n fetchCampaignAgingLeads(campaignId, page);\n }\n }, [campaignId, page]);\n\n useSubscription(\n OnFetchCampaignAgingLeadsEvent,\n ({ agingCampaignLeads }) => {\n if (!agingCampaignLeads) {\n setLeadCount(0);\n setFetchedLeads([]);\n setLoading(false);\n return;\n }\n\n let { result, count } = agingCampaignLeads;\n let cleanResult = result.map((item) => {\n const { __typename, ...rest } = item;\n return rest;\n });\n\n setFetchedLeads(cleanResult);\n if (cleanResult.length > 0) {\n setLeadCount(count);\n } else {\n setLeadCount(0);\n }\n console.log('AGING CAMPAIGN LEADS', JSON.stringify(agingCampaignLeads.result));\n\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchCampaignsEvent,\n ({ agency }) => {\n let campaigns = agency.agencyCampaignRelation.items.map((item) => {\n return {\n value: item.id,\n label: item.name,\n };\n });\n\n console.log('CAMPAIGN', campaign);\n if (campaigns.length > 0) {\n setCampaigns(campaigns);\n setCampaign(campaigns?.[0]?.value);\n setCampaignId(campaigns?.[0]?.value);\n } else {\n setCampaigns([]);\n setCampaignId(null);\n setCampaign(null);\n setFetchedLeads([]);\n setLoading(false);\n }\n },\n [],\n );\n useSubscription(OnFetchCampaignsError, (err) => {\n onErrorMixinFC(err);\n });\n useSubscription(OnFetchCampaignAgingLeadsError, (err) => {\n onErrorMixinFC({ message: 'GraphQL error: Could not fetch Aging Leads' });\n });\n return (\n \n \n \n \n\n \n \n

    Select Campaign

    \n
    \n \n {\n setCampaign(value);\n setCampaignId(value);\n },\n }}\n />\n \n {/* \n \n */}\n
    \n\n {\n history.push(`/leads/${leadId}`);\n },\n },\n ]}\n ignoreColumns={['id']}\n />\n
    \n \n \n setPage(page)}\n defaultPage={1}\n total={leadCount}\n page={page}\n />\n \n \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from 'react';\nimport { Grid, Paper, Row } from '@8base/boost';\nimport { TableLite, TableHeader } from 'shared/components';\nimport styled from 'styled-components';\nimport {\n ButtonGroup,\n Button,\n Icon,\n Menu,\n DateInputField,\n SelectField,\n Select,\n Checkbox,\n} from '@8base/boost';\nimport { metricCellComponent } from './metrics-cells';\nimport { AGENT, CAMPAIGN, AGENCY } from './metrics-utils';\n\nconst StyledLayout = styled(Grid.Layout)`\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 15px;\n margin-bottom: 30px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\nconst StyledLayoutFilters = styled(Grid.Layout)`\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 15px;\n margin-bottom: 30px;\n margin: 0 10px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\n\nexport default function MetricsTable({\n aggregateMetrics,\n performanceMetrics,\n type = 'normal',\n entityType,\n setEntityType,\n isLoading = false,\n campaigns,\n setCampaignId,\n createdFromCheck,\n setCreatedFromCheck,\n dateRangeCheck,\n setDateRangeCheck,\n dateStartsAt,\n setDateStartsAt,\n dateEndsAt,\n setDateEndsAt,\n campaign,\n setCampaign,\n range,\n setRange,\n setShouldFetchMetrics,\n}) {\n const isDateStateClear =\n !dateStartsAt && !dateEndsAt && !dateRangeCheck && !createdFromCheck && !range;\n\n const handleClearDateRange = () => {\n setDateStartsAt(''); // Reset start date\n setDateEndsAt(''); // Reset end date\n setDateRangeCheck(false); // Uncheck the date range checkbox\n setCreatedFromCheck(false); // Uncheck the created from checkbox\n setRange(''); // Reset the range dropdown\n };\n\n return (\n \n \n \n \n\n <>\n \n \n setEntityType(AGENCY)}>\n Agency\n \n setEntityType(CAMPAIGN)}>\n Campaigns\n \n setEntityType(AGENT)}>\n Agent\n \n \n \n\n \n {entityType === CAMPAIGN && (\n \n {\n setCampaign(value);\n setCampaignId(value);\n console.log('CAMPAIGN VALUE', value);\n },\n }}\n />\n \n )}\n \n {\n setCreatedFromCheck(!createdFromCheck);\n setDateRangeCheck(false);\n setRange('');\n }}\n />\n \n\n \n setDateStartsAt(value),\n }}\n />\n \n \n setDateEndsAt(value),\n }}\n />\n \n {/* \n {\n setDateRangeCheck(!dateRangeCheck);\n setCreatedFromCheck(false);\n setDateEndsAt('');\n setDateStartsAt('');\n }}\n />\n \n \n setRange(value),\n }}\n />\n */}\n \n \n \n \n {\n if (entityType === CAMPAIGN) {\n setCampaign(campaign);\n setCampaignId(campaign);\n }\n setShouldFetchMetrics(true);\n console.log({\n dateEndsAt,\n dateStartsAt,\n dateRangeCheck,\n createdFromCheck,\n entityType,\n campaign,\n range,\n });\n }}>\n Apply\n \n \n \n \n \n \n \n {} }]}\n ignoreColumns={['id']}\n />\n \n \n \n {} }]}\n ignoreColumns={['id']}\n />\n \n \n \n );\n}\n","export const AGENCY = 'Agency';\nexport const CAMPAIGN = 'Campaign';\nexport const AGENT = 'Agent';","import React, { useState, useEffect, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport MetricsTable from './MetricsTable';\nimport {\n OnFetchCampaignMetricsEvent,\n OnFetchCampaignMetricsError,\n OnFetchAgencyMetricsEvent,\n OnFetchAgencyMetricsError,\n OnFetchUserMetricsEvent,\n OnFetchUserMetricsError,\n OnFetchCampaignsEvent,\n OnFetchCampaignsError,\n} from './metrics-events';\nimport {\n fetchCampaignMetrics,\n fetchAgencyMetrics,\n fetchUserMetrics,\n fetchCampaigns,\n} from './metrics-actions';\nimport { AGENT, CAMPAIGN, AGENCY } from './metrics-utils';\nimport { onErrorMixinFC } from 'shared/mixins';\nexport default function MetricsWrapper({ type = 'normal', user }) {\n const [loading, setLoading] = useState(true);\n const [entityType, setEntityType] = useState(AGENCY);\n const [campaignId, setCampaignId] = useState();\n const [campaign, setCampaign] = useState('');\n const [campaigns, setCampaigns] = useState();\n const [aggregateMetrics, setAggregateMetrics] = useState(null);\n const [performanceMetrics, setPerformanceMetrics] = useState(null);\n const [dateRangeCheck, setDateRangeCheck] = useState(false);\n const [createdFromCheck, setCreatedFromCheck] = useState(false);\n const [dateStartsAt, setDateStartsAt] = useState('');\n const [dateEndsAt, setDateEndsAt] = useState('');\n const [range, setRange] = useState('');\n const [shouldFetchMetrics, setShouldFetchMetrics] = useState(true);\n const [initialFetchDone, setInitialFetchDone] = useState(false);\n\n useEffect(() => {\n fetchCampaigns(user?.selectedAgency.id);\n }, []);\n\n useEffect(() => {\n setDateRangeCheck(false);\n setCreatedFromCheck(false);\n setDateStartsAt('');\n setDateEndsAt('');\n setRange('');\n }, [entityType]);\n\n useEffect(() => {\n const shouldFetch = shouldFetchMetrics || !initialFetchDone || entityType;\n let from, to;\n\n if (shouldFetch) {\n // Set initialFetchDone to true\n setInitialFetchDone(true);\n\n // Reset the shouldFetchMetrics flag\n setShouldFetchMetrics(false);\n\n // Set loading to true\n setLoading(true);\n\n // Check if dateStartsAt and dateEndsAt are set, then add them to fetchParams\n if (dateStartsAt) from = dateStartsAt + 'T00:00:00.000Z';\n if (dateEndsAt) to = dateEndsAt + 'T12:59:59.999Z';\n\n switch (entityType) {\n case AGENCY: {\n fetchAgencyMetrics(user?.selectedAgency.id, from, to);\n break;\n }\n case CAMPAIGN: {\n if (campaignId) {\n fetchCampaignMetrics(campaignId, from, to);\n } else {\n setPerformanceMetrics([\n {\n id: 'id',\n totalContactAttempts: 0,\n totalContactsMade: 0,\n uniqueLeadsContacted: 0,\n uniqueLeadsQualified: 0,\n uniqueLeadsConverted: 0,\n },\n ]);\n setAggregateMetrics([\n {\n id: 'id2',\n avgSpeedToContactAttempt: 'N/A',\n avgSpeedToContact: 'N/A',\n leadContactRate: 0 + '%',\n leadCompetitiveRate: 0 + '%',\n leadConversionRate: 0 + '%',\n },\n ]);\n setLoading(false);\n }\n break;\n }\n case AGENT: {\n fetchUserMetrics(user?.id, from, to);\n break;\n }\n }\n }\n }, [shouldFetchMetrics, initialFetchDone, entityType, campaignId]);\n\n function setMetrics(metric) {\n if (metric) {\n setPerformanceMetrics([\n {\n id: metric?.id,\n totalContactAttempts: metric?.totalContactAttempts,\n totalContactsMade: metric?.totalContactsMade,\n uniqueLeadsContacted: metric?.uniqueLeadsContacted,\n uniqueLeadsQualified: metric?.uniqueLeadsCompetitive,\n uniqueLeadsConverted: metric?.uniqueLeadsConverted,\n },\n ]);\n setAggregateMetrics([\n {\n id: metric?.id,\n avgSpeedToContactAttempt: metric?.speedToContactAttempt,\n avgSpeedToContact: metric?.speedToContact,\n leadContactRate: metric?.leadsContactRate + '%',\n leadCompetitiveRate: metric?.leadsCompetitiveRate + '%',\n leadConversionRate: metric?.leadsConversionRate + '%',\n },\n ]);\n } else {\n setPerformanceMetrics([]);\n setAggregateMetrics([]);\n setLoading(false);\n }\n }\n useSubscription(\n OnFetchCampaignMetricsEvent,\n ({ campaignMetricsAggregate }) => {\n let metric = campaignMetricsAggregate;\n setMetrics(metric);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchAgencyMetricsEvent,\n ({ agencyMetricsAggregate }) => {\n let metric = agencyMetricsAggregate;\n setMetrics(metric);\n setLoading(false);\n },\n [],\n );\n useSubscription(\n OnFetchUserMetricsEvent,\n ({ userMetricsAggregate }) => {\n let metric = userMetricsAggregate;\n setMetrics(metric);\n\n setLoading(false);\n },\n [],\n );\n useSubscription(\n OnFetchCampaignsEvent,\n ({ agency }) => {\n let fetchedCampaigns = agency.agencyCampaignRelation.items.map((item) => {\n return {\n value: item.id,\n label: item.name,\n };\n });\n\n if (fetchedCampaigns.length > 0) {\n setCampaigns(fetchedCampaigns);\n const firstCampaign = fetchedCampaigns[0];\n setCampaignId(firstCampaign.value);\n setCampaign(firstCampaign.value);\n } else {\n // Handle the case when no campaigns exist\n console.log('THIS TRIGGERED');\n setCampaigns([]);\n setCampaignId(null);\n setCampaign(null);\n setLoading(false);\n }\n\n setLoading(false);\n },\n [],\n );\n\n useSubscription(OnFetchCampaignMetricsError, (err) => {\n onErrorMixinFC({ message: 'GraphQL error: Could not fetch Campaign Metrics' });\n });\n useSubscription(OnFetchAgencyMetricsError, (err) => {\n onErrorMixinFC({ message: 'GraphQL error: Could not fetch Agency Metrics' });\n });\n useSubscription(OnFetchUserMetricsError, (err) => {\n onErrorMixinFC({ message: 'GraphQL error: Could not fetch User Metrics' });\n });\n useSubscription(OnFetchCampaignsError, (err) => {\n onErrorMixinFC({ message: 'GraphQL error: Could not fetch Campaigns List' });\n });\n\n return (\n \n );\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, Grid, styled, Row } from '@8base/boost';\nimport { Margin } from 'shared/components';\n\nexport const Label = styled.span`\n font-family: 'Poppins';\n font-size: 13px !important;\n line-height: 20px;\n font-weight: 600;\n`;\n\nexport const Value = styled.span`\n font-family: 'Poppins';\n font-size: 13px !important;\n line-height: 20px;\n ${(props) =>\n props.oneline &&\n `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n `}\n`;\n\nconst FormSectionBody = styled(Form.SectionBody)`\n & > *:not(:last-child) {\n margin-bottom: ${(props) => props.space}px;\n }\n`;\n\nconst GridBoxFlexStart = styled(Grid.Box)`\n justify-content: flex-start;\n`;\n\n/**\n * Form with the values to show later\n *\n * @param {object} props - Component props\n * @param {object} props.data - Data to render\n * @param {object} props.rows - Rows with fields\n * @param {boolean} props.space - The number of pixels on margin bottom applied to each field row\n *\n * @returns {React.FC} - The component to render\n */\nconst FormValues = ({ data, rows, space = 16 }) => {\n return (\n
    \n \n \n {rows.map((row, rowIndex) => {\n const columnSize = (100 / row.length).toFixed(2);\n const gapSize = 16 * (row.length - 1);\n const columns = `repeat(${row.length -\n 1}, ${columnSize}%) calc(${columnSize}% - ${gapSize}px)`;\n\n return (\n \n {row.map((field, fieldIndex) => {\n let inputField;\n\n if (field.type === 'text') {\n inputField = (\n \n {field.inline ? (\n \n {field.label && }\n {data[field.key]}\n \n ) : (\n <>\n {field.label && (\n <>\n
    \n \n )}\n {data[field.key]}\n \n )}\n
    \n );\n }\n\n if (field.type === 'html') {\n inputField = (\n \n
    \n \n );\n }\n\n return {inputField};\n })}\n \n );\n })}\n \n \n \n );\n};\n\nFormValues.propTypes = {\n rows: PropTypes.array.isRequired,\n data: PropTypes.object.isRequired,\n space: PropTypes.number,\n};\n\nFormValues.defaultProps = {\n space: 16,\n};\n\nexport default FormValues;\n","import React, { useState, useEffect } from 'react';\nimport chevronDown from '../../../shared/assets/images/chevron-down.svg';\nimport { Loader } from 'shared/components';\nimport styled from 'styled-components';\nimport { AccordionItem as Item } from '@szhsin/react-accordion';\nimport { OnFeedbackReportCreate } from '../dashboard-events';\nimport { FaRegThumbsUp, FaRegThumbsDown, FaCheck, FaTimes } from 'react-icons/fa';\nimport { Label } from 'shared/components/forms/FormValues';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { createFeedback } from '../dashboard-action';\n\nconst ItemWithChevron = ({ header, ...rest }) => (\n \n {header}\n \"Chevron\n \n }\n />\n);\n\nconst AccordionItem = styled(ItemWithChevron)`\n border-bottom: 1px solid #ccc;\n .szh-accordion__item {\n &-btn {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n margin: 0;\n padding: 1rem;\n font-size: 1.4rem;\n font-weight: 400;\n text-align: left;\n color: #555;\n min-height: 5.5rem;\n background-color: transparent;\n border: none;\n &:hover {\n background-color: #f3f3f3;\n }\n }\n\n &-content {\n transition: height 0.25s cubic-bezier(0, 0, 0, 1);\n }\n\n &-panel {\n padding: 1rem;\n }\n }\n\n .chevron-down {\n margin-left: auto;\n transition: transform 0.25s cubic-bezier(0, 0, 0, 1);\n }\n\n &.szh-accordion__item--expanded {\n .szh-accordion__item-btn {\n background-color: #e7e7e7;\n }\n .chevron-down {\n transform: rotate(180deg);\n }\n }\n`;\n\nconst StyledTextarea = styled.textarea`\n width: 100%;\n max-width: 100%;\n min-height: 100px;\n padding: 8px;\n box-sizing: border-box;\n resize: vertical;\n border: 1px solid #ccc;\n border-radius: 8px;\n outline: none;\n flex: 1;\n &:focus {\n border-color: #4a90e2;\n box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.5);\n }\n\n @media (max-width: 768px) {\n min-height: 80px;\n }\n\n @media (max-width: 480px) {\n padding: 4px;\n }\n`;\n\nconst RatingButton = styled.button`\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n`;\n\nconst FeedbackButtons = styled.div`\n justify-content: flex-start;\n display: flex;\n gap: 8px;\n`;\n\nconst FeedbackForm = styled.div`\n display: grid;\n grid-template-columns: 1fr 15%;\n grid-template-rows: auto auto;\n grid-column-gap: 1rem;\n grid-template-areas:\n 'textarea submit'\n 'textarea cancel';\n`;\n\nconst FeedbackFormTextArea = styled.div`\n grid-area: textarea;\n`;\nconst FeedbackFormSubmit = styled.div`\n grid-area: submit;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\nconst FeedbackFormCancel = styled.div`\n grid-area: cancel;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\nconst Spacer = styled.div`\n margin: 1rem 0;\n`;\n\nconst ReportItem = ({ content, insightType, id, user }) => {\n const [feedback, setFeedback] = useState('');\n const [showFeedbackInput, setShowFeedbackInput] = useState(false);\n const [hideRatingButtons, setHideRatingButtons] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [isActive, setIsActive] = useState(false); //sets whether this component is the active one to show the confirmation msg\n const [showConfirmationMessage, setShowConfirmationMessage] = useState(false);\n\n useEffect(() => {\n console.log('content User:', user.selectedAgency.id);\n }, []);\n useSimpleSubscription(OnFeedbackReportCreate, () => {\n setIsLoading(false);\n if (isActive) {\n setShowConfirmationMessage(true);\n }\n });\n const handleThumbsUpClick = () => {\n setIsActive(true);\n setHideRatingButtons(true);\n setIsLoading(true);\n createFeedback(id, {\n dateTime: new Date().toISOString(),\n insight: content.insight,\n insightType,\n userId: user.id,\n agencyId: user.selectedAgency.id,\n rating: 'positive',\n });\n };\n const handleThumbsDownClick = () => {\n setIsActive(true);\n setShowFeedbackInput(true);\n setHideRatingButtons(true);\n };\n\n const handleCancelClick = () => {\n setShowFeedbackInput(false);\n setHideRatingButtons(false);\n setIsActive(false);\n setFeedback('');\n };\n\n const handleSubmitClick = () => {\n if (!feedback.trim()) {\n //exit function if feedback is empty\n return;\n }\n setShowFeedbackInput(false);\n setFeedback('');\n setIsLoading(true);\n createFeedback(id, {\n dateTime: new Date().toISOString(),\n insight: content.insight,\n insightType,\n feedback,\n userId: user.id,\n agencyId: user.selectedAgency.id,\n rating: 'negative',\n });\n };\n\n const handleChange = (event) => {\n setFeedback(event.target.value);\n };\n\n return (\n \n {content.insight}\n \n\n {!hideRatingButtons && (\n \n \n \n \n \n \n \n \n \n )}\n {showFeedbackInput && (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n {isLoading && }\n {showConfirmationMessage && }\n \n );\n};\n\nexport default ReportItem;\n","import React, { useState, useEffect } from 'react';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport { fetchAgencyReport } from '../dashboard-action';\nimport { OnFetchAgencyReportEvent } from '../dashboard-events';\nimport { Accordion } from '@szhsin/react-accordion';\n\nimport styled from 'styled-components';\nimport AgencyReportItem from './ReportItem';\nimport { Paper, Grid, Tabs, Row, Button, Select, Label } from '@8base/boost';\nimport { Loader } from 'shared/components';\n\nconst StyledPaper = styled(Paper)`\n padding: 0.75rem !important;\n`;\n\nconst Container = styled.div`\n max-width: 25rem;\n`;\n\nconst StyledButton = styled(Button)`\n font-size: 1.3rem !important;\n width: 12rem;\n`;\n\nconst Spacer = styled.div`\n margin: 1rem 0;\n`;\n\nconst OPTIONS = [\n { label: 'Weekly Report', value: 'weekly' },\n { label: 'Monthly Report', value: 'monthly' },\n { label: 'Quarterly Report', value: 'quarterly' },\n { label: 'Yearly Report', value: 'yearly' },\n];\nconst BusinessIntelligenceTabs = (props) => {\n /*if (!data || data.length === 0) {\n return
    No data available
    ;\n }*/\n const [period, setPeriod] = useState(OPTIONS.find((p) => p.label === 'Weekly Report').value);\n\n const [loading, setLoading] = useState(true);\n const [agencyReportId, setAgencyReportId] = useState(null);\n const [agencyReportOutput, setAgencyReportOutput] = useState(\n R.clone({ output: { observations: [], suggestions: [] } }),\n );\n\n useEffect(() => {\n setLoading(true);\n\n fetchAgencyReport(props.agencyId, period);\n }, [props.agencyId, period]);\n\n useSimpleSubscription(OnFetchAgencyReportEvent, (data) => {\n if (data) {\n setAgencyReportOutput(data.agencyReportsList?.items?.[0]?.output);\n setAgencyReportId(data.agencyReportsList?.items?.[0]?.id);\n\n setLoading(false);\n //console.log('OnFetchAgencyReportEvent data', data);\n }\n });\n\n console.log('BusinessIntelligenceTabs props', agencyReportOutput);\n\n return (\n \n \n \n \n

    Agency Report

    \n \n \n \n {loading ? (\n \n ) : (\n \n \n \n {({ selected }) => (\n \n Observations\n \n )}\n \n \n {({ selected }) => (\n \n Suggestions\n \n )}\n \n \n \n \n \n \n {agencyReportOutput?.observations?.map((observation, index) => {\n return (\n \n );\n })}\n \n \n \n \n \n \n {agencyReportOutput?.suggestions?.map((suggestion, index) => {\n return (\n \n );\n })}\n \n \n \n \n )}\n
    \n
    \n
    \n
    \n );\n};\n\nexport default BusinessIntelligenceTabs;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Grid, Paper, Row } from '@8base/boost';\nimport Announcement from './components/Announcement';\nimport TasksByDate from './components/TasksByDay';\nimport { TableLite, CardIndicator, TableHeader } from 'shared/components';\nimport styled from 'styled-components';\nimport { fetchCampaigns } from '../campaigns/campaigns-actions';\nimport { fetchUsers, fetchLeadsInLast24Hours } from './dashboard-action';\nimport { fetchLeadTask } from '../lead-task/lead-task-actions';\nimport { campaignMapDashboardTable } from '../campaigns/campaigns-utils';\nimport { leadTaskMapDashboardTable } from '../lead-task/lead-task-utils';\nimport { getWeekForCalendar, PERIOD_OF_TIME_OPTIONS } from './dashboard-utils';\nimport { fetchAnnouncements } from '../announcement/announcement-actions';\nimport { nameCellComponent } from '../campaigns/campaigns-cells';\nimport announcementModel from '../announcement/announcement-model';\nimport TopPerformersSlide from './components/TopPerformersSlide';\nimport * as R from 'ramda';\nimport moment from 'moment';\nimport qs from 'qs';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport { useUser } from 'shared/hooks/useUser';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { OnDashBoardElementsEvent, OnLeadsLast24HoursEvent } from './dashboard-events';\nimport { OnCampaignsList } from 'modules/campaigns/campaign-events';\nimport { OnLeadTaskList } from 'modules/lead-task/lead-task-events';\nimport { OnAnnouncementListEvent } from 'modules/announcement/announcement-events';\nimport AgingTable from 'modules/metrics/AgingTable';\nimport NormalMetrics from 'modules/metrics/MetricsTableWrapper';\nimport AgencyReportTabs from './components/AgencyReportTabs';\n\nconst DashboardLayout = styled.div`\n padding: 25px;\n\n @media screen and (max-width: 1440px) {\n padding: 15px;\n }\n`;\n\nconst StyledLayout = styled(Grid.Layout)`\n grid-template-columns: 2fr 2fr 1fr;\n grid-gap: 15px;\n margin-bottom: 30px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\nconst NormalLayout = styled(Grid.Layout)`\n grid-template-columns: 1fr 1fr;\n grid-gap: 15px;\n margin-bottom: 30px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\nconst StyledLayoutFilters = styled(Grid.Layout)`\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 15px;\n margin-bottom: 30px;\n margin: 0 10px;\n\n @media screen and (max-width: 1300px) {\n grid-template-columns: 1fr;\n grid-gap: 15px;\n }\n\n @media screen and (max-width: 1150px) {\n display: block;\n\n > div:first-child {\n margin-bottom: 24px;\n }\n }\n`;\n\nexport const DashboardView = () => {\n const agency = useAgency();\n const [user] = useUser();\n const [week, setWeek] = useState([]);\n const [campaigns, setCampaigns] = useState([]);\n const [leads, setLeads] = useState([]);\n const [users, setUsers] = useState([]);\n const [tasks, setTasks] = useState([]);\n const [newLeads24hours, setNewLeads24hours] = useState(0);\n const [loadingAnnouncement, setLoadingAnnouncement] = useState(false);\n const [isLoadingCampaigns, setIsLoadingCampaigns] = useState(false);\n const [isLoadingLeadTasks, setIsLoadingLeadTasks] = useState(false);\n const [periodOfTime] = useState(\n PERIOD_OF_TIME_OPTIONS.find((p) => p.label === 'Current Year').value,\n );\n const [selectedDay, setSelectedDay] = useState(moment().format('YYYY-MM-DD'));\n const [dateReference, setDateReference] = useState(moment().format('YYYY-MM-DD'));\n const [announcement, setAnnouncement] = useState(R.clone(announcementModel));\n const [position, setPosition] = useState('');\n\n const fetchAttempts = 3;\n const oneDayAgo = moment().subtract(24, 'hours');\n const now = moment();\n\n const getCampaigns = useCallback(() => {\n const filterData = agency.id\n ? {\n agency: agency.id,\n }\n : {};\n setIsLoadingCampaigns(true);\n fetchCampaigns({ first: 5, filterData }, fetchAttempts);\n }, [agency.id]);\n\n const getTasks = useCallback(\n (selectedDay) => {\n const week = getWeekForCalendar(dateReference);\n setWeek(week);\n const filterData =\n user.id && selectedDay\n ? {\n assignedTo: user.id,\n onDate: `${week[0].fullDate}T00:00:00Z`,\n }\n : {};\n if (agency && agency.id) {\n filterData['agency'] = agency.id;\n }\n setIsLoadingLeadTasks(true);\n fetchLeadTask({ filterData }, fetchAttempts);\n },\n [user.id, dateReference, agency],\n );\n\n const getLeadsInLast24Hours = useCallback(() => {\n fetchLeadsInLast24Hours(agency.id, fetchAttempts);\n }, [agency.id]);\n\n const getAnnouncement = useCallback(() => {\n const announcementFilter = agency.id\n ? {\n agency: agency.id,\n }\n : {};\n setLoadingAnnouncement(true);\n fetchAnnouncements(announcementFilter, fetchAttempts);\n }, [agency.id]);\n\n const onSelectDay = (selectedDay) => {\n setSelectedDay(selectedDay);\n };\n\n const onRightClick = () => {\n const DateReference = moment(dateReference).add(7, 'days');\n const week = getWeekForCalendar(DateReference);\n setWeek(week);\n setDateReference(dateReference);\n setSelectedDay(week[0].fullDate);\n };\n\n const onLeftClick = () => {\n const DateReference = moment(dateReference).subtract(7, 'days');\n const week = getWeekForCalendar(DateReference);\n setWeek(week);\n setDateReference(dateReference);\n setSelectedDay(week[6].fullDate);\n };\n\n useEffect(() => {\n getAnnouncement();\n getLeadsInLast24Hours();\n getTasks();\n getCampaigns();\n }, [getAnnouncement, getLeadsInLast24Hours, getTasks, getCampaigns]);\n\n useSimpleSubscription(OnDashBoardElementsEvent, (data) => {\n if (data) {\n const { position: positionData, leads, users } = data;\n setPosition(positionData === '' && positionData !== 0 ? positionData : position);\n setLeads(leads);\n setUsers(users);\n }\n });\n\n useSimpleSubscription(OnLeadsLast24HoursEvent, (data) => {\n if (data) {\n let leads = 0;\n data.agency.agencyCampaignRelation.items.forEach((campaing) => {\n leads = leads + campaing.campaignLeadRelation.count;\n });\n setNewLeads24hours(leads);\n }\n });\n\n useSimpleSubscription(OnCampaignsList, (data) => {\n if (data) {\n const {\n campaignsList: { items },\n } = data;\n setIsLoadingCampaigns(false);\n setCampaigns(items.map(campaignMapDashboardTable));\n }\n });\n\n useSimpleSubscription(OnLeadTaskList, (data) => {\n if (data) {\n const {\n leadTasksList: { items },\n } = data;\n setIsLoadingLeadTasks(false);\n setTasks(items.map(leadTaskMapDashboardTable));\n }\n });\n\n useSimpleSubscription(OnAnnouncementListEvent, (data) => {\n if (data) {\n let announcement = R.clone(announcementModel);\n\n if (data.announcementsList.items.length > 0) {\n announcement = data.announcementsList.items[0];\n }\n setAnnouncement(announcement);\n setLoadingAnnouncement(false);\n }\n });\n\n useEffect(() => {\n fetchUsers(agency.id, user.id, periodOfTime);\n }, [agency.id, user.id, periodOfTime]);\n\n const selectedDayFormat = moment(selectedDay).format('dddd MMMM Do');\n const momentSelectedDay = moment(selectedDay);\n const fromNowDate =\n moment().diff(momentSelectedDay, 'days') >= 1\n ? momentSelectedDay.fromNow()\n : momentSelectedDay.calendar().split(' ')[0];\n\n //Filter Leads sold in lastMonth\n const agencyLeadSoldInLastMonth = [];\n leads.forEach((lead) => {\n const findSale = lead.leadLeadStageHistoryRelation.items.find(\n (item) => item.stage.name === 'Sold',\n );\n if (findSale !== undefined) agencyLeadSoldInLastMonth.push(lead);\n });\n\n //Filter Leads sold by the user active in the last month\n const mySales = [];\n agencyLeadSoldInLastMonth.forEach((lead) => {\n lead.assignees.items.forEach((userLead) => {\n if (userLead.id === user.id) mySales.push(lead);\n });\n });\n // Function to determine which layout to use\n const getLayoutComponent = () => {\n return agency.enableInsights ? StyledLayout : NormalLayout;\n };\n\n // Use the determined layout component\n const LayoutComponent = getLayoutComponent();\n\n return (\n \n \n \n \n \n \n \n \n \n 0 ? `${newLeads24hours}` : '0'}\n text=\"New Leads in the last 24 hours\"\n link={{\n path: `/leads?${qs.stringify({\n createdAfter: oneDayAgo.toISOString(),\n createdBefore: now.toISOString(),\n })}`,\n name: 'Manage Leads',\n }}\n />\n \n \n \n \n \n \n \n {} },\n { name: 'Update', onClick: () => {} },\n ]}\n ignoreColumns={['id']}\n />\n \n \n \n \n \n \n \n item.user)}\n refetchTasks={() => getTasks(selectedDay)}\n leads={{ items: leads }}\n activeAgencyId={agency.id}\n fromNowDate={fromNowDate}\n selectedDayFormat={selectedDayFormat}\n onSelectDay={onSelectDay}\n selectedDay={selectedDay}\n onLeftClick={onLeftClick}\n onRightClick={onRightClick}\n />\n \n \n \n \n \n \n \n {agency.enableInsights && (\n \n \n \n )}\n \n \n
    \n \n
    \n );\n};\n","import styled from 'styled-components';\n\nexport const H1 = styled.h1`\n font-family: 'Poppins';\n font-weight: 500;\n font-size: 32px;\n line-height: 48px;\n letter-spacing: 0.5;\n`;\n\nexport const H2 = styled.h2`\n font-family: 'Poppins';\n font-weight: 400;\n font-size: 18px;\n line-height: 28px;\n letter-spacing: 0.5;\n`;\n\nexport const H3 = styled.h3`\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n letter-spacing: 0.2;\n`;\n\nexport const H4 = styled.h4`\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.5;\n`;\n\nexport const SubTitle = styled.p`\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.5;\n`;\n\nexport const Body = styled.p`\n font-family: 'Poppins';\n font-weight: 400;\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.2;\n`;\n\nexport const Button = styled.span`\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.2;\n`;\n\nexport const Link = styled.a`\n font-family: 'Poppins';\n font-weight: 400;\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.2;\n color: var(--color-blue-light);\n`;\n\nexport const Overline = styled.p`\n font-family: 'Poppins';\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5;\n`;\n\nexport const OverlineBold = styled.p`\n font-family: 'Poppins';\n font-weight: 600;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5;\n text-transform: uppercase;\n`;\n\nexport const Small = styled.span`\n font-family: 'Poppins';\n font-weight: 500;\n font-size: 10px;\n line-height: 16px;\n letter-spacing: 0.2;\n`;\n\nexport const SmallUpper = styled.span`\n font-family: 'Poppins';\n font-weight: 500;\n font-size: 10px;\n line-height: 16px;\n letter-spacing: 0.2;\n text-transform: uppercase;\n`;\n","import React from 'react';\nimport { Row } from '@8base/boost';\nimport {\n Title,\n TextTable,\n TextContact,\n ButtonWithoutIcon,\n ButtonIcon,\n PrimaryBtn,\n AuthBtn,\n CardIndicator,\n DateBox,\n PriorityBadge,\n TitleDetail,\n CustomLink,\n Loader,\n SecondaryTitle,\n DeleteBtn,\n FilterBtn,\n SortBtn,\n RadioInputField,\n OptionsDropdown,\n} from 'shared/components';\nimport {\n H1,\n H2,\n H3,\n H4,\n SubTitle,\n Body,\n Button,\n Link,\n Overline,\n OverlineBold,\n Small,\n SmallUpper,\n} from 'shared/components/Typography';\n\nconst TitleExample = () => My Account / Settings;\nconst TextTableExample = () => 123456;\nconst TextContactExample = () => (\n \n George Franklin
    \n (562) 353-0543\n
    \n);\nconst ButtonWithoutIconExample = () => ;\nconst ButtonIconExample = () => (\n \n);\nconst PrimaryBtnExample = () => Create;\nconst CardIndicatorExample = () => (\n
    \n \n
    \n);\nconst AuthBtnExample = () => ;\nconst DateBoxExample = () => ;\nconst PriorityBadgeExample = () => (\n \n \n \n \n \n);\nconst TitleDetailExample = () => ;\nconst CustomLinkExample = () => View all Campaigns;\nconst LoaderExample = () => ;\nconst SecondaryTitleExample = () => Top Performers;\nconst DeleteBtnExample = () => ;\nconst FilterBtnExample = () => ;\nconst SortBtnExample = () => ;\nconst RadioInputFieldExample = () => ;\nconst TypographyExample = () => (\n <>\n

    H1

    \n

    H2

    \n

    H3

    \n

    H4

    \n SubTitle\n Body\n \n
    \n Link\n Overline\n OverlineBold\n Small\n
    \n SmallUpper\n \n);\n\nconst OptionsDropdownExample = () => (\n {}, label: 'TEST' },\n { onClick: () => {}, label: 'Danger', danger: true },\n ]}\n />\n);\n\nexport default [\n {\n name: 'Title',\n description: 'Received a children',\n Component: TitleExample,\n code: `My Account / Settings`,\n props: [],\n },\n {\n name: 'TextTable',\n description: 'Received a children',\n Component: TextTableExample,\n code: `123456`,\n props: [],\n },\n {\n name: 'TextContact',\n description: 'Received a children',\n Component: TextContactExample,\n code: `George Franklin
    (562) 353-0543
    `,\n props: [],\n },\n {\n name: 'ButtonWithoutIcon',\n description: 'Received a Text and function action by props onClick',\n Component: ButtonWithoutIconExample,\n code: ``,\n props: [\n {\n name: 'text',\n type: 'string',\n isRequired: true,\n },\n {\n name: 'onClick',\n type: 'func',\n isRequired: true,\n },\n ],\n },\n {\n name: 'ButtonIcon',\n description:\n 'Received a Text, image icon svg by props iconSvg and function action by props onClick',\n Component: ButtonIconExample,\n code: ``,\n props: [\n {\n name: 'text',\n type: 'string',\n isRequired: true,\n },\n {\n name: 'onClick',\n type: 'func',\n isRequired: true,\n },\n {\n name: 'iconSvg',\n type: 'image',\n isRequired: true,\n },\n ],\n },\n {\n name: 'PrimaryBtn',\n description: 'Received a children and onClick prop function',\n Component: PrimaryBtnExample,\n code: `Create`,\n props: [\n {\n name: 'onClick',\n type: 'func',\n isRequired: true,\n },\n ],\n },\n {\n name: 'AuthBtn',\n description: 'This component is from 8base repo starter, show button for logout and sign in',\n Component: AuthBtnExample,\n code: ``,\n props: [],\n },\n {\n name: 'CardIndicator',\n description: 'Card with title, subtitle and a link',\n Component: CardIndicatorExample,\n code: `\n\n `,\n props: [\n {\n name: 'title',\n type: 'string',\n isRequired: true,\n },\n {\n name: 'text',\n type: 'string',\n isRequired: true,\n },\n {\n name: 'link',\n type: 'object',\n isRequired: true,\n },\n ],\n },\n {\n name: 'DateBox',\n description: 'Received a date via props',\n Component: DateBoxExample,\n code: '',\n props: [\n {\n name: 'date',\n type: 'string',\n isRequired: true,\n },\n ],\n },\n {\n name: 'PriorityBadge',\n description: 'Badge for tasks, values for priority prop: lo, mid and hi',\n Component: PriorityBadgeExample,\n code: `\n<>\n \n \n \n\n `,\n props: [\n {\n name: 'priority',\n type: 'string',\n isRequired: true,\n },\n ],\n },\n {\n name: 'TitleDetail',\n description: 'Title for use it in details view',\n Component: TitleDetailExample,\n code: `\n\n `,\n props: [\n {\n name: 'text',\n type: 'string',\n isRequired: true,\n },\n ],\n },\n {\n name: 'CustomLink',\n description: 'Custom react-router-dom link',\n Component: CustomLinkExample,\n code: `\nView all Campaigns\n `,\n props: [],\n },\n {\n name: 'Loader',\n description: 'Loader usign 8base-boost',\n Component: LoaderExample,\n code: '',\n props: [],\n },\n {\n name: 'SecondaryTitle',\n description: 'Received a children',\n Component: SecondaryTitleExample,\n code: 'Top Performers',\n props: [],\n },\n {\n name: 'DeleteBtn',\n description: 'Red button that received a children as text',\n Component: DeleteBtnExample,\n code: '',\n props: [],\n },\n {\n name: 'FilterBtn',\n description: 'Button with filter icon',\n Component: FilterBtnExample,\n code: '',\n props: [\n {\n name: 'text',\n type: 'string',\n isRequired: true,\n },\n {\n name: 'onClick',\n type: 'func',\n isRequired: true,\n },\n ],\n },\n {\n name: 'SortBtn',\n description: 'Button with sort icon',\n Component: SortBtnExample,\n code: '',\n props: [],\n },\n {\n name: 'RadioInputField',\n description: 'Radio Button with an optional Label',\n Component: RadioInputFieldExample,\n code: '',\n props: [\n {\n name: 'checked',\n type: 'bool',\n isRequired: true,\n },\n {\n name: 'onChange',\n type: 'func',\n isRequired: true,\n },\n {\n name: 'label',\n type: 'string',\n isRequired: false,\n },\n {\n name: 'square',\n type: 'bool',\n isRequired: false,\n },\n {\n name: 'left',\n type: 'bool',\n isRequired: false,\n },\n ],\n },\n {\n name: 'Typography',\n description: 'All components for tipography',\n Component: TypographyExample,\n code: `\n

    H1

    \n

    H2

    \n

    H3

    \n

    H4

    \n `,\n props: [],\n },\n {\n name: 'OptionsDropdown',\n description: 'A dropdown for options',\n Component: OptionsDropdownExample,\n code: `\n {}, label: 'TEST' },\n { onClick: () => {}, label: 'Danger', danger: true },\n ]}\n />\n `,\n props: [\n {\n name: 'options',\n type: `[{\n label: string.isRequired,\n onClick: func.isRequired,\n danger: bool}\n ]`,\n isRequired: true,\n },\n ],\n },\n];\n\n// ,\n// {\n// name: 'OptionsDropdown',\n// description: 'A dropdown for options',\n// component: OptionsDropdownExample,\n// code: `\n// {}, label: 'TEST' },\n// { onClick: () => {}, label: 'Danger', danger: true },\n// ]}\n// />`,\n// props: [\n// { name: 'options', type: '{label: string, onClick: func, danger: bool}', isRequired: true },\n// ],\n// },\n","import React from 'react';\nimport { Code, Grid, Paper, Table, Divider } from '@8base/boost';\nimport components from './components';\nimport styled from 'styled-components';\n\nconst Text = styled.p`\n margin: 10px 0;\n color: #323c47;\n font-size: 16px;\n\n strong {\n font-weight: bold !important;\n }\n`;\n\nconst DesignSystem = () => {\n return (\n
    \n \n \n {components.map((component) => {\n return (\n \n \n Name: {component.name}\n \n Description: {component.description}\n Props:\n {component.props.length ? (\n \n \n Name\n Type\n Is Required\n \n \n {component.props.map((prop) => {\n return (\n \n {prop.name}\n {prop.type}\n {prop.isRequired ? 'true' : 'false'}\n \n );\n })}\n \n
    \n ) : (\n None\n )}\n Code:\n {component.code}\n Result:\n
    \n \n
    \n \n
    \n );\n })}\n
    \n
    \n
    \n );\n};\n\nexport default DesignSystem;\n","import React, { useState, useEffect } from 'react';\nimport { Dialog, Column, Paragraph, Progress, useModal } from '@8base/boost';\nimport { OnCampaignDeleteProgress } from '../campaign-events';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\n\nexport const modalId = 'delete-campaign-progress';\n\nconst DeleteCampaignProgress: React.FC = () => {\n const { isOpen } = useModal(modalId);\n const [progress, setProgress] = useState(0);\n\n useEffect(() => {\n if (!isOpen) {\n setProgress(0);\n }\n }, [isOpen]);\n\n useSubscription(\n OnCampaignDeleteProgress,\n (data) => {\n if (data) {\n setProgress(data.progress);\n }\n },\n [],\n );\n\n return (\n \n \n \n Deleting campaign...\n \n \n \n \n );\n};\n\nexport default DeleteCampaignProgress;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport {\n fetchAvailableCampaigns,\n moveLeadsAndDelete,\n forceDeleteCampaign,\n} from '../campaigns-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n OnCampaignReplaceList,\n OnCampaignReplaceListError,\n OnCampaignDelete,\n OnCampaignDeleteError,\n} from '../campaign-events';\n\nimport { Dialog, Button, Row, Column, Paragraph, Select, Switch, useModal } from '@8base/boost';\nimport DeleteCampaignProgress, { modalId as progressId } from './DeleteCampaignProgress';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { Campaign } from 'gerated/types';\n\nexport const modalId = 'delete-campaign-dialog';\n\nconst DeleteCampaignDialog: React.FC = ({ agencyId }) => {\n const { isOpen, args, closeModal, openModal } = useModal(modalId);\n const [campaigns, setCampaigns] = useState<{ items: Array; loading: boolean }>({\n items: [],\n loading: true,\n });\n const [selected, setSelected] = useState('');\n const [destroy, setDestroy] = useState(false);\n const [loading, setLoading] = useState(false);\n\n const handleClose = useCallback(() => {\n closeModal(modalId);\n\n setDestroy(false);\n setSelected('');\n setLoading(false);\n\n setCampaigns((state) => ({\n ...state,\n loading: false,\n items: [],\n }));\n }, [closeModal]);\n\n const handleSubmit = useCallback(() => {\n setLoading(true);\n\n openModal(progressId);\n\n if (destroy) {\n forceDeleteCampaign(args.id);\n } else {\n moveLeadsAndDelete(args.id, selected);\n }\n }, [args, selected, destroy, openModal]);\n\n useEffect(() => {\n if (isOpen) {\n setCampaigns((state) => ({\n ...state,\n items: [],\n loading: true,\n }));\n\n fetchAvailableCampaigns(args.id, agencyId, 1);\n }\n }, [isOpen, args, agencyId]);\n\n useEffect(() => {\n if (destroy) {\n Toast.warn('If you delete the leads their information cannot be recovered');\n }\n }, [destroy]);\n\n useSubscription(\n OnCampaignReplaceList,\n (data) => {\n if (data) {\n setCampaigns((state) => ({\n ...state,\n items: data.campaignsList.items,\n loading: false,\n }));\n }\n },\n [],\n );\n\n useSubscription(\n OnCampaignReplaceListError,\n (e: Error | null) => {\n if (e) {\n onErrorMixinFC(e);\n }\n\n closeModal(modalId);\n },\n [closeModal],\n );\n\n useSubscription(\n OnCampaignDelete,\n () => {\n setLoading(false);\n closeModal(progressId);\n closeModal(modalId);\n },\n [closeModal],\n );\n\n useSubscription(\n OnCampaignDeleteError,\n (e: Error | null) => {\n if (e) {\n onErrorMixinFC(e);\n }\n\n setLoading(false);\n closeModal(progressId);\n },\n [closeModal],\n );\n\n return (\n \n \n \n \n \n Are you sure you want to delete this campaign ? If so, you need to move all the leads to\n another campaign, please choose which one.\n \n ({\n label: campaign.name,\n value: campaign.id,\n }))}\n isSearchable={true}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\ntype Props = {\n agencyId: string;\n};\n\nexport default DeleteCampaignDialog;\n","import React, { useCallback } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport { Table, Dropdown, Icon, Menu, Text, useModal } from '@8base/boost';\nimport { DropdownWithCheck } from '../../../shared/components';\nimport PriorityCell from './PriorityCell';\nimport StatusCell from './StatusCell';\nimport { modalId } from './DeleteCampaignDialog';\nimport { forceDeleteCampaign, updateCampaign } from '../campaigns-actions';\nimport { modalId as decisionDialogId } from '../../../shared/components/dialog/DecisionDialog';\nimport CustomLink from '../../../shared/components/ui/CustomLink';\nimport DateBox from '../../../shared/components/ui/DateBox';\nimport { DropdownBodyOnTable } from '../../../shared/components/ui/dropdowns/DropdownBodyOnTable';\nimport { IconInfo } from '../../../shared/components/ui/Icons';\nimport { Campaign } from 'gerated/types';\n\nconst CampaignListRow: React.FC = ({ campaign, automations, users, columns }) => {\n const history = useHistory();\n const { openModal, closeModal } = useModal(modalId);\n const assignees = campaign.assignees?.items || [];\n const workflows = campaign.workflows?.items || [];\n\n const assigneesLabel =\n assignees.length > 0 ? (\n `${assignees[0].firstName} ${assignees[0].lastName}${\n assignees.length > 1 ? ` and ${assignees.length - 1} more` : ''\n }`\n ) : (\n Assign users\n );\n\n const workflowsLabel =\n workflows.length > 0 ? (\n `${workflows[0].name} ${workflows.length > 1 ? ` and ${workflows.length - 1} more` : ''}`\n ) : (\n Assign workflows\n );\n\n const handleAssigneesChange = useCallback(\n (value) => {\n updateCampaign({\n id: campaign.id,\n assignees: value,\n });\n },\n [campaign],\n );\n\n const handleWorkflowsChange = useCallback(\n (value) => {\n updateCampaign({\n id: campaign.id,\n workflows: value,\n });\n },\n [campaign],\n );\n\n const handleDeleteClick = useCallback(() => {\n if ((campaign.campaignLeadRelation?.count || 0) > 0) {\n openModal(modalId, {\n id: campaign.id,\n });\n } else {\n openModal(decisionDialogId, {\n title: 'Delete Campaign',\n text:\n 'Are you sure you want to delete this campaign? This information cannot be recovered.',\n confirmText: 'Yes, Delete',\n cancelText: 'Cancel',\n onClose: () => closeModal(decisionDialogId),\n onCancel: () => closeModal(decisionDialogId),\n onConfirm: () =>\n forceDeleteCampaign(campaign.id || '').then(() => closeModal(decisionDialogId)),\n });\n }\n }, [campaign, openModal, closeModal]);\n\n const userOptions = users.map((user) => ({\n id: user.id,\n label: `${user.firstName} ${user.lastName}`,\n checked: assignees.some((assignee) => assignee.id === user.id),\n }));\n\n const workflowOptions = automations.map((automation) => ({\n id: automation.id,\n label: automation.name,\n checked: workflows.some((workflow) => workflow.id === automation.id),\n }));\n\n /**\n * If there are no options available to assign users or workflows\n * do not render anything\n */\n const usersDropdown =\n userOptions.length > 0 ? (\n \n ) : null;\n\n const workflowsDropdown =\n workflowOptions.length > 0 ? (\n \n ) : null;\n\n return (\n \n \n {campaign.name}\n \n \n \n \n \n \n \n {usersDropdown}\n {workflowsDropdown}\n {campaign.campaignLeadRelation?.count}\n \n \n \n \n history.push(`/campaigns/${campaign.id}`)} />\n \n \n \n \n \n {(dropdown: { closeDropdown: () => void }) => (\n \n {\n dropdown.closeDropdown();\n handleDeleteClick();\n }}>\n Delete Campaign\n \n \n )}\n \n \n \n \n );\n};\n\ntype Props = {\n campaign: Campaign;\n users: Array>;\n automations: Array>;\n columns: string;\n};\n\nexport default CampaignListRow;\n","import React, { useState, useCallback, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Input,\n InputField,\n Select,\n SelectField,\n DateInput,\n DateInputField,\n CheckboxField,\n} from '@8base/boost';\nimport Margin from '../components/ui/Margin';\n\n/**\n * Field for render select, input, checkbox and datepicker\n *\n * @param {object} props component props\n * @param {string} props.name input name\n * @param {string} props.defaultValue input value\n * @param {Function} props.onBlur handle on blur\n * @param {Array} props.options select options\n * @param {boolean} props.loading select options\n * @param {boolean} props.multiple select options\n * @param {string} props.placeholder select/input placeholder\n * @param {string} props.label text label\n * @returns {React.ReactElement} component\n */\nconst Field = ({\n name,\n type,\n defaultValue,\n onBlur,\n onChange,\n multiple,\n options,\n loading,\n placeholder,\n label,\n ...rest\n}) => {\n const [value, setValue] = useState(defaultValue);\n const handleOnChange = useCallback(\n (value) => {\n setValue(value);\n\n onChange && onChange(value);\n },\n [onChange],\n );\n let inputComponent;\n\n useEffect(() => {\n setValue(defaultValue);\n }, [defaultValue]);\n\n if (type === 'select') {\n inputComponent = label ? (\n \n ) : (\n \n );\n }\n\n if (type === 'date') {\n inputComponent = label ? (\n \n ) : (\n \n );\n }\n\n if (type === 'checkbox') {\n inputComponent = (\n \n \n \n );\n }\n\n if (type === 'text' || type === 'number') {\n inputComponent = label ? (\n \n ) : (\n \n );\n }\n\n return <>{inputComponent};\n};\n\nField.propTypes = {\n onChange: PropTypes.func,\n label: PropTypes.string,\n onBlur: PropTypes.func,\n type: PropTypes.string,\n multiple: PropTypes.bool,\n loading: PropTypes.bool,\n options: PropTypes.array,\n defaultValue: PropTypes.any,\n placeholder: PropTypes.string,\n name: PropTypes.string.isRequired,\n};\n\nField.defaultProps = {\n multiple: false,\n loading: false,\n options: [],\n type: 'text',\n placeholder: '',\n onBlur: () => {},\n defaultValue: '',\n label: undefined,\n onChange: () => {},\n};\n\nexport default Field;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Select, { components } from 'react-select';\nimport { styled, Label, Icon } from '@8base/boost';\nimport { Margin } from 'shared/components/';\n\nconst CustomMultiValueContainer = styled.span`\n padding: 2px 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border: 1px solid #d0d7dd;\n border-radius: 5px;\n background-color: #ffffff;\n margin-right: 10px;\n cursor: pointer;\n margin-bottom: 2px;\n margin-top: 2px;\n`;\n\nconst CustomOption = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst CustomLabel = styled(Label)`\n cursor: pointer !important;\n margin-left: 5px !important;\n`;\n\nconst MultiValueContainer = (props) => {\n return (\n \n \n \n );\n};\n\nconst MultiValueLabel = (props) => {\n return (\n <>\n \n \n );\n};\n\nconst MultiValueRemove = (props) => {\n return (\n \n \n \n );\n};\n\nconst Option = ({ data, innerProps, isDisabled }) => {\n return !isDisabled ? (\n \n \n \n \n \n ) : null;\n};\n\nconst IndicatorsContainer = () => {\n return (\n \n \n \n \n );\n};\n\n// Custom components prop types\n\nMultiValueLabel.propTypes = {\n data: PropTypes.shape({\n imgUrl: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nOption.propTypes = {\n data: PropTypes.shape({\n imgUrl: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n }).isRequired,\n isDisabled: PropTypes.bool,\n innerProps: PropTypes.object.isRequired,\n};\n\nOption.defaultProps = { isDisabled: false };\n\nconst mapValues = (email) => ({\n label: email.name,\n value: email.id,\n});\n\nconst WorkflowAutomationSelect = ({ defaultValue, emails, onChange, label }) => {\n const [value, setValue] = useState(defaultValue?.map(mapValues)?.[0] ?? null);\n\n React.useEffect(() => {\n setValue(defaultValue?.map(mapValues)?.[0]);\n }, [defaultValue]);\n\n const handleOnChange = (value) => {\n setValue(value);\n onChange(value);\n };\n\n return (\n
    \n {label}\n ({\n ...base,\n alignItems: 'center',\n backgroundColor: '#fff',\n justifyContent: 'center',\n }),\n container: (base) => ({\n ...base,\n borderRadius: '5px',\n border: '1px solid #D0D7DD',\n zIndex: 10,\n }),\n control: (base) => ({\n ...base,\n border: '0px',\n }),\n }}\n />\n
    \n );\n};\n\nWorkflowAutomationSelect.propTypes = {\n label: PropTypes.element,\n defaultValue: PropTypes.array.isRequired,\n emails: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n};\n\nWorkflowAutomationSelect.defaultProps = {\n label: null,\n};\n\nexport default WorkflowAutomationSelect;\n","import gql from 'graphql-tag';\n\nconst WorkflowAutomationFragment = gql`\n fragment WorkflowAutomationFragment on WorkflowAutomation {\n id\n name\n conditions {\n items {\n id\n name\n args\n emailTemplate {\n id\n name\n }\n smsTemplate {\n id\n name\n }\n }\n }\n clicks {\n count\n }\n openings(filter: { opened: { equals: true } }) {\n count\n }\n createdAt\n campaigns {\n count\n }\n }\n`;\n\nexport const WORKFLOW_AUTOMATIONS_LIST_QUERY = gql`\n query FetchWorkflowAutomations(\n $filter: WorkflowAutomationFilter\n $first: Int\n $skip: Int\n $orderBy: [WorkflowAutomationOrderBy]\n ) {\n workflowAutomationsList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n count\n items {\n ...WorkflowAutomationFragment\n }\n }\n }\n ${WorkflowAutomationFragment}\n`;\n\nexport const WORKFLOW_AUTOMATION_CREATE_MUTATION = gql`\n mutation CreateWorkflowAutomation($data: WorkflowAutomationCreateInput!) {\n workflowAutomationCreate(data: $data) {\n ...WorkflowAutomationFragment\n }\n }\n ${WorkflowAutomationFragment}\n`;\n\nexport const WORKFLOW_AUTOMATION_UPDATE_MUTATION = gql`\n mutation UpdateWorkflowAutomation($data: WorkflowAutomationUpdateInput!, $force: Boolean) {\n workflowAutomationUpdate(data: $data, force: $force) {\n ...WorkflowAutomationFragment\n }\n }\n ${WorkflowAutomationFragment}\n`;\n\nexport const WORKFLOW_AUTOMATION_DELETE_MUTATION = gql`\n mutation DeleteWorkflowAutomation($data: WorkflowAutomationDeleteInput!, $force: Boolean) {\n workflowAutomationDelete(data: $data, force: $force) {\n success\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnWorkflowAutomationList = createEvent();\n\nexport const OnWorkflowAutomationListError = createEvent();\n\nexport const OnWorkflowAutomaticationCreateEvent = createEvent();\n\nexport const OnWorkflowAutomaticationCreateError = createEvent();\n\nexport const OnWorkflowAutomaticationUpdateEvent = createEvent();\n\nexport const OnWorkflowAutomaticationUpdateError = createEvent();\n\nexport const OnWorkflowAutomaticationDeleteEvent = createEvent();\n\nexport const OnWorkflowAutomaticationDeleteError = createEvent();\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString } from '@cobuildlab/validation-utils';\n\n/**\n * Validates a workflow automation creation/update\n *\n * @param {object} data - Marketing campaign data to create/update a record\n *\n * @returns {void}\n */\nexport function createUpdateWorkflowAutomationValidator(data) {\n const errors = [];\n\n if (!isValidString(data.name)) errors.push('The name of the campaign should be a valid string');\n\n data.conditions.some((condition) => {\n if (!isValidString(condition.name)) {\n errors.push('A condition should have a valid name');\n return true;\n }\n\n if (!condition.emailTemplate?.id && !condition.smsTemplate?.id) {\n errors.push('The condition should have at least one of either an email or sms template');\n return true;\n }\n\n return false;\n });\n\n if (errors.length > 0) throw new ValidationError(errors);\n}\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n WORKFLOW_AUTOMATIONS_LIST_QUERY,\n WORKFLOW_AUTOMATION_CREATE_MUTATION,\n WORKFLOW_AUTOMATION_DELETE_MUTATION,\n WORKFLOW_AUTOMATION_UPDATE_MUTATION,\n} from './workflow-automation-queries';\nimport {\n OnWorkflowAutomaticationCreateError,\n OnWorkflowAutomaticationCreateEvent,\n OnWorkflowAutomaticationDeleteError,\n OnWorkflowAutomaticationDeleteEvent,\n OnWorkflowAutomaticationUpdateError,\n OnWorkflowAutomaticationUpdateEvent,\n OnWorkflowAutomationList,\n OnWorkflowAutomationListError,\n} from './workflow-automation-events';\nimport { createUpdateWorkflowAutomationValidator } from './workflow-automation-validator';\nimport { normalize8baseReferenceConnect } from '@cobuildlab/8base-utils';\n\n/**\n * Fetches workflow automations\n *\n * @param {string} agency - The agency id\n * @param {string} search - The search term to filter the results by\n * @param {number} page - The page of the list to fetch\n *\n * @returns {Promise} The request result\n */\nexport const fetchWorkflowAutomationsList = async (agency, search = '', page = 1) => {\n const client = OnApolloClient.get();\n const first = 10;\n const skip = first * (page - 1);\n const orderBy = 'createdAt_DESC';\n let response = null;\n\n const filter = {\n agency: { id: { equals: agency } },\n name: { contains: search },\n };\n\n try {\n response = await client.query({\n query: WORKFLOW_AUTOMATIONS_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables: page === 0 ? { filter, orderBy } : { filter, first, skip, orderBy },\n });\n } catch (e) {\n error('fetchWorkflowAutomationsList', e);\n\n return OnWorkflowAutomationListError.dispatch(e);\n }\n\n log('fetchWorkflowAutomationsList', response.data);\n\n return OnWorkflowAutomationList.dispatch(response.data);\n};\n\n/**\n * Creates a workflow automation\n *\n * @param {object} workflowAutomation - data from the create form.\n *\n * @returns {object} the response data\n */\nexport const createWorkflowAutomation = async (workflowAutomation) => {\n console.log('createWorkflowAutomation running');\n const client = OnApolloClient.get();\n let response;\n\n try {\n createUpdateWorkflowAutomationValidator(workflowAutomation);\n } catch (e) {\n console.log('createWorkflowAutomation error', e);\n\n return OnWorkflowAutomaticationCreateError.dispatch(e);\n }\n\n const data = {\n name: workflowAutomation.name,\n agency: workflowAutomation.agency,\n conditions: {\n create: workflowAutomation.conditions.map((c) => ({\n name: c.name,\n args: c.args,\n emailTemplate: c.emailTemplate.id ? { connect: { id: c.emailTemplate.id } } : undefined,\n smsTemplate: c.smsTemplate.id ? { connect: { id: c.smsTemplate.id } } : undefined,\n })),\n },\n };\n\n normalize8baseReferenceConnect(data, 'agency');\n\n try {\n response = await client.mutate({\n mutation: WORKFLOW_AUTOMATION_CREATE_MUTATION,\n variables: { data },\n });\n } catch (e) {\n error('createWorkflowAutomation', e);\n\n return OnWorkflowAutomaticationCreateError.dispatch(e);\n }\n\n log('createWorkflowAutomation', response);\n OnWorkflowAutomaticationCreateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Updates a workflow automation\n *\n * @param {object} workflowAutomation - data from the update form.\n * @param {Array} prevConditions - The ids of the previosly connected conditions\n *\n * @returns {object} the response data\n */\nexport const updateWorkflowAutomation = async (workflowAutomation, prevConditions = []) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createUpdateWorkflowAutomationValidator(workflowAutomation);\n } catch (e) {\n error('updateWorkflowAutomation', e);\n\n return OnWorkflowAutomaticationUpdateError.dispatch(e);\n }\n\n const data = {\n id: workflowAutomation.id,\n name: workflowAutomation.name,\n conditions: {\n create: workflowAutomation.conditions.map((c) => ({\n name: c.name,\n args: c.args,\n emailTemplate: c.emailTemplate?.id ? { connect: { id: c.emailTemplate.id } } : undefined,\n smsTemplate: c.smsTemplate?.id ? { connect: { id: c.smsTemplate.id } } : undefined,\n })),\n disconnect: prevConditions,\n },\n };\n\n try {\n response = await client.mutate({\n mutation: WORKFLOW_AUTOMATION_UPDATE_MUTATION,\n variables: { data, force: true },\n });\n } catch (e) {\n error('updateWorkflowAutomation', e);\n\n return OnWorkflowAutomaticationUpdateError.dispatch(e);\n }\n\n log('updateWorkflowAutomation', response);\n OnWorkflowAutomaticationUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Deletes a workflow automation by id\n *\n * @param {string} id - identifier of the workflow automation\n *\n * @returns {object} the response data\n */\nexport const deleteWorkflowAutomation = async (id) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.mutate({\n mutation: WORKFLOW_AUTOMATION_DELETE_MUTATION,\n variables: { data: { id }, force: true },\n });\n } catch (e) {\n error('deleteWorkflowAutomation', e);\n\n return OnWorkflowAutomaticationDeleteError.dispatch(e);\n }\n\n log('deleteWorkflowAutomation', response);\n OnWorkflowAutomaticationDeleteEvent.dispatch(response.data);\n\n return response.data;\n }\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { LIST_INITIAL_STATE } from '../../../shared/constants';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { fetchWorkflowAutomationsList } from './workflow-automation-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n OnWorkflowAutomationList,\n OnWorkflowAutomationListError,\n} from './workflow-automation-events';\n\n/**\n * Marketing campaign list\n *\n * @param agency - The agency to fetch the workflow automations from\n * @param search - The search term to filter the results by\n * @param page - The page of the list\n *\n * @returns The list state\n */\nexport function useWorkflowAutomations(agency: string, search = '', page = 1): State {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n\n const fetch = useCallback(() => {\n setState((state) => ({ ...state, loading: true }));\n\n fetchWorkflowAutomationsList(agency, search, page);\n }, [agency, search, page]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useSubscription(\n OnWorkflowAutomationList,\n ({ workflowAutomationsList }) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: workflowAutomationsList.items,\n count: workflowAutomationsList.count,\n }));\n },\n [],\n );\n\n useSubscription(\n OnWorkflowAutomationListError,\n (e) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: [],\n count: 0,\n }));\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n return {\n ...state,\n fetch,\n };\n}\n\n/**\n * Hook that fetches the available workflow automations whenever\n * the users wants\n *\n * @param agency - The agency to fetch the workflow automations from\n * @param search - The search term to filter the results by\n * @param page - The page of the list\n *\n * @returns The list state\n */\nexport function useWorkflowAutomationsLater(agency: string, search = '', page = 1): State {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n\n const fetch = useCallback(() => {\n setState((state) => ({ ...state, loading: true }));\n\n fetchWorkflowAutomationsList(agency, search, page);\n }, [agency, search, page]);\n\n useSubscription(\n OnWorkflowAutomationList,\n ({ workflowAutomationsList }) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: workflowAutomationsList.items,\n count: workflowAutomationsList.count,\n }));\n },\n [],\n );\n\n useSubscription(\n OnWorkflowAutomationListError,\n (e) => {\n setState((state) => ({\n ...state,\n loading: false,\n items: [],\n count: 0,\n }));\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n return {\n ...state,\n fetch,\n };\n}\n\ntype State = {\n items: Array>;\n count: number;\n loading: boolean;\n fetch: () => void;\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnVendorsEvent = createEvent();\n\nexport const OnVendorsError = createEvent();\n\nexport const OnVendorslistEvent = createEvent();\n\nexport const OnVendorslistError = createEvent();\n\nexport const OnVendorCreateEvent = createEvent();\n\nexport const OnVendorCreateError = createEvent();\n\nexport const OnVendorUpdateEvent = createEvent();\n\nexport const OnVendorUpdateError = createEvent();\n\nexport const OnVendorDeleteEvent = createEvent();\n\nexport const OnVendorDeleteError = createEvent();\n","import gql from 'graphql-tag';\n\nexport const VENDOR_FRAGMENT = gql`\n fragment VENDOR_FRAGMENT on Vendor {\n id\n name\n vendorCampaignRelation {\n count\n items {\n id\n name\n }\n }\n }\n`;\n\nexport const VENDORS_LIST_QUERY = gql`\n query FetchVendorsList($filter: VendorFilter) {\n vendorsList(filter: $filter) {\n items {\n ...VENDOR_FRAGMENT\n }\n }\n }\n ${VENDOR_FRAGMENT}\n`;\n\nexport const VENDOR_CREATE_MUTATION = gql`\n mutation CreateVendor($data: VendorCreateInput!) {\n vendorCreate(data: $data) {\n ...VENDOR_FRAGMENT\n }\n }\n ${VENDOR_FRAGMENT}\n`;\n\nexport const VENDOR_UPDATE_MUTATION = gql`\n mutation UpdateVendor($data: VendorUpdateInput!) {\n vendorUpdate(data: $data) {\n ...VENDOR_FRAGMENT\n }\n }\n ${VENDOR_FRAGMENT}\n`;\n\nexport const VENDOR_DELETE_MUTATION = gql`\n mutation DeleteVendor($data: VendorDeleteInput!) {\n vendorDelete(data: $data) {\n success\n }\n }\n`;\n","import { ValidationError } from '../../shared/errors';\nimport { isValidString } from '../../shared/validators';\n\n/**\n * Validators for create and update actions.\n *\n * @param {object} vendor data\n */\nexport const createAndUpdateVendorValidator = (vendor) => {\n let errorMessages = [];\n\n if (!isValidString(vendor.name)) errorMessages.push('The Vendor must have a valid name');\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../shared/session/session-events';\nimport { getActiveAgency } from '../../shared/utils/agency-utils';\nimport {\n OnVendorCreateEvent,\n OnVendorDeleteEvent,\n OnVendorsError,\n OnVendorsEvent,\n OnVendorUpdateEvent,\n} from './vendors-events';\nimport {\n VENDORS_LIST_QUERY,\n VENDOR_CREATE_MUTATION,\n VENDOR_UPDATE_MUTATION,\n VENDOR_DELETE_MUTATION,\n} from './vendors-queries';\nimport { createAndUpdateVendorValidator } from './vendors-validators';\n\n/**\n * create filters for vendors query.\n *\n * @param filterData\n * @param {string} search string from search input.\n * @returns {object} graphql filter object.\n */\nconst createFilter = (filterData = {}) => {\n return {\n ...(filterData.search && {\n name: {\n contains: filterData.search,\n },\n }),\n ...(filterData.agency && {\n agency: { id: { equals: filterData.agency } },\n }),\n };\n};\n\n/**\n * Fetch vendors\n *\n * @param filterData\n * @param {string} search - The search string\n * @returns {Array} response data\n */\nexport const fetchVendors = async (filterData = {}) => {\n const client = OnApolloClient.get();\n const filter = createFilter(filterData);\n const variables = {\n ...(filter && { filter }),\n };\n let response;\n\n try {\n response = await client.query({\n query: VENDORS_LIST_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n } catch (e) {\n error('fetchVendors', e);\n\n return OnVendorsError.dispatch(e);\n }\n\n log('fetchVendors', response);\n OnVendorsEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Creates a vendor\n *\n * @param {object} vendor data from the create form.\n * @returns {object} the response data\n */\nexport const createVendor = async (vendor) => {\n const client = OnApolloClient.get();\n const agency = getActiveAgency();\n\n const vendorData = {\n ...vendor,\n agency: {\n connect: {\n id: agency.id,\n },\n },\n };\n let response;\n\n try {\n createAndUpdateVendorValidator(vendor);\n } catch (e) {\n error('createVendor', e);\n\n return OnVendorsError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: VENDOR_CREATE_MUTATION,\n variables: { data: vendorData },\n });\n } catch (e) {\n error('createVendor', e);\n return OnVendorsError.dispatch(e);\n }\n\n log('createVendor', response);\n OnVendorCreateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Update a vendor\n *\n * @param {object} vendor data from the create form.\n * @returns {object} the response data\n */\nexport const updateVendor = async (vendor) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createAndUpdateVendorValidator(vendor);\n } catch (e) {\n error('updateVendor', e);\n\n return OnVendorsError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: VENDOR_UPDATE_MUTATION,\n variables: { data: vendor },\n });\n } catch (e) {\n error('updateVendor', e);\n\n return OnVendorsError.dispatch(e);\n }\n\n log('updateVendor', response);\n OnVendorUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Deletes a vendor by id\n *\n * @param {string} id identifier of the vendor\n * @returns {object} the response data\n */\nexport const deleteVendor = async (id) => {\n const client = OnApolloClient.get();\n let response;\n\n if (client) {\n try {\n response = await client.mutate({\n mutation: VENDOR_DELETE_MUTATION,\n variables: { data: { id } },\n });\n } catch (e) {\n error('vendorDelete', e);\n\n return OnVendorsError.dispatch(e);\n }\n\n log('vendorDelete', response);\n OnVendorDeleteEvent.dispatch(response.data);\n\n return response.data;\n }\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnPhoneNumbersListEvent = createEvent();\n\nexport const OnPhoneNumbersListError = createEvent();\n\nexport const OnTwilioPhoneNumberslistEvent = createEvent();\n\nexport const OnTwilioPhoneNumberslistError = createEvent();\n\nexport const OnpurchasedPhoneNumbersEvent = createEvent();\n\nexport const OnpurchasedPhoneNumbersError = createEvent();\n\nexport const OnPhoneNumberUpdateEvent = createEvent();\n\nexport const OnPhoneNumberUpdateError = createEvent();\n\nexport const OnPhoneNumberDeleteEvent = createEvent();\n\nexport const OnPhoneNumberDeleteError = createEvent();\n\nexport const OnTwilioPhonenumbersListEvent = createEvent();\n\nexport const OnTwilioPhonenumbersListError = createEvent();\n\nexport const OnPurchasedPhoneNumbersEvent = createEvent();\n\nexport const OnPurchasedPhoneNumbersError = createEvent();\n","import React, { useState, useEffect, useCallback } from 'react'; // eslint-disable-line @typescript-eslint/no-use-before-define\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { Form, Grid, SelectField, Label, Switch, DateInputField, useModal } from '@8base/boost';\nimport { PRIORITIES } from '../../../shared/constants';\nimport { Margin, DialogForm, SelectMultipleAgents } from '../../../shared/components';\nimport { mapUserToMultipleSelect } from '../../users/user-utils';\nimport Field from '../../../shared/components/Field';\nimport { createCampaign } from '../campaigns-actions';\nimport WorkflowAutomationSelect from './WorkflowAutomationSelect';\nimport { useUsersInAgencyLater } from '../../users/users-hooks';\nimport { useWorkflowAutomationsLater } from '../../workflow/workflow-automation/workflow-automation-hooks';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { fetchVendors } from '../../vendors/vendors-actions';\nimport * as R from 'ramda';\nimport { OnCampaignCreate, OnCampaignError } from '../campaign-events';\nimport { OnpurchasedPhoneNumbersError } from 'modules/my-account/phone-numbers/phone-numbers-events';\nimport { OnVendorsEvent } from 'modules/vendors/vendors-events';\n\nconst modalId = 'campaign-form-dialog';\n\ntype FormType = {\n name: string;\n priority: string;\n startsAt: string;\n endsAt: string;\n vendor: string;\n assignees: Array<{ value: string }>;\n workflows: Array<{ id?: string; value?: string }>;\n automaticCalls: boolean;\n};\n\nconst initialForm: FormType = {\n name: '',\n priority: '',\n startsAt: '',\n endsAt: '',\n vendor: '',\n assignees: [],\n workflows: [],\n automaticCalls: false,\n};\n\nconst CampaignForm: React.FC<{ agencyId: string }> = ({ agencyId }) => {\n const { isOpen, closeModal } = useModal(modalId);\n const [form, setForm] = useState(initialForm);\n const [loading, setLoading] = useState(false);\n const [loadingVendors, setLoadingVendors] = useState(false);\n const [vendors, setVendors] = useState([]);\n const { items: users, loading: loadingUsers, fetch: fetchUsers } = useUsersInAgencyLater(\n agencyId,\n 0,\n );\n\n const {\n items: workflows,\n loading: loadingWorkflows,\n fetch: fetchWorkflows,\n } = useWorkflowAutomationsLater(agencyId, '', 0);\n\n useEffect(() => {\n if (isOpen) {\n fetchUsers();\n fetchWorkflows();\n } else {\n setForm(initialForm);\n }\n }, [isOpen, fetchUsers, fetchWorkflows]);\n\n useSimpleSubscription(OnVendorsEvent, (data) => {\n if (data) {\n setLoadingVendors(false);\n const vendorsOptions = data.vendorsList.items.map((vendor: Record) => ({\n label: vendor.name,\n value: vendor.id,\n }));\n\n setVendors(vendorsOptions);\n }\n });\n\n useEffect(() => {\n setLoadingVendors(true);\n fetchVendors();\n }, []);\n\n useSimpleSubscription(OnCampaignCreate, (data) => {\n if (data) {\n setLoading(false);\n\n closeModal(modalId);\n }\n });\n\n useSimpleSubscription(OnCampaignError, (e) => {\n if (e) setLoading(false);\n });\n\n useSimpleSubscription(OnpurchasedPhoneNumbersError, (e) => {\n toast.warn(\n 'Could not create phone number automatically on the campaign, please create it manually',\n );\n });\n\n const handleChange = useCallback((name, value) => {\n setForm((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const onClose = useCallback(() => {\n closeModal(modalId);\n\n setLoading(false);\n }, [closeModal]);\n\n const handleSubmit = useCallback(() => {\n setLoading(true);\n const cloned = R.clone(form);\n\n const campaign: {\n name: string;\n priority: string;\n assignees: Array;\n workflows: Array;\n automaticCalls: boolean;\n startsAt: string;\n endsAt: string;\n vendor?: { connect: { id: string } };\n } = {\n name: cloned.name,\n priority: (cloned.priority + 1).toString(),\n assignees: cloned.assignees.map((user) => user.value),\n workflows: cloned.workflows.map((workflows) => workflows.value || workflows.id),\n automaticCalls: cloned.automaticCalls,\n startsAt: cloned.startsAt,\n endsAt: cloned.endsAt,\n };\n\n if (cloned.vendor && cloned.vendor !== '') {\n campaign.vendor = {\n connect: {\n id: cloned.vendor,\n },\n };\n }\n createCampaign(campaign);\n }, [form]);\n\n return (\n
    \n \n
    \n \n \n \n \n handleChange(e.target.name, e.target.value)\n }\n />\n \n \n \n \n handleChange('priority', value),\n }}\n options={PRIORITIES.map((priority, index) => ({\n label: priority,\n value: index,\n }))}\n />\n \n \n \n \n handleChange('vendor', value),\n }}\n options={vendors}\n />\n \n \n \n \n handleChange('startsAt', value),\n }}\n />\n \n \n handleChange('endsAt', value),\n }}\n />\n \n \n \n \n \n \n handleChange('assignees', value || [])}\n options={mapUserToMultipleSelect(users)}\n />\n \n \n \n \n \n \n \n handleChange('automaticCalls', value)}\n />\n \n \n \n
    \n \n
    \n );\n};\n\nexport default CampaignForm;\n","import React from 'react';\nimport { useEvent } from '@cobuildlab/react-simple-state';\nimport { OnUsersInAgencyFetch } from '../../users/user-events';\nimport { Dropdown } from '@8base/boost';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { DropdownBodyOnTable, FilterFooter, FilterCategory } from 'shared/components';\nimport filterIconGrey from 'shared/assets/images/filter-grey.svg';\nimport filterIconGreen from 'shared/assets/images/filter-green.svg';\n\nconst FilterDropdown = styled(Dropdown)`\n display: inline-block;\n`;\n\nconst DropdownBody = styled.div`\n background-color: #fff;\n position: relative;\n z-index: 2000;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n`;\n\nconst FilterBody = styled.div`\n display: grid;\n grid-template-rows: repeat(3, min-content);\n grid-template-columns: repeat(2, [col-start] 1fr [col-end]);\n gap: 12px;\n padding: 12px;\n`;\n\nconst FilterBtn = styled.div`\n display: flex;\n border-radius: 5px;\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\n padding: 0px 16px;\n height: 36px;\n box-sizing: border-box;\n align-items: center;\n`;\n\nconst FilterIconLabel = styled.span`\n margin-left: 4px;\n font-size: 13px;\n opacity: 0.9;\n ${(props) => (props.active ? 'color: #3db4aa;' : '')}\n`;\n\nconst FilterIcon = styled.img`\n width: 2rem;\n height: 2rem;\n`;\n\nconst CampaignFilter = (props) => {\n const users = useEvent(OnUsersInAgencyFetch);\n\n const categories = Object.entries(props.categories).map(([identifier, category]) => (\n ({\n value: user.id,\n label: `${user.firstName} ${user.lastName}`,\n })),\n }\n : category\n }\n />\n ));\n const icon = props.active ? (\n \n ) : (\n \n );\n\n return (\n \n \n props.onFilterClick()}>\n {icon}\n Filters\n \n \n \n {({ closeDropdown }) => (\n \n {categories}\n \n \n )}\n \n \n );\n};\n\nCampaignFilter.propTypes = {\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n onFilterClick: PropTypes.func.isRequired,\n active: PropTypes.bool.isRequired,\n categories: PropTypes.object.isRequired,\n values: PropTypes.object.isRequired,\n onFilter: PropTypes.func.isRequired,\n};\n\nexport default CampaignFilter;\n","import React, { useCallback } from 'react';\nimport { useModal } from '@8base/boost';\nimport { CreateButton } from '../../../shared/components';\n\nconst CreateCampaignButton: React.FC = () => {\n const { openModal } = useModal('campaign-form-dialog');\n\n const handleClick = useCallback(() => {\n openModal('campaign-form-dialog');\n }, [openModal]);\n\n return ;\n};\n\nexport default CreateCampaignButton;\n","import { CAMPAIGN_STATUSES } from '../../shared/constants';\nimport bigInt from 'big-integer';\n\nexport default {\n id: null,\n name: '',\n type: null,\n priority: 1,\n assignees: [],\n targetAmount: bigInt(1),\n currentAmount: bigInt(0),\n workflows: [],\n vendor: '',\n status: null,\n startsAt: '',\n endsAt: '',\n automaticCalls: false,\n};\n\nexport const FILTER_DATA = {\n dateCreatedStart: '',\n dateCreatedEnd: '',\n lastUpdatedStart: '',\n lastUpdatedEnd: '',\n assignedTo: '',\n status: '',\n};\n\nexport const FILTER_CATEGORIES = {\n dateCreatedStart: {\n title: 'Date Created Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateCreatedStart',\n },\n dateCreatedEnd: {\n title: 'Date Created End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateCreatedEnd',\n },\n lastUpdatedStart: {\n title: 'Last Updated Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'lastUpdatedStart',\n },\n lastUpdatedEnd: {\n title: 'Last Updated End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'lastUpdatedEnd',\n },\n assignedTo: {\n title: 'Assigned to',\n placeholher: 'Select',\n identifier: 'assignedTo',\n options: [],\n clearable: true,\n },\n status: {\n title: 'Status',\n placeholher: 'Select',\n identifier: 'status',\n options: [\n {\n value: '',\n label: 'ALL',\n },\n ...CAMPAIGN_STATUSES.map((status, index) => {\n return {\n value: index,\n label: status,\n };\n }),\n ],\n },\n};\n\nexport const SORT_OPTIONS = [\n { label: 'Priority: Top First', value: 'top' },\n { label: 'Priority: Low First', value: 'low' },\n { label: 'Date: Newest First', value: 'newest' },\n { label: 'Date: Oldest First', value: 'oldest' },\n];\n","import React, { useState, useCallback, Dispatch, SetStateAction } from 'react';\nimport { Grid, SelectField, Row } from '@8base/boost';\nimport { SearchInput } from '../../../shared/components';\nimport CampaignFilter from './CampaignFilter';\nimport CreateCampaignButton from './CreateCampaignButton';\nimport { FILTER_CATEGORIES, SORT_OPTIONS } from '../campaigns-model';\nimport { Filter } from '../campaign-hooks';\n\nconst CampaignListHeader: React.FC = ({ onFilter }) => {\n const [search, setSearch] = useState('');\n const [filters, setFilters] = useState({ open: false });\n const [sort, setSort] = useState('');\n\n const handleSubmit = useCallback(\n (value) => {\n onFilter({ sortData: value ? value : sort, search, filters });\n },\n [search, filters, sort, onFilter],\n );\n\n const handleFilter = useCallback((name, value) => {\n setFilters((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const toggleFilter = useCallback(() => {\n setFilters((state) => ({\n ...state,\n open: !state.open,\n }));\n }, []);\n\n const handleSortChange = useCallback(\n (value) => {\n setSort(value);\n\n handleSubmit(value);\n },\n [handleSubmit],\n );\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\ntype Props = {\n onFilter: Dispatch>;\n};\n\nexport default CampaignListHeader;\n","import React, { useState } from 'react';\nimport { Card, Table as BoostTable, Row, Pagination } from '@8base/boost';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport CampaignListRow from './components/CampaignListRow';\nimport CampaignForm from './components/EnhancedCampaignForm';\nimport CampaignListHeader from './components/CampaignListHeader';\nimport DeleteCampaignDialog from './components/DeleteCampaignDialog';\nimport DecisionDialog from '../../shared/components/dialog/DecisionDialog';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport * as Toast from '../../shared/components/toast/Toast';\nimport styled from 'styled-components';\nimport { useCampaignList } from './campaign-hooks';\nimport {\n OnCampaignDelete,\n OnCampaignCreate,\n OnCampaignUpdate,\n OnCampaignError,\n} from './campaign-events';\nimport { useWorkflowAutomations } from '../workflow/workflow-automation/workflow-automation-hooks';\nimport { useUsersInAgency } from '../users/users-hooks';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { Campaign } from 'gerated/types';\n\nconst Table = styled(BoostTable)`\n & div[role='loader'] > div[role='loader'] div {\n border-color: #3db4aa !important;\n }\n`;\n\nconst Body = styled(BoostTable.Body)`\n min-height: 400px;\n`;\n\nconst columnsSize =\n 'minmax(200px, 1fr) 150px 150px minmax(230px, 1fr) 220px minmax(60px, 100px) minmax(100px, 110px) 150px';\n\nconst CampaignsView: React.FC = () => {\n const agency = useAgency();\n const [page, setPage] = useState(1);\n const { items, loading, count, refetch, setFilters } = useCampaignList(agency.id, page);\n const { items: workflows } = useWorkflowAutomations(agency.id, '', 0);\n const { items: users } = useUsersInAgency(agency.id, 0);\n\n useSimpleSubscription(\n OnCampaignCreate,\n () => {\n refetch();\n\n Toast.success('Success', 'Campaign successfully created');\n },\n [refetch],\n );\n\n useSimpleSubscription(\n OnCampaignUpdate,\n () => {\n refetch();\n\n Toast.success('Success', 'Campaign successfully updated');\n },\n [refetch],\n );\n\n // npm install --save-dev @types/8base__boost @types/cobuildlab__react-flux-state\n\n useSimpleSubscription(\n OnCampaignDelete,\n () => {\n refetch();\n\n Toast.success('Success', 'Campaign successfully deleted');\n },\n [refetch],\n );\n\n useSimpleSubscription(OnCampaignError, (e) => {\n if (e) onErrorMixinFC(e);\n });\n\n return (\n
    \n \n \n \n \n \n \n \n NAME\n CREATED\n PRIORITY\n ASSIGNED TO\n WORKFLOWS\n LEADS\n STATUS\n ACTIONS\n \n \n {(campaign: Campaign) => (\n \n )}\n \n \n \n \n \n \n
    \n
    \n
    \n \n \n \n
    \n );\n};\n\nexport default CampaignsView;\n","import { useState, useEffect, useCallback, Dispatch, SetStateAction } from 'react';\nimport { LIST_INITIAL_STATE } from '../../shared/constants';\nimport { OnCampaignsList, OnCampaignsListError } from './campaign-events';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchCampaignsList } from './campaigns-actions';\nimport { Campaign } from 'gerated/types';\n\nexport type Filter = {\n search: string;\n sortData: string;\n filters: Record;\n};\n\ntype State = {\n items: Array;\n count: number;\n loading: boolean;\n};\n\ntype HookState = State & {\n setFilters: Dispatch>;\n refetch: () => void;\n};\n\n/**\n * Hook to list and filter campaigns\n *\n * @param agency - The agency id\n * @param page - The page the campaigns from\n *\n * @returns The hook state\n */\nexport function useCampaignList(agency: string, page = 1): HookState {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n const [filters, setFilters] = useState({ search: '', sortData: '', filters: {} });\n\n const fetch = useCallback(() => {\n setState((state) => ({ ...state, loading: true }));\n\n fetchCampaignsList(agency, page, filters.search, filters.sortData, filters.filters);\n }, [agency, page, filters]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useSubscription(\n OnCampaignsList,\n (data) => {\n if (data) {\n setState((state) => ({\n ...state,\n error: undefined,\n items: data.campaignsList.items,\n count: data.campaignsList.count,\n loading: false,\n }));\n }\n },\n [],\n );\n\n useSubscription(\n OnCampaignsListError,\n (error) => {\n setState((state) => ({\n ...state,\n error: error,\n items: [],\n count: 0,\n loading: false,\n }));\n },\n [],\n );\n\n return {\n ...state,\n setFilters,\n refetch: fetch,\n };\n}\n","import React, { useState, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, Grid, SelectField, Label, Switch, DateInputField } from '@8base/boost';\nimport { PRIORITIES } from '../../../shared/constants';\nimport { fetchManagerAndAgents } from '../../users/user-actions';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { Margin, DialogForm, SelectMultipleAgents } from '../../../shared/components';\nimport { mapUserToMultipleSelect } from '../../users/user-utils';\nimport Field from '../../../shared/components/Field';\nimport initialData from '../campaigns-model';\nimport WorkflowAutomationSelect from './WorkflowAutomationSelect';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchVendors } from '../../vendors/vendors-actions';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { OnVendorsError, OnVendorsEvent } from 'modules/vendors/vendors-events';\n\nconst CampaignForm = ({\n isOpen,\n onCloseForm,\n data,\n agencyId,\n onChange,\n onSubmit,\n workflowAutomations,\n isUpdate,\n isLoading,\n}) => {\n const [usersOptions, setUsersOptions] = useState([]);\n const campaign = data || initialData;\n const [loading, setLoading] = useState(false);\n const [vendors, setVendors] = useState([]);\n\n const onCreate = useCallback(() => {\n onSubmit(campaign);\n }, [campaign, onSubmit]);\n\n useEffect(() => {\n setLoading(true);\n fetchVendors();\n }, []);\n\n useSimpleSubscription(OnVendorsEvent, (data) => {\n if (data) {\n setLoading(false);\n const vendorsOptions = data.vendorsList.items.map((vendor) => ({\n label: vendor.name,\n value: vendor.id,\n }));\n\n setVendors(vendorsOptions);\n }\n });\n\n useSimpleSubscription(OnVendorsError, (e) => {\n if (e) {\n setLoading(false);\n onErrorMixinFC(e);\n }\n });\n\n useEffect(() => {\n if (isOpen) {\n fetchManagerAndAgents(agencyId)\n .then(({ usersList }) => setUsersOptions(usersList.items))\n .catch((e) => toast.error('Something happened fetching the users, please try again'));\n }\n }, [agencyId, isOpen]);\n\n return (\n
    \n \n
    \n \n \n \n onChange(e.target.name, e.target.value)}\n />\n \n \n \n \n onChange('priority', value),\n }}\n options={PRIORITIES.map((priority, index) => ({\n label: priority,\n value: index,\n }))}\n />\n \n \n \n \n onChange('vendor', value),\n }}\n options={vendors}\n />\n \n \n \n \n onChange('startsAt', value),\n }}\n />\n \n \n onChange('endsAt', value),\n }}\n />\n \n \n \n \n \n \n onChange('assignees', value || [])}\n options={mapUserToMultipleSelect(usersOptions)}\n />\n \n \n \n \n \n \n \n onChange('automaticCalls', value)}\n />\n \n \n \n
    \n \n
    \n );\n};\n\nCampaignForm.propTypes = {\n data: PropTypes.object,\n agencyId: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onCloseForm: PropTypes.func.isRequired,\n workflowAutomations: PropTypes.array.isRequired,\n isUpdate: PropTypes.bool,\n isLoading: PropTypes.bool,\n};\n\nCampaignForm.defaultProps = {\n data: null,\n isUpdate: false,\n isLoading: false,\n};\n\nexport default CampaignForm;\n","import React, { useState, useEffect } from 'react';\nimport { Progress as BoostProgress, Label } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchCampaignProgress } from '../campaigns-actions';\nimport { numberWithCommas } from '../../../shared/utils';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { OnFetchCampaignProgressError, OnFetchCampaignProgressEvent } from '../campaign-events';\n\nconst Progress = styled(BoostProgress)`\n margin: 12px 0px;\n\n div > div {\n height: 126px !important;\n border-radius: 5px;\n }\n\n div > div > div {\n border-top-left-radius: 5px !important;\n border-top-right-radius: 0px !important;\n border-bottom-right-radius: 0px !important;\n border-bottom-left-radius: 5px !important;\n transition: width 1.5s ease-in-out;\n }\n`;\n\n/**\n * Campaign progress component\n *\n * @param {object} props - React component's prop object\n * @param {string} props.id - Campaign id to show the progress from\n *\n * @returns {React.FC} Component to render\n */\nfunction CampaignProgress({ id, amount }) {\n const [progress, setProgress] = useState(0);\n const [raised, setRaised] = useState(0);\n const [target, setTarget] = useState(0);\n\n useEffect(() => {\n fetchCampaignProgress(id);\n }, [id]);\n\n useEventSubscription(\n OnFetchCampaignProgressEvent,\n ({ campaign: { campaignLeadRelation: sold }, leadsList }) => {\n const raised = sold.count > 0 ? parseFloat(sold.groups[0].amount) : parseFloat(0);\n const target =\n amount ||\n (leadsList.count > 0 && leadsList.groups[0].amount !== null\n ? parseFloat(leadsList.groups[0].amount)\n : parseFloat(0));\n\n if (raised > 0) {\n setProgress(raised * 100 / target);\n } else {\n setProgress(parseFloat(0));\n }\n\n setRaised(raised);\n setTarget(target);\n },\n );\n\n useEventSubscription(OnFetchCampaignProgressError, (err) => {\n if (err) onErrorMixinFC(err);\n });\n\n return (\n \n ${raised === 0 ? 0 : numberWithCommas(raised)}/\n
    \n \n ${target === 0 ? 0 : numberWithCommas(target)} Goal\n \n \n }\n />\n );\n}\n\nCampaignProgress.propTypes = {\n id: PropTypes.string.isRequired,\n amount: PropTypes.string.isRequired,\n};\n\nexport default CampaignProgress;\n","import React from 'react';\nimport { YesNoDialog } from 'shared/components';\n\nconst DialogDeleteCampaign = (props) => {\n return (\n \n );\n};\n\nexport default DialogDeleteCampaign;\n","import gql from 'graphql-tag';\n\nexport const QUERY_PHONE_NUMBERS = gql`\n query PhoneNumbers($agency: ID!, $offset: Int!, $limit: Int) {\n phoneNumbersList(\n filter: { agency: { id: { equals: $agency } }, active: { equals: true } }\n sort: { priority: ASC }\n skip: $offset\n first: $limit\n ) {\n count\n items {\n number {\n number\n code\n }\n priority\n status\n id\n }\n }\n }\n`;\n/* \nquery MyQuery {\n __typename\n phoneNumbersList(filter: {agency: {id: {equals: \"asda\"}}}, sort: {priority: ASC})\n}\n\n*/\nexport const CREATE_PHONE_NUMBER = gql`\n mutation createPhoneNumber($agency: ID!, $user: ID!, $code: String!, $number: String!) {\n phoneNumberCreate(\n data: {\n agency: { connect: { id: $agency } }\n user: { connect: { id: $user } }\n number: { code: $code, number: $number }\n }\n ) {\n id\n }\n }\n`;\n\nexport const UPDATE_PHONE_NUMBER = gql`\n mutation phoneNumberUpdate($id: ID!, $data: PhoneNumberUpdateInput!) {\n __typename\n phoneNumberUpdate(data: $data, filter: { id: $id }) {\n id\n }\n }\n`;\n\nexport const DELETE_PHONE_NUMBER = gql`\n mutation deleteMutation($id: ID!) {\n phoneNumberDelete(filter: { id: $id }) {\n success\n }\n }\n`;\n","import gql from 'graphql-tag';\n\nconst SubscriptionPlanFragment = gql`\n fragment SubscriptionPlanFragment on SubscriptionPlan {\n id\n name\n order\n isFreeTrial\n monthlyPrice\n annualPrice\n monthlyStripePlanID\n annualStripePlanID\n description\n }\n`;\n\nconst CompanySubFragment = gql`\n fragment CompanySubFragment on CompanySub {\n id\n expireDate\n status\n numberOfSeats\n stripeSubscriptionId\n stripePaymentMethodId\n stripeCustomerId\n subscriptionPlan {\n ...SubscriptionPlanFragment\n }\n company {\n id\n name\n taxId\n }\n pendingUpdate\n }\n ${SubscriptionPlanFragment}\n`;\n\nexport const FETCH_COMPANY_SUBSCRIPTION_PLAN = gql`\n query FetchCompanySubscription($id: ID) {\n companySub(id: $id) {\n ...CompanySubFragment\n }\n }\n ${CompanySubFragment}\n`;\n\nexport const FETCH_COMPANY_SUBSCRIPTION_PLANS = gql`\n query FetchCompanyCompanySubscriptionPlans(\n $filter: CompanySubFilter\n $first: Int\n $skip: Int\n $orderBy: [CompanySubOrderBy]\n ) {\n companySubsList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n items {\n ...CompanySubFragment\n }\n }\n }\n ${CompanySubFragment}\n`;\n\nexport const FETCH_SUBSCRIPTION_PLANS = gql`\n query FetchSubscriptionPlans(\n $filter: SubscriptionPlanFilter\n $first: Int\n $skip: Int\n $orderBy: [SubscriptionPlanOrderBy]\n ) {\n subscriptionPlansList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n count\n items {\n ...SubscriptionPlanFragment\n }\n }\n }\n ${SubscriptionPlanFragment}\n`;\n","import { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n QUERY_PHONE_NUMBERS,\n CREATE_PHONE_NUMBER,\n UPDATE_PHONE_NUMBER,\n} from './phone-numbers-querys';\nimport { canCreatePhoneNumber } from '@cobuildlab/lead-volt-share';\nimport { FETCH_COMPANY_SUBSCRIPTION_PLANS } from '../billing/subscription-plan/subscription-plan-queries';\nimport { formatPhoneNumber } from '../../phone-calls/phone-calls-utils';\nimport { parseSavedNumbers } from './phone-numbers-utils';\nimport { fetchSession } from '../../../modules/auth/auth.actions';\nimport {\n OnPhoneNumberDeleteError,\n OnPhoneNumberDeleteEvent,\n OnPhoneNumbersListError,\n OnPhoneNumbersListEvent,\n OnPhoneNumberUpdateError,\n OnPhoneNumberUpdateEvent,\n OnPurchasedPhoneNumbersError,\n OnPurchasedPhoneNumbersEvent,\n OnTwilioPhonenumbersListError,\n OnTwilioPhonenumbersListEvent,\n} from './phone-numbers-events';\n\nconst workspaceEndpoint = process.env.REACT_APP_WORKSPACE_ENDPOINT;\n\n/**\n * @param {string} agency Agency Id\n * @param {number} pageSize Page size\n * @param {number} queryOffset Offset\n * @param {number} fetchPolicy Cache options\n * @returns {Array} response array\n */\nexport async function fetchPhoneNumbersList(\n agency,\n pageSize,\n queryOffset,\n fetchPolicy = 'cache-first',\n) {\n const client = OnApolloClient.get();\n const variables = { agency, limit: pageSize, offset: queryOffset };\n //console.log('VARIABLES FROM PHONE NUMBERS', agency);\n try {\n const response = await client.query({\n query: QUERY_PHONE_NUMBERS,\n fetchPolicy,\n variables,\n });\n OnPhoneNumbersListEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnPhoneNumbersListError.dispatch(e);\n }\n}\n\n/**\n * @param {string} search Search to\n */\nexport async function fetchTwilioPhoneNumbersList(search = '', type = 'Local') {\n const sessionReq = await fetchSession();\n //console.log('from fetchTwilioPhoneNUmbersList', type);\n const getPhonesEnpoint = `${workspaceEndpoint}/webhook/phoneNumbers/available`;\n try {\n const config = {\n method: 'POST',\n body: JSON.stringify({ search, agency: sessionReq?.user?.selectedAgency?.id, type: type }), //the toll-free or local numbers list is gotten from the server\n };\n\n const response = await fetch(getPhonesEnpoint, config);\n\n const { data, ...rest } = await response.json();\n\n if (!data) {\n throw Error({ ...rest });\n }\n return OnTwilioPhonenumbersListEvent.dispatch(data);\n } catch (e) {\n console.log('phone number list error', JSON.stringify(e));\n return OnTwilioPhonenumbersListError.dispatch(e);\n }\n}\n\n/**\n * Purchases the specified phone numbers\n *\n * @param {object} relation Relation for the numbers\n * @param {object} relation.company Company Id\n * @param {object} relation.agency Agency Id\n * @param {object} relation.user User Id\n * @param {Array<{code:string,number:string}>} numbers Array of number object\n *\n * @returns {Promise} The request result\n */\nexport async function purchasePhoneNumbers({ company, agency, user }, numbers) {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COMPANY_SUBSCRIPTION_PLANS,\n fetchPolicy: 'network-only',\n variables: {\n filter: { company: { id: { equals: company } } },\n first: 1,\n orderBy: 'createdAt_DESC',\n skip: 0,\n },\n });\n } catch (e) {\n return OnPurchasedPhoneNumbersError.dispatch(e);\n }\n\n const [companySubscription] = response.data.companySubsList.items;\n const [canCreate, reason] = canCreatePhoneNumber(companySubscription);\n\n if (!canCreate) {\n return OnPurchasedPhoneNumbersError.dispatch(new Error(reason));\n }\n\n const savedNumbers = numbers.map(async ({ code, number }) => {\n const variables = {\n agency,\n user,\n code,\n number,\n };\n\n const phoneNumber = formatPhoneNumber(`+${code}${number}`);\n\n try {\n const response = await client.mutate({\n mutation: CREATE_PHONE_NUMBER,\n variables,\n });\n\n return { ...response.data, phoneNumber };\n } catch (error) {\n console.log('ERROR PURCHASING PHONE NO.', error);\n return { error: true, phoneNumber };\n }\n });\n\n const result = await Promise.all(savedNumbers);\n\n const [successfulNumbers, failedNumbers] = parseSavedNumbers(result);\n\n if (successfulNumbers.length > 0) {\n OnPurchasedPhoneNumbersEvent.dispatch(successfulNumbers);\n }\n\n if (failedNumbers.length > 0) {\n OnPurchasedPhoneNumbersError.dispatch(failedNumbers);\n }\n}\n\n/**\n * Purchases a random phone number\n *\n * @param {string} id - The agency id\n * @param {string} campaignId - The campaign id\n *\n * @returns {Promise} The request result\n */\nexport async function purchaseRandomPhoneNumber(id, campaignId = undefined) {\n const response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/purchase-phone-number`,\n {\n method: 'POST',\n body: JSON.stringify({ agencyId: id, campaignId }),\n },\n );\n\n const body = await response.json();\n\n if (!response.ok) throw new Error(body.message);\n\n return body;\n}\n\n/**\n * @param {string} id Phone number id\n * @param {boolean} status Phone number id\n * @param {object} number Phone number id\n * @param {string} number.code Phone number country code\n * @param {string} number.number Phone number\n */\nexport async function updatePhoneNumberStatus(id, status, { code, number }) {\n const client = OnApolloClient.get();\n const variables = { id, data: { status, number: { code, number } } };\n\n try {\n const response = await client.mutate({\n mutation: UPDATE_PHONE_NUMBER,\n variables,\n });\n\n return OnPhoneNumberUpdateEvent.dispatch(response.data);\n } catch (e) {\n return OnPhoneNumberUpdateError.dispatch(e);\n }\n}\n\n/**\n * @param {string } id Phone numner id to remove\n */\nexport async function deletePhoneNumber(id) {\n const client = OnApolloClient.get();\n const variables = {\n id,\n data: {\n active: false,\n },\n };\n\n try {\n const response = await client.mutate({\n mutation: UPDATE_PHONE_NUMBER,\n variables,\n });\n\n return OnPhoneNumberDeleteEvent.dispatch(response.data);\n } catch (e) {\n return OnPhoneNumberDeleteError.dispatch(e);\n }\n}\n\n/**\n * @param {string} id Phone number id\n * @param {object} data Upadate data\n */\nexport async function updatePhoneNumber(id, data) {\n const client = OnApolloClient.get();\n const {\n number: { code, number },\n ...restData\n } = data;\n\n // Use decturing with code, number porperties to avoid pass adicional data to te request\n // This facilite the use of the action, so it not require an expecific object model\n const variables = { id, data: { ...restData, number: { code, number } } };\n\n try {\n const response = await client.mutate({\n mutation: UPDATE_PHONE_NUMBER,\n variables,\n });\n\n return OnPhoneNumberUpdateEvent.dispatch(response.data);\n } catch (e) {\n return OnPhoneNumberUpdateError.dispatch(e);\n }\n}\n","import React, { useState, useEffect } from 'react';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { useParams, useHistory } from 'react-router-dom';\nimport { fetchCampaignDetail, updateCampaign } from './campaigns-actions';\nimport model from './campaigns-model';\nimport * as R from 'ramda';\nimport {\n Paper,\n Grid,\n Row,\n Form,\n Text,\n Label,\n Dropdown,\n Menu,\n Input,\n Button,\n Tooltip,\n SelectField,\n InputField,\n Link,\n} from '@8base/boost';\nimport { CustomIconBoost } from '../../shared/components/ui/Icons';\nimport { campaignMap } from './campaigns-utils';\nimport { fetchManagerAndAgents } from '../users/user-actions';\nimport { getAssignedUsersLabel, mapUserToDropdownWithCheck } from '../users/user-utils';\nimport { fetchWorkflowAutomationsList } from '../workflow/workflow-automation/workflow-automation-actions';\nimport styled from 'styled-components';\nimport { fetchAgents } from '../agents/agents-actions';\nimport CampaignForm from './components/CampaignForm';\nimport CampaignProgress from './components/CampaignProgress';\nimport { PRIORITIES, CAMPAIGN_STATUSES } from '../../shared/constants';\nimport {\n Loader,\n TitleDetail,\n Title,\n PaperHeader,\n ButtonIcon,\n ButtonWithoutIcon,\n Margin,\n DropdownWithCheck,\n DropdownBodyOnTable,\n} from 'shared/components';\nimport DialogDeleteCampaign from './components/DialogDeleteCampaign';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport * as toast from 'shared/components/toast/Toast';\nimport { CopyToClipboard } from 'react-copy-to-clipboard';\nimport { formatDuration } from '../phone-calls/phone-calls-utils';\nimport moment from 'moment';\nimport WorkflowAutomationSelect from './components/WorkflowAutomationSelect';\nimport { fetchPhoneNumbersList } from '../my-account/phone-numbers/phone-numbers-actions';\nimport { formatPhoneNumber } from 'modules/phone-calls/phone-calls-utils';\nimport bigInt from 'big-integer';\nimport { deleteCampaign } from './campaigns-actions';\nimport docs from '../../shared/assets/documents/campaign-leads-endpoint.md';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport { OnFetchManagerAndAgentUsersEvent } from 'modules/users/user-events';\nimport {\n OnCampaignDelete,\n OnCampaignDetailsEvent,\n OnCampaignError,\n OnCampaignUpdate,\n} from './campaign-events';\nimport { OnWorkflowAutomationList } from 'modules/workflow/workflow-automation/workflow-automation-events';\nimport { OnAgentsListEvent } from 'modules/agents/agents-events';\nimport { OnPhoneNumbersListEvent } from 'modules/my-account/phone-numbers/phone-numbers-events';\n\nconst CustomDropdownWrap = styled.div`\n border: 1px solid #ced7dd;\n border-radius: 4px;\n padding: 2px 10px 2px 8px;\n min-height: 36px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n`;\n\nexport const CampaignDetailsView = () => {\n const agency = useAgency();\n const history = useHistory();\n const { id } = useParams();\n const [data, setData] = useState(R.clone(model));\n const [isLoading, setIsLoading] = useState(true);\n const [isLoadingForm, setIsLoadingForm] = useState(false);\n const [agents, setAgents] = useState([]);\n const [users, setUsers] = useState([]);\n const [workflowAutomations, setWorkflowAutomations] = useState([]);\n const [isOpenForm, setIsOpenForm] = useState(false);\n const [campaign, setCampaign] = useState(R.clone(model));\n const [isOpenDelete, setIsOpenDelete] = useState(false);\n const [phoneNumbers, setPhoneNumbers] = useState([]);\n const [selectedPhoneNumber, setSelectedPhoneNumber] = useState('');\n const [cachedAmount, setCachedAmount] = useState('');\n\n const toggleOpenForm = () => {\n setIsOpenForm(!isOpenForm);\n setData(R.clone(campaign));\n };\n\n const handleOnChangeData = (name, value) => {\n setData({ ...data, [name]: value });\n };\n\n const handleOnSubmitForm = (data) => {\n setIsLoadingForm(true);\n const cloned = R.clone(data);\n const campaign = {\n id,\n name: cloned.name,\n priority: (cloned.priority + 1).toString(),\n assignees: cloned.assignees ? cloned.assignees.map((user) => user.value || user.id) : [],\n agents: cloned.agents ? cloned.agents.map((agent) => agent.value || agent.id) : [],\n status: CAMPAIGN_STATUSES[cloned.status],\n workflows: cloned.workflows.map((workflows) => workflows.value || workflows.id),\n automaticCalls: cloned.automaticCalls,\n startsAt: cloned.startsAt,\n endsAt: cloned.endsAt,\n };\n if (cloned.vendor && cloned.vendor !== '') {\n campaign.vendor = {\n connect: {\n id: cloned.vendor,\n },\n };\n }\n updateCampaign(campaign, true);\n };\n\n const handleOnChangeEmailMarketing = (value) => {\n const campaign = {\n id,\n workflows: value ? value.map((workflows) => workflows.value || workflows.id) : [],\n };\n\n updateCampaign(campaign, false);\n };\n\n const handlePhoneNumberChange = (value) => {\n setSelectedPhoneNumber(value);\n\n updateCampaign({\n id: campaign.id,\n phoneNumber: {\n connect: { id: value },\n },\n });\n };\n\n const handleAmountChange = (value) => {\n setCampaign({ ...campaign, amount: bigInt(value) });\n };\n\n const updateCampaignAmount = () => {\n const amount = campaign.amount;\n\n if (cachedAmount && bigInt(cachedAmount).compare(amount) === 0) {\n return;\n }\n updateCampaign({\n id: campaign.id,\n amount,\n });\n setCachedAmount(amount);\n };\n\n const handleOnYes = () => {\n if (id !== null) {\n setIsLoading(true);\n setIsOpenDelete(false);\n deleteCampaign(id);\n }\n };\n\n const handleOnNo = () => {\n setIsOpenDelete(false);\n };\n\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) => {\n if (usersList) {\n setUsers(usersList.items);\n }\n });\n\n useSimpleSubscription(OnCampaignDetailsEvent, (data) => {\n if (data) {\n setIsLoading(false);\n setData(campaignMap(data.campaign));\n setCampaign(campaignMap(data.campaign));\n setSelectedPhoneNumber(data.campaign?.phoneNumber?.id);\n setCachedAmount(bigInt(data.campaign.amount));\n }\n });\n\n useSimpleSubscription(OnCampaignError, (err) => {\n if (err) {\n setIsLoading(false);\n onErrorMixinFC(err);\n }\n });\n\n useSimpleSubscription(OnWorkflowAutomationList, (data) => {\n if (data) {\n setWorkflowAutomations(data.workflowAutomationsList.items);\n }\n });\n\n useSimpleSubscription(OnAgentsListEvent, (data) => {\n if (data) {\n setAgents(\n data.agentsList.items.filter((agent) => {\n return agent.agency.id === agency.id;\n }),\n );\n }\n });\n\n useSimpleSubscription(OnCampaignUpdate, (data) => {\n if (data) {\n toast.success('Campaigns', 'Campaign Successfully Updated');\n setIsLoadingForm(false);\n setIsOpenForm(false);\n setData(campaignMap(data.campaignUpdate));\n setCampaign(campaignMap(data.campaignUpdate));\n }\n });\n\n useSimpleSubscription(OnCampaignDelete, (data) => {\n if (data) {\n history.push('/campaigns');\n }\n });\n\n useSimpleSubscription(OnPhoneNumbersListEvent, ({ phoneNumbersList }) => {\n if (phoneNumbersList) {\n const phoneNumbers = phoneNumbersList.items.filter((item) => {\n if (item.campaign) {\n return item.campaign.id === campaign.id;\n }\n return true;\n });\n setPhoneNumbers(phoneNumbers);\n }\n });\n\n useEffect(() => {\n if (id) {\n setIsLoading(true);\n fetchCampaignDetail(id, true);\n fetchManagerAndAgents(agency.id);\n fetchWorkflowAutomationsList(agency.id, '', 0);\n fetchAgents();\n fetchPhoneNumbersList(agency.id, undefined, 0);\n }\n }, [agency.id, id]);\n\n if (isLoading) {\n return ;\n }\n\n const campaignName = campaign.name.toLocaleLowerCase().replace(/ /g, '');\n const campaignEndpoint = `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/campaign/leads/${campaign.id}/${campaignName}`;\n const interval = moment(campaign.endsAt).diff(`${moment().format('YYYY-MM-DD')}T00:00:00Z`);\n const numbers = phoneNumbers.map((number) => {\n const numberStr = formatPhoneNumber(`${number.number.code}${number.number.number}`);\n return { label: numberStr, value: number.id };\n });\n\n return (\n
    \n \n
    \n \n \n \n \n Campaign Information\n \n \n \n \n \n \n \n \n \n \n \n \n {\n setIsOpenDelete(true);\n }}>\n Delete Campaign\n \n \n \n \n \n \n \n \n \n
    e.preventDefault()}>\n \n \n \n \n Amount\n \n \n \n \n {\n handleOnChangeEmailMarketing(value);\n }}\n label={\n \n Automation Workflow\n \n }\n />\n \n \n \n Assigned to\n \n \n \n updateCampaign({ id: data.id, assignees: value }, false)\n }\n itemList={mapUserToDropdownWithCheck(users, data.assignees)}\n />\n \n \n \n \n Phone Number\n \n \n \n \n \n \n \n \n Created:\n {campaign.startsAt}\n \n \n \n \n Ends:\n {campaign.endsAt}\n \n \n \n \n Vendor:\n {campaign.vendor}\n \n \n \n \n Priority:\n {PRIORITIES[campaign.priority]}\n \n \n \n \n Leads:\n {campaign.leads}\n \n \n \n \n Status:\n {CAMPAIGN_STATUSES[campaign.status]}\n \n \n \n \n Campaign Progress\n \n \n \n \n \n \n \n \n \n \n Campaign Endpoint\n \n \n \n \n \n \n \n \n \n Download Documentation\n \n \n \n \n \n
    \n
    \n
    \n \n setIsOpenDelete(false)}\n />\n
    \n );\n};\n","import React, { useState, useCallback } from 'react';\nimport { ButtonGroup, Button, Input } from '@8base/boost';\nimport { IconSearchDark } from '../../../shared/components/ui/Icons';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Search = styled(Button)`\n border-radius: 0px 0.5rem 0.5rem 0px !important;\n`;\n\nconst TextInput = styled(Input)`\n & > input {\n border-width: 1px 0px 1px 1px !important;\n border-radius: 5px 0px 0px 5px !important;\n }\n`;\n\n/**\n * Input component to make searches on\n *\n * @param {object} props - React component's props object\n * @param {boolean} props.searching - Tells if the parent component is currently fetching something related\n * @param {Function} props.onFocus - Callback to execute on search input focus\n * @param {Function} props.onClear - Callback to execute when the search input is cleared\n * @param {Function} props.onChange - Callback to execute when the search input value has changed\n * @param {Function} props.onSubmit - Callback to execute on search submit\n *\n * @returns {React.FC} The component to render\n */\nfunction SearchInput({ stretch, searching, onFocus, onClear, onSubmit, onChange, ...rest }) {\n const [search, setSearch] = useState('');\n\n const handleChange = useCallback(\n (value) => {\n setSearch(value);\n\n if (onChange) {\n onChange(value);\n }\n },\n [onChange],\n );\n\n const handleSubmit = useCallback(() => {\n onSubmit(search);\n }, [search, onSubmit]);\n\n const handleClearable = useCallback(() => {\n if (onClear) {\n onClear();\n } else {\n onSubmit('');\n }\n }, [onClear, onSubmit]);\n\n return (\n \n \n \n \n \n \n );\n}\n\nSearchInput.propTypes = {\n stretch: PropTypes.bool,\n searching: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onClear: PropTypes.func,\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n};\n\nSearchInput.defaultProps = {\n stretch: false,\n onFocus: () => {},\n onClear: null,\n onChange: null,\n};\n\nexport default SearchInput;\n","import { useState, useEffect, useCallback, useRef } from 'react';\nimport { useLocation, useHistory } from 'react-router-dom';\nimport qs from 'qs';\n\n/**\n * Hook that returns url query parameters as an object\n *\n * @returns {Array} The query object and the function to set it\n */\nexport function useURLQuery() {\n const loc = useLocation();\n const history = useHistory();\n const [query, setQuery] = useState(qs.parse(loc.search, { ignoreQueryPrefix: true }));\n const prevSearch = useRef(loc.search);\n\n useEffect(() => {\n const unlisten = history.listen((location) => {\n if (prevSearch.current !== location.search) {\n prevSearch.current = location.search;\n\n setQuery(qs.parse(location.search, { ignoreQueryPrefix: true }));\n }\n });\n\n return () => unlisten();\n }, [history]);\n\n const updateQuery = useCallback(\n (path, filters) => {\n history.push(`${path}?${qs.stringify(filters)}`);\n },\n [history],\n );\n\n return [query, updateQuery];\n}\n","import React, { useCallback } from 'react';\nimport { Avatar, Column, Text, Grid, Paragraph } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport moment from 'moment';\nimport PropTypes from 'prop-types';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { useParams } from 'react-router';\nimport { EMAIL_TYPES } from '@cobuildlab/lead-volt-share';\n\n/**\n * Component to use as an item in a list of mails.\n *\n * @param {object} props - Component props\n * @param {object} props.lead - The lead related to the email\n * @param {string} props.lead.firstName - The lead's first name\n * @param {string} props.lead.lastName - The lead's last name\n * @param {string} props.lead.email - The lead's email address\n * @param {string} props.subject - Subject of the mail\n * @param {string} props.body - The mail content\n * @param {string} props.hoverBackground - Background on the item when it is hovered\n *\n * @returns {React.Component} Component to render\n */\nfunction EmailListItem({ email }) {\n const [query, setQuery] = useURLQuery();\n const { emailId } = useParams();\n const [user] = useUser();\n const { lead } = email;\n\n const onClick = useCallback(() => {\n setQuery(`/email/${email.id}`, query);\n }, [email, query, setQuery]);\n\n let firstName = '';\n let lastName = '';\n let from = email.from;\n\n if (email.type === EMAIL_TYPES.INBOX) {\n firstName = lead ? lead.firstName : email.from;\n lastName = lead ? lead.lastName : email.from[1];\n from = lead ? `${lead.firstName} ${lead.lastName}` : email.from;\n } else {\n firstName = user.firstName;\n lastName = user.lastName;\n }\n\n return (\n \n \n \n \n \n \n \n \n {from}\n \n \n \n {moment(email.createdAt).format('MM-DD-YYYY, hh:mm a')}\n {email.subject}\n \n \n );\n}\n\nEmailListItem.propTypes = {\n email: PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n from: PropTypes.string.isRequired,\n to: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string,\n lastName: PropTypes.string,\n }),\n subject: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nexport default EmailListItem;\n","import React, { useMemo } from 'react';\nimport { Loader, Text, Row } from '@8base/boost';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport EmailListItem from './EmailListItem';\n\nconst Container = styled.div`\n overflow-y: auto;\n width: 100%;\n\n & > div:not(:last-child) {\n border-bottom: 1px solid #d8d8d8;\n }\n`;\n\nconst LoaderBlock = styled.div`\n width: 100%;\n position: relative;\n padding: 20px 20px;\n text-align: center;\n`;\n\nconst TouchableText = styled(Text)`\n font-family: Poppins !important;\n font-size: 13px !important;\n line-height: 20px !important;\n color: #3db4aa !important;\n font-weight: 400 !important;\n cursor: pointer !important;\n\n &:first-letter {\n text-transform: capitalize !important;\n }\n`;\n\n/**\n * List of emails for a specific user component\n *\n * @param {object} props - Component props\n * @param {Array} props.items - Email list to render\n * @param {boolean} props.loading - Whether the email list is loading or not\n * @param {boolean} props.available - Whether there are more emails available to fetch or not\n * @param {Function} props.onItemClick - Function to fire when user clicks an item in the list\n * @param {Function} props.onNextPage - Function to fire when the \"load more button is clicked\n *\n * @returns {React.Component} React component to render\n */\nfunction EmailList({ items, loading, available, onNextPage }) {\n const emails = useMemo(\n () => items.map((email) => ),\n [items],\n );\n\n return (\n \n {emails}\n {loading && (\n \n \n \n )}\n {!loading && available && (\n \n Load more\n \n )}\n \n );\n}\n\nEmailList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n from: PropTypes.string.isRequired,\n to: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string,\n lastName: PropTypes.string,\n }),\n subject: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n ).isRequired,\n loading: PropTypes.bool.isRequired,\n available: PropTypes.bool.isRequired,\n onNextPage: PropTypes.func.isRequired,\n};\n\nexport default EmailList;\n","import { LIST_FILTER_OPTIONS } from './email-model';\nconst { INBOX, SEND, ARCHIVE, TRASH } = LIST_FILTER_OPTIONS;\n\n/**\n * Returns the label corresponding to the option\n *\n * @param {number} option - The type of filter\n *\n * @returns {string} The corresponding filter label\n */\nexport const getSelectedListOptionLabel = (option) => {\n switch (option) {\n case INBOX:\n return 'Inbox';\n case SEND:\n return 'Sent';\n case ARCHIVE:\n return 'Archived';\n case TRASH:\n return 'Trash';\n default:\n return 'Inbox';\n }\n};\n\nexport const getSelectedGmailOptionLabel = (option) => {\n switch (option) {\n case 'INBOX':\n return 'Inbox';\n case 'SENT':\n return 'Sent';\n case 'STARRED':\n return 'Starred';\n case 'TRASH':\n return 'Trash';\n default:\n return 'Inbox';\n }\n};\n\nexport const getSelectedOutlookOptionLabel = (option) => {\n switch (option) {\n case 'inbox':\n return 'Inbox';\n case 'sentitems':\n return 'Sent';\n case 'deleteditems':\n return 'Trash';\n default:\n return 'Inbox';\n }\n};\n\n/**\n * Recovers the email id from the current path from url\n *\n * @param {string} path - Current path of the app\n *\n * @returns {string} - The email id recovered from the path or empty\n */\nexport const getEmailIdFromPath = (path) => {\n const result = /\\/email\\/([a-zA-z0-9]+)\\/thread\\/([a-zA-z0-9]+)/.exec(path);\n\n if (result) {\n const emailId = result[1];\n\n return emailId;\n }\n\n return '';\n};\n\n/**\n * Formats subject for response\n *\n * @param {string} subject - The current format of the email\n *\n * @returns {string} - The desired format for the response mail\n */\nexport const formatResponseSubject = (subject) => {\n const result = /^Re:/.exec(subject);\n\n if (result) return subject;\n\n return `Re: ${subject.trim()}`;\n};\n\n/**\n * Gets text from first paragraph of the body\n *\n * @param {string} body - The content to get the paragraph from\n *\n * @returns {string} The first paragraph of the provided body\n */\nexport const getFirstParagraph = (body) => {\n const result = /

    ([^<]*)<\\/p>/.exec(body);\n\n if (!result) return '';\n\n const { 1: paragraph } = result;\n\n return paragraph;\n};\n","import React from 'react';\nimport { Icon, Button as BoostButton, styled } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nexport const Button = styled(BoostButton)`\n background-color: #fff;\n border: 2px solid #000;\n color: #000;\n\n &:after {\n border: 4px solid #000;\n border-top-color: transparent;\n }\n\n ${(props) =>\n props.disabled\n ? `\n color: #CFD7DE;\n background-color: #E8EFF5;\n border: 1px solid #CFD7DE;\n\n & > span > i {\n display: none;\n }\n `\n : `\n &:hover {\n border: 2px solid #000;\n background-color: #fff;\n }\n \n &:active {\n border: 2px solid #000;\n background-color: #fff;\n }\n `}\n`;\n\nexport const GoogleButton = ({ children, ...rest }) => {\n return (\n \n );\n};\n\nGoogleButton.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React from 'react';\nimport { Icon, Button as BoostButton, styled } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nexport const Button = styled(BoostButton)`\n background-color: #fff;\n border: 2px solid #000;\n color: #000;\n\n &:after {\n border: 4px solid #000;\n border-top-color: transparent;\n }\n\n ${(props) =>\n props.disabled\n ? `\n color: #CFD7DE;\n background-color: #E8EFF5;\n border: 1px solid #CFD7DE;\n\n & > span > i {\n display: none;\n }\n `\n : `\n &:hover {\n border: 2px solid #000;\n background-color: #fff;\n }\n \n &:active {\n border: 2px solid #000;\n background-color: #fff;\n }\n `}\n`;\n\nexport const MicrosoftButton = ({ children, ...rest }) => {\n return (\n \n );\n};\n\nMicrosoftButton.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React, { useState, useEffect, useMemo } from 'react';\nimport { Column, Row, Button, Icon } from '@8base/boost';\nimport { GoogleButton } from '../../../shared/components/GoogleButton';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { FileInput } from '@8base-react/file-input';\nimport styled from 'styled-components';\nimport {\n OnCreateEmailError,\n OnFetchEmailConfig,\n OnFetchEmailConfigError,\n OnCreateOutlookEmailError,\n} from '../email-store';\nimport { MicrosoftButton } from '../../../shared/components/MicrosoftButton';\nimport { PRE_SIGNATURE } from '../email-model';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { IconTrash } from '../../../shared/components/ui/Icons';\nimport PropTypes from 'prop-types';\nimport { fetchEmailConfiguration, fetchUserSignature } from '../email-actions';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { OnCreateGoogleEmailError, OnUserSignatureEvent } from '../email-events';\n\nconst FormColumn = styled(Column)`\n & > div:not(:last-child) {\n border-bottom: 1px solid #e9eff4;\n }\n\n & > *:not(:last-child) {\n margin-bottom: 0px !important;\n }\n`;\n\nconst InputColumn = styled(Column)`\n padding: 5px 0px;\n`;\n\nconst Actions = styled.div`\n padding: 24px 0px;\n width: 100%;\n`;\n\nconst Label = styled.label`\n color: #9b9b9b;\n margin-right: 5px;\n`;\n\nconst Section = styled.div`\n ${(props) => (props.paddingLess ? 'padding: 0px !important' : 'padding: 0px 24px !important;')}\n display: flex;\n align-items: center;\n ${(props) => (props.stretch ? `width: 100%;` : '')}\n`;\n\nconst Div = styled.div`\n width: 50%;\n text-align: ${(props) => props.textAlign};\n`;\n\nconst Input = styled.input`\n width: ${(props) => (props.width ? props.width : '100%')};\n border: none !important;\n &:focus {\n outline: none !important;\n }\n\n &::placeholder {\n color: #cfd7de;\n }\n`;\n\nconst ReadOnly = styled.p`\n font-weight: 600;\n width: 100%;\n`;\n\nconst Normal = styled.span`\n font-weight: 400;\n`;\n\nconst TextBody = styled.p`\n font-size: 12px;\n text-align: center;\n width: 100%;\n`;\n\nconst IconDelete = styled.div`\n display: inline-flex;\n width: 16px;\n height: 16px;\n border-radius: 100%;\n background-color: #ccc;\n justify-content: center;\n align-items: center;\n > div {\n width: 10px;\n height: 3px;\n background: #fff;\n }\n`;\n\nconst onLoading = { config: true, signature: true };\n\nconst onNotLoading = { config: false, signature: false };\n\n/**\n * Email form component\n *\n * @param {object} props - The component's props object\n * @param {object} props.dest - The destination object\n * @param {string} props.dest.id - Id of the lead to relate the email\n * @param {string} props.threadId - The thread id where the email is going to be created\n * @param {string} props.initialSubject - Subject to initialize the input\n * @param {object} props.onSubmit - Handler of the click event on the submit button\n * @param {object} props.onTrash - Handler of the click event on the trash button\n *\n * @returns {React.Component} Component to render\n */\nfunction EmailForm({ dest, onSubmit, onSubmitWithGoogle, onSubmitWithOutlook, onTrash }) {\n const [to, setTo] = useState(dest?.to || '');\n const [cc, setCc] = useState(dest?.cc || '');\n let [subject, setSubject] = useState(dest?.subject || '');\n const [body, setBody] = useState('');\n const [attachments, setAttachments] = useState([]);\n const [loading, setLoading] = useState({ config: true, signature: true });\n const [signature, setSignature] = useState(null);\n const [config, setConfig] = useState(null);\n const [service, setService] = useState(null);\n const [user] = useUser();\n const agency = useAgency();\n\n useEffect(() => {\n setLoading(onLoading);\n\n fetchUserSignature();\n fetchEmailConfiguration(user.id, agency.id);\n }, [user, agency]);\n\n useEffect(() => {\n if (signature) {\n setBody((prevBody) => `${prevBody}${PRE_SIGNATURE}${signature}`);\n }\n }, [signature]);\n\n useEventSubscription(\n OnFetchEmailConfig,\n ({ gmail, outlook, outbound }) => {\n if (gmail && gmail.active) {\n setService(gmail);\n setConfig('GMAIL');\n } else if (outlook && outlook.active) {\n setService(outlook);\n setConfig('OUTLOOK');\n } else {\n setService(outbound);\n setConfig('MANUAL');\n }\n\n setLoading((prevState) => ({\n ...prevState,\n config: false,\n }));\n },\n [],\n );\n\n useEventSubscription(\n OnFetchEmailConfigError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n useEventSubscription(\n OnCreateEmailError,\n (e) => {\n setLoading(onNotLoading);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useEventSubscription(\n OnCreateOutlookEmailError,\n (e) => {\n setLoading(onNotLoading);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useEventSubscription(OnUserSignatureEvent, (data) => {\n if (data.user.isEnableSignature) {\n if (data.user.signature !== null) {\n setSignature(data.user.signature);\n }\n }\n\n setLoading((prevState) => ({\n ...prevState,\n signature: false,\n }));\n });\n\n const addFile = (value) => {\n const aux = [...attachments];\n aux.push(value);\n setAttachments(aux);\n };\n\n const deleteFile = (i) => {\n const aux = attachments.filter((file) => {\n return file !== attachments[i];\n });\n\n setAttachments(aux);\n };\n\n useEventSubscription(OnCreateGoogleEmailError, () => {\n setLoading(onNotLoading);\n });\n\n const emailAttachList = useMemo(\n () =>\n attachments.map((file) => {\n const url = file.downloadUrl;\n return `${file.filename}`;\n }),\n [attachments],\n );\n\n const handleSubmit = () => {\n setLoading(onLoading);\n\n let sub = subject.trim();\n\n if (dest && dest.isReply) {\n if (!/^Re: /.test(subject.match)) {\n sub = `Re: ${sub}`;\n }\n }\n\n onSubmit({\n to,\n cc,\n subject: sub,\n from: service.username,\n body: `${body}${attachments.length > 0 ? `
    Attachments: ${emailAttachList}` : ''}`,\n attachments: attachments,\n lead: dest?.id ? { id: dest.id } : undefined,\n agency: { id: agency.id },\n user: { id: user.id },\n });\n };\n\n const handleSubmitWithGoogle = () => {\n setLoading(onLoading);\n\n onSubmitWithGoogle({\n subject,\n to,\n cc,\n content: body,\n agency: agency.id,\n });\n };\n\n const handleSubmitWithOutlook = () => {\n setLoading(onLoading);\n\n onSubmitWithOutlook({\n subject,\n cc,\n to,\n body,\n agency: agency.id,\n });\n };\n\n const attachmentsList = attachments.map((file, i) => {\n return (\n \n

    {file.filename}

    \n deleteFile(i)}>\n
    \n \n \n );\n });\n\n let submit = (\n <>\n \n \n {({ pick }) => (\n pick()} name=\"PaperClip\" color=\"ICON_GRAY\" cursor=\"pointer\" />\n )}\n \n \n );\n\n let from = service ? service.username : '';\n\n if (config === 'GMAIL') {\n submit = (\n \n Send\n \n );\n\n from = service.profile.email;\n }\n\n if (config === 'OUTLOOK') {\n submit = (\n \n Send\n \n );\n\n from = service.profile.email;\n }\n\n return (\n \n
    \n \n \n \n \n {from}\n \n \n \n \n {dest ? (\n \n {dest.to}\n \n ) : (\n setTo(e.target.value)}\n placeholder=\"Emails\"\n />\n )}\n \n \n \n setCc(e.target.value)}\n placeholder=\"Emails\"\n />\n \n \n
    \n
    \n \n \n \n {dest && dest.subject ? (\n \n {subject}\n \n ) : (\n setSubject(e.target.value)}\n />\n )}\n \n \n
    \n
    \n \n
    \n
    \n {attachmentsList.length < 1 ? There are no files : attachmentsList}\n
    \n
    \n \n \n
    \n \n {submit}\n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n );\n}\n\nEmailForm.propTypes = {\n dest: PropTypes.shape({\n id: PropTypes.string,\n to: PropTypes.string,\n cc: PropTypes.string,\n subject: PropTypes.string,\n isReply: PropTypes.bool,\n }),\n onSubmit: PropTypes.func.isRequired,\n onSubmitWithGoogle: PropTypes.func,\n onSubmitWithOutlook: PropTypes.func,\n onTrash: PropTypes.func.isRequired,\n};\n\nEmailForm.defaultProps = {\n onSubmitWithGoogle: () => {},\n onSubmitWithOutlook: () => {},\n initialSubject: '',\n threadId: '',\n dest: null,\n};\n\nexport default EmailForm;\n","import React from 'react';\nimport { Button, Modal, Card, Icon, Row, Heading } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnCreateEmail, OnCreateOutlookEmail } from '../email-store';\nimport EmailForm from './EmailForm';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport * as toast from '../../../shared/components/toast/Toast';\n\nconst Body = styled(Card.Body)`\n min-width: 50vw;\n`;\n\n/**\n * Renders the Email form in a dialog\n *\n * @param {object} props - The component's prop object\n * @param {object} props.dest - The data to initially fill the form\n * @param {boolean} props.isOpen - Open/Closes the dialog\n * @param {Function} props.onSubmit - Handles submit operation\n * @param {Function} props.onClose - Handles close operation\n *\n * @returns {React.Component} Component to render\n */\nfunction EmailDialog({ dest, isOpen, onSubmit, onSubmitWithGoogle, onSubmitWithOutlook, onClose }) {\n useSubscription(\n OnCreateEmail,\n () => {\n onClose();\n\n toast.success('Success', 'Email sent successfully');\n },\n [onClose],\n );\n\n useSubscription(\n OnCreateOutlookEmail,\n () => {\n onClose();\n\n toast.success('Success', 'Email sent successfuly');\n },\n [onClose],\n );\n\n return (\n \n \n \n \n Compose Email\n \n \n \n \n {isOpen && (\n \n )}\n \n \n \n );\n}\n\nEmailDialog.propTypes = {\n dest: PropTypes.object,\n isOpen: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onSubmitWithGoogle: PropTypes.func.isRequired,\n onSubmitWithOutlook: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n};\n\nEmailDialog.defaultProps = {\n dest: null,\n};\n\nexport default EmailDialog;\n","import React, { useState } from 'react';\nimport EmailDialog from './EmailDialog';\nimport { createNewEmail, createGoogleEmail, createOutlookEmail } from '../email-actions';\nimport PropTypes from 'prop-types';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { OnCreateGoogleEmailError, OnCreateGoogleEmailEvent } from '../email-events';\n\nexport const ComposeEmailContext = React.createContext();\n\nexport const ComposeEmailProvider = ({ children }) => {\n const [isOpen, setIsOpen] = useState(false);\n const [dest, setDest] = useState(null);\n\n const onCompose = (dest = null) => {\n setIsOpen(true);\n setDest(dest);\n };\n\n const onSubmit = (form) => {\n createNewEmail(form);\n };\n\n const onSubmitWithGoogle = (form) => {\n createGoogleEmail(form);\n };\n\n const onSubmitWithOutlook = (form) => {\n createOutlookEmail(form);\n };\n\n const onClose = () => {\n setIsOpen(false);\n setDest(null);\n };\n\n useEventSubscription(OnCreateGoogleEmailEvent, () => {\n setIsOpen(false);\n setDest(null);\n\n toast.success('Success', 'Email sent successfully');\n });\n\n useEventSubscription(OnCreateGoogleEmailError, (e) => {\n toast.error(e.message);\n });\n\n return (\n \n {children}\n \n \n );\n};\n\nComposeEmailProvider.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n};\n","import { useState, useEffect, useCallback } from 'react';\nimport { fetchEmails } from '../email-actions';\nimport { OnFetchEmails, OnFetchEmailsError } from '../email-store';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\n\nconst initialState = {\n items: [],\n count: 0,\n loading: false,\n error: null,\n};\n\n/**\n * Email list hook\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n * @param {object} filters - The data to filter the results\n *\n * @returns {object} Returns an Object\n */\nexport function useEmailList(user, agency, filters = {}) {\n const [state, setState] = useState(initialState);\n const [page, setPage] = useState(1);\n\n const fetch = useCallback(() => {\n if (filters.folder) {\n setState((prevState) => ({\n ...prevState,\n loading: true,\n items: page === 1 ? [] : prevState.items,\n }));\n\n fetchEmails(user, agency, filters, page);\n }\n }, [user, agency, filters, page]);\n\n const next = useCallback(() => {\n setPage((prevPage) => prevPage + 1);\n }, []);\n\n const refresh = useCallback(() => {\n if (page === 1) {\n setState((prevState) => ({\n ...prevState,\n loading: true,\n items: [],\n }));\n\n fetchEmails(user, agency, filters, page);\n } else {\n setPage(1);\n }\n }, [user, agency, filters, page]);\n\n useSubscription(\n OnFetchEmails,\n ({ mailList }) => {\n setState((prevState) => ({\n ...prevState,\n items: page === 1 ? mailList.items : [...prevState.items, ...mailList.items],\n count: mailList.count,\n loading: false,\n error: null,\n }));\n },\n [page],\n );\n\n useSubscription(\n OnFetchEmailsError,\n (e) => {\n setState((prevState) => ({\n ...prevState,\n loading: false,\n error: e,\n }));\n },\n [],\n );\n\n useEffect(() => {\n setPage(1);\n }, [filters]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n return {\n ...state,\n next,\n refresh,\n };\n}\n","import React from 'react';\n\nexport const EmailProfileContext = React.createContext(null);\n","import React, { useEffect, useState, useContext, useCallback } from 'react';\nimport { Card, Icon, Row, Loader, Text, Paragraph, styled } from '@8base/boost';\nimport { useParams } from 'react-router';\nimport { fetchEmail } from '../email-actions';\nimport { OnFetchEmail, OnFetchEmailError } from '../email-store';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { Box } from '../../../shared/components/Box';\nimport { ComposeEmailContext } from './ComposeEmailProvider';\nimport { EmailProfileContext } from './EmailProfileContext';\n\nconst Body = styled(Card.Body)`\n height: 100%;\n`;\n\nexport const EmailDetails = () => {\n const { emailId } = useParams();\n const [loading, setLoading] = useState(true);\n const [query, setQuery] = useURLQuery();\n const [email, setEmail] = useState(null);\n const { onCompose } = useContext(ComposeEmailContext);\n const outbound = useContext(EmailProfileContext);\n\n useEffect(() => {\n setLoading(true);\n\n fetchEmail(emailId);\n }, [emailId]);\n\n const onReply = useCallback(() => {\n const cc = [...(email.to || '').split(','), ...(email.ccopy || '').split(',')]\n .filter((address) => address.trim() !== outbound.username)\n .join(',');\n\n onCompose({\n id: email.lead?.id,\n from: outbound.username,\n to: email.from,\n cc,\n subject: email.subject,\n isReply: true,\n });\n }, [email, outbound, onCompose]);\n\n useSubscription(\n OnFetchEmail,\n ({ mail }) => {\n setEmail(mail);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchEmailError,\n (e) => {\n onErrorMixinFC(e);\n\n setLoading(false);\n },\n [],\n );\n\n const onClose = () => setQuery('/email', query);\n\n const canReply = email?.type === 'INBOX';\n\n const users =\n email && !loading ? (\n \n \n \n \n From\n \n {email.from}\n \n \n \n \n \n To\n \n {email.to}\n \n \n \n \n \n CC\n \n {email.ccopy}\n \n \n \n ) : null;\n\n const content = loading ? (\n \n \n \n ) : (\n \n
    \n \n );\n\n return (\n \n \n \n \n \n {email?.subject}\n \n \n \n {email && canReply && (\n \n )}\n \n \n \n \n \n {users}\n {content}\n \n \n );\n};\n","import React, { useState, useEffect, useCallback, useContext, useRef } from 'react';\nimport { Switch, Route } from 'react-router-dom';\nimport { Icon, Dropdown, Menu, Row, Column, Button } from '@8base/boost';\nimport { ButtonIcon } from '../../../shared/components/ui/buttons/ButtonIcon';\nimport SearchInput from './SearchInput';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { Title } from '../../../shared/components/ui/text/Title';\nimport composeEmail from '../../../shared/assets/images/compose-email.svg';\nimport { IconUpdateGrey } from '../../../shared/components/ui/Icons';\nimport styled from '@emotion/styled';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport EmailList from './EmailList';\nimport { LIST_FILTER_OPTIONS } from '../email-model';\nimport { getSelectedListOptionLabel } from '../email-utils';\n// import Thread from './Thread';\n// import ThreadFallback from './ThreadFallback';\nimport { ComposeEmailContext } from './ComposeEmailProvider';\nimport { useEmailList } from '../hooks/useEmailList';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { EmailDetails } from './EmailDetails';\n\nconst { INBOX, SEND, ARCHIVE, TRASH } = LIST_FILTER_OPTIONS;\n\nconst MailListToolbarRow = styled(Row)`\n width: 100%;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 0px !important;\n`;\n\nconst StyledColumn = styled(Column)`\n margin-right: 0px !important;\n height: 100%;\n position: relative;\n`;\n\nconst StyledDivBorder = styled(Column)`\n border-bottom: 1px solid #d8d8d8;\n padding: 24px;\n`;\n\nconst Container = styled.div`\n height: ${({ top }) => (top ? `calc(100vh - ${top}px)` : 'auto')};\n`;\n\nconst StyledRow = styled(Row)`\n margin-top: 16px;\n width: 100%;\n`;\n\nconst InboxSection = styled.div`\n width: 385px;\n height: 100%;\n border-right: 1px solid #d8d8d8;\n overflow: auto;\n`;\n\nconst ThreadContainer = styled.div`\n width: 100%;\n height: 100%;\n padding: 24px;\n`;\n\nexport const ManualEmailsView = () => {\n const [user] = useUser();\n const agency = useAgency();\n const [query, setQuery] = useURLQuery();\n const [top, setTop] = useState(null);\n const { onCompose } = useContext(ComposeEmailContext);\n const container = useRef(null);\n const { items, loading, count, next, refresh, error } = useEmailList(user.id, agency.id, query);\n\n useEffect(() => {\n if (!query.folder) {\n setQuery('/email', {\n ...query,\n folder: INBOX,\n });\n }\n }, [query, setQuery]);\n\n useEffect(() => {\n const { top } = container.current.getBoundingClientRect();\n setTop(top);\n }, []);\n\n useEffect(() => {\n if (error) {\n onErrorMixinFC(error);\n }\n }, [error]);\n\n const onFolderChange = useCallback(\n (folder, callback) => {\n setQuery('/email', {\n ...query,\n folder,\n });\n\n if (callback) {\n callback();\n }\n },\n [query, setQuery],\n );\n\n const onSearch = useCallback(\n (search) => {\n setQuery('/email', {\n ...query,\n search: search ? search : undefined,\n });\n },\n [query, setQuery],\n );\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n {({ toggleDropdown }) => (\n \n onFolderChange(INBOX, toggleDropdown)}>\n Inbox\n \n onFolderChange(SEND, toggleDropdown)}>\n Sent\n \n onFolderChange(ARCHIVE, toggleDropdown)}>\n Archived\n \n onFolderChange(TRASH, toggleDropdown)}>\n Trash\n \n \n )}\n \n \n \n \n onCompose()}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n {/* */}\n \n \n \n \n \n );\n};\n","import { useState, useEffect, useCallback, useRef } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnFetchGmailList, OnFetchGmailListError } from '../email-store';\nimport { fetchGoogleEmails } from '../email-actions';\n\nconst initialState = {\n items: [],\n count: 0,\n loading: true,\n error: null,\n next: null,\n};\n\n/**\n * Manages email fetching with the gmail api\n *\n * @param {string} agency - The agency id\n * @param {object} filters - Object with the data to filter\n *\n * @returns {object} The hook state\n */\nexport function useGmailList(agency, filters = {}) {\n const [state, setState] = useState(initialState);\n const after = useRef(null);\n\n const fetch = useCallback(() => {\n setState((prevState) => ({ ...prevState, loading: true }));\n\n fetchGoogleEmails(agency, 10, state.next, filters);\n }, [agency, state.next, filters]);\n\n const refresh = useCallback(() => {\n if (state.next) {\n setState((prevState) => ({\n ...prevState,\n items: [],\n count: 0,\n error: null,\n next: null,\n }));\n } else {\n setState((prevState) => ({\n ...prevState,\n items: [],\n count: 0,\n error: null,\n }));\n\n fetch();\n }\n }, [state.next, fetch]);\n\n const next = useCallback(() => {\n setState((prevState) => ({\n ...prevState,\n next: after.current,\n }));\n }, []);\n\n useSubscription(\n OnFetchGmailList,\n ({ googleEmailsList }) => {\n after.current = googleEmailsList.next;\n\n setState((prevState) => ({\n ...prevState,\n count: googleEmailsList.count,\n items:\n prevState.next === null\n ? googleEmailsList.items\n : [...prevState.items, ...googleEmailsList.items],\n loading: false,\n error: null,\n }));\n },\n [],\n );\n\n useSubscription(\n OnFetchGmailListError,\n (e) => {\n setState((prevState) => ({\n ...prevState,\n loading: false,\n error: e,\n }));\n },\n [],\n );\n\n useEffect(() => {\n after.current = null;\n\n setState(initialState);\n }, [filters]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n return {\n ...state,\n refresh,\n next,\n hasMore: after.current !== null,\n };\n}\n","import React, { useCallback, useMemo } from 'react';\nimport { Grid, Avatar, Text, Column, Paragraph } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\nimport moment from 'moment';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\n\nexport const GmailListItem = ({ email }) => {\n const [query, setQuery] = useURLQuery();\n\n const onClick = useCallback(() => {\n setQuery(`/email/${email.id}`, query);\n }, [query, email, setQuery]);\n\n const from = useMemo(\n () => email.payload.headers.find((header) => header.name.toLowerCase() === 'from'),\n [email],\n );\n\n const subject = useMemo(\n () => email.payload.headers.find((header) => header.name.toLowerCase() === 'subject'),\n [email],\n );\n\n const [firstName, lastName] = from.value.split(' ');\n\n return (\n \n \n \n \n \n \n \n \n {from.value}\n \n \n \n {moment(parseInt(email.internalDate)).format('MM-DD-YYYY, hh:mm a')}\n {subject.value}\n \n \n );\n};\n\nGmailListItem.propTypes = {\n email: PropTypes.shape({\n id: PropTypes.string.isRequired,\n payload: PropTypes.shape({\n headers: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n ),\n }).isRequired,\n internalDate: PropTypes.string.isRequired,\n }).isRequired,\n};\n","import React, { useMemo } from 'react';\nimport { Box } from '../../../shared/components/Box';\nimport { GmailListItem } from './GmailListItem';\nimport { Row, Loader, Link } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nexport const GmailList = (props) => {\n const emails = useMemo(\n () => props.items.map((email) => ),\n [props.items],\n );\n\n const loading = props.loading ? (\n \n \n \n \n \n ) : null;\n\n const next =\n !props.loading && props.hasMore ? (\n \n \n \n Load more\n \n \n \n ) : null;\n\n return (\n \n {emails}\n {loading}\n {next}\n \n );\n};\n\nGmailList.propTypes = {\n items: PropTypes.arrayOf({\n id: PropTypes.string.isRequired,\n payload: PropTypes.shape({\n headers: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n ),\n }).isRequired,\n internalDate: PropTypes.string.isRequired,\n }).isRequired,\n loading: PropTypes.bool.isRequired,\n hasMore: PropTypes.bool.isRequired,\n onMore: PropTypes.bool.isRequired,\n};\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { GoogleButton } from '../../../shared/components/GoogleButton';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchUserSignature, replyGoogleEmail } from '../email-actions';\nimport { OnReplyGoogleEmail, OnReplyGoogleEmailError } from '../email-store';\nimport { Box } from '../../../shared/components/Box';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { Dialog, Row, Icon, useModal, Loader, Card, Text } from '@8base/boost';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { OnUserSignatureEvent } from '../email-events';\n\nexport const modalId = 'gmail-reply-dialog';\n\nexport const GmailReplyDialog = () => {\n const { isOpen, args, closeModal } = useModal(modalId);\n const [loading, setLoading] = useState(true);\n const [submitting, setSubmitting] = useState(false);\n const [signature, setSignature] = useState('');\n const [, setQuery] = useURLQuery();\n const editorRef = useRef(null);\n const agency = useAgency();\n\n useEffect(() => {\n if (isOpen) {\n setLoading(true);\n\n fetchUserSignature();\n } else {\n setSignature('');\n }\n }, [isOpen]);\n\n useEventSubscription(OnUserSignatureEvent, ({ user }) => {\n if (user && user.isEnableSignature) {\n setSignature(user.signature || '');\n }\n\n setLoading(false);\n });\n\n useEventSubscription(\n OnReplyGoogleEmail,\n ({ googleEmailCreate }) => {\n toast.success('Success', 'Email sent successfuly');\n\n setQuery(`/email/${googleEmailCreate.id}`, {\n type: 'SENT',\n });\n\n closeModal(modalId);\n },\n [setQuery, closeModal],\n );\n\n useEventSubscription(\n OnReplyGoogleEmailError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n const close = useCallback(() => {\n if (!submitting) {\n closeModal(modalId);\n }\n }, [submitting, closeModal]);\n\n const onSubmit = useCallback(() => {\n if (editorRef.current) {\n setSubmitting(true);\n\n replyGoogleEmail({\n to: args.to,\n subject: args.subject,\n content: editorRef.current.getContent(),\n agency: agency.id,\n threadId: args.threadId,\n });\n }\n }, [args, agency]);\n\n const content = loading ? (\n \n \n \n \n \n ) : (\n (editorRef.current = editor)}\n apiKey={process.env.REACT_APP_EDITOR_API_KEY}\n initialValue={signature}\n init={{\n height: 300,\n width: '100%',\n menubar: false,\n plugins: [\n 'advlist autolink lists link image charmap print preview anchor',\n 'searchreplace visualblocks code fullscreen',\n 'insertdatetime media table paste code',\n ],\n toolbar:\n 'fontselect fontsizeselect capitalize | bold italic underline forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code',\n }}\n />\n );\n\n return (\n \n \n \n {`Re: ${args.subject}`}\n \n \n \n {content}\n \n \n \n \n \n Send\n \n \n \n \n \n \n );\n};\n","import React, { useCallback, useEffect, useState, useMemo } from 'react';\nimport { useParams } from 'react-router';\nimport { Card, Row, Loader, Icon, useModal, styled } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { fetchGoogleEmail } from '../email-actions';\nimport { OnFetchGmailItem, OnFetchGmailItemError } from '../email-store';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { GmailReplyDialog, modalId } from './GmailReplyDialog';\n\nconst Body = styled(Card.Body)`\n height: 100%;\n`;\n\nexport const GmailDetails = () => {\n const { emailId } = useParams();\n const agency = useAgency();\n const [query, setQuery] = useURLQuery();\n const [email, setEmail] = useState(null);\n const [loading, setLoading] = useState(true);\n const { openModal } = useModal(modalId);\n\n useEffect(() => {\n setLoading(true);\n setEmail(null);\n fetchGoogleEmail(emailId, agency.id);\n }, [emailId, agency]);\n\n useSubscription(\n OnFetchGmailItem,\n ({ googleEmail }) => {\n setEmail(googleEmail);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchGmailItemError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n const onClose = useCallback(() => {\n setQuery('/email', query);\n }, [query, setQuery]);\n\n const onReply = useCallback(() => {\n if (!loading) {\n const subject = email.payload.headers.find(\n (header) => header.name.toLowerCase() === 'subject',\n );\n\n const to = email.payload.headers.find((header) => header.name.toLowerCase() === 'from');\n\n openModal(modalId, {\n subject: subject.value,\n to: to.value,\n threadId: email.threadId,\n });\n }\n }, [loading, email, openModal]);\n\n const canReply = useMemo(() => {\n if (!email) {\n return false;\n }\n\n return !email.labelIds.includes('SENT');\n }, [email]);\n\n const content = loading ? (\n \n \n \n ) : (\n \n
    \n \n );\n\n return (\n \n \n \n {canReply && (\n \n )}\n \n \n \n {content}\n \n \n );\n};\n","import React, { useCallback, useEffect, useContext } from 'react';\nimport { Switch, Route } from 'react-router-dom';\nimport { Grid, Dropdown, Button, Menu, Icon, Row, Column, styled } from '@8base/boost';\nimport { useGmailList } from '../hooks/useGmailList';\nimport { ButtonIcon } from '../../../shared/components/ui/buttons/ButtonIcon';\nimport { Title } from '../../../shared/components/ui/text/Title';\nimport { GmailList } from './GmailList';\nimport { getSelectedGmailOptionLabel } from '../email-utils';\nimport { Box } from '../../../shared/components/Box';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { IconUpdateGrey } from '../../../shared/components/ui/Icons';\nimport google from '../../../shared/assets/images/google.svg';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport SearchInput from './SearchInput';\nimport { GmailDetails } from './GmailDetails';\nimport { ComposeEmailContext } from './ComposeEmailProvider';\n\nconst Layout = styled(Grid.Layout)`\n height: 100%;\n max-height: 100%;\n`;\n\nexport const GmailEmailsView = () => {\n const agency = useAgency();\n const [query, setQuery] = useURLQuery();\n const { items, loading, hasMore, next, refresh } = useGmailList(agency.id, query);\n const { onCompose } = useContext(ComposeEmailContext);\n\n useEffect(() => {\n if (!query.type) {\n setQuery('/email', {\n ...query,\n type: 'INBOX',\n });\n }\n }, [query, setQuery]);\n\n const handleType = useCallback(\n (type, callback) => {\n setQuery('/email', {\n ...query,\n type,\n });\n\n if (callback) {\n callback();\n }\n },\n [query, setQuery],\n );\n\n const handleSearch = useCallback(\n (value) => {\n setQuery('/email', {\n ...query,\n q: value || undefined,\n });\n },\n [query, setQuery],\n );\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n {({ toggleDropdown }) => (\n \n handleType('INBOX', toggleDropdown)}>\n Inbox\n \n handleType('SENT', toggleDropdown)}>\n Sent\n \n handleType('STARRED', toggleDropdown)}>\n Starred\n \n handleType('TRASH', toggleDropdown)}>\n Trash\n \n \n )}\n \n \n onCompose()}\n disabled={loading}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { useState, useEffect, useCallback, useRef } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnFetchOutlookEmails, OnFetchOutlookEmailsError } from '../email-store';\nimport { fetchOutlookEmails } from '../email-actions';\n\nconst initialState = {\n items: [],\n count: 0,\n loading: true,\n error: null,\n next: null,\n};\n\n/**\n * Manages email fetching with the outlook api\n *\n * @param {string} agency - The agency id\n * @param {object} filters - Object with the data to filter\n *\n * @returns {object} The hook state\n */\nexport function useOutlookList(agency, filters = {}) {\n const [state, setState] = useState(initialState);\n const after = useRef(null);\n\n const fetch = useCallback(() => {\n if (filters.folder) {\n setState((prevState) => ({ ...prevState, loading: true }));\n\n fetchOutlookEmails(agency, state.next, filters);\n }\n }, [agency, state.next, filters]);\n\n const refresh = useCallback(() => {\n if (state.next) {\n setState((prevState) => ({\n ...prevState,\n items: [],\n count: 0,\n error: null,\n next: null,\n }));\n } else {\n setState((prevState) => ({\n ...prevState,\n items: [],\n count: 0,\n error: null,\n }));\n\n fetch();\n }\n }, [state.next, fetch]);\n\n const next = useCallback(() => {\n setState((prevState) => ({\n ...prevState,\n next: after.current,\n }));\n }, []);\n\n useSubscription(\n OnFetchOutlookEmails,\n ({ outlookEmailsList }) => {\n after.current = outlookEmailsList.next;\n\n setState((prevState) => ({\n ...prevState,\n count: outlookEmailsList.count,\n items:\n prevState.next === null\n ? outlookEmailsList.items\n : [...prevState.items, ...outlookEmailsList.items],\n loading: false,\n error: null,\n }));\n },\n [],\n );\n\n useSubscription(\n OnFetchOutlookEmailsError,\n (e) => {\n setState((prevState) => ({\n ...prevState,\n loading: false,\n error: e,\n }));\n },\n [],\n );\n\n useEffect(() => {\n after.current = null;\n\n setState(initialState);\n }, [filters]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n return {\n ...state,\n refresh,\n next,\n hasMore: after.current !== null,\n };\n}\n","import React, { useCallback } from 'react';\nimport { Grid, Avatar, Text, Column, Paragraph } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\nimport moment from 'moment';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\n\nexport const OutlookListItem = ({ email }) => {\n const [query, setQuery] = useURLQuery();\n\n const onClick = useCallback(() => {\n setQuery(`/email/${email.id}`, query);\n }, [query, email, setQuery]);\n\n const [firstName, lastName] = email.from.name.split(' ');\n\n return (\n \n \n \n \n \n \n \n \n {email.from.address}\n \n \n \n {moment(email.createdAt).format('MM-DD-YYYY, hh:mm a')}\n {email.subject}\n \n \n );\n};\n\nOutlookListItem.propTypes = {\n email: PropTypes.shape({\n id: PropTypes.string.isRequired,\n subject: PropTypes.string.isRequired,\n from: PropTypes.shape({\n name: PropTypes.string.isRequired,\n address: PropTypes.string.isRequired,\n }).isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n};\n","import React, { useMemo } from 'react';\nimport { Box } from '../../../shared/components/Box';\nimport { OutlookListItem } from './OutlookListItem';\nimport { Row, Loader, Link } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nexport const OutlookList = (props) => {\n const emails = useMemo(\n () => props.items.map((email) => ),\n [props.items],\n );\n\n const loading = props.loading ? (\n \n \n \n \n \n ) : null;\n\n const next =\n !props.loading && props.hasMore ? (\n \n \n \n Load more\n \n \n \n ) : null;\n\n return (\n \n {emails}\n {loading}\n {next}\n \n );\n};\n\nOutlookList.propTypes = {\n items: PropTypes.arrayOf({\n id: PropTypes.string.isRequired,\n subject: PropTypes.string.isRequired,\n from: PropTypes.shape({\n name: PropTypes.string.isRequired,\n address: PropTypes.string.isRequired,\n }).isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n loading: PropTypes.bool.isRequired,\n hasMore: PropTypes.bool.isRequired,\n onMore: PropTypes.bool.isRequired,\n};\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { MicrosoftButton } from '../../../shared/components/MicrosoftButton';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchUserSignature, replyOutlookEmail } from '../email-actions';\nimport { OnReplyOutlookEmail, OnReplyOutlookEmailError } from '../email-store';\nimport { Box } from '../../../shared/components/Box';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { Dialog, Row, Icon, useModal, Loader, Card, Text } from '@8base/boost';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { OnUserSignatureEvent } from '../email-events';\n\nexport const modalId = 'outlook-reply-dialog';\n\nexport const OutlookReplyDialog = () => {\n const { isOpen, args, closeModal } = useModal(modalId);\n const [loading, setLoading] = useState(true);\n const [submitting, setSubmitting] = useState(false);\n const [signature, setSignature] = useState('');\n const [, setQuery] = useURLQuery();\n const editorRef = useRef(null);\n const agency = useAgency();\n\n useEffect(() => {\n if (isOpen) {\n setLoading(true);\n\n fetchUserSignature();\n } else {\n setSignature('');\n }\n }, [isOpen]);\n\n useEventSubscription(OnUserSignatureEvent, ({ user }) => {\n if (user && user.isEnableSignature) {\n setSignature(user.signature || '');\n }\n\n setLoading(false);\n });\n\n useEventSubscription(\n OnReplyOutlookEmail,\n () => {\n toast.success('Success', 'Email sent successfuly');\n\n setLoading(false);\n\n setQuery('/email', {\n folder: 'sentitems',\n });\n\n closeModal(modalId);\n },\n [setQuery, closeModal],\n );\n\n useEventSubscription(\n OnReplyOutlookEmailError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n const close = useCallback(() => {\n if (!submitting) {\n closeModal(modalId);\n }\n }, [submitting, closeModal]);\n\n const onSubmit = useCallback(() => {\n if (editorRef.current) {\n setSubmitting(true);\n\n replyOutlookEmail({\n agency: agency.id,\n body: editorRef.current.getContent(),\n replyId: args.emailId,\n });\n }\n }, [args, agency]);\n\n const content = loading ? (\n \n \n \n \n \n ) : (\n (editorRef.current = editor)}\n apiKey={process.env.REACT_APP_EDITOR_API_KEY}\n initialValue={signature}\n init={{\n height: 300,\n width: '100%',\n menubar: false,\n plugins: [\n 'advlist autolink lists link image charmap print preview anchor',\n 'searchreplace visualblocks code fullscreen',\n 'insertdatetime media table paste code',\n ],\n toolbar:\n 'fontselect fontsizeselect capitalize | bold italic underline forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code',\n }}\n />\n );\n\n return (\n \n \n \n {`Re: ${args.subject}`}\n \n \n \n {content}\n \n \n \n \n \n Send\n \n \n \n \n \n \n );\n};\n","import React, { useCallback, useEffect, useState, useMemo, useContext } from 'react';\nimport { useParams } from 'react-router';\nimport { Card, Row, Loader, Icon, useModal, Text, styled } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { fetchOutlookEmail } from '../email-actions';\nimport { OnFetchOutlookEmailError, OnFetchOutlookEmail } from '../email-store';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { OutlookReplyDialog, modalId } from './OutlookReplyDialog';\nimport { EmailProfileContext } from './EmailProfileContext';\nimport { Box } from '../../../shared/components/Box';\n\nconst Body = styled(Card.Body)`\n height: 100%;\n`;\n\nexport const OutlookDetails = () => {\n const { emailId } = useParams();\n const agency = useAgency();\n const [query, setQuery] = useURLQuery();\n const [email, setEmail] = useState(null);\n const [loading, setLoading] = useState(true);\n const outlookProfile = useContext(EmailProfileContext);\n const { openModal } = useModal(modalId);\n\n useEffect(() => {\n setLoading(true);\n setEmail(null);\n fetchOutlookEmail(emailId, agency.id);\n }, [emailId, agency]);\n\n useSubscription(\n OnFetchOutlookEmail,\n ({ outlookEmail }) => {\n setEmail(outlookEmail);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchOutlookEmailError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n const onClose = useCallback(() => {\n setQuery('/email', query);\n }, [query, setQuery]);\n\n const onReply = useCallback(() => {\n if (!loading) {\n openModal(modalId, {\n subject: email.subject,\n emailId: email.id,\n });\n }\n }, [loading, email, openModal]);\n\n const canReply = email?.from?.address !== outlookProfile?.email;\n\n const to = useMemo(() => {\n if (!email) {\n return '';\n }\n\n return email.to.map((address) => address.address).join(', ');\n }, [email]);\n\n const users = email ? (\n \n \n From: {email.from.address}\n \n \n To: {to}\n \n \n ) : null;\n\n const content = loading ? (\n \n \n \n ) : (\n \n
    \n \n );\n\n return (\n \n \n \n {email && canReply && (\n \n )}\n \n \n \n \n {users}\n {content}\n \n \n \n );\n};\n","import React, { useCallback, useEffect, useContext } from 'react';\nimport { Switch, Route } from 'react-router-dom';\nimport { Grid, Dropdown, Button, Menu, Icon, Row, Column, styled } from '@8base/boost';\nimport { useOutlookList } from '../hooks/useOutlookList';\nimport { ButtonIcon } from '../../../shared/components/ui/buttons/ButtonIcon';\nimport { Title } from '../../../shared/components/ui/text/Title';\nimport { OutlookList } from './OutlookList';\nimport { getSelectedOutlookOptionLabel } from '../email-utils';\nimport { Box } from '../../../shared/components/Box';\nimport { useURLQuery } from '../../../shared/hooks/useURLQuery';\nimport { IconUpdateGrey } from '../../../shared/components/ui/Icons';\nimport microsoft from '../../../shared/assets/images/microsoft.svg';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport SearchInput from './SearchInput';\nimport { OutlookDetails } from './OutlookDetails';\nimport { ComposeEmailContext } from './ComposeEmailProvider';\n\nconst Layout = styled(Grid.Layout)`\n height: 100%;\n max-height: 100%;\n`;\n\nexport const OutlookEmailsView = () => {\n const agency = useAgency();\n const [query, setQuery] = useURLQuery();\n const { items, loading, hasMore, next, refresh } = useOutlookList(agency.id, query);\n const { onCompose } = useContext(ComposeEmailContext);\n\n useEffect(() => {\n if (!query.folder) {\n setQuery('/email', {\n ...query,\n folder: 'inbox',\n });\n }\n }, [query, setQuery]);\n\n const handlFolder = useCallback(\n (folder, callback) => {\n setQuery('/email', {\n ...query,\n folder,\n });\n\n if (callback) {\n callback();\n }\n },\n [query, setQuery],\n );\n\n const handleSearch = useCallback(\n (value) => {\n setQuery('/email', {\n ...query,\n search: value || undefined,\n });\n },\n [query, setQuery],\n );\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n {({ toggleDropdown }) => (\n \n handlFolder('inbox', toggleDropdown)}>\n Inbox\n \n handlFolder('sentitems', toggleDropdown)}>\n Sent\n \n handlFolder('deleteditems', toggleDropdown)}>\n Trash\n \n \n )}\n \n \n onCompose()}\n disabled={loading}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React, { useState, useEffect } from 'react';\nimport { ManualEmailsView } from './components/ManualEmailsView';\nimport { GmailEmailsView } from './components/GmailEmailsView';\nimport { Row, Loader } from '@8base/boost';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { Box } from '../../shared/components/Box';\nimport { useUser } from '../../shared/hooks/useUser';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchEmailConfiguration } from './email-actions';\nimport { OnFetchEmailConfig, OnFetchEmailConfigError } from './email-store';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport { OutlookEmailsView } from './components/OutlookEmailsView';\nimport { EmailProfileContext } from './components/EmailProfileContext';\n\n/**\n * Email view\n *\n * @returns {React.Component} The component to render\n */\nfunction Email() {\n const agency = useAgency();\n const [user] = useUser();\n const [loading, setLoading] = useState(true);\n const [mode, setMode] = useState('manual');\n const [profile, setProfile] = useState(null);\n\n useEffect(() => {\n setLoading(true);\n\n fetchEmailConfiguration(user.id, agency.id);\n }, [agency.id, user.id]);\n\n useSubscription(\n OnFetchEmailConfig,\n ({ gmail, outlook, outbound }) => {\n if (gmail && gmail.active) {\n setProfile(gmail.profile);\n setMode('gmail');\n }\n\n if (outlook && outlook.active) {\n setProfile(outlook.profile);\n setMode('outlook');\n }\n\n if (outbound && outbound.active) {\n setProfile(outbound);\n setMode('manual');\n }\n\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchEmailConfigError,\n (e) => {\n onErrorMixinFC(e);\n\n setLoading(false);\n },\n [],\n );\n\n if (loading) {\n return (\n \n \n \n \n \n );\n }\n\n if (mode === 'gmail') {\n return (\n \n \n \n );\n }\n\n if (mode === 'outlook') {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n );\n}\n\nexport default Email;\n","import { useState, useCallback, useEffect } from 'react';\nimport { fetchLeadsLight, createFilter } from '../leads-actions';\nimport { useSubscription } from '@apollo/client/react/hooks';\nimport { LEADS_LIST_LIGHT_SUBSCRIPTION } from '../leads-queries';\nimport { SUBSCRIPTIONS_OPERATIONS } from '../../../shared/constants/8base';\n\nconst initialState = {\n items: [],\n count: 0,\n loading: true,\n error: null,\n};\n\n/**\n * Hook that fetches a list of leads in an agency\n *\n * @param {string} agency - The agency id\n * @param {string} sort - The order of the results\n * @param {string} filters - Data to create a filter from\n * @param {string} filters.firstName - To search leads by their first name\n * @param {string} filters.middleName - To search leads by their middle name\n * @param {string} filters.lastName - To searcg leads by their last name\n * @param {string} filters.createdAfter - Filter for leads created after the date (YYYY-MM-DD hh:mm:ss)\n * @param {string} filters.createdBefore - Filter for leads created before the date (YYYY-MM-DD hh:mm:ss)\n * @param {string} filters.leadType - Type of the lead (Auto, Comercial Auto, Employee, etc)\n * @param {string} filters.campaign - The campaign id\n * @param {string} filters.leadVendor - Lead vendor id\n * @param {string} filters.assignedTo - The id of the user assigned to the lead (, \"None\" or Empty)\n * @param {string} filters.hasNotes - If the lead should have notes or not\n * @param {string} filters.phoneNumber - A phone number to filter leads from\n *\n * @returns {object} The list state\n */\nexport function useAgencyLeads(agency, sort, filters = {}) {\n const [page, setPage] = useState(1);\n const [state, setState] = useState(initialState);\n\n const fetch = useCallback(async () => {\n setState((prevState) => ({ ...prevState, loading: true }));\n\n const data = await fetchLeadsLight(\n page,\n {\n agency,\n sort,\n ...filters,\n },\n filters.search || '',\n );\n\n if (data && data.leadsList) {\n setState((prevState) => ({\n ...prevState,\n items: data.leadsList.items,\n count: data.leadsList.count,\n loading: false,\n error: null,\n }));\n } else {\n setState((prevState) => ({\n ...prevState,\n items: [],\n count: 0,\n loading: false,\n error: new Error('Something happened while fetching the leads'),\n }));\n }\n }, [agency, sort, page, filters]);\n\n useEffect(() => {\n setPage(1);\n }, [filters]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n const { data } = useSubscription(LEADS_LIST_LIGHT_SUBSCRIPTION, {\n variables: { filter: createFilter(filters, filters.search) },\n });\n\n useEffect(() => {\n if (!data) return;\n\n const { mutation, node } = data.Lead;\n\n if (mutation === SUBSCRIPTIONS_OPERATIONS.UPDATE) {\n setState((prevState) => {\n if (prevState.items.length === 0) {\n return prevState;\n }\n\n return {\n ...prevState,\n items: prevState.items.map((item) => (item.id === node.id ? node : item)),\n };\n });\n } else {\n fetch();\n }\n }, [data, fetch]);\n\n return {\n ...state,\n refresh: fetch,\n page,\n setPage,\n };\n}\n","import React, { useState } from 'react';\nimport { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { compose } from 'recompose';\nimport { withAuth } from '@8base/react-sdk';\nimport { withApollo } from '@apollo/client/react/hoc';\nimport MainLoader from 'shared/components/ui/MainLoader';\nimport { useHistory } from 'react-router-dom';\n\n//Component to monitor statuses of registration for messaging and phone services\nconst Welcome = ({ checkRegistration, ...restProps }) => {\n const history = useHistory();\n const [registration, setRegistration] = useState(undefined);\n\n useEffect(() => {\n checkRegistration().then((res) => {\n setRegistration(res);\n });\n }, [checkRegistration]);\n useEffect(() => {\n if (registration === true) {\n history.push('/dashboard');\n }\n if (registration === false && restProps.location.pathname !== '/waiting-phone-registration') {\n history.push('/waiting-phone-registration');\n }\n }, [history, registration, restProps.location.pathname]);\n return ;\n};\n\nexport default compose(withApollo, withAuth)(Welcome);\n","export const ENTITIES = {\n LEAD: 'LEAD',\n NOTE: 'NOTE',\n TASK: 'TASK',\n EMAIL: 'EMAIL',\n CALL: 'CALL',\n SMS: 'SMS',\n STAGE: 'STAGE',\n};\n\nexport const OPERATIONS = {\n CREATE: 'CREATE',\n UPDATE: 'Update',\n};\n\nexport const ENTITY_SELECTOR_OPTIONS = [\n { label: 'No Filter', value: '' },\n { label: 'Lead', value: 'LEAD' },\n { label: 'Note', value: 'NOTE' },\n { label: 'Task', value: 'TASK' },\n { label: 'Email', value: 'EMAIL' },\n { label: 'Call', value: 'CALL' },\n { label: 'Sms', value: 'SMS' },\n { label: 'Stage', value: 'STAGE' },\n];\n\nexport const RESULTS_PER_PAGE = 15;\n","import { Column, Grid } from '@8base/boost';\nimport styled from 'styled-components';\n\nexport const IconContainer = styled.div`\n width: ${(props) => (props.horizontal ? '12%' : '100%')};\n ${(props) => !props.horizontal && 'text-align: center;'}\n`;\n\nexport const DateContainer = styled.div`\n width: ${(props) => (props.horizontal ? '25%' : '100%')};\n`;\n\nexport const InfoContainer = styled.div`\n width: ${(props) => (props.horizontal ? '58%' : '100%')};\n`;\n\nexport const MarginLessCol = styled(Column)`\n & > *:not(:last-child) {\n margin-bottom: 0px !important;\n }\n`;\n\nexport const Layout = styled(Grid.Layout)`\n ${(props) => props.padding && ' padding: 0px 14px;'}\n ${(props) =>\n props.border &&\n `\n padding-bottom: 14px;\n border-bottom: 1px solid #e8eff5;\n `}\n`;\nLayout.defaultProps = {\n padding: true,\n};\nexport const Box = styled(Grid.Box)`\n justify-content: ${(props) => props.justifyContent};\n align-items: ${(props) => props.alignItems};\n`;\n\nexport const Content = styled.div`\n border-bottom: 1px solid #e8eff5;\n transition: opacity 1s;\n overflow: hidden;\n width: 100%;\n ${({ state, isData }) => {\n switch (state) {\n case 'entering':\n case 'entered':\n return `\n ${isData &&\n `\n padding: 14px; \n `}\n height: auto;\n opacity: 1;\n `;\n case 'exiting':\n case 'exited':\n return `\n padding: 0px;\n height: 0px !important;\n opacity: 0; \n `;\n default:\n return ``;\n }\n }}\n`;\n","import styled from 'styled-components';\nimport { Grid } from '@8base/boost';\n\nexport const ColumnInfo = styled(Grid.Box)`\n padding: 12px 0px 12px 24px;\n`;\n\nexport const ColumnName = styled.span`\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 20px;\n font-weight: 600;\n`;\n\nexport const ColumnValue = styled.span`\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 20px;\n`;\n\nexport const RowHeader = styled.div`\n height: 36px;\n color: #9b9b9b;\n font-size: 12px;\n font-weight: bold;\n line-height: 18px;\n font-family: 'Poppins';\n letter-spacing: 0.5px;\n background-color: #fcfcfc;\n border-top: 1px solid #d3d3d3;\n border-bottom: 1px solid #d3d3d3;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n padding-left: 24px;\n`;\n","import { ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport styled from 'styled-components';\n\nexport const Name = styled(ColumnName)`\n ${(props) =>\n props.clickable &&\n `\n color: #3db4aa;\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n `}\n`;\n\nexport const Value = styled(ColumnValue)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n`;\n","import React from 'react';\nimport { Row, Avatar, Grid, Column } from '@8base/boost';\nimport moment from 'moment';\nimport { MarginLessCol, Layout, Content } from './containers';\nimport { Name, Value } from './interfaces';\nimport { Transition } from 'react-transition-group';\nimport ReactJsonView from 'react-json-view';\nimport { OPERATIONS } from '../leads-history-model';\nimport PropTypes from 'prop-types';\n\n/**\n * Item for a history event on the lead, either create or update\n *\n * @param {object} props - The props object of the component\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.difference - JSON changes details\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.lead - The lead associated with the event\n * @param {string} props.event.lead.firstName - First name of the lead\n * @param {string} props.event.lead.lastName - Last name of the lead\n * @param {object} props.event.createdBy - The user that initiated the event\n * @param {string} props.event.createdBy.firstName - First name of the user who initiated the event\n * @param {boolean} props.isFullHistory - Renders the object in a horizontal orientation if true\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {Function} props.onDetailsClick - Function to handle the update label click\n *\n * @returns {React.FC} The component to render\n */\nfunction LeadHistoryItem({ event, onDetailsClick, isFullHistory, horizontal }) {\n const now = moment().startOf('day');\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n const created = moment(event.createdAt);\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n\n const columns = '35px 100px minmax(200px, 1fr)';\n\n return (\n \n \n {horizontal && (\n \n \n \n )}\n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {horizontal ? (\n <>\n {event.operation === OPERATIONS.CREATE ? (\n Created By\n ) : (\n onDetailsClick(event.difference)}>\n Updated By\n \n )}\n {event.createdBy && (\n \n {event.createdBy.firstName} {event.createdBy.lastName}\n \n )}\n \n ) : (\n {event.operation === OPERATIONS.CREATE ? 'Created' : 'Updated'}\n )}\n \n \n \n \n {(state) => (\n \n {event.operation === OPERATIONS.UPDATE && (\n \n )}\n \n )}\n \n \n );\n}\n\nLeadHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n difference: PropTypes.string,\n createdAt: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }).isRequired,\n createdBy: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n onDetailsClick: PropTypes.func.isRequired,\n};\n\nLeadHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n};\n\nexport default LeadHistoryItem;\n","import React from 'react';\nimport moment from 'moment';\nimport { Row, Icon, Grid, Column } from '@8base/boost';\nimport { MarginLessCol, Content, Layout } from './containers';\nimport { Transition } from 'react-transition-group';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport { Name, Value } from './interfaces';\nimport PropTypes from 'prop-types';\n\nconst rows = [\n [\n {\n key: 'text',\n type: 'text',\n },\n ],\n];\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Item for a history event on the lead, either create or update\n *\n * @param {object} props - The props object of the component\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.difference - JSON changes details\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.note - The note object related with the event\n * @param {string} props.event.note.title - The title of the note\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {boolean} props.isFullHistory - If true, renders all component information\n * @param {Function} props.onNoteClick - Function to pass more information about the note\n * @param {Function} props.onDetailsClick - Function to pass more information on the difference when updated\n *\n * @returns {React.FC} The component to render\n */\nfunction NoteHistoryItem({ event, horizontal, isFullHistory, onNoteClick, onDetailsClick }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n\n const data = {\n text: event.note.text,\n };\n\n const handleInfoClick = () => {\n if (horizontal) {\n onNoteClick({\n title: event.note.title,\n data,\n rows,\n });\n }\n };\n\n return (\n \n \n \n \n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {horizontal ? (\n <>\n {event.operation === 'CREATE' ? (\n \n New note created\n \n ) : (\n onDetailsClick(event.difference)}>\n Updated Note\n \n )}\n {event.note.title}\n \n ) : (\n {event.operation === 'CREATE' ? 'Created' : 'Updated'}\n )}\n \n \n \n \n {(state) => (\n \n \n \n )}\n \n \n );\n}\n\nNoteHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n difference: PropTypes.string,\n createdAt: PropTypes.string.isRequired,\n note: PropTypes.shape({\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n onNoteClick: PropTypes.func,\n onDetailsClick: PropTypes.func,\n};\n\nNoteHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n onNoteClick: () => {},\n onDetailsClick: () => {},\n};\n\nexport default NoteHistoryItem;\n","import React from 'react';\nimport { Row, Grid, Column } from '@8base/boost';\nimport { IconTasksGreen } from '../../../../shared/components/ui/Icons';\nimport { ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport { MarginLessCol, Layout, Content } from './containers';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport { Transition } from 'react-transition-group';\nimport { Name, Value } from './interfaces';\nimport moment from 'moment';\nimport PropTypes from 'prop-types';\n\nconst rows = [\n [\n {\n key: 'description',\n label: 'Description',\n type: 'text',\n },\n ],\n [\n {\n key: 'date',\n label: 'Date',\n type: 'text',\n },\n {\n key: 'priority',\n label: 'Priority',\n type: 'text',\n },\n ],\n [\n {\n key: 'status',\n label: 'Status',\n type: 'text',\n },\n {\n key: 'type',\n label: 'Type',\n type: 'text',\n },\n ],\n];\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Email history item component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.difference - JSON changes details\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.task - The task object related with the event\n * @param {string} props.event.task.title - The title of the task\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {boolean} props.isFullHistory - If true, renders all component information\n * @param {Function} props.onTaskClick - Function to pass more information about the task\n * @param {Function} props.onDetailsClick - Function to pass more information on the difference when updated\n *\n * @returns {React.FC} The component to render\n */\nfunction TaskHistoryItem({ event, onDetailsClick, onTaskClick, isFullHistory, horizontal }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n\n const data = {\n date: moment(event.task.date).format('MM/DD/YYYY'),\n priority: event.task.priority,\n status: event.task.status,\n type: event.task.type.name,\n description: event.task.description,\n };\n\n const handleInfoClick = () => {\n if (horizontal) {\n onTaskClick({\n title: event.task.title,\n data,\n rows,\n });\n }\n };\n\n return (\n \n \n \n \n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {event.operation === 'CREATE' ? (\n New Task\n ) : horizontal ? (\n onDetailsClick(event.difference)}>\n Updated Task\n \n ) : (\n Updated Task\n )}\n {horizontal && {event.task.title}}\n \n \n \n \n {(state) => (\n \n \n \n )}\n \n \n );\n}\n\nTaskHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n difference: PropTypes.string,\n createdAt: PropTypes.string.isRequired,\n task: PropTypes.shape({\n title: PropTypes.string.isRequired,\n date: PropTypes.string.isRequired,\n priority: PropTypes.string.isRequired,\n status: PropTypes.string.isRequired,\n type: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }).isRequired,\n description: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n onTaskClick: PropTypes.func,\n onDetailsClick: PropTypes.func,\n};\n\nTaskHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n onTaskClick: () => {},\n onDetailsClick: () => {},\n};\n\nexport default TaskHistoryItem;\n","import React from 'react';\nimport { Grid, Row, Column } from '@8base/boost';\nimport { IconInboxGreen } from '../../../../shared/components/ui/Icons';\nimport { ColumnValue } from '../../components/ColumnInfo';\nimport { MarginLessCol, Content, Layout } from './containers';\nimport { Transition } from 'react-transition-group';\nimport { Value, Name } from './interfaces';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport moment from 'moment';\nimport PropTypes from 'prop-types';\n\nconst rows = [\n [\n {\n key: 'subject',\n label: 'Subject:',\n type: 'text',\n inline: true,\n },\n ],\n [\n {\n key: 'from',\n label: 'From:',\n type: 'text',\n inline: true,\n },\n ],\n [\n {\n key: 'to',\n label: 'To:',\n type: 'text',\n inline: true,\n },\n ],\n [\n {\n key: 'body',\n label: 'Content',\n type: 'html',\n margin: { top: '10px' },\n },\n ],\n];\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Email history item component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.email - The email object related with the event\n * @param {object} props.event.email.to - The destinatary\n * @param {string} props.event.email.subject - The subject of the email\n * @param {object} props.event.email.thread - Thread related to the email\n * @param {object} props.event.email.thread.lead - The lead related to the conversation\n * @param {object} props.event.email.thread.lead.email - Email of the lead related to the conversation\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {boolean} props.isFullHistory - If true, renders all component information\n * @param {Function} props.onEmailClick - Function to trigger to pass email info\n *\n * @returns {React.FC} The component to render\n */\nfunction EmailHistoryItem({ event, horizontal, isFullHistory, onEmailClick }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now.clone().subtract(1, 'days').startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n const { thread } = event.email;\n\n const data = {\n subject: event.email.subject,\n from: event.email.from,\n to: event.email.to,\n body: event.email.body,\n };\n\n const handleInfoClick = () => {\n if (horizontal) {\n onEmailClick({\n title: `Email ${event.email.to === thread.lead.email ? 'Sent' : 'Reply'}`,\n space: 5,\n data,\n rows,\n });\n }\n };\n\n return (\n \n \n \n \n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {thread?.lead ? (\n event.email.to === thread.lead.email ? (\n \n Email Sent\n \n ) : (\n \n Email Reply\n \n )\n ) : event.email.to && thread.email && event.email.to === thread.email ? (\n \n Email Sent\n \n ) : (\n \n Email Reply\n \n )}\n {horizontal && {event.email.subject}}\n \n \n \n \n {(state) => (\n \n \n \n )}\n \n \n );\n}\n\nEmailHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n email: PropTypes.shape({\n to: PropTypes.string.isRequired,\n from: PropTypes.string.isRequired,\n subject: PropTypes.string.isRequired,\n body: PropTypes.string.isRequired,\n thread: PropTypes.shape({\n email: PropTypes.string,\n lead: PropTypes.shape({\n email: PropTypes.string.isRequired,\n }),\n }).isRequired,\n }).isRequired,\n }).isRequired,\n onEmailClick: PropTypes.func,\n isFullHistory: PropTypes.bool,\n horizontal: PropTypes.bool,\n};\n\nEmailHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n onEmailClick: () => {},\n};\n\nexport default EmailHistoryItem;\n","import React from 'react';\nimport moment from 'moment';\nimport { Row, Grid, Column } from '@8base/boost';\nimport { IconCallGreen } from '../../../../shared/components/ui/Icons';\nimport { formatDuration } from '../../../phone-calls/phone-calls-utils';\nimport { Layout, Content, MarginLessCol } from './containers';\nimport { Transition } from 'react-transition-group';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport { Name, Value } from './interfaces';\nimport PropTypes from 'prop-types';\n\nconst rows = [\n [\n {\n key: 'carrier',\n label: 'Carrier',\n type: 'text',\n },\n {\n key: 'currentPremium',\n label: 'Current Premium',\n type: 'text',\n },\n {\n key: 'quotedPremium',\n label: 'Quoted Premium',\n type: 'text',\n },\n {\n key: 'status',\n label: 'Status',\n type: 'text',\n },\n ],\n [\n {\n key: 'insurance',\n label: 'Insurance',\n type: 'text',\n },\n {\n key: 'expirationDate',\n label: 'Expiration Date',\n type: 'text',\n },\n ],\n [\n {\n key: 'score',\n label: 'Score',\n type: 'text',\n },\n {\n key: 'createdAt',\n label: 'Dispositon created at',\n type: 'text',\n },\n ],\n [\n {\n key: 'createdBy',\n label: 'Created By',\n type: 'text',\n },\n ],\n];\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Item for a history event on the lead, either create or update\n *\n * @param {object} props - The props object of the component\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.call - The call object related with the event\n * @param {string} props.event.call.duration - The duration of the call\n * @param {string} props.event.call.status - The status of the call\n * @param {object} props.event.phoneCallDispositionRelation - The disposition related with this call\n * @param {string} props.event.phoneCallDispositionRelation.carrier - The carrier info\n * @param {object} props.event.phoneCallDispositionRelation.status - The status assigned to the lead while calling\n * @param {string} props.event.phoneCallDispositionRelation.status.name - The name of status\n * @param {string} props.event.phoneCallDispositionRelation.expirationDate - The expiration date info\n * @param {string} props.event.phoneCallDispositionRelation.insurance - The insuance info\n * @param {string} props.event.phoneCallDispositionRelation.notes - A note for the call\n * @param {string} props.event.phoneCallDispositionRelation.score - The score info\n * @param {boolean} props.onDispositionClick - Function to trigger to pass disposition info\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {boolean} props.isFullHistory - If true, renders all component information\n *\n * @returns {React.FC} The component to render\n */\nfunction CallHistoryItem({ event, horizontal, isFullHistory, onDispositionClick }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n const durationLabel = formatDuration(event.call.duration);\n\n const { phoneCallDispositionRelation: disposition } = event.call;\n\n const data = disposition\n ? {\n carrier: disposition.carrier,\n currentPremium: disposition.currentPremium,\n quotedPremium: disposition.quotedPremium,\n status: disposition?.status?.name,\n expirationDate: disposition?.expirationDate\n ? moment(disposition?.expirationDate).format('MM/DD/YYYY')\n : '',\n insurance: disposition?.insurance,\n notes: disposition.notes,\n ifsScore: '',\n createdAt: moment(disposition.createdAt).format('MM/DD/YYYY'),\n createdBy: `${disposition.createdBy.firstName} ${disposition.createdBy.lastName} (${disposition.createdBy.email})`,\n }\n : null;\n\n const handleInfoClick = () => onDispositionClick({ title: 'Disposition', data, rows });\n\n return (\n \n \n \n \n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('DD/MM-YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {horizontal ? (\n data ? (\n \n Disposition\n \n ) : (\n {event.call.status}\n )\n ) : (\n {event.call.status}\n )}\n {horizontal && Duration: {durationLabel}}\n \n \n \n \n {(state) => (\n \n {data !== null && }\n \n )}\n \n \n );\n}\n\nCallHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n call: PropTypes.shape({\n duration: PropTypes.number.isRequired,\n status: PropTypes.string.isRequired,\n phoneCallDispositionRelation: PropTypes.shape({\n carrier: PropTypes.string.isRequired,\n currentPremium: PropTypes.string.isRequired,\n quotedPremium: PropTypes.string.isRequired,\n status: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }).isRequired,\n expirationDate: PropTypes.string.isRequired,\n insurance: PropTypes.string.isRequired,\n notes: PropTypes.string.isRequired,\n score: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }).isRequired,\n }),\n }).isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n onDispositionClick: PropTypes.func,\n};\n\nCallHistoryItem.defaultProps = {\n onDispositionClick: () => {},\n horizontal: true,\n isFullHistory: false,\n};\n\nexport default CallHistoryItem;\n","import React from 'react';\nimport moment from 'moment';\nimport styled from 'styled-components';\nimport { FaArrowUp, FaArrowDown } from 'react-icons/fa';\nimport { Row, Grid, Column } from '@8base/boost';\nimport { IconChatGreen } from '../../../../shared/components/ui/Icons';\nimport { MarginLessCol, Content, Layout } from './containers';\nimport { Name, Value } from './interfaces';\nimport { Transition } from 'react-transition-group';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport PropTypes from 'prop-types';\n\nconst IconContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst ArrowContainer = styled.div`\n padding-top: 5px;\n margin-left: 5px;\n`;\n\nconst rows = [\n [\n {\n key: 'from',\n label: 'From:',\n type: 'text',\n inline: true,\n },\n ],\n [\n {\n key: 'to',\n label: 'To:',\n type: 'text',\n inline: true,\n },\n ],\n [\n {\n key: 'text',\n label: 'Text',\n type: 'text',\n margin: {\n top: '10px',\n },\n },\n ],\n];\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Item for a history event on the lead, either create or update\n *\n * @param {object} props - The props object of the component\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.sms - The sms object related with the event\n * @param {string} props.event.sms.text - The text of the sms\n * @param {object} props.event.sms.createdBy - The user that initially sent the message\n * @param {string} props.event.sms.createdBy.firstName - The author's first name\n * @param {string} props.event.sms.createdBy.lastName - The author's last name\n * @param {string} props.event.sms.lead.firstName - The author's first name\n * @param {string} props.event.sms.lead.lastName - The author's last name\n * @param {boolean} props.onSmsClick - Function to trigger to pass sms info\n * @param {boolean} props.isFullHistory - Renders the object in a horizontal orientation if true\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsHistoryItem({ event, horizontal, isFullHistory, onSmsClick }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n const from = event.sms.createdBy\n ? `${event.sms.createdBy.firstName} ${event.sms.createdBy.lastName}`\n : '';\n\n const data = {\n from,\n to: `(${event.sms.phoneNumber})`,\n text: event.sms.text,\n };\n\n const handleInfoClick = () => {\n if (horizontal) {\n onSmsClick({\n title: 'Message sent',\n space: 5,\n data,\n rows,\n });\n }\n };\n\n const arrowIcon =\n event.sms?.type === 'INCOMING' ? (\n \n ) : (\n \n );\n\n return (\n \n \n \n \n \n \n {arrowIcon}\n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('DD/MM-YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {event.sms?.type === 'INCOMING' ? (\n \n Message received\n \n ) : (\n \n Message sent\n \n )}\n\n {horizontal && {event.sms.text}}\n \n \n \n \n {(state) => (\n \n \n \n )}\n \n \n );\n}\n\nSmsHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n sms: PropTypes.shape({\n text: PropTypes.string.isRequired,\n phoneNumber: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }).isRequired,\n createdBy: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }),\n type: PropTypes.string,\n }).isRequired,\n }).isRequired,\n onSmsClick: PropTypes.func,\n isFullHistory: PropTypes.bool,\n horizontal: PropTypes.bool,\n};\n\nSmsHistoryItem.defaultProps = {\n onSmsClick: () => {},\n isFullHistory: false,\n horizontal: true,\n};\n\nexport default SmsHistoryItem;\n","import React from 'react';\nimport { Row, Icon, Grid } from '@8base/boost';\nimport { ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport { MarginLessCol, Layout } from './containers';\nimport { Value } from './interfaces';\nimport moment from 'moment';\nimport PropTypes from 'prop-types';\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Stage history item component\n *\n * @param {event} props - The component's prop object\n * @param {object} props.event - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {object} props.event.stage - The stage object related with the event\n * @param {string} props.event.stage.name - The name of the stage\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n * @param {boolean} props.isFullHistory - If true, renders all component information\n *\n * @returns {React.FC} The component to render\n */\nfunction StageHistoryItem({ event, horizontal, isFullHistory }) {\n const now = moment().startOf('day');\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n const created = moment(event.createdAt);\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n\n return (\n \n \n \n \n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {horizontal ? (\n <>\n Status changed to\n {event.stage.name}\n \n ) : (\n {event.stage.name}\n )}\n \n \n \n );\n}\n\nStageHistoryItem.propTypes = {\n event: PropTypes.shape({\n operation: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n stage: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n};\n\nStageHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n};\n\nexport default StageHistoryItem;\n","import React from 'react';\nimport { Row, Grid } from '@8base/boost';\nimport { ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport { MarginLessCol, Layout } from './containers';\nimport { Name } from './interfaces';\nimport moment from 'moment';\nimport PropTypes from 'prop-types';\nimport {\n IconCallGreen,\n IconInboxGreen,\n IconChatGreen,\n IconTasksGreen,\n} from '../../../../shared/components/ui/Icons';\nimport { ENTITIES } from '../leads-history-model';\nimport { Avatar, Icon } from '@8base/boost';\n\nconst columns = '35px 100px minmax(200px, 1fr)';\n\n/**\n * Item rendered when entity is deleted\n *\n * @param {object} props - The component's prop object\n * @param {object} props.event - The object defining the event\n * @param {object} props.event.entity - The object defining the event\n * @param {string} props.event.operation - CREATE / UPDATE / DELETE the entity\n * @param {string} props.event.createdAt - Timestamp of the event\n * @param {boolean} props.isFullHistory - If true, renders all component information\n * @param {boolean} props.horizontal - Renders the object in a horizontal orientation if true\n *\n * @returns {React.FC} The component to render\n */\nfunction DeletedHistoryItem({ event, horizontal, isFullHistory }) {\n const now = moment().startOf('day');\n const created = moment(event.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n const InnerWrapper = horizontal ? MarginLessCol : Row;\n let icon = null;\n\n switch (event.entity) {\n case ENTITIES.LEAD:\n icon = ;\n break;\n case ENTITIES.NOTE:\n icon = (\n \n );\n break;\n case ENTITIES.TASK:\n icon = ;\n break;\n case ENTITIES.EMAIL:\n icon = ;\n break;\n case ENTITIES.CALL:\n icon = ;\n break;\n case ENTITIES.SMS:\n icon = ;\n break;\n case ENTITIES.STAGE:\n icon = ;\n break;\n default:\n icon = null;\n }\n\n return (\n \n {icon}\n \n \n {created.isSame(now, 'day') ? (\n Today\n ) : created.isSame(yesterday, 'day') ? (\n Yesterday\n ) : (\n {created.format('MM/DD/YYYY')}\n )}\n {created.format('LT')}\n \n \n \n \n {event.operation === 'CREATE' ? (\n New {event.entity.toLowerCase()}\n ) : (\n Updated {event.entity.toLowerCase()}\n )}\n \n \n \n );\n}\n\nDeletedHistoryItem.propTypes = {\n event: PropTypes.shape({\n entity: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }).isRequired,\n operation: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n horizontal: PropTypes.bool,\n isFullHistory: PropTypes.bool,\n};\n\nDeletedHistoryItem.defaultProps = {\n horizontal: true,\n isFullHistory: false,\n};\n\nexport default DeletedHistoryItem;\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport { usePhoneCallComponent } from '../phone-calls-hooks';\nimport { Button, Loader } from '@8base/boost';\nimport * as toast from '../../../shared/components/toast/Toast';\n\n/**\n * @param {object} props Props.\n * @param {object} props.children Children element.\n * @param {string} props.tel Phone number as tel prop.\n * @param {string} props.data Lead data for get lead name oand other info\n * @returns {object} React Element\n */\nexport const PhoneNumber = ({ children, tel, name, lead }) => {\n const phoneUtil = PhoneNumberUtil.getInstance();\n\n const { makeCall, ready, startingCall } = usePhoneCallComponent() || {};\n\n const call = useCallback(() => {\n if (tel) {\n const isValidNumber = phoneUtil.isValidNumberForRegion(phoneUtil.parse(tel, 'US'), 'US');\n\n if (isValidNumber) {\n makeCall(tel, name, lead);\n } else {\n toast.error('Invalid phone number!');\n }\n } else {\n toast.error('You must register a phone number for this lead');\n }\n }, [makeCall, tel, name, lead, phoneUtil]);\n\n return (\n \n );\n};\n\nPhoneNumber.defaultProps = {\n name: 'Unknown',\n lead: undefined,\n};\n\nPhoneNumber.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n tel: PropTypes.string.isRequired,\n name: PropTypes.string,\n lead: PropTypes.string,\n};\n","import gql from 'graphql-tag';\n\nexport const LEAD_STAGE_FRAGMENT = gql`\n fragment leadStageFragment on LeadStage {\n id\n name\n createdAt\n }\n`;\n\nexport const QUERY_LEADS_STAGES = gql`\n query FetchLeadStages {\n leadStagesList {\n items {\n ...leadStageFragment\n }\n }\n }\n ${LEAD_STAGE_FRAGMENT}\n`;\n\nexport const CREATE_LEAD_STAGE_HISTORY = gql`\n mutation CreateLeadStage($data: LeadStageHistoryCreateInput!, $stage: ID!, $lead: ID!) {\n leadStageHistoryCreate(data: $data) {\n stage {\n ...leadStageFragment\n }\n }\n leadUpdate(filter: { id: $lead }, data: { stage: { connect: { id: $stage } } }) {\n id\n }\n }\n ${LEAD_STAGE_FRAGMENT}\n`;\n\nexport const ASSING_LEAD_STAGE = gql`\n mutation AssignLeadStage($stage: ID!, $lead: ID!) {\n leadUpdate(filter: { id: $lead }, data: { stage: { connect: { id: $stage } } }) {\n id\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchLeadStages = createEvent();\n\nexport const OnFetchLeadStagesError = createEvent();\n\nexport const OnSetLeadStage = createEvent();\n\nexport const OnSetLeadStageError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { createAction } from '@cobuildlab/react-simple-state';\nimport {\n QUERY_LEADS_STAGES,\n CREATE_LEAD_STAGE_HISTORY,\n ASSING_LEAD_STAGE as ASSING_LEAD_STAGE_MUTATION,\n} from './leads-stage-queries';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n OnFetchLeadStages,\n OnFetchLeadStagesError,\n OnSetLeadStage,\n OnSetLeadStageError,\n} from './leads-stage-store';\n\n/**\n * Fetch lead stages\n *\n * @returns {Promise}\n */\nexport const fetchLeadStages = createAction(OnFetchLeadStages, OnFetchLeadStagesError, async () => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: QUERY_LEADS_STAGES,\n });\n\n return response.data;\n});\n\n/**\n * Assigns the provided stage to the provided lead\n *\n * @param {number} lead - The lead id\n * @param {number} stage - The stage id\n *\n * @returns {Promise} result function\n */\nexport const assignLeadStage = createAction(\n OnSetLeadStage,\n OnSetLeadStageError,\n async (lead, stage) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: CREATE_LEAD_STAGE_HISTORY,\n variables: {\n data: {\n lead: { connect: { id: lead } },\n stage: { connect: { id: stage } },\n },\n lead,\n stage,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Assigns the provided stage to the provided lead\n * without creating leadStageHistory\n *\n * @param {number} leadId - Lead id\n * @param {number} stageId - Stage id\n *\n * @returns {Promise} The function's result function.\n */\nexport const assignLeadToStage = async (leadId, stageId) => {\n const client = OnApolloClient.get();\n\n try {\n const { data } = await client.mutate({\n mutation: ASSING_LEAD_STAGE_MUTATION,\n variables: { lead: leadId, stage: stageId },\n });\n\n log('assignLeadStage without creating leadStageHistory', data);\n\n return data;\n } catch (e) {\n error('assignLeadStage', e);\n }\n};\n","import React from 'react';\nimport { Table } from '@8base/boost';\nimport styled from 'styled-components';\nimport { useHistory } from 'react-router-dom';\nimport {\n priorityMap,\n findPriority,\n canAssignAgents,\n getLeadFullName,\n getLeadPhoneNumbers,\n} from '../leads-utils';\nimport { updateLeadPriority, updateLeadUsers } from '../leads-actions';\nimport {\n DropdownWithCheck,\n TextContact,\n DateBox,\n SelectInput,\n SimpleDropdown,\n} from 'shared/components';\nimport { getAssignedUsersLabel, mapUserToDropdownWithCheck } from '../../users/user-utils';\nimport { getActionItem } from '../leads-history/leads-history-utils';\n\nimport { PRIORITY_OPTIONS } from '../../../shared/constants';\nimport { PropTypes } from 'prop-types';\nimport { PhoneNumber } from '../../phone-calls/Components/PhoneNumber';\nimport { formatPhoneNumber, parseListToSelectOptions } from '../../phone-calls/phone-calls-utils';\nimport { assignLeadToStage } from '../leads-stage/leads-stage-action';\n\nconst TableBodyCell = styled(Table.BodyCell)`\n word-break: break-word !important;\n`;\n\nconst TextContactContainer = styled.div`\n & span p {\n text-align: start !important;\n }\n`;\n\nconst LeadCell = ({ columnName, lead, users, user, agency, stages }) => {\n const [stagesList] = stages;\n const stagesOptions = parseListToSelectOptions(stagesList);\n const history = useHistory();\n let cell;\n\n switch (columnName) {\n case 'ID':\n cell = (\n \n

    ID

    \n
    \n );\n break;\n case 'Received':\n cell = (\n \n \n \n );\n break;\n case 'Contact': {\n const phones = getLeadPhoneNumbers(lead);\n const contact = (\n \n \n history.push(`/leads/${lead.id}`)}\n style={{ color: '#3DB4AA' }}>\n {lead.firstName} {lead.lastName}\n \n {phones && phones.length > 0 && (\n \n {formatPhoneNumber(phones[0].phone.number)}\n \n )}\n \n \n );\n\n cell = {contact};\n break;\n }\n case 'Stage':\n cell = (\n \n {\n assignLeadToStage(lead.id, value);\n }}\n // TODO: remove optional operator when all the lead has a default stage\n value={lead?.stage?.id}\n options={stagesOptions}\n placeholder={''}\n />\n \n );\n break;\n case 'IFS Score':\n cell = (\n \n

    {lead.ifsScore}

    \n
    \n );\n break;\n case 'Assigned To':\n if (users) {\n if (canAssignAgents(user, agency)) {\n cell = (\n \n updateLeadUsers(lead.id, values)}\n />\n \n );\n } else {\n cell = (\n \n ({\n id: u.id,\n label: `${u.firstName} ${u.lastName}`,\n value: u.id,\n }))}\n header={getAssignedUsersLabel(lead.assignees.items)}\n />\n \n );\n }\n } else {\n cell = ;\n }\n break;\n case 'Campaign':\n cell = (\n \n

    {lead.campaign ? lead.campaign.name : ''}

    \n
    \n );\n break;\n case 'Last Action':\n cell = (\n \n {lead.lastHistoryActionType &&\n getActionItem(lead.lastHistoryActionType, lead.lastHistoryActionData)}\n \n );\n break;\n case 'Priority':\n cell = (\n \n updateLeadPriority(lead.id, findPriority(value))}\n value={findPriority(lead.priority)}\n options={priorityMap(PRIORITY_OPTIONS)}\n placeholder={''}\n />\n \n );\n break;\n default:\n cell = (\n \n

    default

    \n
    \n );\n }\n return cell;\n};\n\nLeadCell.propTypes = {\n lead: PropTypes.object.isRequired,\n user: PropTypes.object.isRequired,\n agency: PropTypes.object.isRequired,\n columnName: PropTypes.string.isRequired,\n stages: PropTypes.array.isRequired,\n};\n\nexport default LeadCell;\n","import React from 'react';\nimport { ENTITIES } from './leads-history-model';\nimport LeadHistoryItem from './components/LeadHistoryItem';\nimport NoteHistoryItem from './components/NoteHistoryItem';\nimport TaskHistoryItem from './components/TaskHistoryItem';\nimport EmailHistoryItem from './components/EmailHistoryItem';\nimport CallHistoryItem from './components/CallHistoryItem';\nimport SmsHistoryItem from './components/SmsHistoryItem';\nimport StageHistoryItem from './components/StageHistoryItem';\nimport DeletedHistoryItem from './components/DeletedHistoryItem';\n\n/**\n * Chooses the right component for the given history event\n *\n * @param {string} lastHistoryActionType - Type of action.\n * @param {string} lastHistoryActionData - Data.\n * @param {boolean} horizontal - Tiny version of the component.\n * @param {boolean} fullHistory - If true, every item would be rendered with all of its information\n * @param {Function} onDetailsClick - Function to trigger when a difference button in an update event item is clicked\n \n * @param {Function} onInfoClick - Function to trigger when the item wants to pass some information\n * @returns {React.FC} Component to render\n */\nexport const getActionItem = (\n lastHistoryActionType,\n lastHistoryActionData,\n horizontal = false,\n fullHistory = false,\n onDetailsClick = () => {},\n onInfoClick = () => {},\n) => {\n const action = JSON.parse(lastHistoryActionData);\n\n if (!action.entity) {\n return (\n \n );\n }\n\n switch (lastHistoryActionType) {\n case ENTITIES.LEAD:\n return (\n \n );\n case ENTITIES.NOTE:\n return (\n \n );\n case ENTITIES.TASK:\n return (\n \n );\n case ENTITIES.EMAIL:\n return (\n \n );\n case ENTITIES.CALL:\n return (\n \n );\n case ENTITIES.SMS:\n return (\n \n );\n case ENTITIES.STAGE:\n return (\n \n );\n default:\n return null;\n }\n};\n/**\n * Chooses the right component for the given history event\n *\n * @param {object} event - A history item object\n * @param {boolean} horizontal - Tiny version of the component\n * @param {boolean} fullHistory - If true, every item would be rendered with all of its information\n * @param {Function} onDetailsClick - Function to trigger when a difference button in an update event item is clicked\n * @param {Function} onInfoClick - Function to trigger when the item wants to pass some information\n * @returns {React.FC} Component to render\n */\nexport const getHistoryItem = (\n event,\n horizontal = true,\n fullHistory = false,\n onDetailsClick = () => {},\n onInfoClick = () => {},\n) => {\n if (event[event.entity.toLowerCase()] === null) {\n return (\n \n );\n }\n\n switch (event.entity) {\n case ENTITIES.LEAD:\n return (\n \n );\n case ENTITIES.NOTE:\n return (\n \n );\n case ENTITIES.TASK:\n return (\n \n );\n case ENTITIES.EMAIL:\n return (\n \n );\n case ENTITIES.CALL:\n return (\n \n );\n case ENTITIES.SMS:\n return (\n \n );\n case ENTITIES.STAGE:\n return (\n \n );\n default:\n return null;\n }\n};\n\n/**\n * Returns if an event is related with the specified search string\n *\n * @param {string} search - The search string\n * @param {object} event - The event object\n *\n * @returns {boolean} Is item related or not with the search term\n */\nexport const filterItem = (search, event) => {\n const regexp = new RegExp(`${search}`, 'i');\n const name = `${event.lead.firstName} ${event.lead.middleName} ${event.lead.lastName}`;\n\n if (regexp.test(event.operation)) return true;\n\n if (regexp.test(name)) return true;\n\n switch (event.entity) {\n case ENTITIES.NOTE:\n return event.note && (regexp.test(event.note.title) || regexp.test(event.note.title));\n case ENTITIES.TASK:\n return (\n event.task &&\n (regexp.test(event.task.title) ||\n regexp.test(event.task.type) ||\n regexp.test(event.task.priority) ||\n regexp.test(event.task.description))\n );\n case ENTITIES.EMAIL:\n return (\n event.email &&\n (regexp.test(event.email.thread.identifier) ||\n regexp.test(event.email.subject) ||\n regexp.test(event.email.body) ||\n regexp.test(event.email.to) ||\n regexp.test(event.email.from))\n );\n case ENTITIES.CALL:\n return (\n event.call &&\n (regexp.test(event.call.status) ||\n (event.call.phoneCallDispositionRelation &&\n (regexp.test(event.call.phoneCallDispositionRelation.notes) ||\n regexp.test(event.call.phoneCallDispositionRelation.score?.name))))\n );\n case ENTITIES.SMS:\n return event.text && regexp.test(event.sms.text);\n case ENTITIES.STAGE:\n return event.stage && regexp.test(event.stage.name);\n default:\n return false;\n }\n};\n","import React, { useState, useCallback, useEffect, useMemo } from 'react';\nimport { Dropdown } from '@8base/boost';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { DropdownBodyOnTable, FilterFooter, FilterCategory } from 'shared/components';\nimport filterIconGrey from 'shared/assets/images/filter-grey.svg';\nimport filterIconGreen from 'shared/assets/images/filter-green.svg';\nimport { fetchFilterOptions } from '../leads-actions';\nimport { FILTER_CATEGORIES } from '../leads-model';\nimport { usePromise } from '@cobuildlab/hooks-utils';\nimport moment from 'moment';\n\nconst DropdownBody = styled.div`\n background-color: #fff;\n position: relative;\n z-index: 2000;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n`;\n\nconst FilterBody = styled.div`\n display: grid;\n /* grid-template-rows: repeat(3, min-content); */\n grid-template-columns: repeat(3, [col-start] 1fr [col-end]);\n gap: 12px;\n padding: 12px;\n`;\n\nconst FilterBtn = styled.div`\n display: flex;\n border-radius: 5px;\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\n padding: 0px 16px;\n height: 36px;\n box-sizing: border-box;\n align-items: center;\n`;\n\nconst FilterIcon = styled.img`\n width: 2rem;\n height: 2rem;\n`;\n\nconst LeadFilter = (props) => {\n const [filters, setFilters] = useState(props.query);\n const [categories, setCategories] = useState(FILTER_CATEGORIES);\n const [options] = usePromise(() => fetchFilterOptions(props.agency), { initialState: null });\n\n useEffect(() => {\n if (options) {\n const { campaignsList, agencyUsersList } = options;\n\n setCategories((prevCategories) => ({\n ...prevCategories,\n assignedTo: {\n ...prevCategories.assignedTo,\n options: [\n { label: 'Anyone', value: '' },\n { label: 'None', value: 'none' },\n ...agencyUsersList.items.map((agent) => ({\n label: `${agent.user.firstName} ${agent.user.lastName}`,\n value: agent.user.id,\n })),\n ],\n },\n campaign: {\n ...prevCategories.campaign,\n options: [\n { label: 'All Campaigns', value: '' },\n ...campaignsList.items.map((campaign) => ({\n label: campaign.name,\n value: campaign.id,\n })),\n ],\n },\n }));\n }\n }, [options]);\n\n useEffect(() => {\n setFilters(props.query);\n }, [props.query]);\n\n const onChange = useCallback((name, value) => {\n if (name === 'createdAfter' && value) {\n value = moment(value)\n .startOf('day')\n .toISOString();\n }\n\n if (name === 'createdBefore' && value) {\n value = moment(value)\n .endOf('day')\n .toISOString();\n }\n\n setFilters((prevFilters) => ({\n ...prevFilters,\n [name]: value || undefined,\n }));\n }, []);\n\n const onSubmit = useCallback(() => {\n props.onConfirm(filters);\n }, [filters, props]);\n\n const onClose = useCallback(() => {\n setFilters(props.query);\n }, [props.query]);\n\n const fields = useMemo(\n () =>\n Object.entries(categories).map(([identifier, category]) => (\n \n )),\n [categories, filters, onChange],\n );\n\n const active = useMemo(\n () => Object.keys(props.query).some((key) => key !== 'search' && props.query[key]),\n [props.query],\n );\n\n const icon = active ? : ;\n\n return (\n \n \n \n {icon}\n Filters\n \n \n \n {({ closeDropdown }) => (\n \n {fields}\n \n \n )}\n \n \n );\n};\n\nLeadFilter.propTypes = {\n agency: PropTypes.string.isRequired,\n query: PropTypes.object.isRequired,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func,\n};\n\nLeadFilter.defaultProps = {\n onCancel: () => {},\n};\n\nexport default LeadFilter;\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { PropTypes } from 'prop-types';\n\nimport { YesNoDialog } from '../../../shared/components';\n\nconst BoldText = styled.span`\n font-weight: bold;\n`;\n\nconst LeadsDialog = ({ isOpen, onYes, onClose, selectedLead, selectedLeads, isLoading }) => {\n const text = (\n \n \n {`Are you sure you want to delete ${\n selectedLead.length > 0 || selectedLeads.length === 1 ? 'this Lead?' : 'these Leads?'\n } `}\n \n This action can’t be undone.\n \n );\n return (\n 0 || selectedLeads.length === 1 ? 'Lead' : 'Leads'}`}\n text={text}\n isLoading={isLoading}\n />\n );\n};\n\nLeadsDialog.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n isLoading: PropTypes.bool.isRequired,\n onYes: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n selectedLead: PropTypes.string.isRequired,\n selectedLeads: PropTypes.array.isRequired,\n};\n\nexport default React.memo(LeadsDialog);\n","import React, { useState, useEffect, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { LeadPhoneType } from '@cobuildlab/lead-volt-share';\nimport { Form, Grid, Select, Row, Label, Icon, Button, Tooltip } from '@8base/boost';\nimport styled from 'styled-components';\nimport {\n GENDER_OPTIONS,\n BIRTHMONTH_OPTIONS,\n BIRTHDAY_OPTIONS,\n BIRTHYEAR_OPTIONS,\n STATES_OPTIONS,\n LEAD_TYPE_OPTIONS,\n} from '../../leads-model';\nimport { Margin, SelectMultipleAgents } from '../../../../shared/components';\nimport { PRIORITY_OPTIONS } from '../../leads-model';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchManagerAndAgents } from '../../../users/user-actions';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport Field from '../../../../shared/components/Field';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport {\n OnFetchManagerAndAgentUsersError,\n OnFetchManagerAndAgentUsersEvent,\n} from 'modules/users/user-events';\n\nconst phoneUtil = PhoneNumberUtil.getInstance();\n\nconst GridBoxFlexEnd = styled(Grid.Box)`\n justify-content: flex-end;\n`;\n\nconst Add = styled(Icon)`\n margin-right: 0px !important;\n`;\n\nconst CenteredIcon = styled(Icon)`\n margin-top: 20px;\n`;\n\n/**\n * Lead form fields\n *\n * @param {object} props component props\n * @param {object} props.lead lead data\n * @param {boolean} props.isUpdate is edit or not\n * @param {Array} props.campaigns campaigns list\n * @param {Array} props.phoneList phones list\n * @param {Function} props.setPhoneList set for list phones\n * @param {string} props.activeAgency ID of active agency\n * @param {Function} props.handleOnChangeInput handle on change\n * @returns {React.ReactElement} component\n */\nconst LeadForm = ({\n lead,\n isUpdate,\n campaigns,\n phoneList,\n setPhoneList,\n activeAgency,\n handleOnChangeInput,\n}) => {\n const [users, setUsers] = useState([]);\n\n useEffect(() => {\n activeAgency && fetchManagerAndAgents(activeAgency.id);\n setPhoneList(lead.phones);\n }, [activeAgency, lead.phones, setPhoneList]);\n\n useEventSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) =>\n setUsers(usersList.items),\n );\n useEventSubscription(OnFetchManagerAndAgentUsersError, (e) =>\n toast.error('There was an error fetching the users, please try again.'),\n );\n\n const handleAddInputPhone = (e) => {\n e.preventDefault();\n setPhoneList([\n ...phoneList,\n {\n phone: {\n code: '1',\n number: '',\n },\n },\n ]);\n };\n\n const handleDeleteInputPhone = useCallback(\n (i) => {\n setPhoneList((prevState) => {\n if (prevState.length === 1) {\n toast.error('At least one phone number is required');\n\n return prevState;\n }\n\n return prevState\n .map((phone, j) => (i === j ? { ...phone, delete: true } : phone))\n .filter((phone) => (phone.delete && !phone.id ? false : true));\n });\n },\n [setPhoneList],\n );\n\n const handleOnChangeNumber = useCallback(\n (value, i) => {\n if (value.length > 1) {\n let phone = null;\n\n try {\n phone = phoneUtil.parse(value, 'US');\n } catch (e) {\n toast.error(`The phone #${i + 1} is not valid`);\n\n return;\n }\n\n setPhoneList((prevState) =>\n prevState.map((state, j) => {\n if (i === j) {\n let isValid = true;\n\n if (\n phoneUtil.isPossibleNumber(phone) === false ||\n phoneUtil.isValidNumber(phone) === false\n ) {\n isValid = false;\n\n toast.error(`The phone #${i + 1} is not valid`);\n }\n\n /**\n * Checks if the number actually changes\n */\n const update =\n state.id && isValid\n ? lead.phones.some((p) => p.id === state.id && p.phone.number !== value)\n : false;\n\n return {\n ...state,\n update,\n phone: {\n ...state.phone,\n number: value,\n },\n };\n }\n\n return state;\n }),\n );\n }\n },\n [lead, setPhoneList],\n );\n\n const handleOnChangeCode = useCallback(\n (value, i) => {\n setPhoneList((prevState) =>\n prevState.map((phone, j) => {\n if (i === j) {\n return {\n ...phone,\n phone: {\n ...phone.phone,\n code: value,\n },\n };\n }\n\n return phone;\n }),\n );\n },\n [setPhoneList],\n );\n\n const handleBlur = useCallback(\n (e) => {\n const {\n target: { value, name },\n } = e;\n\n handleOnChangeInput(value, name);\n },\n [handleOnChangeInput],\n );\n\n const phones = useMemo(\n () =>\n phoneList.map((phone, i) => {\n if (phone.delete) {\n return null;\n }\n\n const label = `Phone Number ${i + 1}`;\n let icon = 'MobilePhoneIcon';\n let tooltip = 'Mobile phone number';\n\n if (phone.type === LeadPhoneType.UNREACHABLE) {\n icon = 'Alert';\n tooltip =\n \"This phone number is probably not valid, it couldn't be reached in previous attempts\";\n }\n\n if (phone.type === LeadPhoneType.LANDLINE) {\n icon = 'LandlineIcon';\n tooltip =\n \"This phone number has been detected as a landline, therefore it can't receive sms messages\";\n }\n\n return (\n \n handleOnChangeCode(value, i)}\n options={[\n {\n label: '+1',\n value: '1',\n },\n ]}\n />\n handleOnChangeNumber(e.target.value, i)}\n />\n \n \n \n handleDeleteInputPhone(i)}\n />\n \n );\n }),\n [phoneList, handleOnChangeCode, handleOnChangeNumber, handleDeleteInputPhone],\n );\n\n return (\n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n handleOnChangeInput(value, 'gender')}\n />\n \n \n \n \n \n \n \n \n \n handleOnChangeInput(value || '', 'birthMonth')}\n options={BIRTHMONTH_OPTIONS}\n clearable\n />\n \n \n handleOnChangeInput(value || '', 'birthDay')}\n options={BIRTHDAY_OPTIONS}\n clearable\n />\n \n \n handleOnChangeInput(value || '', 'birthYear')}\n options={BIRTHYEAR_OPTIONS}\n clearable\n />\n \n \n \n \n \n \n handleOnChangeInput(value, 'campaign')}\n options={campaigns.map((campaign) => ({\n label: campaign.name,\n value: campaign.id,\n }))}\n />\n \n \n handleOnChangeInput(value, 'ifsScore')}\n options={\n activeAgency\n ? activeAgency.ifsScore.map((score) => ({\n label: score,\n value: score,\n }))\n : []\n }\n />\n \n \n \n \n \n \n ({\n label: `${user.firstName} ${user.lastName}`,\n value: user.id,\n imgUrl: user.avatar\n ? user.avatar.downloadUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n }))}\n placeholder=\"Assign users\"\n onChange={(value) => handleOnChangeInput(value, 'assignees')}\n options={users.map((user) => ({\n label: `${user.firstName} ${user.lastName}`,\n value: user.id,\n imgUrl: user.avatar\n ? user.avatar.downloadUrl\n : 'https://randomuser.me/api/portraits/women/17.jpg',\n }))}\n />\n \n \n {phones}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n handleOnChangeInput(value, 'state')}\n options={STATES_OPTIONS}\n />\n \n {!isUpdate && (\n \n handleOnChangeInput(value, 'leadType')}\n options={LEAD_TYPE_OPTIONS}\n />\n \n )}\n {isUpdate && (\n \n handleOnChangeInput(value, 'amount')}\n />\n \n )}\n \n handleOnChangeInput(value, 'priority')}\n options={PRIORITY_OPTIONS}\n />\n \n \n handleOnChangeInput(value, 'creditScore')}\n />\n \n \n \n \n
    \n );\n};\n\nLeadForm.propTypes = {\n lead: PropTypes.object.isRequired,\n isUpdate: PropTypes.bool.isRequired,\n activeAgency: PropTypes.object.isRequired,\n phoneList: PropTypes.array.isRequired,\n campaigns: PropTypes.array.isRequired,\n handleOnChangeInput: PropTypes.func.isRequired,\n setPhoneList: PropTypes.func.isRequired,\n};\n\nexport default LeadForm;\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport * as R from 'ramda';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { createLead, updateLead } from '../leads-actions';\nimport LeadForm from './forms/LeadForm';\nimport { LEAD } from '../leads-model';\nimport {\n LEAD_TYPE_AUTO,\n LEAD_TYPE_COMMERCIAL_AUTO,\n LEAD_TYPE_HOME,\n LEAD_TYPE_LIFE,\n LEAD_TYPE_GENERAL_LIABILITY,\n LEAD_TYPE_WORKERS_COMPENSATION,\n LEAD_TYPE_EMPLOYEE_BENEFITS,\n} from '../../../shared/constants';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport * as toast from 'shared/components/toast/Toast';\nimport { getLeadPhoneNumberRelationInput } from '../leads-utils';\nimport { OnLeadCreateEvent, OnLeadsError, OnLeadsUpdateEvent } from '../leads-events';\n\nconst LeadFormDialog = ({\n isOpen,\n onCloseDialog,\n afterSubmit,\n lead,\n isUpdate,\n campaigns,\n activeAgency,\n}) => {\n const [fields, setFields] = useState(lead || R.clone(LEAD));\n const [phoneList, setPhoneList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n if (lead) {\n setFields(lead);\n }\n }, [lead]);\n\n const handleCloseDialog = () => {\n isUpdate ? setFields(lead) : setFields(R.clone(LEAD));\n onCloseDialog();\n };\n\n const handleOnSubmit = () => {\n const {\n firstName,\n middleName,\n lastName,\n gender,\n birthMonth,\n birthDay,\n birthYear,\n campaign,\n email,\n assignees,\n firstAddress,\n secondAddress,\n zipCode,\n city,\n state,\n priority,\n leadType,\n creditScore,\n ifsScore,\n amount,\n } = fields;\n\n console.log({ phoneList });\n\n let leadLeadPhoneNumberRelation = getLeadPhoneNumberRelationInput(phoneList, isUpdate);\n\n console.log({ leadLeadPhoneNumberRelation });\n const dataLead = {\n firstName,\n middleName,\n lastName,\n gender,\n birthMonth,\n birthDay,\n birthYear,\n campaign,\n email,\n assignees: assignees.map((user) => (user.value ? user.value : user.id)),\n leadLeadPhoneNumberRelation,\n address: {\n street1: firstAddress,\n street2: secondAddress,\n zip: zipCode,\n city,\n state,\n },\n creditScore,\n priority,\n ifsScore,\n amount: amount ? amount : '0',\n };\n\n if (!isUpdate) {\n if (leadType === LEAD_TYPE_AUTO) {\n dataLead.leadLeadTypeAutoRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_COMMERCIAL_AUTO) {\n dataLead.leadLeadTypeCommercialAutoRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_HOME) {\n dataLead.leadLeadTypeHomeRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_LIFE) {\n dataLead.leadLeadTypeLifeRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_GENERAL_LIABILITY) {\n dataLead.leadLeadTypeGeneralLiabilityRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_WORKERS_COMPENSATION) {\n dataLead.leadLeadTypeWorkersCompensationRelation = { create: {} };\n }\n\n if (leadType === LEAD_TYPE_EMPLOYEE_BENEFITS) {\n dataLead.leadLeadTypeEmployeeBenefitRelation = { create: {} };\n }\n }\n\n setLoading(true);\n\n if (isUpdate) {\n updateLead(lead.id, {\n ...fields,\n phones: phoneList,\n });\n } else {\n console.log('datalead', dataLead);\n createLead(dataLead);\n }\n };\n\n useEffect(() => {\n if (!lead && campaigns.length > 0) {\n setFields({\n ...R.clone(LEAD),\n campaign: campaigns[0].id,\n });\n }\n }, [lead, campaigns]);\n\n const handleOnChangeInput = (value, name) => {\n const newLead = { ...fields };\n newLead[name] = value;\n\n if (name === 'assignees' && value === null) newLead[name] = [];\n if (name === 'users' && value === null) newLead[name] = [];\n if (name === 'phones' && value === null) newLead[name] = [];\n\n setFields(newLead);\n };\n\n // const handleOnChangePhones = (value, i) => {\n // let aux = [...phoneList];\n // aux[i].number = value;\n // setPhoneList(aux);\n // };\n\n useEventSubscription(OnLeadCreateEvent, () => {\n setLoading(false);\n setFields(R.clone(LEAD)); // set default values.\n onCloseDialog();\n afterSubmit(); // after create function from parent component.\n });\n\n useEventSubscription(OnLeadsError, (err) => {\n if (err) {\n setLoading(false);\n\n onErrorMixinFC(err);\n }\n });\n\n useEventSubscription(OnLeadsUpdateEvent, () => {\n onCloseDialog();\n setLoading(false);\n afterSubmit();\n\n toast.success('Lead Management', 'Lead Successfully Updated');\n });\n\n return (\n \n \n \n );\n};\n\nLeadFormDialog.propTypes = {\n lead: PropTypes.object,\n isUpdate: PropTypes.bool,\n afterSubmit: PropTypes.func,\n isOpen: PropTypes.bool.isRequired,\n campaigns: PropTypes.array.isRequired,\n activeAgency: PropTypes.object.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadFormDialog.defaultProps = {\n lead: null,\n isUpdate: false,\n afterSubmit: () => {},\n};\n\nexport default LeadFormDialog;\n","import styled from 'styled-components';\nimport { Card, Table } from '@8base/boost';\n\nconst MainCard = styled(Card)`\n margin: 20px 20px 20px 270px;\n`;\n/**\n * @param {object} props props\n * @param {boolean} props.withPadding if the body has to have padding\n * @returns {object} React component\n */\nconst Body = styled(Card.Body)`\n ${({ withPadding }) => (withPadding ? '' : 'padding: 0 !important;')}\n`;\nconst Footer = styled(Card.Footer)`\n display: flex;\n justify-content: flex-end;\n align-items: center;\n`;\nconst Header = styled(Card.Header)`\n display: flex;\n justify-content: space-between;\n`;\nconst CardTitle = styled.h3`\n font-size: 16px;\n font-weight: bold;\n line-height: 28px;\n`;\nconst PaginationWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: ${({ height }) => height};\n`;\nexport { MainCard as Card, Body, Header, CardTitle, PaginationWrapper, TableBody, Footer };\n","import React, { useState, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { Button, Modal, Card, Icon } from '@8base/boost';\nimport { Header, CardTitle } from '../../my-account/components/Card';\nimport RadioInputField from '../../../shared/components/ui/inputs/RadioInputField';\nimport { PrimaryBtn } from '../../../shared/components/ui/buttons/PrimaryBtn';\n\nconst Body = styled(Card.Body)`\n min-width: 25vw;\n`;\n\nconst ButtonContainer = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nconst LeadAssignUserDialog = ({ users, isOpen, onClose, onAssignUsersToLeads, loading }) => {\n const [selectedUsers, setSelectedUsers] = useState([]);\n\n const handleSelectedUser = (userId) => {\n if (!loading) {\n if (selectedUsers.includes(userId)) {\n setSelectedUsers((prevSelectedUsers) =>\n prevSelectedUsers.filter((prevUserId) => prevUserId !== userId),\n );\n } else {\n setSelectedUsers((prevSelectedUsers) => [...prevSelectedUsers, userId]);\n }\n }\n };\n\n const handleSave = () => {\n if (selectedUsers.length && !loading) {\n onAssignUsersToLeads(selectedUsers);\n }\n };\n\n const handleClose = () => {\n if (!loading) {\n onClose();\n }\n };\n\n useEffect(() => {\n if (!isOpen) {\n setSelectedUsers([]);\n }\n }, [isOpen]);\n\n return (\n \n \n
    \n Assign Users\n \n
    \n \n {users.map((user) => (\n handleSelectedUser(user.id)}\n />\n ))}\n \n \n \n \n Cancel\n \n \n Save\n \n \n \n
    \n
    \n );\n};\n\nLeadAssignUserDialog.propTypes = {\n users: PropTypes.array.isRequired,\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onAssignUsersToLeads: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n};\n\nexport default LeadAssignUserDialog;\n","import React, { useMemo } from 'react';\nimport styled from 'styled-components';\nimport moment from 'moment';\nimport { PRIMARY, BLACK } from 'shared/constants/colors';\n\nconst Msg = styled.div`\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: ${(props) => (props.isLeadUser ? 'flex-start' : 'flex-end')};\n text-align: ${(props) => (props.isLeadUser ? 'flex-start' : 'flex-end')};\n // background-color: teal;\n`;\n\nconst MsgAuthor = styled.div`\n font-size: 0.9em;\n font-weight: bold;\n`;\n\nconst MsgText = styled.div`\n // font-size:1em;\n\n font-weight: 500;\n max-width: 70%;\n padding: 10px 15px;\n background-color: ${({ isLeadUser }) => (isLeadUser ? PRIMARY : BLACK)};\n border-radius: ${({ isLeadUser }) => (isLeadUser ? '15px 15px 15px 0' : '15px 15px 0 15px ')};\n color: #fff;\n`;\n\nconst MsgDate = styled.div`\n font-size: 0.75em;\n color: #aaa;\n margin-top: 5px;\n font-weight: 600;\n`;\n\n/**\n * @param {object} props - Component props.\n * @param {object} props.message - Message object.\n * @param {string} props.message.type - Type of the message.\n * @param {string} props.message.text - Content of the message.\n * @param {string} props.message.createdAt - Date when the message was created.\n * @param {object} props.lead - Lead object.\n * @param {string} props.lead.firstName - First name of the prospect.\n * @returns {React.ReactNode} Message component.\n */\nexport function Message({ message, lead }) {\n const isLeadUser = useMemo(() => {\n return message.type === 'INCOMING' ? true : false;\n }, [message]);\n\n const formattedDate = useMemo(() => {\n return moment(message.createdAt).format('MMM D, YYYY [at] h:mm A');\n }, [message]);\n\n return (\n \n {isLeadUser ? lead.firstName : 'you'}\n {message.text}\n {formattedDate}\n \n );\n}\n","import React, { useState, useEffect, useMemo } from 'react';\nimport { LeadPhoneType } from '@cobuildlab/lead-volt-share';\nimport { useEvent } from '@cobuildlab/react-simple-state';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnLeadMessageCreate, OnLeadMessageCreateError } from '../../leads-store';\nimport { onPhoneNumberList } from '../../../phone-calls/phone-calls-events';\nimport { getBestPhoneNumber } from '../../../phone-calls/phone-calls-utils';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { SelectField, TextAreaField, Card } from '@8base/boost';\nimport { DialogForm } from '../../../../shared/components';\nimport { getLeadPhoneNumbers } from '../../leads-utils';\nimport { createSms } from '../../leads-actions';\nimport { FileInput } from '@8base-react/file-input';\nimport PlusBtn from '../../../../shared/components/ui/buttons/PlusBtn';\nimport { FaMinusCircle } from 'react-icons/fa';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport gql from 'graphql-tag';\nimport { fetchSession } from 'modules/auth/auth.actions';\nimport { Message } from './Message';\n\nconst MsgContainer = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n row-gap: 12px;\n`;\nconst MsgNumber = styled.div`\n grid-column: 1/-1;\n`;\nconst MsgBody = styled.div`\n grid-column: 1/-1;\n & textarea {\n height: 55px;\n }\n`;\n\nconst IconDelete = styled(FaMinusCircle)`\n width: 30px;\n cursor: pointer;\n color: #bababa;\n`;\n\nconst CardMargin = styled(Card)`\n margin: 20px 20px 20px 20px;\n`;\n\nconst Row = styled.div`\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-bottom: 5px;\n`;\n\nconst RowPhone = styled.div`\n display: flex;\n width: 100%;\n justify-content: space-between;\n`;\n\nconst MsgHistory = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 1em;\n`;\n\nconst TitleCardHeader = styled.p`\n font-size: 16px;\n line-height: 28px;\n`;\n\nconst TitlePhones = styled.p`\n font-size: 14px;\n line-height: 22px;\n`;\n\nconst TextBody = styled.p`\n font-size: 12px;\n text-aling: center;\n width: 100%;\n`;\n\nconst MsgForm = ({ onClose, isOpen, lead, agencyId, messages = [] }) => {\n // eslint-disable-next-line\n const client = OnApolloClient.get();\n const [msg, setMsg] = useState('');\n const [user] = useUser();\n const [numbers, setNumbers] = useState([]);\n const [selected, setSelected] = useState('');\n const [files, setFiles] = useState([]);\n const [loading, setLoading] = useState(false);\n const phoneNumbers = useEvent(onPhoneNumberList);\n const [userId, setUserId] = useState(null);\n\n const handlePhoneNumbersFrom = () => {\n if (\n user?.selectedAgency?.phoneNumbersRelation?.items &&\n user.selectedAgency.phoneNumbersRelation.items.length > 0\n ) {\n return user.selectedAgency.phoneNumbersRelation.items;\n }\n if (phoneNumbers.length > 0) return phoneNumbers;\n return [];\n };\n\n useEffect(() => {\n const fetchData = async () => {\n try {\n const sessionData = await fetchSession();\n //console.log('session from msgform', sessionData);\n\n // Assuming the sessionData contains the user information\n const user = sessionData.user.id;\n setUserId(user); // Set the user state with the retrieved data\n //console.log('USER ID FROM MSG FORM', userId);\n } catch (error) {\n // Handle errors\n console.log('error fetching user in msg form', error);\n }\n };\n\n fetchData();\n }, []);\n\n useEffect(() => {\n const phones = getLeadPhoneNumbers(lead);\n\n setNumbers(phones);\n\n if (phones && phones.length > 0) {\n setSelected(phones[0].id);\n }\n }, [lead]);\n\n useSubscription(\n OnLeadMessageCreate,\n () => {\n setLoading(false);\n onClose();\n setMsg('');\n setFiles([]);\n },\n [onClose],\n );\n\n useSubscription(\n OnLeadMessageCreateError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n const QUERY_AGENCY_TYPE = gql`\n query FETCH_AGENCY_TYPE($id: ID) {\n user(id: $id) {\n selectedAgency {\n twilioBusinessType\n }\n }\n }\n `;\n\n const onSubmit = async () => {\n const phoneNumbersFrom = handlePhoneNumbersFrom();\n let agencyTypeQuery;\n\n if (phoneNumbersFrom.length === 0) {\n return Toast.error(\n 'This agency does not have any phone number, please buy one to send an sms',\n );\n }\n setLoading(true);\n\n const number = numbers.find((n) => n.id === selected);\n\n try {\n agencyTypeQuery = await client.query({\n query: QUERY_AGENCY_TYPE,\n fetchPolicy: 'no-cache',\n variables: { id: user.id },\n });\n } catch (e) {\n console.error('error on agency types query', e);\n }\n const agencyType = agencyTypeQuery?.data?.user?.selectedAgency?.twilioBusinessType;\n\n const from = getBestPhoneNumber(\n phoneNumbersFrom,\n number.phone.number,\n agencyType === 'Sole Proprietorship', //to determine if number used must be toll-free\n );\n console.log('from msg', from);\n createSms({\n text: msg,\n number: number.phone,\n lead: lead.id,\n user: user.id,\n from: from.id,\n agency: agencyId,\n leadPhoneNumber: number.id,\n files: files,\n });\n };\n\n const addFile = (value) => {\n const aux = [...files];\n aux.push(value);\n setFiles(aux);\n };\n\n const deleteFile = (i) => {\n const aux = files.filter((file) => {\n return file !== files[i];\n });\n\n setFiles(aux);\n };\n\n const fileList = files.map((file, i) => {\n return (\n \n

    {file.filename}

    \n deleteFile(i)} />\n
    \n );\n });\n\n const options = useMemo(\n () =>\n numbers\n .filter(({ type, phone }) => {\n if (!type) return !!phone.code && !!phone.number && phone.__typename === 'SmartPhone';\n return !!phone.code && !!phone.number && type === LeadPhoneType.MOBILE;\n })\n .map((phone) => ({\n label: `+${phone.phone.code} ${phone.phone.number}`,\n value: phone.id,\n })),\n [numbers],\n );\n\n const invalidOptions = useMemo(\n () =>\n numbers\n .filter(({ type, phone }) => {\n if (!type) return !!phone.code && !!phone.number && phone.__typename !== 'SmartPhone';\n return !!phone.code && !!phone.number && type !== LeadPhoneType.MOBILE;\n })\n .map((phone, i) => (\n \n
  • \n +{phone.phone.code} {phone.phone.number}\n
  • \n
    \n )),\n [numbers],\n );\n\n let invalidPhoneContent;\n if (invalidOptions.length) {\n invalidPhoneContent = (\n \n \n \n \n This numbers are invalid or unreachable\n \n \n {invalidOptions}\n \n \n );\n }\n\n return (\n onSubmit()}\n onCloseDialog={onClose}\n tabs={['Send text message', 'Messages']}>\n \n \n \n \n {invalidPhoneContent}\n \n setMsg(value),\n }}\n />\n \n \n \n Files \n {\n addFile(file);\n }}\n value={'input.value'}\n maxFiles={1}>\n {({ pick }) => pick()} />}\n \n \n \n \n {fileList.length < 1 ? There are no files : fileList}\n \n \n \n \n \n {messages.length > 0\n ? messages.map((message, idx) => {\n return ;\n })\n : 'No messages yet.'}\n \n \n );\n};\n\nMsgForm.defaultProps = {\n messages: [],\n};\n\nMsgForm.propTypes = {\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n lead: PropTypes.object.isRequired,\n agencyId: PropTypes.string.isRequired,\n messages: PropTypes.array,\n};\n\nexport default MsgForm;\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString } from '../../../shared/validators';\n\n/**\n * Validate that the Note has all the fields necessaries with the right format.\n *\n * @param {object} note - the note to be validated\n */\nexport const createNoteValidator = (note) => {\n let errorMessages = [];\n\n if (!isValidString(note.title)) errorMessages.push('The Note must have a valid title.');\n\n if (!isValidString(note.text) || note.text.lenght > 245)\n errorMessages.push('The Note text must be valid, between 1 and 245 characters.');\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const onLeadNoteUpdate = createEvent();\n\nexport const onLeadNoteDelete = createEvent();\n\nexport const OnFetchLeadNotes = createEvent();\n\nexport const OnFetchLeadNotesError = createEvent();\n\nexport const OnNoteCreateEvent = createEvent();\n\nexport const OnNoteError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport {\n NOTE_CREATE_MUTATION,\n NOTE_UPDATE_MUTATION,\n NOTE_DELETE_MUTATION,\n FETCH_LEAD_NOTES,\n} from './leads-notes-queries';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { sanitize8BaseReference } from 'shared/utils';\nimport { createNoteValidator } from './leads-notes-validators';\nimport {\n onLeadNoteUpdate,\n onLeadNoteDelete,\n OnFetchLeadNotes,\n OnFetchLeadNotesError,\n OnNoteCreateEvent,\n OnNoteError,\n} from './leads-notes-events';\n\n/**\n * Creates a lead note\n *\n * @param {object} note lead note\n * @returns {object} response data\n */\nexport const createNote = async (note) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n createNoteValidator(note);\n } catch (e) {\n error('createNote', e);\n return OnNoteError.dispatch(e);\n }\n\n sanitize8BaseReference(note, 'notesLeadRelation');\n\n try {\n response = await client.mutate({\n mutation: NOTE_CREATE_MUTATION,\n variables: { data: note },\n });\n } catch (e) {\n error('createNote', e);\n return OnNoteError.dispatch(e);\n }\n\n log('createNote', response);\n OnNoteCreateEvent.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Update a lead note\n *\n * @param {object} note lead note\n * @returns {object} response data\n */\nexport const updateNote = async (note) => {\n const client = OnApolloClient.get();\n\n let response;\n\n try {\n createNoteValidator(note);\n } catch (e) {\n error('createNote', e);\n return OnNoteError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: NOTE_UPDATE_MUTATION,\n variables: { data: note },\n });\n } catch (e) {\n error('updateNote', e);\n return OnNoteError.dispatch(e);\n }\n\n log('updateNote', response);\n onLeadNoteUpdate.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Delete a lead note\n *\n * @param {string} id lead note\n * @returns {object} response data\n */\nexport const deleteNote = async (id) => {\n const client = OnApolloClient.get();\n\n let response;\n\n try {\n response = await client.mutate({\n mutation: NOTE_DELETE_MUTATION,\n variables: { id },\n });\n } catch (e) {\n error('deleteNote', e);\n return OnNoteError.dispatch(e);\n }\n\n log('deleteNote', response);\n onLeadNoteDelete.dispatch(response.data);\n\n return response.data;\n};\n\n/**\n * Fetches the notes from the specified lead\n *\n * @param {string} lead - The lead id\n *\n * @returns {Promise} The request result\n */\nexport const fetchLeadNotes = createAction(\n OnFetchLeadNotes,\n OnFetchLeadNotesError,\n async (lead) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_LEAD_NOTES,\n fetchPolicy: 'network-only',\n variables: {\n filterLeadNotes: {\n notesLeadRelation: {\n id: {\n equals: lead,\n },\n },\n },\n filterDispositionNotes: {\n notes: {\n is_not_empty: true,\n },\n lead: {\n id: {\n equals: lead,\n },\n },\n },\n },\n });\n\n return response.data;\n },\n);\n","import React, { useState, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { TextAreaField, InputField } from '@8base/boost';\nimport { DialogForm } from '../../../../shared/components';\nimport { createNote, updateNote } from '../../leads-notes/leads-notes-actions';\n\nconst NoteContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n row-gap: 12px;\n column-gap: 15px;\n`;\n\nconst TextAreaContainer = styled.div`\n & textarea {\n height: 85px;\n }\n`;\n\nconst Noteform = ({ isOpen, onClose, leadId, note: selectedNote }) => {\n const [title, setTitle] = useState('');\n const [note, setNote] = useState('');\n const [loading, setLoading] = useState(false);\n const isUpdate = selectedNote;\n\n useEffect(() => {\n if (!selectedNote) return;\n\n setNote(selectedNote.text);\n setTitle(selectedNote.title);\n }, [selectedNote]);\n\n useEffect(() => {\n if (!isOpen) {\n setTitle('');\n setNote('');\n }\n }, [isOpen]);\n\n const noteCreateHandler = async () => {\n const data = {\n text: note,\n title,\n notesLeadRelation: leadId,\n };\n\n setLoading(true);\n\n const result = await createNote(data);\n\n setLoading(false);\n\n if (result) {\n onClose();\n setTitle('');\n setNote('');\n }\n };\n\n const noteUpdateHandler = async () => {\n const data = {\n text: note,\n title,\n id: selectedNote.id,\n };\n setLoading(true);\n\n const result = await updateNote(data);\n\n setLoading(false);\n\n if (result) {\n onClose();\n }\n };\n\n return (\n \n \n setTitle(value),\n }}\n />\n \n setNote(value),\n }}\n />\n \n\n {/* */}\n \n \n );\n};\n\nNoteform.propTypes = {\n leadId: PropTypes.string.isRequired,\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n note: PropTypes.object,\n};\nNoteform.defaultProps = {\n note: null,\n};\nexport default Noteform;\n","import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport { useHistory } from 'react-router-dom';\n\nimport { Menu, Icon, Dropdown, Table } from '@8base/boost';\nimport { DropdownBodyOnTable } from 'shared/components';\n\nimport informationIcon from 'shared/assets/images/information.svg';\nimport callIcon from 'shared/assets/images/call-green.svg';\n\nimport MsgForm from './forms/MsgForm';\nimport NoteForm from './forms/NoteForm';\nimport { PhoneNumber } from '../../phone-calls/Components/PhoneNumber';\nimport { getLeadFullName, getLeadPhoneNumbers } from '../leads-utils';\n\nconst ActionsCell = styled(Table.BodyCell)`\n display: flex;\n justify-content: space-around !important;\n`;\n\nconst CustomIcon = styled.img`\n width: 23px;\n height: 23px;\n cursor: pointer;\n min-width: 23px;\n`;\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\nconst LeadActions = ({ lead, onDelete, setLeadForTask, canDelete, agencyId }) => {\n const [isNoteModalOpen, setIsNoteModalOpen] = useState(false);\n const [isMsgModalOpen, setIsMsgModalOpen] = useState(false);\n const history = useHistory();\n\n let dropdown = (\n \n \n \n \n \n {({ closeDropdown }) => (\n \n {\n setIsMsgModalOpen((prev) => !prev);\n closeDropdown();\n }}>\n Send Message\n \n {\n setIsNoteModalOpen((prev) => !prev);\n closeDropdown();\n }}>\n Add Note\n \n {\n setLeadForTask(lead.id);\n closeDropdown();\n }}>\n Add Task\n \n \n )}\n \n \n );\n if (canDelete) {\n dropdown = (\n \n \n \n \n \n {({ closeDropdown }) => (\n \n {\n setIsMsgModalOpen((prev) => !prev);\n closeDropdown();\n }}>\n Send Message\n \n {\n setIsNoteModalOpen((prev) => !prev);\n closeDropdown();\n }}>\n Add Note\n \n {\n setLeadForTask(lead.id);\n closeDropdown();\n }}>\n Add Task\n \n {\n onDelete();\n closeDropdown();\n }}>\n Delete Lead\n \n \n )}\n \n \n );\n }\n const phones = getLeadPhoneNumbers(lead);\n return (\n <>\n \n {phones && phones.length > 0 && (\n \n \n \n )}\n history.push(`/leads/${lead.id}`)}\n alt=\"lead detail icon\"\n />\n {dropdown}\n {\n setIsMsgModalOpen(false);\n }}\n />\n {\n setIsNoteModalOpen(false);\n }}>\n \n \n );\n};\n\nLeadActions.propTypes = {\n agencyId: PropTypes.string.isRequired,\n onDelete: PropTypes.func.isRequired,\n lead: PropTypes.object.isRequired,\n setLeadForTask: PropTypes.any.isRequired,\n canDelete: PropTypes.bool.isRequired,\n};\n\nexport default LeadActions;\n","import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';\nimport { Card, Table, Dropdown, Menu, Pagination, Paper, Button, Icon } from '@8base/boost';\nimport { useHistory } from 'react-router-dom';\nimport SearchInput from '../email/components/SearchInput';\nimport { useAgencyLeads } from './hooks/useAgencyLeads';\nimport styled from 'styled-components';\nimport * as R from 'ramda';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { OnLeadMessageCreate } from './leads-store';\nimport { deleteLeads, fetchLeadTaskTypes, assignUsersToLeads } from './leads-actions';\nimport LeadCell from './components/LeadCell';\nimport LeadFilter from './components/LeadFilter';\nimport LeadsDialog from './components/LeadsDialog';\nimport LeadFormDialog from './components/LeadFormDialog';\nimport LeadAssignUserDialog from './components/LeadAssignUserDialog';\nimport { SORT_OPTIONS, TABLE_COLUMNS, ACTIVE_COLUMNS } from './leads-model';\nimport { fetchAgents } from '../agents/agents-actions';\nimport sortTableIcon from '../../shared/assets/images/table-sort-grey.svg';\nimport { canSeeBatchActions, canDeleteLeads, getColumnsSizes } from './leads-utils';\nimport TaskForm from './components/forms/TaskForm';\nimport {\n DropdownBodyOnTable,\n ItemFilter,\n RadioInputField,\n ListCardBody as ListCard,\n Loader,\n} from '../../shared/components';\nimport * as toast from '../../shared/components/toast/Toast';\nimport LeadActions from './components/LeadActions';\nimport { fetchCampaignsLight } from '../campaigns/campaigns-actions';\nimport { useLeadStages } from '../phone-calls/phone-calls-hooks';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { useUser } from '../../shared/hooks/useUser';\nimport { onLeadDispositionCreate } from '../phone-calls/phone-calls-events';\nimport {\n OnAssignUserstoLeadError,\n OnAssignUserstoLeadEvent,\n OnDeleteLeadsResult,\n OnLeadCreateEvent,\n onTaskCreate,\n} from './leads-events';\nimport { useURLQuery } from '../../shared/hooks/useURLQuery';\nimport { OnCampaignsList } from 'modules/campaigns/campaign-events';\nimport { OnNoteCreateEvent } from './leads-notes/leads-notes-events';\n\nconst SortFilter = styled(ItemFilter)`\n & input {\n max-width: 180px !important;\n min-width: 120px !important;\n }\n`;\n\nconst TableBody = styled(Table.Body)`\n max-height: 50vh;\n height: 50vh;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nconst CustomHeader = styled.div`\n width: 100px;\n text-transform: uppercase;\n height: 17px;\n color: #9b9b9b;\n font-family: 'Poppins';\n font-size: 11px;\n font-weight: bold;\n letter-spacing: 0.5px;\n line-height: 18px;\n`;\n\nconst CustomGrid = styled.div`\n display: grid;\n width: ${(props) => props.width};\n grid-template-columns: ${(props) => props.columns};\n column-gap: ${(props) => props.columnGap};\n grid-template-areas: ${(props) => props.areas};\n ${(props) => (props.alignItems ? `align-items:${props.alignItems} ` : '')};\n`;\n\nconst CustomGridCell = styled.div`\n grid-area: ${(props) => props.area};\n display: flex;\n ${(props) =>\n props.area === 'right'\n ? `\n align-items: center;\n justify-content: flex-end;\n > div {\n margin-left: 15px;\n }\n > button {\n margin-left: 15px;\n }\n `\n : `\n align-items: center;\n justify-content: flex-start;\n > div {\n margin-right: 15px;\n }\n `};\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst CustomBtn = styled.button`\n max-width: 200px;\n min-width: 130px;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n border-radius: 5px;\n padding: 8px 0px;\n box-sizing: border-box;\n cursor: pointer;\n border: 1px solid #d0d7dd;\n background-color: #ffffff;\n opacity: 0.9;\n color: #323c47;\n font-family: 'Poppins';\n font-size: 13px;\n line-height: 18px;\n text-align: center;\n font-weight: 400;\n & strong {\n font-weight: 600 !important;\n }\n &:focus {\n outline: none;\n }\n\n ${({ disabled }) => (disabled ? 'cursor: not-allowed;' : '')};\n`;\n\nconst CreateButton = styled(CustomBtn)`\n &:hover {\n box-shadow: 0 2px 4px 0 rgba(50, 50, 93, 0.2);\n }\n &:active {\n box-shadow: inset 0 1px 3px 0 rgba(50, 50, 93, 0.14), inset 0 4px 6px 0 rgba(51, 80, 107, 0.08);\n }\n > span:not(:last-child) {\n margin-right: 5px;\n }\n`;\n\nconst BtnText = styled.span`\n color: #3db4aa;\n font-size: 1.5rem;\n font-weight: 600;\n line-height: 2rem;\n`;\n\nconst ListCardBody = styled(ListCard)`\n padding: 0 !important;\n`;\n\nconst SortTableBtn = styled.div`\n display: flex;\n border-radius: 5px;\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\n width: 36px;\n height: 36px;\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n &::before {\n content: '';\n display: inline-block;\n height: 20px;\n width: 17px;\n background-color: ${({ active }) => (active ? '#3db4aa' : '#aeb7be')};\n -webkit-mask-image: url(${(props) => props.src});\n -webkit-mask-size: cover;\n mask-image: url(${(props) => props.src});\n mask-size: cover;\n }\n &:focus::before {\n background-color: #3db4aa;\n }\n`;\n\nconst SortTableConfirm = styled.div`\n border-top: 1px solid #d0d7dd;\n padding: 10px 15px;\n display: flex;\n align-items: center;\n justify-content: space-around;\n`;\nconst SortTableConfirmOptions = styled.span`\n color: ${(props) => (props.active ? '#3db4aa' : '#384A59')};\n cursor: pointer;\n`;\n\nconst SortTableMenu = styled(Menu)`\n padding-bottom: 0 !important;\n`;\n\nconst MenuItem = styled(Menu.Item)`\n color: #323c47 !important;\n padding: 0 !important;\n height: auto !important;\n`;\n\nconst RadioButton = styled.span`\n height: 22px;\n width: 22px;\n border: 1px solid #d0d7dd;\n border-radius: 4px;\n display: inline-block;\n position: absolute;\n left: 15px;\n &::after {\n height: 10px;\n width: 10px;\n content: '';\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #3db4aa;\n opacity: 0;\n }\n`;\n\nconst RadioInput = styled.input`\n display: none;\n &:checked ~ label span::after {\n opacity: 1;\n }\n`;\n\nconst RadioLabel = styled.label`\n padding: 10px 30px 10px 50px;\n display: flex;\n align-items: center;\n width: 100%;\n cursor: pointer;\n`;\n\nconst HeaderCellContainer = styled.div`\n display: flex;\n align-items: center;\n font-weight: bold;\n`;\n\nconst BatchHeader = styled(CustomHeader)`\n height: auto;\n margin-left: 0 !important;\n`;\n\nconst TableRow = styled(Table.BodyRow)`\n ${(props) => (props.active ? `background-color: #fcfcfc !important` : '')};\n`;\n\nconst StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 24px !important;\n`;\n\nconst StyledTableHeader = styled(Table.Header)`\n height: 36px !important;\n`;\n\nconst CardHeader = styled(Card.Header)`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n`;\n\nconst LeadsView = () => {\n const history = useHistory();\n const agency = useAgency();\n const [sort, setSort] = useState('newest');\n const [assignUsersLoading, setAssignUsersLoading] = useState(false);\n const [deletingLead, setDeletingLead] = useState(false);\n const [selectedLeads, setSelectedLeads] = useState([]);\n const [selectedLead, setSelectedLead] = useState('');\n const [leadForTask, setLeadForTask] = useState();\n const [isOpenDelete, setIsOpenDelete] = useState(false);\n const [isOpenAssignUser, setIsOpenAssignUser] = useState(false);\n const [sortTableActive, setSortTableActive] = useState(false);\n const [tableColumns, setTableColumns] = useState(() => R.clone(TABLE_COLUMNS));\n const [activeColumns, setActiveColumns] = useState(() => R.clone(ACTIVE_COLUMNS));\n const [agents, setAgents] = useState([]);\n const [users, setUsers] = useState([]);\n const [isOpenForm, setIsOpenForm] = useState(false);\n const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);\n // eslint-disable-next-line\n const [leadTaskTypeList, setLeadTaskTypeList] = useState([]);\n const [user] = useUser();\n const paginationCtnRef = useRef();\n const [campaigns, setCampaigns] = useState([]);\n const [query, setQuery] = useURLQuery();\n\n const { items, count, loading, error, page, setPage, refresh } = useAgencyLeads(\n agency.id,\n sort,\n query || {},\n );\n\n const onSubmitSearch = useCallback(\n (value) => {\n setQuery('/leads', {\n ...query,\n search: value || undefined,\n });\n },\n [query, setQuery],\n );\n\n const onSubmitFilters = useCallback(\n (filters) => {\n setQuery('/leads', {\n ...query,\n ...filters,\n });\n },\n [query, setQuery],\n );\n\n const onClearFilters = useCallback(() => {\n setQuery('/leads', {\n search: query.search || undefined,\n });\n }, [query.search, setQuery]);\n\n useEffect(() => {\n setSelectedLeads([]);\n }, [page]);\n\n useEffect(() => {\n if (error) {\n toast.error(error.message);\n }\n }, [error]);\n\n useEventSubscription(OnLeadCreateEvent, (data) => {\n if (data) {\n toast.success('Lead Management', 'Lead Successfully Created');\n }\n });\n\n useEventSubscription(OnDeleteLeadsResult, (data) => {\n if (data) {\n setDeletingLead(false);\n refresh();\n setIsOpenDelete(false);\n\n if (data) {\n const { success, errors } = data;\n\n if (errors) {\n toast.warn(`${errors} lead${errors > 1 ? 's' : ''} could not be deleted`);\n }\n\n if (success) {\n toast.success('Success', `${success} lead${success > 1 ? 's' : ''} successfully deleted`);\n }\n }\n }\n });\n\n useEventSubscription(OnAssignUserstoLeadEvent, ({ success }) => {\n setAssignUsersLoading(false);\n setIsOpenAssignUser(false);\n setSelectedLeads([]);\n refresh();\n toast.success('Lead Management', `Users assigned to lead${success > 1 ? 's' : ''}`);\n });\n\n useEventSubscription(OnAssignUserstoLeadError, ({ success, errors }) => {\n setAssignUsersLoading(false);\n setIsOpenAssignUser(false);\n setSelectedLeads([]);\n refresh();\n\n if (errors) {\n toast.warn(`${errors} lead${errors > 1 ? 's' : ''} could not assign users`);\n }\n\n if (success) {\n toast.success('Success', `${success} lead${success > 1 ? 's' : ''} successfully assigned`);\n }\n });\n\n useEventSubscription(OnNoteCreateEvent, () => {\n toast.success('Lead Management', 'Note Created!');\n refresh();\n });\n\n useEventSubscription(OnCampaignsList, (data) => {\n if (data) {\n setCampaigns(data?.campaignsList?.items || []);\n }\n });\n\n useEventSubscription(\n onTaskCreate,\n () => {\n toast.success('Lead Management', 'Task Created!');\n refresh();\n },\n [refresh],\n );\n\n useEventSubscription(\n OnLeadMessageCreate,\n (data) => {\n if (data !== null) {\n toast.success('Lead Management', 'Message sent successfully!');\n }\n refresh();\n },\n [refresh],\n );\n\n useEventSubscription(\n onLeadDispositionCreate,\n () => {\n refresh();\n },\n [refresh],\n );\n\n const handleOpenForm = () => setIsOpenForm(true);\n\n const handleCloseForm = () => setIsOpenForm(false);\n\n const leadCheckboxChangeHandler = (id) => {\n setSelectedLeads((oldSelectedList) => {\n let newSelectedList;\n if (oldSelectedList.includes(id)) {\n newSelectedList = oldSelectedList.filter((oldId) => oldId !== id);\n } else {\n newSelectedList = oldSelectedList.concat([id]);\n }\n return newSelectedList;\n });\n };\n\n const headerCheckboxHandler = useCallback(() => {\n setSelectedLeads((oldSelectedLeads) => {\n let newSelectedLeads;\n if (oldSelectedLeads.length === items.length) {\n newSelectedLeads = [];\n } else {\n newSelectedLeads = items.map((lead) => lead.id);\n }\n return newSelectedLeads;\n });\n }, [items]);\n\n const tableSortHandler = useCallback(\n (sortIdentifier) => {\n const newColumnList = { ...tableColumns };\n newColumnList[sortIdentifier] = { ...tableColumns[sortIdentifier] };\n newColumnList[sortIdentifier].active = !newColumnList[sortIdentifier].active;\n setTableColumns(newColumnList);\n },\n [tableColumns],\n );\n const confirmSortTableHandler = (closeDropdown) => {\n const newActiveList = [];\n for (const key in tableColumns) {\n const columnClone = { ...tableColumns[key] };\n if (columnClone.active) {\n newActiveList.push(columnClone.value);\n }\n }\n setActiveColumns(newActiveList);\n setSortTableActive(false);\n closeDropdown();\n };\n const cancelSortTableHandler = (closeDropdown) => {\n const newLeadsColumns = { ...tableColumns };\n for (const key in newLeadsColumns) {\n newLeadsColumns[key] = { ...tableColumns[key] };\n if (activeColumns.includes(newLeadsColumns[key].value)) {\n newLeadsColumns[key].active = true;\n }\n }\n setTableColumns(newLeadsColumns);\n setSortTableActive(false);\n closeDropdown();\n };\n\n const deleteLeadsHandler = (leads) => {\n setDeletingLead(true);\n\n let leadsToDelete;\n if (typeof leads === 'string') {\n leadsToDelete = [leads];\n setSelectedLead('');\n if (selectedLeads.includes(leads)) {\n setSelectedLeads((prevValue) => {\n return prevValue.filter((l) => l !== leads);\n });\n }\n } else {\n leadsToDelete = [...selectedLeads];\n setSelectedLeads([]);\n }\n\n deleteLeads(leadsToDelete);\n };\n const onDeleteLeads = useCallback(\n (leadId) => {\n if (leadId || selectedLeads.length > 0) {\n if (leadId) {\n setSelectedLead(leadId);\n }\n setIsOpenDelete(true);\n }\n },\n [selectedLeads],\n );\n\n const onAssignUsersLeads = useCallback(\n (leadId) => {\n if (leadId || selectedLeads.length > 0) {\n if (leadId) {\n setSelectedLead(leadId);\n }\n setIsOpenAssignUser(true);\n }\n },\n [selectedLeads],\n );\n\n const handleOnAssingUserClose = () => {\n if (selectedLead.length > 0) {\n setSelectedLead('');\n }\n\n setIsOpenAssignUser(false);\n };\n\n const handleAssingUsersToLeads = useCallback(\n async (selectedUsers) => {\n const filteredLeads = items.filter((lead) => selectedLeads.includes(lead.id));\n\n if (filteredLeads.length) {\n setAssignUsersLoading(true);\n assignUsersToLeads(filteredLeads, selectedUsers);\n }\n },\n [items, selectedLeads],\n );\n\n const handleOnYes = () => {\n if (selectedLead.length > 0) {\n deleteLeadsHandler(selectedLead);\n } else {\n deleteLeadsHandler(selectedLeads);\n }\n };\n const handleOnNo = () => {\n if (selectedLead.length > 0) {\n setSelectedLead('');\n }\n setIsOpenDelete(false);\n };\n\n const handleOnClickBtnCsv = () => {\n if (campaigns.length === 0) {\n toast.error('This operation is not possible without campaigns');\n } else {\n history.push('/leads/upload', {\n params: {\n previousPath: '/leads/upload',\n campaigns,\n agency,\n },\n });\n }\n };\n\n useEffect(() => {\n fetchLeadTaskTypes().then((data) => {\n setLeadTaskTypeList(data.leadTaskTypesList.items);\n });\n\n paginationCtnRef.current.children[0].children[3].childNodes[5].textContent = ' leads';\n }, [agency.id]);\n\n useEffect(() => {\n fetchCampaignsLight({\n filterData: { agency: agency.id },\n });\n\n fetchAgents({ agency: agency.id }).then((data) => {\n if (data.agentsList) {\n setAgents(data.agentsList.items.map((item) => item.user));\n setUsers(data.agentsList.items.map((item) => item.user));\n }\n });\n }, [agency.id]);\n\n const leadStages = useLeadStages();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const columnsSize = useMemo(() => getColumnsSizes(tableColumns), [activeColumns]);\n\n const headerCols = useMemo(\n () =>\n activeColumns.map((col) => {\n let icon;\n\n return (\n \n \n {col}\n {icon}\n \n \n );\n }),\n [activeColumns],\n );\n\n const tableHeader = useMemo(\n () => (\n \n \n {items && (\n \n )}\n \n {headerCols}\n Actions\n \n ),\n [columnsSize, headerCheckboxHandler, headerCols, items, selectedLeads.length],\n );\n\n const sortColumns = useMemo(\n () =>\n Object.entries(tableColumns).map(([identifier, column]) => {\n return (\n {}}>\n \n tableSortHandler(identifier)}>\n \n {column.value}\n \n \n );\n }),\n [tableColumns, tableSortHandler],\n );\n\n const batchActions = canSeeBatchActions(user, agency) && (\n <>\n Batch Actions\n \n Assign to Leads\n \n \n Delete Leads\n \n {/* Assign to agent */}\n \n );\n\n const setTaskModal = useCallback((lead) => {\n setIsTaskModalOpen(true);\n setLeadForTask(lead);\n }, []);\n\n //console.log('selected leads', selectedLeads);\n return (\n
    \n \n \n \n \n \n \n \n \n \n {batchActions}\n \n \n setSortTableActive(!sortTableActive)}\n />\n \n \n {({ closeDropdown }) => (\n \n {sortColumns}\n \n {\n confirmSortTableHandler(closeDropdown);\n }}>\n Accept\n \n {\n cancelSortTableHandler(closeDropdown);\n }}>\n Cancel\n \n \n \n )}\n \n \n <>\n \n \n \n Create Lead\n \n \n \n \n \n \n \n {tableHeader}\n {loading ? (\n \n ) : (\n {}} data={items}>\n {(lead, index) => {\n // const isLast = index === leadsList.length - 1;\n // const pageLoader = isLast && loadingPage ? : null;\n const columnList = activeColumns.map((columnName) => (\n \n ));\n return (\n <>\n \n \n {\n leadCheckboxChangeHandler(lead.id);\n }}\n />\n \n {columnList}\n {\n onDeleteLeads(lead.id);\n }}\n lead={lead}\n />\n \n \n );\n }}\n \n )}\n {isTaskModalOpen && (\n {\n setLeadForTask();\n setIsTaskModalOpen(false);\n }}\n onClose={() => {\n setIsTaskModalOpen(false);\n setLeadForTask();\n }}\n />\n )}\n
    \n
    \n \n \n \n \n \n \n \n \n
    \n
    \n );\n};\n\nexport default LeadsView;\n","import React from 'react';\nimport { Text } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport Field from '../../../shared/components/Field';\nimport { getFieldProps } from '../leads-utils';\nimport PropTypes from 'prop-types';\n\nexport class CsvPreviewCell extends React.PureComponent {\n render() {\n const { rowIndex, columnIndex, style, data } = this.props;\n\n if (rowIndex === 0) {\n const content = columnIndex === 0 ? '' : data.headers[columnIndex - 1];\n\n return (\n
    \n \n {content}\n \n
    \n );\n } else if (columnIndex === 0) {\n return (\n
    \n \n {rowIndex}\n \n
    \n );\n }\n\n const value = data.rows[rowIndex - 1][columnIndex - 1];\n const header = data.headers[columnIndex - 1];\n const fieldProps = getFieldProps(header, data.campaignOptions, data.ifsOptions);\n\n const onChange = (val) =>\n data.onChange(rowIndex - 1, columnIndex - 1, { target: { value: val } });\n\n return (\n
    \n \n data.onChange(rowIndex - 1, columnIndex - 1, e)}\n onChange={fieldProps.type === 'select' || fieldProps.type === 'date' ? onChange : null}\n {...fieldProps}\n />\n \n
    \n );\n }\n}\n\nCsvPreviewCell.propTypes = {\n rowIndex: PropTypes.number.isRequired,\n columnIndex: PropTypes.number.isRequired,\n style: PropTypes.object.isRequired,\n data: PropTypes.shape({\n headers: PropTypes.arrayOf(PropTypes.string).isRequired,\n rows: PropTypes.arrayOf(PropTypes.string).isRequired,\n campaignOptions: PropTypes.array.isRequired,\n ifsOptions: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n }).isRequired,\n};\n","import React, { useEffect, useState, useCallback, useRef } from 'react';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport PropTypes from 'prop-types';\nimport { Modal, Row, SelectField, Heading, Column, Button, Icon, Text } from '@8base/boost';\nimport { VariableSizeGrid } from 'react-window';\nimport { PrimaryBtn } from 'shared/components';\nimport { LEAD_CSV_FORMATS } from '../../../shared/constants';\nimport { LEAD_TYPE_OPTIONS } from '../leads-model';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { Box } from '../../../shared/components/Box';\nimport { CsvPreviewCell } from './CsvPreviewCell';\nimport { OnLeadsError } from '../leads-events';\n\nconst { RICOCHET } = LEAD_CSV_FORMATS;\n\n/**\n * Leads Csv data preview in dialog\n *\n * @param {object} props props component\n * @param {boolean} props.isOpen bool value for dialog\n * @param {Function} props.onClose handle for close the dialog\n * @param {Array} props.csvData array of data\n * @param {boolean} props.loading loading for PrimaryBtn\n * @param {Array} props.csvColumns columns for table header\n * @param {Function} props.onBlurInput handle on blur for each field\n * @param {Function} props.onUploadCsv handle for upload the CSV\n * @param {Array} props.campaignOptions campaigns options for select\n * @param {Array} props.ifsScoresOptions ifs scores of the agency\n * @returns {React.ReactElement} component\n */\nconst LeadsCsvPreviewDialog = ({\n isOpen,\n onClose,\n csvData,\n loading,\n csvColumns,\n csvFormat,\n onBlurInput,\n onUploadCsv,\n campaignOptions,\n ifsScoresOptions,\n}) => {\n const [campaign, setCampaign] = useState(null);\n const [leadsType, setLeadsType] = useState(LEAD_TYPE_OPTIONS[0].value);\n const [uploading, setUploading] = useState(false);\n const [isMassiveUpload, setMassiveUpload] = useState(false);\n const [height, setHeight] = useState(0);\n const [width, setWidth] = useState(0);\n const worker = useRef(null);\n const ref = useRef(null);\n\n useEventSubscription(OnLeadsError, () => {\n setUploading(false);\n });\n\n useEffect(() => {\n if (isOpen && ref.current) {\n setWidth(ref.current.clientWidth);\n setHeight(ref.current.clientHeight);\n }\n }, [isOpen]);\n\n useEffect(() => {\n if (ref && ref.current) {\n let timeout = '';\n\n const onResize = () => {\n clearTimeout(timeout);\n\n timeout = setTimeout(() => {\n setWidth(ref.current.clientWidth);\n setHeight(ref.current.clientHeight);\n }, 500);\n };\n\n window.addEventListener('resize', onResize);\n\n return () => {\n window.removeEventListener('resize', onResize);\n };\n }\n });\n\n useEffect(() => {\n if (window.Worker) {\n worker.current = new Worker('/workers/csv-validation.js');\n\n worker.current.addEventListener('message', ({ data }) => {\n setUploading(false);\n\n if (data.errors) {\n console.log('window.Worker data.errors', data.errors);\n const errors = [\n 'This may be because you selected a wrong format for the csv.',\n\n ...(data.errors?.arr || []),\n ];\n if (data.errors?.message) {\n errors.push(data.errors?.message);\n }\n\n return onErrorMixinFC({ arr: errors });\n }\n\n onUploadCsv(campaign, leadsType, data.leads);\n });\n\n return () => worker.current.terminate();\n }\n }, [campaign, leadsType, onUploadCsv]);\n\n useEffect(() => {\n if (!isOpen) {\n setUploading(false);\n }\n }, [isOpen]);\n\n useEffect(() => {\n setMassiveUpload(csvData.length > 2500);\n }, [csvData]);\n\n useEffect(() => {\n if (campaign === null && campaignOptions.length > 0) {\n setCampaign(campaignOptions[0].value);\n }\n }, [campaign, campaignOptions]);\n\n const onContinue = useCallback(() => {\n setUploading(true);\n\n if (worker.current) {\n worker.current.postMessage({\n headers: csvColumns,\n body: csvData,\n format: csvFormat,\n campaign,\n leadsType,\n });\n } else {\n setTimeout(() => onUploadCsv(campaign, leadsType, []), 1000);\n }\n }, [csvColumns, csvData, csvFormat, campaign, leadsType, onUploadCsv]);\n\n if (!isOpen) {\n return null;\n }\n\n const content = isMassiveUpload ? (\n \n \n Ready for uploading\n \n \n \n ) : (\n (index === 0 ? 50 : 250)}\n rowCount={csvData.length + 1}\n rowHeight={() => 50}\n height={height}\n width={width}\n itemData={{\n headers: csvColumns,\n rows: csvData,\n ifsOptions: ifsScoresOptions,\n campaignOptions: campaignOptions,\n onChange: onBlurInput,\n }}>\n {CsvPreviewCell}\n \n );\n\n return (\n \n \n \n Add Leads - Data Preview\n \n \n \n setCampaign(value),\n }}\n options={campaignOptions}\n />\n {csvFormat === RICOCHET && (\n \n )}\n \n \n {content}\n \n \n \n \n \n Upload CSV\n \n \n \n \n );\n};\n\nLeadsCsvPreviewDialog.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n csvData: PropTypes.array.isRequired,\n loading: PropTypes.bool.isRequired,\n csvColumns: PropTypes.array.isRequired,\n csvFormat: PropTypes.string.isRequired,\n onBlurInput: PropTypes.func.isRequired,\n onUploadCsv: PropTypes.func.isRequired,\n campaignOptions: PropTypes.array.isRequired,\n ifsScoresOptions: PropTypes.array.isRequired,\n};\n\nexport default LeadsCsvPreviewDialog;\n","import React, { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useDropzone } from 'react-dropzone';\nimport styled from 'styled-components';\nimport { fileToBase64 } from '../../shared/utils';\nimport { Text } from '@8base/boost';\nimport { Loader } from 'shared/components';\nimport { IconClose } from './ui/Icons';\n\nconst Dropzone = styled.div`\n width: 100%;\n padding: 30px;\n height: 100px;\n display: flex;\n cursor: pointer;\n position: relative;\n border-radius: 5px;\n align-items: center;\n box-sizing: border-box;\n justify-content: center;\n background-color: #ffffff;\n border: 1px dashed #d0d7dd;\n`;\n\nconst Label = styled.p`\n color: #878c93;\n font-size: 12px;\n line-height: 16px;\n margin-bottom: 5px;\n font-family: 'Poppins';\n`;\n\nconst TextDanger = styled(Text)`\n margin-top: 5px;\n`;\n\nconst TextDropzone = styled(Text)`\n color: #323c47;\n font-family: 'Poppins';\n font-size: 13px;\n letter-spacing: 0;\n line-height: 20px;\n font-weight: 600 !important;\n text-align: center;\n`;\n\nconst FileName = styled.span`\n margin-left: 6px;\n font-size: 16px;\n`;\n\nconst FileUpload = ({ text, label, accept, maxFiles, onChange, onClickRemoveFile }) => {\n const [files, setFiles] = useState([]);\n const [message, setMessage] = useState('');\n const [isLoading, setIsLoading] = useState(false);\n const onDrop = useCallback((acceptedFiles) => {\n // eslint-disable-next-line\n if (acceptedFiles.length <= maxFiles) {\n const newFiles = [];\n\n setIsLoading(true);\n acceptedFiles.forEach(async (file) => {\n const base64 = await fileToBase64(file);\n\n newFiles.push({\n ...file,\n preview: base64,\n });\n });\n\n setMessage('');\n setFiles(newFiles);\n onChange(acceptedFiles);\n } else {\n setMessage(`Only accept ${maxFiles} file${maxFiles > 1 ? 's' : ''}`);\n }\n // eslint-disable-next-line\n }, []);\n const handleOnClickClose = useCallback(\n (file) => {\n onClickRemoveFile();\n setIsLoading(false);\n setFiles(files.filter((_file) => file.preview !== _file.preview));\n },\n [files, onClickRemoveFile],\n );\n const { getRootProps, getInputProps } = useDropzone({ onDrop, accept });\n\n return (\n <>\n \n {files.length ? (\n \n {files.map((file, key) => {\n return (\n
    \n handleOnClickClose(file)} />\n {file.path}\n
    \n );\n })}\n
    \n ) : (\n \n \n {isLoading ? : {text}}\n \n )}\n {message !== '' && {message}}\n \n );\n};\n\nFileUpload.propTypes = {\n text: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n accept: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n maxFiles: PropTypes.number.isRequired,\n onClickRemoveFile: PropTypes.func.isRequired,\n};\n\nexport default FileUpload;\n","import React, { useState, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { PrimaryBtn } from 'shared/components';\nimport { Dialog, Button, Heading, Column, SelectField, Link } from '@8base/boost';\nimport FileUpload from '../../../shared/components/FileUpload';\nimport { LEAD_CSV_FORMATS, LEAD_CSV_FORMAT_OPTIONS } from '../../../shared/constants';\n\nimport leads from '../../../shared/assets/documents/csv/leads.csv';\nimport leads_drivers from '../../../shared/assets/documents/csv/leads_drivers.csv';\nimport leads_auto from '../../../shared/assets/documents/csv/leads_auto.csv';\nimport leads_auto_with_drivers from '../../../shared/assets/documents/csv/leads_auto_with_drivers.csv';\nimport leads_commercial_auto from '../../../shared/assets/documents/csv/leads_commercial_auto.csv';\nimport leads_commercial_auto_with_drivers from '../../../shared/assets/documents/csv/leads_commercial_auto_with_drivers.csv';\nimport leads_home from '../../../shared/assets/documents/csv/leads_home.csv';\nimport leads_home_with_drivers from '../../../shared/assets/documents/csv/leads_home_with_drivers.csv';\nimport leads_life from '../../../shared/assets/documents/csv/leads_life.csv';\nimport leads_life_with_drivers from '../../../shared/assets/documents/csv/leads_life_with_drivers.csv';\nimport leads_employee_benefits from '../../../shared/assets/documents/csv/leads_employee_benefits.csv';\nimport leads_employee_benefits_with_drivers from '../../../shared/assets/documents/csv/leads_employee_benefits_with_drivers.csv';\nimport leads_general_liability from '../../../shared/assets/documents/csv/leads_general_liability.csv';\nimport leads_general_liability_with_drivers from '../../../shared/assets/documents/csv/leads_general_liability_with_drivers.csv';\nimport leads_workers_compensation from '../../../shared/assets/documents/csv/leads_workers_compensation.csv';\nimport leads_workers_compensation_with_drivers from '../../../shared/assets/documents/csv/leads_workers_compensation_with_drivers.csv';\nimport leads_ricochet from '../../../shared/assets/documents/csv/leads_ricochet.csv';\n\nconst links = {\n [LEAD_CSV_FORMATS.STANDARD]: [\n {\n name: 'Leads',\n file: 'leads.csv',\n url: leads,\n },\n {\n name: 'Leads with Drivers',\n file: 'leads_drivers.csv',\n url: leads_drivers,\n },\n {\n name: 'Leads Type Auto',\n file: 'leads_auto.csv',\n url: leads_auto,\n },\n {\n name: 'Leads Type Auto with Drivers',\n file: 'leads_auto_with_drivers.csv',\n url: leads_auto_with_drivers,\n },\n {\n name: 'Leads Type Commercial Auto',\n file: 'leads_commercial_auto.csv',\n url: leads_commercial_auto,\n },\n {\n name: 'Leads Type Commercial Auto with Drivers',\n file: 'leads_commercial_auto_with_drivers.csv',\n url: leads_commercial_auto_with_drivers,\n },\n {\n name: 'Leads Type Home',\n file: 'leads_home.csv',\n url: leads_home,\n },\n {\n name: 'Leads Type Home with Drivers',\n file: 'leads_home_with_drivers.csv',\n url: leads_home_with_drivers,\n },\n {\n name: 'Leads Type Life',\n file: 'leads_life.csv',\n url: leads_life,\n },\n {\n name: 'Leads Type Life with Drivers',\n file: 'leads_life_with_drivers.csv',\n url: leads_life_with_drivers,\n },\n {\n name: 'Leads Type Employee Benefits',\n file: 'leads_employee_benefits.csv',\n url: leads_employee_benefits,\n },\n {\n name: 'Leads Type Employee Benefits with Drivers',\n file: 'leads_employee_benefits_with_drivers.csv',\n url: leads_employee_benefits_with_drivers,\n },\n {\n name: 'Leads Type General Liability',\n file: 'leads_general_liability.csv',\n url: leads_general_liability,\n },\n {\n name: 'Leads Type General Liability with Drivers',\n file: 'leads_general_liability_with_drivers.csv',\n url: leads_general_liability_with_drivers,\n },\n {\n name: 'Leads Type Workers Compensation',\n file: 'leads_workers_compensation.csv',\n url: leads_workers_compensation,\n },\n {\n name: 'Leads Type Workers Compensation with Drivers',\n file: 'leads_workers_compensation_with_drivers.csv',\n url: leads_workers_compensation_with_drivers,\n },\n ],\n [LEAD_CSV_FORMATS.RICOCHET]: [\n {\n name: 'Leads',\n file: 'leads_ricochet.csv',\n url: leads_ricochet,\n },\n ],\n};\n\n/**\n * Leads Csv upload in dialog\n *\n * @param {object} props props component\n * @param {boolean} props.isOpen bool value for dialog\n * @param {Function} props.onClose handle for close the dialog\n * @param {boolean} props.loading loading for PrimaryBtn\n * @param {Function} props.onClickContinue handle on click for btn continue\n * @param {Function} props.onChangeFileUpload handle on change for file upload\n * @param {Function} props.onClickRemoveFile handle on remove for file upload\n * @param {boolean} props.hasData bool value for check if has data CSV\n *\n * @returns {React.FC} The component to render\n */\nconst LeadsCsvUploadDialog = ({\n isOpen,\n onClose,\n loading,\n onClickContinue,\n onChangeFileUpload,\n onClickRemoveFile,\n hasData,\n}) => {\n const [format, setFormat] = useState(LEAD_CSV_FORMATS.STANDARD);\n\n const handleContinue = useCallback(() => {\n onClickContinue(format);\n }, [format, onClickContinue]);\n\n return (\n \n \n \n \n \n \n CSV Examples\n \n {links[format].map((link, key) => (\n \n {link.name}\n \n ))}\n \n \n \n \n \n \n Continue\n \n \n \n );\n};\n\nLeadsCsvUploadDialog.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n onClickContinue: PropTypes.func.isRequired,\n onChangeFileUpload: PropTypes.func.isRequired,\n onClickRemoveFile: PropTypes.func.isRequired,\n hasData: PropTypes.bool.isRequired,\n};\n\nexport default LeadsCsvUploadDialog;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Dialog, Progress } from '@8base/boost';\n\nconst LeadsCsvStatusUploadDialog = ({ isOpen, accumulatorLeads, totalLeads }) => {\n return (\n <>\n \n \n
    Uploading leads...
    \n
    Total completed:
    \n \n
    \n
    \n \n );\n};\n\nLeadsCsvStatusUploadDialog.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n accumulatorLeads: PropTypes.number.isRequired,\n totalLeads: PropTypes.number.isRequired,\n};\n\nexport default LeadsCsvStatusUploadDialog;\n","import React, { useCallback, useState, useEffect } from 'react';\nimport { Row, Loader } from '@8base/boost';\nimport { useHistory, useLocation } from 'react-router-dom';\nimport Papa from 'papaparse';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { createLeads, createLeadsFromRicochet } from '../leads-actions';\nimport { preprocessDataFromCsv } from '../leads-utils';\nimport { useSubscription as useSub } from '@cobuildlab/react-simple-state';\nimport LeadsCsvPreviewDialog from './LeadsCsvPreviewDialog';\nimport LeadsCsvUploadDialog from './LeadsCsvUploadDialog';\nimport LeadsCsvStatusUploadDialog from './LeadsCsvStatusUploadDialog';\nimport { onErrorMixinFC } from 'shared/mixins';\nimport * as toast from 'shared/components/toast/Toast';\nimport { LEAD_CSV_FORMATS } from '../../../shared/constants';\nimport {\n OnCsvUploadFinised,\n OnLeadsChunkBulkCreateEvent,\n OnLeadsError,\n OnValidatedLeadDataForUploadEvent,\n} from '../leads-events';\n\nconst { STANDARD, RICOCHET } = LEAD_CSV_FORMATS;\n\n/**\n * Leads CSV button with dialog upload and data preview.\n *\n * @param {object} props - Component props\n *\n * @returns {React.FC} Component to render\n */\nconst LeadsCsvDialogs = (props) => {\n // Dependencies\n const history = useHistory();\n const location = useLocation();\n // Data\n const [csvData, setCsvData] = useState([]);\n const [csvColumns, setCsvColumns] = useState([]);\n const [csvFormat, setCsvFormat] = useState(STANDARD);\n const [accumulatorLeads, setAccumulatorLeads] = useState(0);\n const [totalLeads, setTotalLeads] = useState(0);\n // Controls\n const [isOpenLoaderCSVDialog, setIsOpenLoaderCSVDialog] = useState(true);\n const [isOpenPreviewDialog, setIsOpenPreviewDialog] = useState(false);\n const [isOpenStatusUploadDialog, setIsOpenStatusUploadDialog] = useState(false);\n const [isLoadingPreview, setIsLoadingPreview] = useState(false);\n const [hasData, setHasData] = useState(false);\n const [loading, setLoading] = useState(true);\n\n // Verifies that data is obtained from the lead management\n // If don't, go to leads\n useEffect(() => {\n if (!location.state?.params) {\n history.replace('/leads');\n } else {\n setLoading(false);\n }\n }, [history, location]);\n\n const handleOnChangeFileUpload = useCallback(\n (files) => {\n const file = files[0];\n setIsLoadingPreview(true);\n Papa.parse(file, {\n complete: async (results) => {\n const columns = [...results.data[0]];\n\n // remove the rows with all the empty fields\n const data = [...results.data.slice(1).filter((row) => !row.every((e) => !e))];\n\n // const [newColumns, newData] = await getDataFromCsv(columns, data);\n\n setCsvData(data);\n setCsvColumns(columns);\n setHasData(true);\n },\n skipEmptyLines: true,\n });\n setIsLoadingPreview(false);\n },\n [setIsLoadingPreview],\n );\n\n const handleOnClickRemoveFile = useCallback(() => {\n setCsvData([]);\n setCsvColumns([]);\n setHasData(false);\n }, []);\n\n const handleOnBlurInput = useCallback(\n (rowIndex, keyIndex, event) => {\n const value = event.target.value;\n csvData[rowIndex][keyIndex] = value;\n },\n [csvData],\n );\n\n const handleOnUploadCsv = useCallback(\n (campaign, leadsType, leads) => {\n if (csvFormat === STANDARD) {\n createLeads(csvColumns, csvData, campaign, leads);\n } else if (csvFormat === RICOCHET) {\n createLeadsFromRicochet(csvColumns, csvData, campaign, leadsType, leads);\n }\n },\n [csvColumns, csvData, csvFormat],\n );\n\n const handleOnClosePreview = useCallback(() => {\n setIsOpenPreviewDialog(false);\n setCsvData([]);\n setCsvColumns([]);\n setHasData(false);\n setIsOpenLoaderCSVDialog(true);\n }, []);\n\n const handleOnClickContinue = useCallback(\n async (format) => {\n const { campaigns } = location.state?.params;\n\n if (csvData.length === 0) {\n toast.error('The file is empty');\n } else if (campaigns.length === 0) {\n toast.error('This operation is not possible without campaigns');\n } else {\n setIsLoadingPreview(true);\n const [csvNewColumns, csvNewData] = await preprocessDataFromCsv(csvColumns, csvData);\n setCsvData(csvNewData);\n setCsvColumns(csvNewColumns);\n setCsvFormat(format);\n setTimeout(() => {\n setIsLoadingPreview(false);\n setIsOpenLoaderCSVDialog(false);\n setIsOpenPreviewDialog(true);\n }, 1000);\n }\n },\n [location.state, csvData, csvColumns],\n );\n useSub(OnCsvUploadFinised, () => {\n setTimeout(() => {\n toast.success('Lead Management', `Leads created successfully!`);\n history.goBack();\n }, 2000);\n });\n\n useEventSubscription(OnLeadsChunkBulkCreateEvent, (response) => {\n if (response) {\n setAccumulatorLeads(accumulatorLeads + response.totalChunk);\n }\n });\n\n useEventSubscription(OnLeadsError, (err) => {\n if (err) {\n onErrorMixinFC(err);\n }\n });\n\n useEventSubscription(OnValidatedLeadDataForUploadEvent, () => {\n setTotalLeads(csvData.length);\n setIsOpenPreviewDialog(false);\n setIsOpenStatusUploadDialog(true);\n });\n\n if (loading) {\n return (\n \n \n \n );\n }\n\n const CAMPAIGNS_OPTIONS = location.state.params.campaigns.map((campaign) => ({\n label: campaign.name,\n value: campaign.id,\n }));\n\n return (\n <>\n \n ({\n label: score,\n value: score,\n }))\n : []\n }\n />\n \n \n );\n};\n\nexport default LeadsCsvDialogs;\n","import { TASKS_INITIAL_STATUS, TASK_STATUS_CLOSED } from '../../shared/constants';\r\n\r\nexport default {\r\n id: null,\r\n title: '',\r\n description: '',\r\n leads: [],\r\n date: null,\r\n priority: null,\r\n agents: [],\r\n types: [],\r\n status: TASKS_INITIAL_STATUS,\r\n};\r\n\r\nexport const PRIORITIES = [\r\n { value: 1, label: 'LOW' },\r\n { value: 2, label: 'NORMAL' },\r\n { value: 3, label: 'HIGH' },\r\n { value: 4, label: 'VERY HIGH' },\r\n];\r\n\r\nexport const TABLE_COLUMNS = {\r\n TaskTitle: { active: true, value: 'Task Title', property: '' },\r\n Lead: { active: true, value: 'Lead', property: '' },\r\n Date: { active: true, value: 'Date', property: '' },\r\n Type: { active: true, value: 'Type', property: '' },\r\n Priority: { active: true, value: 'Priority', property: '' },\r\n AssignedTo: { active: true, value: 'Assigned To', property: '' },\r\n Description: { active: true, value: 'Description', property: '' },\r\n};\r\n\r\nexport const ACTIVE_COLUMNS = [\r\n 'Task Title',\r\n 'Lead',\r\n 'Date',\r\n 'Type',\r\n 'Priority',\r\n 'Assigned To',\r\n 'Description',\r\n];\r\n\r\nexport const FILTER_DATA = {\r\n assignedTo: '',\r\n onDate: '',\r\n onStatus: '',\r\n};\r\n\r\nexport const FILTER_CATEGORIES = {\r\n assignedTo: {\r\n title: 'Assigned to',\r\n placeholher: 'Select',\r\n identifier: 'assignedTo',\r\n options: [],\r\n },\r\n};\r\n\r\nexport const SORT_OPTIONS = [\r\n { label: 'Priority: Top First', value: 'top' },\r\n { label: 'Priority: Low First', value: 'low' },\r\n { label: 'Date: Newest First', value: 'newest' },\r\n { label: 'Date: Oldest First', value: 'oldest' },\r\n];\r\n\r\nexport const CALENDAR_EVENT_RENDER = (event) => {\r\n if (event.event._def.extendedProps.status === TASK_STATUS_CLOSED) {\r\n event.el.classList.add('fc-status-closed');\r\n }\r\n};\r\n\r\nexport const CALENDAR_EVENT_TIME_FORMAT = {\r\n hour: '2-digit',\r\n minute: '2-digit',\r\n meridiem: false,\r\n hour12: false,\r\n};\r\n\r\nexport const CALENDAR_HEADER = {\r\n left: 'today prev,next',\r\n center: 'title',\r\n right: 'dayGridMonth,timeGridWeek createTask, toTasksList',\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Table } from '@8base/boost';\r\nimport { RadioInputField } from 'shared/components';\r\nimport styled from 'styled-components';\r\n\r\nconst StyledTableHeader = styled(Table.Header)`\r\n display: flex;\r\n`;\r\n\r\nconst HeaderCellContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n`;\r\n\r\nconst TableHeader = (props) => {\r\n const { data, headers, columns, selectedTasks, headerCheckboxHandler } = props;\r\n\r\n const headerCols = headers.map((col) => {\r\n let icon;\r\n return (\r\n \r\n \r\n {col}\r\n {icon}\r\n \r\n \r\n );\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {headerCols}\r\n Actions\r\n \r\n );\r\n};\r\n\r\nTableHeader.propTypes = {\r\n headers: PropTypes.array.isRequired,\r\n columns: PropTypes.string.isRequired,\r\n selectedTasks: PropTypes.array.isRequired,\r\n data: PropTypes.array.isRequired,\r\n headerCheckboxHandler: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default TableHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Dropdown, Menu, Icon } from '@8base/boost';\r\nimport { DropdownBodyOnTable } from 'shared/components';\r\nimport { IconInfo, IconCheck } from 'shared/components/ui/Icons';\r\nimport styled from 'styled-components';\r\n\r\nconst StyledIconInfo = styled(IconInfo)`\r\n width: 24px;\r\n height: 24px;\r\n cursor: pointer;\r\n min-width: 24px;\r\n`;\r\n\r\nconst StyledIconCheck = styled(IconCheck)`\r\n width: 24px;\r\n height: 24px;\r\n cursor: pointer;\r\n min-width: 24px;\r\n`;\r\n\r\nconst MenuItem = styled(Menu.Item)`\r\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\r\n &:hover {\r\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\r\n }\r\n`;\r\n\r\nconst RowActions = ({ task, handleOnDeleteTask, handleInfoModal, handleOnChangeStatus }) => {\r\n const dropdown = (\r\n \r\n \r\n \r\n \r\n \r\n {({ closeDropdown }) => (\r\n \r\n {\r\n handleOnDeleteTask(task);\r\n closeDropdown();\r\n }}>\r\n Delete\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n {\r\n handleInfoModal(task.id);\r\n }}\r\n />\r\n {\r\n handleOnChangeStatus(task);\r\n }}\r\n />\r\n {dropdown}\r\n \r\n );\r\n};\r\n\r\nRowActions.propTypes = {\r\n task: PropTypes.object.isRequired,\r\n handleOnDeleteTask: PropTypes.func.isRequired,\r\n handleInfoModal: PropTypes.func.isRequired,\r\n handleOnChangeStatus: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default RowActions;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Dropdown } from 'shared/components';\r\nimport { PRIORITIES } from '../lead-task-model';\r\nimport styled from 'styled-components';\r\nimport { updateLeadTask } from '../lead-task-actions';\r\n\r\nconst DropdownOption = styled.div`\r\n padding: 0px ${(props) => (props.isHead ? '0px' : '16px')};\r\n`;\r\nconst component = (priority) => (props) => {priority};\r\n\r\nconst PriorityCell = ({ rowData, value }) => {\r\n const [priority, setPriority] = useState(value);\r\n const handleOnChange = (value) => {\r\n setPriority(value);\r\n updateLeadTask({ id: rowData.id, priority: value.toString() });\r\n };\r\n\r\n return (\r\n {\r\n return {\r\n value: value,\r\n Component: component(label),\r\n };\r\n })}\r\n onChange={handleOnChange}\r\n />\r\n );\r\n};\r\n\r\nPriorityCell.propTypes = {\r\n value: PropTypes.string.isRequired,\r\n rowData: PropTypes.object.isRequired,\r\n};\r\n\r\nexport default PriorityCell;\r\n","import React from 'react';\r\nimport { PropTypes } from 'prop-types';\r\nimport { Table, Text, Link } from '@8base/boost';\r\nimport styled from 'styled-components';\r\nimport PriorityCell from '../PriorityCell';\r\n\r\nconst TableBodyCell = styled(Table.BodyCell)`\r\n word-break: break-word !important;\r\n`;\r\n\r\nconst TableTextEllipsis = styled(Text)`\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n max-width: 200px;\r\n`;\r\n\r\nconst LeadCell = ({ columnName, task }) => {\r\n let cell;\r\n switch (columnName) {\r\n case 'ID':\r\n cell = (\r\n \r\n

    ID

    \r\n
    \r\n );\r\n break;\r\n case 'Task Title':\r\n cell = (\r\n \r\n {task.title}\r\n \r\n );\r\n break;\r\n case 'Lead': {\r\n const { lead } = task;\r\n\r\n cell = (\r\n \r\n {lead && (\r\n \r\n {`${lead.firstName} ${lead.lastName}`}\r\n \r\n )}\r\n \r\n );\r\n\r\n break;\r\n }\r\n case 'Date': {\r\n cell = {task.date};\r\n break;\r\n }\r\n case 'Type':\r\n cell = {task.type};\r\n break;\r\n case 'Priority':\r\n cell = (\r\n \r\n \r\n \r\n );\r\n break;\r\n case 'Assigned To':\r\n cell = {task.agentsFormat};\r\n break;\r\n case 'Description':\r\n cell = (\r\n \r\n \r\n {task.description}\r\n \r\n \r\n );\r\n break;\r\n default:\r\n cell = (\r\n \r\n

    default

    \r\n
    \r\n );\r\n }\r\n return cell;\r\n};\r\n\r\nLeadCell.PropTypes = {\r\n lead: PropTypes.object.isRequired,\r\n columnName: PropTypes.string.isRequired,\r\n};\r\n\r\nexport default LeadCell;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Table } from '@8base/boost';\r\nimport { RadioInputField } from 'shared/components';\r\nimport RowActions from './RowActions';\r\nimport styled from 'styled-components';\r\nimport RowCell from './RowCell';\r\n\r\nconst TableRow = styled(Table.BodyRow)`\r\n ${(props) => (props.active ? `background-color: #fcfcfc !important` : '')};\r\n`;\r\n\r\nconst TableRows = (props) => {\r\n const {\r\n task,\r\n columns,\r\n selectedTasks,\r\n activeColumns,\r\n handleInfoModal,\r\n handleOnChangeStatus,\r\n handleOnDeleteTask,\r\n taskCheckboxChangeHandler,\r\n } = props;\r\n\r\n const Row = () => {\r\n const columnList = activeColumns.map((columnName) => (\r\n \r\n ));\r\n return (\r\n \r\n \r\n {\r\n taskCheckboxChangeHandler(task.id);\r\n }}\r\n />\r\n \r\n {columnList}\r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n return ;\r\n};\r\n\r\nTableRows.propTypes = {\r\n task: PropTypes.object.isRequired,\r\n columns: PropTypes.string.isRequired,\r\n selectedTasks: PropTypes.isRequired,\r\n activeColumns: PropTypes.array.isRequired,\r\n taskCheckboxChangeHandler: PropTypes.func.isRequired,\r\n handleInfoModal: PropTypes.func.isRequired,\r\n handleOnChangeStatus: PropTypes.func.isRequired,\r\n handleOnDeleteTask: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default TableRows;\r\n","import React from 'react';\r\nimport { Dialog, Grid, Button, Text, Paragraph, Heading, Link } from '@8base/boost';\r\nimport PropTypes from 'prop-types';\r\nimport PriorityCell from '../PriorityCell';\r\nimport moment from 'moment';\r\n\r\nconst InfoModal = ({\r\n task,\r\n updating,\r\n onClose,\r\n dialogTitle,\r\n isOpenInfoModal,\r\n updateTask,\r\n handleOnChangeStatus,\r\n}) => {\r\n const { lead } = task;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {task.title}\r\n \r\n \r\n Lead\r\n {lead && (\r\n \r\n {lead.firstName} {lead.lastName}\r\n \r\n )}\r\n \r\n \r\n Date\r\n \r\n \r\n \r\n Priority\r\n \r\n \r\n \r\n Task Type\r\n \r\n \r\n \r\n Assigned To\r\n \r\n \r\n \r\n Description\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nInfoModal.propTypes = {\r\n updating: PropTypes.bool,\r\n onClose: PropTypes.func.isRequired,\r\n dialogTitle: PropTypes.string.isRequired,\r\n task: PropTypes.object,\r\n updateTask: PropTypes.func.isRequired,\r\n handleOnChangeStatus: PropTypes.func.isRequired,\r\n isOpenInfoModal: PropTypes.string.isRequired,\r\n};\r\n\r\nInfoModal.defaultProps = {\r\n updating: false,\r\n task: {},\r\n};\r\n\r\nexport default InfoModal;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Table } from '@8base/boost';\r\nimport Loader from '../../../../shared/components/ui/Loader';\r\nimport TaskForm from '../../../leads/components/forms/TaskForm';\r\nimport TableRows from './TableRows';\r\nimport InfoModal from './InfoModal';\r\nimport styled from 'styled-components';\r\n\r\nconst Body = styled(Table.Body)`\r\n min-height: 400px;\r\n`;\r\n\r\nconst TableBody = (props) => {\r\n const {\r\n users,\r\n leads,\r\n data,\r\n tasks,\r\n loading,\r\n taskFormIsOpen,\r\n columns,\r\n selectedTasks,\r\n handleInfoModal,\r\n activeColumns,\r\n taskCheckboxChangeHandler,\r\n handleOnChangeStatus,\r\n isOpenInfoModal,\r\n handleOnDeleteTask,\r\n onCloseInfoModal,\r\n openTaskFormDialog,\r\n closeTaskFormDialog,\r\n refetchTasks,\r\n } = props;\r\n\r\n return (\r\n <>\r\n {loading ? (\r\n \r\n ) : (\r\n \r\n {(task) => (\r\n <>\r\n \r\n \r\n {taskFormIsOpen && (\r\n task.id === t.id)}\r\n onSuccess={refetchTasks}\r\n isOpen={taskFormIsOpen}\r\n onClose={closeTaskFormDialog}\r\n />\r\n )}\r\n \r\n )}\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nTableBody.propTypes = {\r\n users: PropTypes.array.isRequired,\r\n leads: PropTypes.object.isRequired,\r\n data: PropTypes.array.isRequired,\r\n tasks: PropTypes.array.isRequired,\r\n loading: PropTypes.bool.isRequired,\r\n taskFormIsOpen: PropTypes.bool.isRequired,\r\n columns: PropTypes.string.isRequired,\r\n selectedTasks: PropTypes.array.isRequired,\r\n activeColumns: PropTypes.array.isRequired,\r\n isOpenInfoModal: PropTypes.array.isRequired,\r\n taskCheckboxChangeHandler: PropTypes.func.isRequired,\r\n onCloseInfoModal: PropTypes.func.isRequired,\r\n handleInfoModal: PropTypes.func.isRequired,\r\n openTaskFormDialog: PropTypes.func.isRequired,\r\n closeTaskFormDialog: PropTypes.func.isRequired,\r\n handleOnChangeStatus: PropTypes.func.isRequired,\r\n handleOnDeleteTask: PropTypes.func.isRequired,\r\n refetchTasks: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default TableBody;\r\n","import React from 'react';\r\nimport { Table, Pagination } from '@8base/boost';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\n\r\nconst PaginationContainer = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n font-size: 1.2rem;\r\n padding: 0 1rem;\r\n\r\n & > div > div > *::before {\r\n background-color: var(--color-primary);\r\n transition: all 0.2s;\r\n }\r\n\r\n & > div > span {\r\n display: inline-block;\r\n padding: 0.5rem 1.5rem;\r\n border: solid 1px #d0d7dd;\r\n border-radius: 5px;\r\n }\r\n`;\r\n\r\nconst TableFooter = (props) => {\r\n const { data, page, handlePageChange } = props;\r\n\r\n return (\r\n \r\n \r\n {\r\n handlePageChange(page);\r\n }}\r\n defaultPage={1}\r\n total={data.length}\r\n page={page}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nTableFooter.propTypes = {\r\n data: PropTypes.array.isRequired,\r\n page: PropTypes.string.isRequired,\r\n handlePageChange: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default TableFooter;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Dropdown, Menu } from '@8base/boost';\r\nimport { DropdownBodyOnTable } from 'shared/components';\r\nimport sortTableIcon from '../../../../shared/assets/images/table-sort-grey.svg';\r\nimport styled from 'styled-components';\r\n\r\nconst CustomGridCell = styled.div`\r\n grid-area: ${(props) => props.area};\r\n ${(props) => (props.justifySelf ? `justify-self:${props.justifySelf} ` : '')};\r\n`;\r\n\r\nconst SortTableMenu = styled(Menu)`\r\n padding-bottom: 0 !important;\r\n`;\r\n\r\nconst SortTableBtn = styled.div`\r\n display: flex;\r\n border-radius: 5px;\r\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\r\n padding: 0.5rem 1rem;\r\n box-sizing: border-box;\r\n &::before {\r\n content: '';\r\n display: inline-block;\r\n height: 2.5rem;\r\n width: 2rem;\r\n\r\n background-color: ${({ active }) => (active ? '#3db4aa' : '#aeb7be')};\r\n -webkit-mask-image: url(${(props) => props.src});\r\n -webkit-mask-size: cover;\r\n mask-image: url(${(props) => props.src});\r\n mask-size: cover;\r\n }\r\n\r\n &:focus::before {\r\n background-color: #3db4aa;\r\n }\r\n`;\r\n\r\nconst SortTableConfirm = styled.div`\r\n border-top: 1px solid #d0d7dd;\r\n padding: 10px 15px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n`;\r\n\r\nconst SortTableConfirmOptions = styled.span`\r\n color: ${(props) => (props.active ? '#3db4aa' : '#384A59')};\r\n cursor: pointer;\r\n`;\r\n\r\nconst StyledDropdownBodyOnTable = styled(DropdownBodyOnTable)`\r\n transform: translate3d(1720px, 167px, 0px) !important;\r\n`;\r\n\r\nconst MenuItem = styled(Menu.Item)`\r\n color: #323c47 !important;\r\n padding: 0 !important;\r\n height: auto !important;\r\n`;\r\n\r\nconst RadioButton = styled.span`\r\n height: 22px;\r\n width: 22px;\r\n border: 1px solid #d0d7dd;\r\n border-radius: 4px;\r\n display: inline-block;\r\n position: absolute;\r\n left: 15px;\r\n\r\n &::after {\r\n height: 10px;\r\n width: 10px;\r\n content: '';\r\n display: block;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n background-color: #3db4aa;\r\n opacity: 0;\r\n }\r\n`;\r\n\r\nconst RadioInput = styled.input`\r\n display: none;\r\n &:checked ~ label span::after {\r\n opacity: 1;\r\n }\r\n`;\r\n\r\nconst RadioLabel = styled.label`\r\n padding: 10px 30px 10px 50px;\r\n display: flex;\r\n align-items: center;\r\n width: 100%;\r\n cursor: pointer;\r\n`;\r\n\r\nconst OnTopHideShowColumns = (props) => {\r\n const {\r\n headers,\r\n hideShowColumns,\r\n tableSortHandler,\r\n handleHideShowColumns,\r\n confirmSortTableHandler,\r\n cancelSortTableHandler,\r\n } = props;\r\n\r\n const sortColumns = Object.entries(headers).map(([identifier, column]) => {\r\n return (\r\n {}}>\r\n \r\n tableSortHandler(identifier)}>\r\n \r\n {column.value}\r\n \r\n \r\n );\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {({ closeDropdown }) => (\r\n \r\n {sortColumns}\r\n \r\n {\r\n confirmSortTableHandler(closeDropdown);\r\n }}>\r\n Accept\r\n \r\n {\r\n cancelSortTableHandler(closeDropdown);\r\n }}>\r\n Cancel\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nOnTopHideShowColumns.propTypes = {\r\n headers: PropTypes.array.isRequired,\r\n hideShowColumns: PropTypes.bool.isRequired,\r\n tableSortHandler: PropTypes.func.isRequired,\r\n handleHideShowColumns: PropTypes.func.isRequired,\r\n confirmSortTableHandler: PropTypes.func.isRequired,\r\n cancelSortTableHandler: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default OnTopHideShowColumns;\r\n","import React from 'react';\r\nimport { YesNoDialog } from 'shared/components';\r\n\r\nconst DialogDeleteLeadTask = (props) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default DialogDeleteLeadTask;\r\n","import React from 'react';\r\nimport { YesNoDialog } from 'shared/components';\r\n\r\nconst DialogUpdateLeadTaskStatus = (props) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default DialogUpdateLeadTaskStatus;\r\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport { Paper, Grid, SelectField, Table } from '@8base/boost';\r\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\r\nimport { onErrorMixinFC } from '../../shared/mixins';\r\nimport { SORT_OPTIONS, TABLE_COLUMNS, ACTIVE_COLUMNS } from './lead-task-model';\r\nimport * as R from 'ramda';\r\nimport { useAgency } from 'shared/hooks/useAgency';\r\nimport { useUser } from 'shared/hooks/useUser';\r\nimport TableHeader from './components/LeadTasksListTable/TableHeader';\r\nimport TableBody from './components/LeadTasksListTable/TableBody';\r\nimport TableFooter from './components/LeadTasksListTable/TableFooter';\r\nimport OnTopHideShowColumns from './components/LeadTasksListTable/OnTopHideShowColumns';\r\nimport { leadTaskMap, leadTaskMapTable } from './lead-task-utils';\r\nimport { fetchLeadTask, updateLeadTask, deleteLeadTask } from './lead-task-actions';\r\nimport { fetchLeadTaskTypes } from '../leads/leads-actions';\r\nimport { fetchLeads } from '../leads/leads-actions';\r\nimport { fetchManagerAndAgents } from '../users/user-actions';\r\nimport { fetchAgents } from '../agents/agents-actions';\r\nimport { SearchInput, Margin } from 'shared/components';\r\nimport { FILTER_DATA as FILTER_DATA_LEADS } from '../leads/leads-model';\r\nimport { FILTER_DATA, FILTER_CATEGORIES } from './lead-task-model';\r\nimport { TASKS_INITIAL_STATUS, TASK_STATUS_CLOSED } from '../../shared/constants';\r\nimport DialogDeleteLeadTask from './components/DialogDeleteLeadTask';\r\nimport DialogUpdateLeadTaskStatus from './components/DialogUpdateLeadTaskStatus';\r\nimport { getActiveAgency } from '../../shared/utils/agency-utils';\r\nimport * as toast from '../../shared/components/toast/Toast';\r\nimport { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\nimport { OnFetchManagerAndAgentUsersEvent } from 'modules/users/user-events';\r\nimport { OnLeadsListEvent } from 'modules/leads/leads-events';\r\nimport {\r\n OnLeadTaskDelete,\r\n OnLeadTaskError,\r\n OnLeadTaskList,\r\n OnLeadTaskUpdate,\r\n} from './lead-task-events';\r\nimport { OnAgentsError, OnAgentsListEvent } from 'modules/agents/agents-events';\r\n\r\nconst StyledLayout = styled(Grid.Layout)`\r\n padding: 16px;\r\n`;\r\n\r\nconst StyledBox = styled(Grid.Box)`\r\n display: grid;\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n flex-direction: row !important;\r\n`;\r\n\r\nconst ButtonLink = styled(Link)`\r\n display: flex;\r\n border-radius: 4px;\r\n border: solid 1px #d0d7dd;\r\n padding: 0.6rem 1rem;\r\n box-sizing: border-box;\r\n text-decoration: none;\r\n color: #2c3e50;\r\n`;\r\n\r\nconst columnsSize =\r\n '80px minmax(150px, 1fr) minmax(150px, 1fr) 125px 125px 125px 150px minmax(150px, 1fr) 150px';\r\n\r\nexport const LeadTaskView = () => {\r\n const agency = useAgency();\r\n const [user] = useUser();\r\n const [users, setUsers] = useState([]);\r\n const [leads, setLeads] = useState([]);\r\n const [page, setPage] = useState('');\r\n const [sort, setSort] = useState('');\r\n // eslint-disable-next-line no-unused-vars\r\n const [agents, setAgents] = useState([]);\r\n const [leadTasks, setLeadTasks] = useState([]);\r\n const [leadTaskForUpdateOrDelete, setLeadTaskForUpdateOrDelete] = useState(null);\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [taskFormIsOpen, setTaskFormIsOpen] = useState(false);\r\n const [selectedTasks, setSelectedTasks] = useState([]);\r\n const [isOpenInfoModal, setIsOpenInfoModal] = useState([]);\r\n const [sortTableActive, setSortTableActive] = useState(false);\r\n const [statusDialogOpen, setStatusDialogOpen] = useState(false);\r\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\r\n const [tableColumns, setTableColumns] = useState(R.clone(TABLE_COLUMNS));\r\n const [activeColumns, setActiveColumns] = useState(R.clone(ACTIVE_COLUMNS));\r\n const [filterCategories, setFilterCategories] = useState(R.clone(FILTER_CATEGORIES));\r\n const [filters, setFilters] = useState({\r\n search: '',\r\n ...R.clone(FILTER_DATA),\r\n });\r\n\r\n const getTasks = useCallback(() => {\r\n const filterData = user.id\r\n ? {\r\n assignedTo: user.id,\r\n onStatus: TASKS_INITIAL_STATUS,\r\n agency: getActiveAgency().id,\r\n }\r\n : {};\r\n setIsLoading(true);\r\n fetchLeadTask({ filterData });\r\n }, [user.id]);\r\n\r\n const handleOnClickBtnSearch = () => {\r\n setIsLoading(true);\r\n const filterData = user.id\r\n ? {\r\n assignedTo: user.id,\r\n }\r\n : {};\r\n\r\n fetchLeadTask({ search: filters.search, filterData });\r\n };\r\n\r\n const handleExecuteSearch = (value) => {\r\n setSort(value);\r\n setIsLoading(true);\r\n fetchLeadTask({\r\n search: filters.search,\r\n sortData: sort,\r\n filterData: { ...R.clone(FILTER_DATA), assignedTo: user.id },\r\n });\r\n };\r\n\r\n const handleOnChange = (value) => {\r\n handleExecuteSearch(value);\r\n };\r\n\r\n const handlePageChange = (pageNum) => {\r\n const filterData = user.id\r\n ? {\r\n assignedTo: user.id,\r\n }\r\n : {};\r\n setIsLoading(true);\r\n setPage(pageNum);\r\n fetchLeadTask({ page: pageNum, filterData });\r\n setSelectedTasks([]);\r\n };\r\n const handleHideShowColumns = () => setSortTableActive(!sortTableActive);\r\n\r\n const taskCheckboxChangeHandler = (id) => {\r\n let newList;\r\n\r\n if (selectedTasks.includes(id)) {\r\n newList = selectedTasks.filter((oldId) => oldId !== id);\r\n } else {\r\n newList = [...selectedTasks, id];\r\n }\r\n setSelectedTasks(newList);\r\n };\r\n\r\n const headerCheckboxHandler = () => {\r\n let allTasks;\r\n\r\n if (selectedTasks.length === leadTasks.length) {\r\n allTasks = [];\r\n } else {\r\n allTasks = leadTasks.map((lead) => lead.id);\r\n }\r\n setSelectedTasks(allTasks);\r\n };\r\n const tableSortHandler = (sortIdentifier) => {\r\n const newColumnList = { ...tableColumns };\r\n newColumnList[sortIdentifier] = { ...tableColumns[sortIdentifier] };\r\n newColumnList[sortIdentifier].active = !newColumnList[sortIdentifier].active;\r\n setTableColumns(newColumnList);\r\n };\r\n\r\n const confirmSortTableHandler = (closeDropdown) => {\r\n const newActiveList = [];\r\n for (const key in tableColumns) {\r\n const columnClone = { ...tableColumns[key] };\r\n if (columnClone.active) {\r\n newActiveList.push(columnClone.value);\r\n }\r\n }\r\n setActiveColumns(newActiveList);\r\n setSortTableActive(false);\r\n closeDropdown();\r\n };\r\n\r\n const cancelSortTableHandler = (closeDropdown) => {\r\n const newLeadsColumns = { ...tableColumns };\r\n for (const key in newLeadsColumns) {\r\n newLeadsColumns[key] = { ...tableColumns[key] };\r\n if (activeColumns.includes(newLeadsColumns[key].value)) {\r\n newLeadsColumns[key].active = true;\r\n }\r\n }\r\n\r\n setTableColumns(newLeadsColumns);\r\n setSortTableActive(false);\r\n closeDropdown();\r\n };\r\n\r\n const handleInfoModal = (id) => {\r\n setLeadTaskForUpdateOrDelete(leadTasks.find((t) => id === t.id));\r\n setIsOpenInfoModal([...isOpenInfoModal, id]);\r\n };\r\n\r\n const openTaskFormDialog = () => {\r\n setTaskFormIsOpen(true);\r\n setIsOpenInfoModal([]);\r\n };\r\n\r\n const closeTaskFormDialog = () => {\r\n setTaskFormIsOpen(false);\r\n setIsOpenInfoModal([]);\r\n };\r\n\r\n const onCloseInfoModal = () => {\r\n setIsOpenInfoModal([]);\r\n };\r\n\r\n /**\r\n * Change the Task Status\r\n */\r\n\r\n const handleOnChangeStatus = (task) => {\r\n setLeadTaskForUpdateOrDelete(task);\r\n setStatusDialogOpen(!statusDialogOpen);\r\n };\r\n\r\n const handleChangeStatusYes = () => {\r\n handleChangeStatus(leadTaskForUpdateOrDelete);\r\n };\r\n\r\n const handleChangeStatusNo = () => {\r\n handleOnChangeStatus();\r\n };\r\n const handleChangeStatus = (leadTaskForUpdate) => {\r\n updateLeadTask({ id: leadTaskForUpdate.id, status: TASK_STATUS_CLOSED });\r\n handleChangeStatusNo();\r\n };\r\n\r\n /**\r\n * Delete the Task\r\n */\r\n\r\n const handleOnDeleteTask = (leadTaskForDelete = null) => {\r\n setDeleteDialogOpen(!deleteDialogOpen);\r\n if (leadTaskForDelete) setLeadTaskForUpdateOrDelete(leadTaskForDelete);\r\n };\r\n\r\n const handleDeleteTaskYes = () => {\r\n handleDeleteTask(leadTaskForUpdateOrDelete);\r\n };\r\n const handleDeleteTaskNo = () => {\r\n handleOnDeleteTask();\r\n };\r\n\r\n const handleDeleteTask = (leadTaskForDelete) => {\r\n deleteLeadTask(leadTaskForDelete.id);\r\n handleDeleteTaskNo();\r\n };\r\n\r\n const handleOnChangeFilter = (name, value) => {\r\n setFilters({\r\n ...filters,\r\n [name]: value,\r\n });\r\n };\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, (data) => {\r\n if (data) {\r\n setUsers(data.usersList.items);\r\n setIsLoading(false);\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnLeadsListEvent, (data) => {\r\n if (data) {\r\n setLeads(data.leadsList);\r\n setIsLoading(false);\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnLeadTaskError, (err) => {\r\n if (err) {\r\n onErrorMixinFC(err);\r\n setIsLoading(false);\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnLeadTaskList, (data) => {\r\n if (data) {\r\n setIsLoading(false);\r\n setLeadTasks(data.leadTasksList.items.map(leadTaskMap));\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnLeadTaskUpdate, (data) => {\r\n if (data) {\r\n const updatedLeadTask = data.leadTaskUpdate;\r\n toast.success(`Task \"${updatedLeadTask.title}\" Updated!`);\r\n\r\n if (updatedLeadTask.status === TASK_STATUS_CLOSED) {\r\n setLeadTaskForUpdateOrDelete(null);\r\n }\r\n setIsLoading(true);\r\n getTasks();\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnLeadTaskDelete, (data) => {\r\n if (data.leadTaskDelete.success) {\r\n setIsLoading(false);\r\n setLeadTaskForUpdateOrDelete(null);\r\n getTasks();\r\n toast.success('Task Deleted!');\r\n } else {\r\n setIsLoading(false);\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnAgentsError, (err) => {\r\n if (err) {\r\n onErrorMixinFC(err);\r\n setIsLoading(false);\r\n }\r\n });\r\n\r\n useSimpleSubscription(OnAgentsListEvent, (data) => {\r\n if (data) {\r\n const filterCategoriesClone = R.clone(filterCategories);\r\n\r\n filterCategoriesClone.assignedTo.options = data.agentsList.items.map((agent) => ({\r\n label: `${agent.user.firstName} ${agent.user.lastName}`,\r\n value: agent.id,\r\n }));\r\n setFilterCategories(filterCategoriesClone);\r\n setAgents(\r\n data.agentsList.items.filter((agent) => {\r\n return agent.agency.id === agency.id;\r\n }),\r\n );\r\n }\r\n });\r\n\r\n useEffect(() => {\r\n fetchManagerAndAgents(agency.id);\r\n fetchLeads(1, {\r\n ...R.clone(FILTER_DATA_LEADS),\r\n agency: agency.id,\r\n });\r\n setPage(1);\r\n }, [agency.id]);\r\n\r\n useEffect(() => {\r\n setIsLoading(true);\r\n fetchLeadTaskTypes();\r\n fetchAgents();\r\n }, [agency.id]);\r\n\r\n useEffect(() => {\r\n getTasks();\r\n }, [getTasks]);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n handleOnChangeFilter('search', value)}\r\n placeholder=\"Search tasks\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n handleOnChange(value);\r\n },\r\n }}\r\n placeholder=\"Sort tasks by\"\r\n options={SORT_OPTIONS}\r\n />\r\n \r\n Tasks Calendar\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n","import React, { useState } from 'react';\nimport { OnSessionFetch } from '../session/session-events';\nimport { getUserAgencyRoles } from '../utils/agency-utils';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\n\n/**\n * High order component for pass by props all the user\n * data stored in the session.\n *\n * @param {React.Component} WrappedComponent component to add session data\n *\n * @returns {React.Component} wrapped component with the session data\n */\nconst withSession = (WrappedComponent) => (props) => {\n const {\n user: { selectedAgency },\n } = OnSessionFetch.get();\n const [agencyId, setAgencyId] = useState(selectedAgency && selectedAgency.id);\n const [userAgencyRoles, setUserAgencyRol] = useState(getUserAgencyRoles());\n const session = OnSessionFetch.get();\n\n useSubscription(\n OnSessionFetch,\n ({ user: { selectedAgency } }) => {\n const userAgencyRoles = getUserAgencyRoles();\n\n if (selectedAgency) {\n setAgencyId(selectedAgency.id);\n }\n\n if (userAgencyRoles) {\n setUserAgencyRol(userAgencyRoles);\n }\n },\n [],\n );\n\n return (\n \n );\n};\n\nexport default withSession;\n","import React from 'react';\r\nimport { Paragraph } from '@8base/boost';\r\nimport styled from 'styled-components';\r\nimport { PropTypes } from 'prop-types';\r\nimport { YesNoDialog } from '../../../../shared/components';\r\n\r\nconst BoldText = styled.span`\r\n font-weight: bold;\r\n`;\r\n\r\n/**\r\n * This Component is a Dialog to select yes or not\r\n * change the task status\r\n *\r\n * @param {boolean} isOpen - a boolean, could be true or false, true Open this dialog\r\n * @param {Function} onYes - Function To Proceed to the status change\r\n * @param {Function} onClose - Function To close this Dialog changing the isOpen Value\r\n */\r\n\r\nconst ChangeTaskStatus = ({ isOpen, onYes, onClose }) => {\r\n const text = (\r\n \r\n {`Are you sure you want to Change the Status of this Task?`}\r\n You can Change this later.\r\n \r\n );\r\n return (\r\n \r\n );\r\n};\r\n\r\nChangeTaskStatus.propTypes = {\r\n isOpen: PropTypes.bool.isRequired,\r\n onYes: PropTypes.func.isRequired,\r\n onClose: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default React.memo(ChangeTaskStatus);\r\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Paper } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { useHistory } from 'react-router-dom';\nimport FullCalendar from '@fullcalendar/react';\nimport dayGridPlugin from '@fullcalendar/daygrid';\nimport interactionPlugin from '@fullcalendar/interaction';\nimport timeGridPlugin from '@fullcalendar/timegrid';\nimport { FILTER_DATA } from '../leads/leads-model';\nimport {\n CALENDAR_EVENT_RENDER,\n CALENDAR_EVENT_TIME_FORMAT,\n CALENDAR_HEADER,\n} from '../lead-task/lead-task-model';\nimport { fetchLeads } from '../leads/leads-actions';\nimport { fetchLeadTask, updateLeadTask, fetchLeadTaskDetail } from '../lead-task/lead-task-actions';\nimport { fetchManagerAndAgents } from '../users/user-actions';\nimport { TASK_STATUS_CLOSED, TASKS_INITIAL_STATUS } from '../../shared/constants';\nimport { leadTaskMapTable } from '../lead-task/lead-task-utils';\nimport withSession from '../../shared/hoc/withSession';\nimport Loader from '../../shared/components/ui/Loader';\nimport TaskForm from '../leads/components/forms/TaskForm';\nimport ChangeTaskStatus from './components/dialogs/ChangeTaskStatus';\nimport InfoModal from '../lead-task/components/LeadTasksListTable/InfoModal';\nimport '@fullcalendar/core/main.css';\nimport '@fullcalendar/daygrid/main.css';\nimport '@fullcalendar/timegrid/main.css';\nimport styled from 'styled-components';\nimport * as toast from '../../shared/components/toast/Toast';\nimport * as R from 'ramda';\nimport {\n OnLeadTaskDetails,\n OnLeadTaskList,\n OnLeadTaskUpdate,\n} from 'modules/lead-task/lead-task-events';\nimport { OnFetchManagerAndAgentUsersEvent } from 'modules/users/user-events';\nimport { OnLeadsListEvent } from 'modules/leads/leads-events';\n\nconst StyledPaper = styled(Paper)`\n margin: 25px;\n > .fc {\n z-index: 0;\n & .fc-event {\n cursor: pointer;\n }\n /* Calendar Header Sytles */\n > .fc-header-toolbar {\n padding: 25px 25px 0;\n & button.fc-button-primary {\n color: #fff;\n background-color: #fff;\n border-color: #cfd7de;\n color: #2c3e50;\n padding: 9px 15px;\n text-transform: capitalize;\n &.fc-button-active {\n background-color: #efefef;\n }\n }\n }\n & .fc-widget-header {\n background: #f4f7f9;\n border-color: #e8eff5;\n border-right: 0;\n border-left: 0;\n > table > thead > tr {\n color: #7d828c;\n font-size: 1.2rem;\n line-height: 1.6rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n > th {\n vertical-align: middle;\n height: 35px;\n }\n }\n }\n /** Week View Styles */\n & .fc-timeGridWeek-view > table {\n > tbody.fc-body {\n > tr > .fc-widget-content > .fc-day-grid > .fc-row.fc-week.fc-widget-content .fc-today {\n background: #e7eeed99;\n }\n & .fc-scroller.fc-time-grid-container > .fc-time-grid {\n & .fc-content-skeleton .fc-event {\n font-size: 0.95em;\n padding: 3px;\n border: 1px solid #3db4aa;\n background-color: #3db4aa;\n &.fc-status-closed {\n border: 1px solid lightgray;\n background-color: lightgray;\n > .fc-content > .fc-title {\n color: gray;\n }\n }\n }\n & td.fc-today {\n background: #e7eeed99;\n }\n & .fc-minor td {\n border-top-style: none;\n }\n }\n }\n }\n /** Month View Styles */\n & .fc-dayGridMonth-view > table {\n > thead.fc-head {\n border: 0;\n }\n > tbody.fc-body {\n & .fc-scroller.fc-day-grid-container {\n height: auto !important;\n & .fc-content-skeleton .fc-event {\n font-size: 1em;\n border: none;\n background: transparent;\n &.fc-status-closed > .fc-content > .fc-title {\n color: lightgray;\n }\n & .fc-time {\n font-weight: normal;\n color: #999;\n &:before {\n content: '';\n width: 10px;\n height: 10px;\n border-radius: 100%;\n background: #3db4aa;\n display: inline-block;\n margin-right: 5px;\n }\n &:after {\n content: ' :';\n }\n }\n & .fc-title {\n color: #333;\n }\n }\n }\n & .fc-day-grid {\n border-bottom: 0;\n > .fc-row.fc-week.fc-widget-content {\n max-height: 170px;\n }\n }\n & td {\n border-color: #e8eff5;\n &.fc-day-top {\n padding: 5px;\n > .fc-day-number {\n height: 22px;\n width: 23px;\n border-radius: 100%;\n margin: 0 auto;\n float: inherit;\n display: flex;\n justify-content: center;\n }\n }\n &.fc-today {\n background: #fff;\n > span.fc-day-number {\n background: #3db4aa;\n color: #fff;\n }\n }\n }\n }\n }\n }\n`;\n\n/**\n * This component Show a Calendar with all the Tasks in the system\n * could be open tasks or closed.\n *\n * @param {object} props - This Object come from the User Session from the HOC withSession\n */\n\nconst CalendarView = (props) => {\n const history = useHistory();\n const [tasks, setTasks] = useState([]);\n const [leads, setLeads] = useState([]);\n const [users, setUsers] = useState([]);\n const [loading, setLoading] = useState(true);\n const [modalData, setModalData] = useState();\n const [selectedTask, setSelectedTask] = useState();\n const [selectedDate, setSelectedDate] = useState();\n const [isOpenInfoModal, setIsOpenInfoModal] = useState([]);\n const [taskFormIsOpen, setTaskFormIsOpen] = useState(false);\n const [isOpenChangeTaskStatus, setIsOpenChangeTaskStatus] = useState(false);\n const [updating, setUpdating] = useState(false);\n const [currentFilter] = useState({\n ...R.clone(FILTER_DATA),\n agency: props.activeAgencyId,\n });\n\n useEventSubscription(OnLeadTaskList, (data) => {\n setTasks(data.leadTasksList.items);\n setLoading(false);\n });\n\n useEventSubscription(OnLeadTaskDetails, (data) => {\n setModalData(leadTaskMapTable(data.leadTask));\n setSelectedTask(data.leadTask);\n handleInfoModal(data.leadTask.id);\n setLoading(false);\n });\n\n useEventSubscription(OnFetchManagerAndAgentUsersEvent, (data) => {\n setUsers(data.usersList.items);\n setLoading(false);\n });\n\n useEventSubscription(OnLeadsListEvent, (data) => {\n setLeads(data.leadsList);\n setLoading(false);\n });\n\n useEventSubscription(OnLeadTaskUpdate, (data) => {\n onCloseInfoModal();\n getTasks();\n toast.success('Success', 'Task successfully updated');\n setLoading(false);\n setUpdating(false);\n });\n\n /**\n * this constant is here because use a function from this component\n */\n const customButtons = {\n toTasksList: {\n text: 'Tasks List',\n click: () => {\n history.push('/tasks/list');\n },\n },\n createTask: {\n text: 'Create Task',\n click: () => {\n setSelectedDate();\n openTaskForm();\n },\n },\n };\n\n /**\n * Method for get the Tasks by the logged user\n */\n const getTasks = () => {\n const {\n user: { id },\n } = props.session;\n const filterData = id\n ? {\n assignedTo: id,\n }\n : {};\n\n fetchLeadTask({ filterData });\n };\n\n /**\n * This method obtain the\n */\n const getLeads = () => {\n const page = 1;\n fetchLeads(page, currentFilter);\n };\n\n /**\n * This Method Open the Task Form Dialog and Close the Info Modal\n */\n const openTaskFormDialog = () => {\n setIsOpenInfoModal([]);\n setTaskFormIsOpen(true);\n };\n\n /**\n * This Method Close Task Form Dialog and Clear the Selected Task\n */\n const closeTaskFormDialog = () => {\n onCloseInfoModal();\n setSelectedTask();\n setTaskFormIsOpen(false);\n };\n\n /**\n * This Method Assign the Id to he State to Open the Info Modal\n *\n * @param {string} id - The Task ID\n */\n const handleInfoModal = (id) => {\n setIsOpenInfoModal((state) => [...state, id]);\n };\n\n /**\n * This Method Close The Info Modal ans Clear the Selected Task\n */\n const onCloseInfoModal = () => {\n setSelectedTask();\n setIsOpenInfoModal([]);\n };\n\n /**\n * This method put the date data in the state\n *\n * @param {object} event - refer to the event click\n */\n const dateClick = (event) => {\n setSelectedDate(event);\n openTaskForm();\n };\n\n /**\n * This method get the task id from the event click\n * and make a call to the api to obtain the selected Task.\n *\n * @param {object} event - refer to the event click.\n */\n const eventClick = (event) => {\n fetchLeadTaskDetail(event.event._def.publicId);\n };\n\n /**\n * This method open the Task Form\n */\n const openTaskForm = () => {\n openTaskFormDialog();\n };\n\n /**\n * This method get the users belong to the current agency\n */\n const getTasksUsers = () => {\n fetchManagerAndAgents(props.activeAgencyId);\n };\n\n /**\n * Method to Open the Yes or No Change Status Dialog\n */\n const handleOnChangeStatus = () => {\n setIsOpenChangeTaskStatus(!isOpenChangeTaskStatus);\n };\n\n /**\n * On Yes Change Status Action\n */\n const handleChangeStatusYes = () => {\n setUpdating(true);\n handleChangeStatus(selectedTask);\n };\n\n /**\n * On No Change Status Action\n */\n const handleChangeStatusNo = () => {\n handleOnChangeStatus();\n };\n\n /**\n * This Method Change the State of the Task\n *\n * @param {object} task - the selected Task Object\n */\n const handleChangeStatus = (task) => {\n if (task.status === TASKS_INITIAL_STATUS) {\n updateLeadTask({ id: task.id, status: TASK_STATUS_CLOSED });\n } else {\n updateLeadTask({ id: task.id, status: TASKS_INITIAL_STATUS });\n }\n handleChangeStatusNo();\n };\n\n useEffect(() => {\n if (loading) {\n getTasks();\n getTasksUsers();\n getLeads();\n }\n });\n\n return (\n \n {loading ? (\n \n ) : (\n \n )}\n {taskFormIsOpen && (\n \n )}\n \n \n \n );\n};\n\nCalendarView.propTypes = {\n activeAgencyId: PropTypes.string.isRequired,\n session: PropTypes.object.isRequired,\n user: PropTypes.object.isRequired,\n id: PropTypes.string.isRequired,\n};\n\nexport default withSession(CalendarView);\n","import React, { useCallback, useRef } from 'react';\nimport SearchInput from '../../../email/components/SearchInput';\nimport { Transition } from 'react-transition-group';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Container = styled.div`\n transition-property: width, opacity;\n transition-duration: 0.7s;\n transition-timing-function: ease-out;\n ${({ state }) => {\n switch (state) {\n case 'entering':\n case 'entered':\n return `\n width: 315px;\n opacity: 1;\n `;\n case 'exiting':\n case 'exited':\n return `\n width: 0px;\n opacity: 0;\n `;\n default:\n break;\n }\n }}\n`;\n\n/**\n * Search input component customized for lead history parent\n *\n * @param {object} props - React component's prop object\n * @param {boolean} props.active - Makes the component appear or disappear\n * @param {Function} props.onSearch - Function to call when the search button is pressed\n *\n * @returns {React.FC} The component to render\n */\nfunction LeadHistorySearch({ active, onSearch }) {\n const timeoutRef = useRef(null);\n\n const handleChange = useCallback(\n (value) => {\n clearTimeout(timeoutRef.current);\n\n timeoutRef.current = setTimeout(() => onSearch(value), 500);\n },\n [onSearch],\n );\n\n return (\n \n {(state) => (\n \n \n \n )}\n \n );\n}\n\nLeadHistorySearch.propTypes = {\n active: PropTypes.bool,\n onSearch: PropTypes.func.isRequired,\n};\n\nLeadHistorySearch.defaultProps = {\n active: false,\n};\n\nexport default LeadHistorySearch;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchleadHistoryEvent = createEvent();\n\nexport const OnFetchleadHistoryError = createEvent();\n\nexport const OnFetchFullLeadhistoryEvent = createEvent();\n\nexport const OnFetchFullLeadhistoryError = createEvent();\n","import { FETCH_LEAD_HISTORY_QUERY_RESOLVER } from './leads-history-queries';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport { RESULTS_PER_PAGE } from './leads-history-model';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n OnFetchFullLeadhistoryError,\n OnFetchFullLeadhistoryEvent,\n OnFetchleadHistoryError,\n OnFetchleadHistoryEvent,\n} from './leads-history-events';\n\n/**\n * Fetches the lead history items\n *\n * @param {string} leadId - Id of the lead\n * @param {string} userId - Id of the user\n * @param {string} agencyId - Id of the agency\n * @param {string} type - Type filter for the history items\n * @param {number} page - Page to fetch the history items\n *\n * @returns {Promise} The request result\n */\nexport const fetchLeadHistory = async (leadId, userId, agencyId, type, page = 1) => {\n const client = OnApolloClient.get();\n const first = RESULTS_PER_PAGE;\n const skip = (page - 1) * first;\n const orderBy = 'createdAt_DESC';\n\n const filter = { lead: { id: { equals: leadId } } };\n\n if (type) {\n filter.entity = { equals: type };\n }\n\n try {\n const response = await client.query({\n query: FETCH_LEAD_HISTORY_QUERY_RESOLVER,\n fetchPolicy: 'network-only',\n variables: { filter, user: userId, agency: agencyId, first, skip, orderBy },\n });\n log('fetchLeadHistory', response.data);\n OnFetchleadHistoryEvent.dispatch(response.data);\n\n return response.data;\n } catch (err) {\n error('fetchLeadHistory', err);\n OnFetchleadHistoryError.dispatch(err);\n }\n};\n\n/**\n * Fetches the all lead history\n *\n * @param {string} leadId - The id of the lead\n * @param {string} userId - Id of the user\n * @param {string} agencyId - Id of the agency\n * @param {string} type - Type of history items to filter\n * @returns {Promise} The request result\n */\nexport const fetchFullLeadHistory = async (leadId, userId, agencyId, type) => {\n const client = OnApolloClient.get();\n let response = null;\n const orderBy = 'createdAt_DESC';\n const filter = { lead: { id: { equals: leadId } } };\n\n if (type) {\n filter.entity = { equals: type };\n }\n\n try {\n response = await client.query({\n query: FETCH_LEAD_HISTORY_QUERY_RESOLVER,\n variables: { filter, user: userId, agency: agencyId, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchFullLeadHistory');\n return OnFetchFullLeadhistoryError.dispatch(e);\n }\n\n log('fetchFullLeadHistory', response.data);\n return OnFetchFullLeadhistoryEvent.dispatch(response.data);\n};\n","import React, { useState, useEffect, useRef, useCallback } from 'react';\nimport styled, { keyframes, css } from 'styled-components';\nimport { Transition } from 'react-transition-group';\nimport {\n Card,\n Row,\n Loader,\n Column,\n Dialog,\n Icon,\n SelectField,\n Grid,\n Switch,\n useModal,\n Pagination,\n} from '@8base/boost';\nimport LeadHistorySearch from './LeadHistorySearch';\nimport { Title } from '../../../../shared/components';\nimport PropTypes from 'prop-types';\nimport { ENTITY_SELECTOR_OPTIONS } from '../leads-history-model';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchLeadHistory, fetchFullLeadHistory } from '../leads-history-action';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport { getHistoryItem, filterItem } from '../leads-history-utils';\nimport FormValues from '../../../../shared/components/forms/FormValues';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport ReactJsonView from 'react-json-view';\nimport { customScrollBar } from '../../../../shared/css/mixins';\nimport { useParams } from 'react-router';\nimport {\n OnFetchFullLeadhistoryError,\n OnFetchFullLeadhistoryEvent,\n OnFetchleadHistoryError,\n OnFetchleadHistoryEvent,\n} from '../leads-history-events';\n\nconst Body = styled(Card.Body)`\n padding: 24px 0px !important;\n height: 100%;\n max-height: 100%;\n ${customScrollBar}\n display: flex;\n flex-direction: column;\n`;\n\nconst Container = styled.div`\n height: ${({ gap }) => (gap ? `calc(100vh - ${gap}px)` : 'auto')};\n max-height: ${({ gap }) => (gap ? `calc(100vh - ${gap}px)` : 'auto')};\n`;\n\nconst slideIn = keyframes`\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n`;\n\nconst slideOut = keyframes`\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n`;\n\nconst CustomColumn = styled(Column)`\n ${(props) =>\n props.mb &&\n `\n & > *:not(:last-child) {\n margin-bottom: ${props.mb}px !important;\n }\n `}\n`;\n\nconst animate = css`\n animation: 0.3s\n ${({ state }) => {\n switch (state) {\n case 'entering':\n return slideIn;\n case 'exiting':\n return slideOut;\n default:\n return '';\n }\n }}\n ease-in-out;\n`;\n\nconst SideBar = styled.div`\n position: fixed;\n background-color: #fff;\n width: 500px;\n max-width: 640px;\n top: 0;\n right: 0;\n height: 100vh;\n box-shadow: 0 0px 3px 3px rgba(50, 50, 93, 0.14);\n transition: width 1s;\n z-index: 2;\n ${(props) =>\n props.fullHistory &&\n `\n width: 640px;\n `}\n\n ${animate}\n`;\n\n/* const TouchableText = styled(Text)`\n font-family: Poppins !important;\n font-size: 13px !important;\n line-height: 20px !important;\n color: #3db4aa !important;\n font-weight: 400 !important;\n cursor: pointer !important;\n\n &:first-letter {\n text-transform: capitalize !important;\n }\n`;\n\n*/\n\nconst Section = styled(Card.Section)`\n padding: 12px 12px !important;\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n margin-top: auto;\n width: 100%;\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nexport const modalId = 'lead-history-modal';\n\nexport const LeadHistory = (props) => {\n const { isOpen, args, closeModal } = useModal(modalId);\n const [items, setItems] = useState({ items: [], filtered: [] });\n const [loading, setLoading] = useState(true);\n const [fullHistory, setFullHistory] = useState(false);\n const [page, setPage] = useState(1);\n // const [load, setLoad] = useState({ completed: false });\n const [difference, setDifference] = useState(null);\n const [info, setInfo] = useState(null);\n const [type, setType] = useState('');\n const [gap, setGap] = useState(0);\n const [count, setCount] = useState(0);\n const bodyRef = useRef(null);\n const { id } = useParams();\n /**\n * Function called when the component is unmounted or\n * the close transition is completed\n */\n const onExited = () => {\n setType('');\n setItems({ items: [], filtered: [] });\n setPage(1);\n setCount(0);\n };\n\n /**\n * Fetches the paginated lead history based on\n * the actual id, page and type parameters\n */\n const fetch = useCallback(() => {\n if (isOpen) {\n if (args) {\n const { user, agency } = args;\n setLoading(true);\n fetchLeadHistory(id, user, agency, type, page);\n }\n }\n }, [args, page, type, isOpen, id]);\n\n /**\n * Effect that triggers everytime the id, page, or type\n * properties change\n */\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n /**\n * Effect that triggers when the full history state changes to true,\n * fetches all of the lead history items of the lead, filtered by the type of entity\n */\n useEffect(() => {\n if (fullHistory) {\n setItems({ items: [], filtered: [] });\n setLoading(true);\n const { lead, user, agency } = args;\n fetchFullLeadHistory(lead, user, agency, type);\n }\n }, [args, fullHistory, type]);\n\n /**\n * Effect that triggers when the component opens, makes the sidebar\n * take the available vertical space on screen\n */\n useEffect(() => {\n if (isOpen) {\n const { top } = bodyRef.current.getBoundingClientRect();\n setGap(top);\n }\n }, [isOpen]);\n\n // Subscriptions for handling data flow\n useEventSubscription(OnFetchleadHistoryEvent, ({ leadHistoriesResolver }) => {\n setItems((items) => ({\n items: [...leadHistoriesResolver.items],\n filtered: [...leadHistoriesResolver.items],\n }));\n setCount(leadHistoriesResolver.count);\n setLoading(false);\n });\n\n useEventSubscription(OnFetchleadHistoryError, () => {\n toast.error('Something happened while getting lead history');\n });\n\n useEventSubscription(OnFetchFullLeadhistoryEvent, ({ leadHistoriesResolver }) => {\n setItems({ items: leadHistoriesResolver.items, filtered: leadHistoriesResolver.items });\n setLoading(false);\n });\n\n useEventSubscription(OnFetchFullLeadhistoryError, (err) => {\n if (err) onErrorMixinFC(err);\n });\n\n /**\n * Filters the items already loaded by a search value parameter given\n */\n const handleSearch = useCallback(\n (value) => {\n setItems((state) => ({\n ...state,\n filtered: state.items.filter((item) => filterItem(value, item)),\n }));\n },\n [setItems],\n );\n\n /**\n * Enables/Disables the full history functionality and takes\n * actions based on that\n */\n const handleChange = useCallback(\n (value) => {\n setFullHistory(value);\n\n if (!value) {\n setItems({ items: [], filtered: [] });\n if (page === 1) {\n fetch();\n } else {\n setPage(1);\n }\n }\n },\n [fetch, page, setItems],\n );\n\n /**\n * Changes the entity type filter, and takes actions based on it\n */\n const handleTypeChange = useCallback(\n (type) => {\n if (!fullHistory) {\n setItems({ items: [], filtered: [] });\n setPage(1);\n }\n setType(type);\n },\n [fullHistory],\n );\n\n const history = items.filtered.map((item) =>\n getHistoryItem(item, true, fullHistory, setDifference, setInfo),\n );\n\n const columns = fullHistory ? 'minmax(35%, 1fr) 25% 130px' : '0px minmax(25%, 1fr) 130px';\n\n const paginationCtnRef = useRef(null);\n\n return (\n \n {(state) => (\n \n \n \n \n Lead History\n {\n closeModal(modalId);\n setFullHistory(false);\n }}\n />\n \n \n \n
    \n \n \n \n \n \n \n \n \n \n \n \n
    \n \n \n \n {!loading && history}\n {loading && (\n \n \n \n )}\n\n {\n // {!loading && !load.completed && (\n // \n // setPage(page + 1)}>Load more\n // \n //)\n }\n \n \n \n \n \n \n {difference !== null && (\n \n setDifference(null)} />\n \n \n \n \n )}\n {info !== null && (\n \n setInfo(null)} />\n \n \n \n \n )}\n
    \n )}\n
    \n );\n};\n\nLeadHistory.propTypes = {\n id: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n};\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { fetchLeadRecordings } from 'modules/leads/leads-actions';\nimport { LeadRecording } from '../types';\n\nconst initialState = {\n /**@type {LeadRecording[]}*/\n items: [],\n count: 0,\n loading: true,\n /**@type {Error | null}*/\n error: null,\n};\n\n/**\n * @param {string} leadId - Lead id to fetch recordings to.\n * @returns {{\n refresh: () => Promise;\n items: LeadRecording[];\n count: number;\n loading: boolean;\n error: Error | null;\n page: number;\n setPage: React.Dispatch>;\n}} - Logic to handle lead recordings pagination. */\nexport function useLeadRecordings(leadId) {\n const [page, setPage] = useState(1);\n const [queryState, setQueryState] = useState(initialState);\n\n const fetchLeadRecordingsData = useCallback(async () => {\n setQueryState((prevState) => ({ ...prevState, loading: true }));\n\n const leadRecordingsData = await fetchLeadRecordings(leadId, page);\n\n if (!leadRecordingsData?.phoneCallRecordingsList) {\n setQueryState((prevState) => ({\n ...prevState,\n error: new Error('Could not fetch lead recordings data'),\n }));\n return;\n }\n\n setQueryState((prevState) => ({\n ...prevState,\n items: leadRecordingsData.phoneCallRecordingsList.items,\n count: leadRecordingsData.phoneCallRecordingsList.count,\n loading: false,\n error: null,\n }));\n }, [leadId, page]);\n\n useEffect(() => {\n fetchLeadRecordingsData();\n }, [fetchLeadRecordingsData]);\n\n return { page, setPage, ...queryState, refresh: fetchLeadRecordingsData };\n}\n","import styled from 'styled-components';\n\nexport const PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n`;\n","import React, { useMemo } from 'react';\nimport { Table } from '@8base/boost';\nimport styled from 'styled-components';\nimport moment from 'moment';\nimport AudioPlayer from 'react-h5-audio-player';\nimport { ColumnName, ColumnValue } from 'modules/leads/components/ColumnInfo';\nimport { formatPhoneNumber } from 'modules/phone-calls/phone-calls-utils';\nimport { CALL_TYPES } from 'modules/phone-calls/phone-calls-model';\n\nconst RecordingPlayerCell = styled(Table.BodyCell)`\n padding-left: 0px !important;\n`;\n\nconst DateContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n`;\n\nconst StyledText = styled.text`\n word-break: auto-phrase;\n`;\n\n/**\n * @param {object} props - Component props.\n * @param {LeadRecording} props.leadRecording - Component props.\n * @param {string} props.tableCols - Number of columns of the table.\n * @returns {React.ReactNode} Recording Item component.\n */\nexport function RecordingItem({ leadRecording, tableCols }) {\n const callType = useMemo(() => (leadRecording.call ? CALL_TYPES.OUTBOUND : CALL_TYPES.INBOUND), [\n leadRecording,\n ]);\n\n const call = useMemo(() => {\n return callType === CALL_TYPES.OUTBOUND ? leadRecording.call : leadRecording.inboundCall;\n }, [leadRecording, callType]);\n\n const recordingDate = useMemo(() => {\n const now = moment().startOf('day');\n const created = moment(call.createdAt);\n const yesterday = now\n .clone()\n .subtract(1, 'days')\n .startOf('day');\n\n if (created.isSame(now, 'day')) return 'Today';\n if (created.isSame(yesterday, 'day')) return 'Yesterday';\n return created.format('DD-MM-YYYY');\n }, [call]);\n\n const recordingTime = useMemo(() => {\n return moment(call.createdAt).format('LT');\n }, [call]);\n\n const from = useMemo(() => {\n return callType === CALL_TYPES.OUTBOUND\n ? `${call.user.firstName} ${call.user.lastName} ${formatPhoneNumber(\n `+${call.from.number.code}${call.from.number.number}`,\n )}`\n : formatPhoneNumber(call.from);\n }, [call, callType]);\n\n const to = useMemo(() => {\n return callType === CALL_TYPES.OUTBOUND\n ? call.lead\n ? `${call.lead.firstName} ${call.lead.lastName} ${formatPhoneNumber(call.to)}`\n : formatPhoneNumber(call.to)\n : formatPhoneNumber(`+${call.to.number.code}${call.to.number.number}`);\n }, [call, callType]);\n\n return (\n \n \n \n {recordingDate}\n {recordingTime}\n \n \n \n {from}\n \n \n {to}\n \n\n \n \n \n \n );\n}\n","import styled, { css, keyframes } from 'styled-components';\n\nconst slideIn = keyframes`\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n`;\n\nconst slideOut = keyframes`\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n`;\n\nconst animate = css`\n animation: 0.3s\n ${({ state }) => {\n switch (state) {\n case 'entering':\n return slideIn;\n case 'exiting':\n return slideOut;\n default:\n return '';\n }\n }}\n ease-in-out;\n`;\n\nexport const SideBar = styled.div`\n display: flex;\n gap: 0.5em;\n flex-direction: column;\n position: fixed;\n background-color: #fff;\n height: 100%;\n width: 800px;\n max-width: 940px;\n top: 0;\n right: 0;\n height: 100vh;\n box-shadow: 0 0px 3px 3px rgba(50, 50, 93, 0.14);\n transition: width 1s;\n z-index: 2;\n ${animate}\n`;\n","import React, { useEffect, useMemo, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport { Card, Row, Column, Icon, Table, Pagination, useModal } from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Title } from 'shared/components';\nimport { error as toastError } from 'shared/components/toast/Toast';\nimport { onErrorMixinFC } from 'shared/mixins';\nimport { OnFetchLeadRecordingsError } from '../leads-store';\nimport { useLeadRecordings } from './hooks/useLeadRecordings';\nimport { PaginationContainer } from './components/PaginationContainer';\nimport { RecordingItem } from './components/RecordingItem';\nimport { SideBar } from './components/SideBar';\n\nexport const leadRecordingsModalId = 'lead-recordings-modal';\n\n/**\n * @param {object} props - Component props.\n * @param {string} props.leadId - Lead id to fetch recordings for.\n * @returns {React.ReactNode} LeadRecordingsDrawer component\n */\nexport function LeadRecordingsDrawer({ leadId }) {\n const nodeRef = useRef(null);\n const { isOpen, closeModal } = useModal(leadRecordingsModalId);\n const {\n items: leadRecordings,\n loading: isLoadingLeadRecordings,\n count,\n page,\n setPage,\n error,\n } = useLeadRecordings(leadId);\n\n const tableCols = useMemo(() => '1fr 1fr 1fr 2fr', []);\n\n useSubscription(OnFetchLeadRecordingsError, (e) => {\n onErrorMixinFC(e);\n });\n\n useEffect(() => {\n if (!error) return;\n toastError(error.message);\n }, [error]);\n\n return (\n \n {(state) => (\n \n \n \n \n Lead Recordings\n {\n closeModal(leadRecordingsModalId);\n }}\n />\n \n \n \n\n \n \n Date\n From\n To\n Play\n \n\n \n {(leadRecording) => (\n \n )}\n \n\n \n \n \n \n \n
    \n
    \n )}\n
    \n );\n}\n","import React, { useState, useContext, useCallback, useEffect } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n Row,\n Button,\n Text,\n Icon,\n Dropdown,\n Menu,\n Heading as BoostHeading,\n styled,\n useModal,\n} from '@8base/boost';\nimport { modalId as decisionModalId } from '../../../shared/components/dialog/DecisionDialog';\nimport { modalId } from '../leads-history/components/LeadHistory';\nimport {\n LeadRecordingsDrawer,\n leadRecordingsModalId,\n} from '../leads-recordings/LeadRecordingsDrawer';\nimport { PhoneNumber } from '../../phone-calls/Components/PhoneNumber';\nimport { formatPhoneNumber } from '../../phone-calls/phone-calls-utils';\nimport { Box } from '../../../shared/components/Box';\nimport { ComposeEmailContext } from '../../email/components/ComposeEmailProvider';\nimport { deleteLead } from '../leads-actions';\nimport { OnFetchLeadMessages, OnFetchLeadMessagesError, OnLeadMessageCreate } from '../leads-store';\nimport { fetchLeadMessages } from '../leads-actions';\nimport MsgForm from './forms/MsgForm';\nimport {\n IconCallGreen,\n IconChatGreen,\n IconComposeEmailGreen,\n IconRecordingGreen,\n} from '../../../shared/components/ui/Icons';\nimport PropTypes from 'prop-types';\nimport { useHistory } from 'react-router';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useUser } from 'shared/hooks/useUser';\nimport { OnDeleteLeadEvent } from '../leads-events';\n\nconst Heading = styled(BoostHeading)`\n opacity: 0.9;\n color: #323c47 !important;\n font-family: 'Poppins';\n display: inline-block;\n font-size: 22px !important;\n line-height: 24px !important;\n font-weight: 600 !important;\n white-space: nowrap;\n`;\n\nconst NavBar = styled(Row)`\n width: 100%;\n\n @media screen and (max-width: 1200px) {\n width: 100%;\n flex-wrap: wrap !important;\n }\n`;\n\nconst NavInfo = styled.div`\n width: 30%;\n display: flex;\n\n & > *:not(:last-child) {\n margin-right: 8px;\n }\n\n @media screen and (max-width: 1200px) {\n width: 100%;\n }\n`;\n\nconst NavActions = styled(Row)`\n width: 70%;\n\n @media screen and (max-width: 1200px) {\n width: 100%;\n justify-content: center !important;\n padding-bottom: 16px;\n }\n\n @media screen and (max-width: 870px) {\n flex-wrap: wrap !important;\n }\n`;\n\nconst NavItem = styled.div`\n padding: 0 10px;\n\n @media screen and (max-width: 870px) {\n width: 100%;\n padding: 10px 0px;\n }\n`;\n\nexport const LeadDetailsHeader = ({ lead }) => {\n const { onCompose } = useContext(ComposeEmailContext);\n const { openModal, closeModal } = useModal(modalId);\n const [messages, setMessages] = useState([]);\n const [loadingMessages, setLoadingLeadMessages] = useState(true);\n const [isOpen, setOpen] = useState(false);\n const agency = useAgency();\n const user = useUser();\n const history = useHistory();\n useEffect(() => {\n setLoadingLeadMessages(true);\n\n fetchLeadMessages(lead.id);\n }, [lead]);\n\n useSubscription(OnDeleteLeadEvent, () => {\n closeModal(decisionModalId);\n\n toast.success('Success', 'Lead deleted successfully');\n\n history.replace('/leads');\n });\n\n useSubscription(\n OnFetchLeadMessages,\n ({ sMSMessagesList }) => {\n setLoadingLeadMessages(false);\n setMessages(sMSMessagesList.items);\n },\n [],\n );\n\n useSubscription(\n OnFetchLeadMessagesError,\n (e) => {\n onErrorMixinFC(e);\n\n setMessages([]);\n\n setLoadingLeadMessages(false);\n },\n [],\n );\n\n useSubscription(\n OnLeadMessageCreate,\n () => {\n toast.success('Success', 'Message sent successfully');\n\n setLoadingLeadMessages(true);\n\n fetchLeadMessages(lead.id);\n },\n [lead],\n );\n\n const onDelete = useCallback(\n (callback) => {\n openModal(decisionModalId, {\n title: 'Delete Lead',\n text: 'Are you sure you want to delete this lead ?',\n confirmText: 'Yes, Delete',\n cancelText: 'Cancel',\n onClose: () => closeModal(decisionModalId),\n onCancel: () => closeModal(decisionModalId),\n onConfirm: () => deleteLead(lead.id),\n });\n\n callback();\n },\n [lead, openModal, closeModal],\n );\n\n const name = `${lead.firstName} ${lead.lastName}`;\n const [phone] = lead.leadLeadPhoneNumberRelation.items;\n\n return (\n \n \n \n {name}\n {phone && (\n \n {formatPhoneNumber(phone.phone.number)}\n \n )}\n \n \n \n openModal(leadRecordingsModalId, { customArg: 1 })}>\n {' '}\n Recordings\n \n \n {phone && (\n \n \n {' '}\n Call\n \n \n )}\n \n setOpen(true)}>\n {' '}\n Text\n \n \n \n \n onCompose({\n id: lead.id,\n to: lead.email,\n })\n }\n color=\"neutral\"\n variant=\"link\">\n {' '}\n Email\n \n \n \n \n openModal(modalId, {\n user: user[0].id,\n agency: agency.id,\n })\n }>\n {' '}\n History\n \n \n \n \n \n \n \n \n {({ closeDropdown: close }) => (\n \n onDelete(close)}>\n Delete Lead\n \n \n )}\n \n \n \n \n \n \n setOpen(false)}\n />\n \n );\n};\n\nLeadDetailsHeader.propTypes = {\n lead: PropTypes.shape({\n id: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n leadLeadPhoneNumberRelation: PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.object.isRequired),\n }),\n }).isRequired,\n};\n","import React, { useState, useEffect } from 'react';\nimport { Column, Input, Text } from '@8base/boost';\nimport { updateLeadAmount } from '../../leads-actions';\nimport { Box } from '../../../../shared/components/Box';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnUpdateLeadAmount, OnUpdateLeadAmountError } from '../../leads-store';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport PropTypes from 'prop-types';\n\n/**\n * LeadAmountForm - Component for handling the lead amount form.\n *\n * @param {object} props - The properties passed to the component.\n * @param {string} props.id - The identifier for the lead.\n * @param {string} [props.amount = '0'] - The amount associated with the lead.\n * @param {boolean} props.refresh - Indicates whether the form should refresh after an action.\n *\n * @returns {React.ReactNode} The form for managing the lead amount.\n */\nexport const LeadAmountForm = ({ id, amount = '0', refresh }) => {\n const [value, setValue] = useState(0);\n\n useEffect(() => {\n if (amount) {\n setValue(parseFloat(amount));\n }\n }, [amount]);\n\n useSubscription(\n OnUpdateLeadAmount,\n () => {\n toast.success('Success', 'Amount updated successfully');\n\n refresh();\n },\n [refresh],\n );\n\n useSubscription(\n OnUpdateLeadAmountError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleUpdate = () => {\n const prev = amount ? parseFloat(amount) : 0;\n const next = value ? value : 0;\n\n if(next === prev) return;\n\n updateLeadAmount(id, String(next));\n };\n\n return (\n \n \n Amount\n \n \n \n );\n};\n\nLeadAmountForm.propTypes = {\n id: PropTypes.string.isRequired,\n amount: PropTypes.string,\n refresh: PropTypes.func.isRequired,\n};\n\nLeadAmountForm.defaultProps = {\n amount: '0',\n};\n","import React, { useState, useMemo, useCallback, useEffect } from 'react';\nimport { Column, Select, Text } from '@8base/boost';\nimport { Box } from '../../../../shared/components/Box';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n OnFetchLeadStages,\n OnFetchLeadStagesError,\n OnSetLeadStage,\n OnSetLeadStageError,\n} from '../../leads-stage/leads-stage-store';\nimport { fetchLeadStages, assignLeadStage } from '../../leads-stage/leads-stage-action';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\n\nexport const LeadStageForm = ({ id, stage, refresh }) => {\n const [stages, setStages] = useState([]);\n const [value, setValue] = useState(stage);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n fetchLeadStages();\n }, []);\n\n const onChange = useCallback(\n (selected) => {\n setLoading(true);\n setValue(selected);\n\n assignLeadStage(id, selected);\n },\n [id],\n );\n\n useSubscription(\n OnFetchLeadStages,\n ({ leadStagesList }) => {\n setStages(leadStagesList.items);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchLeadStagesError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnSetLeadStage,\n () => {\n setLoading(false);\n refresh();\n\n toast.success('Success', 'Lead stage updated successfuly');\n },\n [refresh],\n );\n\n useSubscription(\n OnSetLeadStageError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const options = useMemo(\n () =>\n stages.map((stage) => ({\n label: stage.name,\n value: stage.id,\n })),\n [stages],\n );\n\n return (\n \n \n Stage\n \n \n \n );\n};\n\nLeadStageForm.propTypes = {\n id: PropTypes.string.isRequired,\n stage: PropTypes.string,\n refresh: PropTypes.func.isRequired,\n};\n\nLeadStageForm.defaultProps = {\n stage: '',\n};\n","import React, { useState, useMemo, useCallback, useEffect } from 'react';\nimport { Column, Select, Text } from '@8base/boost';\nimport { Box } from '../../../../shared/components/Box';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnUpdateLeadCampaign, OnUpdateLeadCampaignError } from '../../leads-store';\nimport { updateLeadCampaign } from '../../leads-actions';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\n\nexport const LeadCampaignForm = ({ id, campaign, campaigns, refresh }) => {\n const [value, setValue] = useState(campaign);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n setLoading(false);\n }, [campaign]);\n\n const onChange = useCallback(\n (selected) => {\n setLoading(true);\n setValue(selected);\n\n updateLeadCampaign(id, selected);\n },\n [id],\n );\n\n useSubscription(\n OnUpdateLeadCampaign,\n () => {\n setLoading(false);\n refresh();\n\n toast.success('Success', 'Lead campaign updated successfuly');\n },\n [refresh],\n );\n\n useSubscription(\n OnUpdateLeadCampaignError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const options = useMemo(\n () =>\n campaigns.map((stage) => ({\n label: stage.name,\n value: stage.id,\n })),\n [campaigns],\n );\n\n return (\n \n \n Campaign\n \n \n \n );\n};\n\nLeadCampaignForm.propTypes = {\n id: PropTypes.string.isRequired,\n campaign: PropTypes.string.isRequired,\n campaigns: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n name: PropTypes.string,\n }),\n ).isRequired,\n refresh: PropTypes.func.isRequired,\n};\n","import React, { useState, useCallback, useMemo, useEffect } from 'react';\nimport { Column, Input, Text, Icon, Dropdown, Menu, Checkbox, Button } from '@8base/boost';\nimport { getAssignedUsersLabel } from '../../../users/user-utils';\nimport { Box } from '../../../../shared/components/Box';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnUpdateLeadAssignees, OnUpdateLeadAssigneesError } from '../../leads-store';\nimport { updateLeadAssignees } from '../../leads-actions';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\n\nexport const LeadAssigneesForm = ({ id, assignees, users, refresh }) => {\n const [selected, setSelected] = useState(assignees);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n setSelected(assignees);\n }, [assignees]);\n\n const onSelect = useCallback((user, checked) => {\n if (checked) {\n setSelected((prevState) => [...prevState, user]);\n } else {\n setSelected((prevState) => prevState.filter((u) => u.id !== user.id));\n }\n }, []);\n\n const onAccept = (callback) => {\n setLoading(true);\n\n updateLeadAssignees(\n id,\n selected.map((user) => user.id),\n );\n\n callback();\n };\n\n useSubscription(\n OnUpdateLeadAssignees,\n () => {\n setLoading(false);\n\n toast.success('Success', 'Users assigned correctly to lead');\n\n refresh();\n },\n [refresh],\n );\n\n useSubscription(\n OnUpdateLeadAssigneesError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const value = getAssignedUsersLabel(assignees);\n\n const options = useMemo(\n () =>\n users.map((user) => (\n \n sel.id === user.id)}\n onChange={(value) => onSelect(user, value)}\n />\n \n )),\n [users, selected, onSelect],\n );\n\n return (\n \n \n Assigned To\n \n \n }\n />\n \n \n {({ closeDropdown: close }) => (\n \n \n {options}\n \n \n onAccept(close)}>\n Accept\n \n \n \n \n )}\n \n \n \n \n );\n};\n\nLeadAssigneesForm.propTypes = {\n id: PropTypes.string.isRequired,\n assignees: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n firstName: PropTypes.string,\n lastName: PropTypes.string,\n }),\n ).isRequired,\n users: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n firstName: PropTypes.string,\n lastName: PropTypes.string,\n }),\n ).isRequired,\n refresh: PropTypes.func.isRequired,\n};\n","import React, { useState, useMemo, useContext } from 'react';\nimport { Row, Heading, Grid, Text, Button } from '@8base/boost';\nimport { Box } from '../../../../shared/components/Box';\nimport { ColumnInfo } from '../ColumnInfo';\nimport { formatContactData, leadDetailMap } from '../../lead-details-utils';\nimport LeadFormDialog from '../LeadFormDialog';\nimport { ComposeEmailContext } from '../../../email/components/ComposeEmailProvider';\nimport { useAgency } from '../../../../shared/hooks/useAgency';\nimport PropTypes from 'prop-types';\n\nexport const LeadInfoCard = ({ lead, users, campaigns, refresh }) => {\n const { onCompose } = useContext(ComposeEmailContext);\n const [isOpen, setOpen] = useState(false);\n const agency = useAgency();\n\n const data = useMemo(\n () =>\n formatContactData(lead).map((row, i) => (\n \n \n {row.map((column, j) => (\n \n {column.label}\n {column.isTextContact ? (\n column.label === 'Email' ? (\n onCompose(lead)}>\n {column.value}\n \n ) : (\n {column.value}\n )\n ) : (\n column.value\n )}\n \n ))}\n \n \n )),\n [lead, onCompose],\n );\n\n return (\n \n \n \n Contact Information\n \n \n \n \n \n {data}\n \n \n setOpen(false)}\n />\n \n );\n};\n\nLeadInfoCard.propTypes = {\n lead: PropTypes.object.isRequired,\n users: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n }),\n ).isRequired,\n campaigns: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n }),\n ).isRequired,\n refresh: PropTypes.func.isRequired,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Form,\n Grid,\n InputField,\n styled,\n SelectField,\n CheckboxField,\n DateInputField,\n} from '@8base/boost';\nimport { Margin } from 'shared/components';\n\nconst GridBoxFlexEnd = styled(Grid.Box)`\n justify-content: flex-end;\n`;\n\n/**\n * Form with fields\n *\n * @param {object} props component props\n * @param {object} props.data data\n * @param {object} props.rows rows with fields\n * @param {Function} props.onChangeInput handle for onChange input\n * @returns {React.Component} - Input Component\n */\nconst FormFields = ({ data, rows, onChangeInput }) => {\n return (\n
    \n \n \n {rows.map((row, rowIndex) => {\n const columnSize = (100 / row.length).toFixed(2);\n const gapSize = 16 * (row.length - 1);\n const columns = `repeat(${row.length -\n 1}, ${columnSize}%) calc(${columnSize}% - ${gapSize}px)`;\n\n return (\n \n {row.map((field, fieldIndex) => {\n let inputFiled;\n\n if (field.type === 'text') {\n inputFiled = (\n onChangeInput(value, field.key),\n }}\n />\n );\n }\n\n if (field.type === 'number') {\n inputFiled = (\n onChangeInput(value, field.key),\n }}\n />\n );\n }\n\n if (field.type === 'date') {\n inputFiled = (\n onChangeInput(value, field.key),\n }}\n />\n );\n }\n\n if (field.type === 'datetime') {\n inputFiled = (\n onChangeInput(value, field.key),\n }}\n withTime\n />\n );\n }\n\n if (field.type === 'select') {\n inputFiled = (\n onChangeInput(value, field.key),\n }}\n options={field.options}\n />\n );\n }\n\n if (field.type === 'checkbox') {\n inputFiled = (\n \n onChangeInput(value, field.key),\n }}\n />\n \n );\n }\n\n return {inputFiled};\n })}\n \n );\n })}\n \n \n
    \n );\n};\n\nFormFields.propTypes = {\n rows: PropTypes.array.isRequired,\n data: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default FormFields;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport FormFields from '../../../../shared/components/forms/FormFields';\n\nconst LeadTypeAutoForm = ({ leadTypeData, onChangeInput }) => {\n const rows = [\n [\n {\n key: 'alternate',\n label: 'Alternate',\n type: 'text',\n },\n {\n key: 'otherInfo',\n label: 'Other Info',\n type: 'text',\n },\n ],\n [\n {\n key: 'currentBodilyInjuryCoverages',\n label: 'Current Bodily Injury Coverages',\n type: 'text',\n },\n {\n key: 'currentPropertyDamageCoverages',\n label: 'Current Property Damage Coverages',\n type: 'text',\n },\n ],\n ];\n\n return ;\n};\n\nLeadTypeAutoForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeAutoForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeAutoForm from './LeadTypeAutoForm';\n\nconst LeadTypeAutoFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeAutoFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeAutoFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeAutoFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnleadsAutoUpdateEvent = createEvent();\n\nexport const OnleadsAutoError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { LEAD_TYPE_AUTO_UPDATE_MUTATION } from './leads-type-auto-queries';\nimport { leadAutoValidations } from './leads-type-auto-utils';\nimport { OnleadsAutoError, OnleadsAutoUpdateEvent } from './leads-type-auto-events';\n\n/**\n * Update a lead type auto\n *\n * @param {object} leadAuto lead type auto\n * @returns {object} response data\n */\nexport const updateLeadAuto = async (leadAuto) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadAutoValidations(leadAuto);\n } catch (e) {\n error('updateLeadAuto', e);\n\n return OnleadsAutoError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_AUTO_UPDATE_MUTATION,\n variables: { data: leadAuto },\n });\n } catch (e) {\n error('updateLeadAuto', e);\n\n return OnleadsAutoError.dispatch(e);\n }\n\n log('updateLeadAuto', response);\n OnleadsAutoUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { Card, Row, Loader } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport { Title, ButtonWithoutIcon } from 'shared/components';\n\nconst Body = styled(Card.Body)`\n max-height: 576px;\n\n &::-webkit-scrollbar {\n width: 8px; /* Tamaño del scroll en vertical */\n height: 8px; /* Tamaño del scroll en horizontal */\n }\n &::-webkit-scrollbar-thumb,\n &::-webkit-scrollbar-track {\n transition: all 1s ease-in-out;\n }\n &::-webkit-scrollbar-thumb {\n background: #ccc;\n border-radius: 4px;\n }\n &:hover::-webkit-scrollbar-thumb:hover {\n background: #b3b3b3;\n box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);\n }\n &::-webkit-scrollbar-thumb:active {\n background-color: #999999;\n }\n &::-webkit-scrollbar-track {\n background: #f1f1f1;\n border-radius: 4px;\n }\n &::-webkit-scrollbar-track:hover,\n &::-webkit-scrollbar-track:active {\n background: #d4d4d4;\n }\n`;\n\nconst PaperInfo = ({ title, loading, btnText, children, onClickBtn }) => {\n const content = loading ? (\n \n \n \n ) : (\n children\n );\n\n return (\n \n \n \n {title}\n \n \n \n {content}\n \n );\n};\n\nPaperInfo.propTypes = {\n title: PropTypes.string.isRequired,\n loading: PropTypes.bool,\n btnText: PropTypes.string.isRequired,\n onClickBtn: PropTypes.func.isRequired,\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired,\n};\n\nPaperInfo.defaultProps = {\n loading: false,\n};\n\nexport default PaperInfo;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeAutoFormDialog from './LeadTypeAutoDialogForm';\nimport { updateLeadAuto } from '../leads-type-auto-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport { formatData, leadAutoMap, leadAutoCreateMap } from '../leads-type-auto-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport { OnleadsAutoError, OnleadsAutoUpdateEvent } from '../leads-type-auto-events';\n\nconst LeadTypeAutoInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(leadAutoMap(R.clone(leadTypeData)));\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadAutoToUpdate = {\n id: leadTypeFields.id,\n ...leadAutoCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadAuto(leadAutoToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnleadsAutoUpdateEvent, (data) => {\n if (data) {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeAutoUpdate);\n }\n });\n\n useEventSubscription(OnleadsAutoError, (err) => {\n if (err) {\n setLoading(false);\n onErrorMixinFC(err);\n }\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeAutoInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeAutoInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport FormFields from '../../../../shared/components/forms/FormFields';\n\n/**\n * Lead type commercial auto form\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n * @param {Function} props.onChangeInput handle for onChange input\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeCommercialAutoForm = ({ leadTypeData, onChangeInput }) => {\n const rows = [\n [\n {\n key: 'businessName',\n label: 'Company Name',\n type: 'text',\n },\n {\n key: 'name',\n label: 'Name',\n type: 'text',\n },\n ],\n [\n {\n key: 'yearsInBusiness',\n label: 'Years in Business',\n type: 'number',\n },\n {\n key: 'numberOfEmployees',\n label: 'Number Of Employees',\n type: 'number',\n },\n ],\n [\n {\n key: 'businessType',\n label: 'Business Type',\n type: 'text',\n },\n {\n key: 'coverageAmount',\n label: 'Coverage Amount',\n type: 'number',\n },\n ],\n [\n {\n key: 'payroll',\n label: 'Payroll',\n type: 'text',\n },\n {\n key: 'sales',\n label: 'Sales',\n type: 'text',\n },\n ],\n [\n {\n key: 'numberOfVehicles',\n label: 'Number Of Vehicles',\n type: 'number',\n },\n {\n key: 'numberOfDrivers',\n label: 'Number Of Drivers',\n type: 'number',\n },\n ],\n ];\n\n return ;\n};\n\nLeadTypeCommercialAutoForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeCommercialAutoForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeCommercialAutoForm from './LeadTypeCommercialAutoForm';\n\nconst LeadTypeCommercialAutoFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeCommercialAutoFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeCommercialAutoFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeCommercialAutoFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsCommercialAutoUpdateEvent = createEvent();\n\nexport const OnLeadsCommercialAutoError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n OnLeadsCommercialAutoError,\n OnLeadsCommercialAutoUpdateEvent,\n} from './leads-type-commercial-auto-events';\nimport { LEADS_TYPE_COMMERCIAL_AUTO_UPDATE_MUTATION } from './leads-type-commercial-auto-queries';\nimport { leadCommercialAutoValidations } from './leads-type-commercial-auto-utils';\n\n/**\n * Update a lead type commercial auto\n *\n * @param {object} leadCommercialAuto lead type commercial auto\n * @returns {object} response data\n */\nexport const updateLeadCommercialAuto = async (leadCommercialAuto) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadCommercialAutoValidations(leadCommercialAuto);\n } catch (e) {\n error('updateLeadCommercialAuto', e);\n\n return OnLeadsCommercialAutoError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEADS_TYPE_COMMERCIAL_AUTO_UPDATE_MUTATION,\n variables: { data: leadCommercialAuto },\n });\n } catch (e) {\n error('updateLeadCommercialAuto', e);\n\n return OnLeadsCommercialAutoError.dispatch(e);\n }\n\n log('updateLeadCommercialAuto', response);\n OnLeadsCommercialAutoUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeCommercialAutoFormDialog from './LeadTypeCommercialAutoDialogForm';\nimport { updateLeadCommercialAuto } from '../leads-type-commercial-auto-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport {\n formatData,\n leadCommercialAutoMap,\n leadCommercialAutoCreateMap,\n} from '../leads-type-commercial-auto-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport {\n OnLeadsCommercialAutoError,\n OnLeadsCommercialAutoUpdateEvent,\n} from '../leads-type-commercial-auto-events';\n\nconst LeadTypeCommercialAutoInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(\n leadCommercialAutoMap(R.clone(leadTypeData)),\n );\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadCommercialAutoToUpdate = {\n id: leadTypeFields.id,\n ...leadCommercialAutoCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadCommercialAuto(leadCommercialAutoToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnLeadsCommercialAutoUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeCommercialAutoUpdate);\n });\n\n useEventSubscription(OnLeadsCommercialAutoError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeCommercialAutoInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeCommercialAutoInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, Grid, InputField, DateInputField } from '@8base/boost';\n\n/**\n * Lead type form\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n * @param {Function} props.onChangeInput handle for onChange input\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeGeneralLiabilityForm = ({ leadTypeData, onChangeInput }) => {\n return (\n
    \n \n \n \n \n onChangeInput(value, 'natureOfBusiness'),\n }}\n />\n \n \n onChangeInput(value, 'companyName'),\n }}\n />\n \n \n \n \n onChangeInput(value, 'grossSales'),\n }}\n />\n \n \n onChangeInput(value, 'numberOfEmployees'),\n }}\n />\n \n \n \n \n onChangeInput(value, 'payroll'),\n }}\n />\n \n \n onChangeInput(value, 'policyExpirationDate'),\n }}\n />\n \n \n \n \n
    \n );\n};\n\nLeadTypeGeneralLiabilityForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeGeneralLiabilityForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeGeneralLiabilityForm from './LeadTypeGeneralLiabilityForm';\n\n/**\n * Lead type dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadTypeData lead type data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onChangeInput handle on change for the fields\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeGeneralLiabilityFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeGeneralLiabilityFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeGeneralLiabilityFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeGeneralLiabilityFormDialog;\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString, isValidNumber } from '../../../shared/validators';\n\nconst leadGeneralLiabilityMessage = 'The lead type must have a ';\nconst leadGeneralLiabilityMessageValid = `${leadGeneralLiabilityMessage} valid`;\nconst messages = {\n natureOfBusiness: leadGeneralLiabilityMessageValid + ' nature of business',\n companyName: leadGeneralLiabilityMessageValid + ' company name',\n grossSales: leadGeneralLiabilityMessageValid + ' gross sales',\n numberOfEmployees: leadGeneralLiabilityMessageValid + ' number of employees',\n payroll: leadGeneralLiabilityMessageValid + ' payroll',\n};\n\n/**\n * Validate that the lead type has all the fields necessaries with the right format.\n *\n * @param {object} leadGeneralLiability - the lead type type to be validated\n */\nexport const updateLeadGeneralLiabilityValidator = (leadGeneralLiability) => {\n let errorMessages = [];\n\n if (!isValidString(leadGeneralLiability.natureOfBusiness))\n errorMessages.push(messages.natureOfBusiness);\n\n if (!isValidString(leadGeneralLiability.companyName)) errorMessages.push(messages.companyName);\n\n if (!isValidNumber(leadGeneralLiability.grossSales)) errorMessages.push(messages.grossSales);\n\n if (!isValidNumber(leadGeneralLiability.numberOfEmployees))\n errorMessages.push(messages.numberOfEmployees);\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsGeneralLiabilityUpdateEvent = createEvent();\n\nexport const OnLeadsGeneralLiabilityError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport { LEAD_TYPE_GENERAL_LIABILITY_UPDATE_MUTATION } from './leads-type-general-liability-queries';\nimport { updateLeadGeneralLiabilityValidator } from './leads-type-general-liability-validators';\nimport {\n OnLeadsGeneralLiabilityError,\n OnLeadsGeneralLiabilityUpdateEvent,\n} from './leads-type-general-liability-events';\n\n/**\n * Update a lead type\n *\n * @param {object} leadGeneralLiability lead type\n * @returns {object} response data\n */\nexport const updateLeadGeneralLiability = async (leadGeneralLiability) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n updateLeadGeneralLiabilityValidator(leadGeneralLiability);\n } catch (e) {\n error('updateGeneralLiability', e);\n\n return OnLeadsGeneralLiabilityError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_GENERAL_LIABILITY_UPDATE_MUTATION,\n variables: { data: leadGeneralLiability },\n });\n } catch (e) {\n error('updateGeneralLiability', e);\n\n return OnLeadsGeneralLiabilityError.dispatch(e);\n }\n\n log('updateGeneralLiability', response);\n OnLeadsGeneralLiabilityUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport * as R from 'ramda';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport LeadTypeGeneralLiabilityFormDialog from './LeadTypeGeneralLiabilityDialogForm';\nimport { updateLeadGeneralLiability } from '../leads-type-general-liability-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport {\n formatData,\n leadGeneralLiabilityMap,\n leadGeneralLiabilityCreateMap,\n} from '../leads-type-general-liability-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport {\n OnLeadsGeneralLiabilityError,\n OnLeadsGeneralLiabilityUpdateEvent,\n} from '../leads-type-general-liability-events';\n\n/**\n * Lead type table info component\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeGeneralLiabilityInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(\n leadGeneralLiabilityMap(R.clone(leadTypeData)),\n );\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadTypeToUpdate = {\n id: leadTypeFields.id,\n ...leadGeneralLiabilityCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadGeneralLiability(leadTypeToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnLeadsGeneralLiabilityUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeGeneralLiabilityUpdate);\n });\n\n useEventSubscription(OnLeadsGeneralLiabilityError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeGeneralLiabilityInfo.propTypes = {\n leadTypeData: PropTypes.array.isRequired,\n};\n\nexport default LeadTypeGeneralLiabilityInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { BIRTHDAY_OPTIONS, BIRTHYEAR_OPTIONS, BIRTHMONTH_OPTIONS } from '../../leads-model';\nimport FormFields from '../../../../shared/components/forms/FormFields';\n\n/**\n * Lead type life form\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n * @param {Function} props.onChangeInput handle for onChange input\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeLifeForm = ({ leadTypeData, onChangeInput }) => {\n const rows = [\n [\n {\n key: 'lifeInsuranceInformation',\n label: 'Life Insurance Information',\n type: 'text',\n },\n {\n key: 'policyType',\n label: 'Policy Type',\n type: 'text',\n },\n ],\n [\n {\n key: 'birthMonth',\n label: 'Date of Birth',\n type: 'select',\n options: BIRTHMONTH_OPTIONS,\n },\n {\n key: 'birthDay',\n label: '',\n type: 'select',\n options: BIRTHDAY_OPTIONS,\n },\n {\n key: 'birthYear',\n label: '',\n type: 'select',\n options: BIRTHYEAR_OPTIONS,\n },\n ],\n [\n {\n key: 'heightFeet',\n label: 'Height Feet',\n type: 'text',\n },\n {\n key: 'heightInches',\n label: 'Height Inches',\n type: 'text',\n },\n ],\n [\n {\n key: 'age',\n label: 'Age',\n type: 'text',\n },\n {\n key: 'weight',\n label: 'Weight',\n type: 'text',\n },\n ],\n [\n {\n key: 'term',\n label: 'Term',\n type: 'text',\n },\n {\n key: 'faceAmount',\n label: 'Face Amount',\n type: 'text',\n },\n ],\n [\n {\n key: 'telemarketerName',\n label: 'Telemarketer Name',\n type: 'text',\n },\n {\n key: 'callbackTime',\n label: 'Callback Time',\n type: 'text',\n },\n ],\n [\n {\n key: 'beneficiary',\n label: 'Beneficiary',\n type: 'text',\n },\n {\n key: 'callbackTime',\n label: 'Callback Time',\n type: 'text',\n },\n ],\n [\n {\n key: 'spouse',\n label: 'Spouse',\n type: 'checkbox',\n },\n {\n key: 'spouseAge',\n label: 'Spouse Age',\n type: 'text',\n },\n ],\n [\n {\n key: 'code',\n label: 'Code',\n type: 'text',\n },\n {\n key: 'driveRecording',\n label: 'Drive Recording',\n type: 'text',\n },\n ],\n [\n {\n key: 'knownMedicalCondition',\n label: 'Known Medical Condition',\n type: 'checkbox',\n },\n {\n key: 'smoke',\n label: 'Smoke',\n type: 'checkbox',\n },\n ],\n [\n {\n key: 'bankAccount',\n label: 'Bank Account',\n type: 'checkbox',\n },\n ],\n ];\n\n return ;\n};\n\nLeadTypeLifeForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeLifeForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeLifeForm from './LeadTypeLifeForm';\n\n/**\n * Lead type life dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadTypeData lead type life data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onChangeInput handle on change for the fields\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeLifeFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeLifeFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeLifeFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeLifeFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsLifeUpdateEvent = createEvent();\n\nexport const OnLeadsLifeError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport { LEAD_TYPE_LIFE_UPDATE_MUTATION } from './leads-type-life-queries';\nimport { leadLifeValidations } from './leads-type-life-utils';\nimport { OnLeadsLifeError, OnLeadsLifeUpdateEvent } from './leads-type-life-events';\n\n/**\n * Update a lead type life\n *\n * @param {object} leadLife lead type life\n * @returns {object} response data\n */\nexport const updateLeadLife = async (leadLife) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadLifeValidations(leadLife);\n } catch (e) {\n error('updateLeadLife', e);\n\n return OnLeadsLifeError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_LIFE_UPDATE_MUTATION,\n variables: { data: leadLife },\n });\n } catch (e) {\n error('updateLeadLife', e);\n\n return OnLeadsLifeError.dispatch(e);\n }\n\n log('updateLeadLife', response);\n OnLeadsLifeUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeLifeFormDialog from './LeadTypeLifeDialogForm';\nimport { updateLeadLife } from '../leads-type-life-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport { formatData, leadLifeMap, leadLifeCreateMap } from '../leads-type-life-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport { OnLeadsLifeError, OnLeadsLifeUpdateEvent } from '../leads-type-life-events';\n\n/**\n * Lead type life table info component\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeLifeInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(leadLifeMap(R.clone(leadTypeData)));\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadLifeToUpdate = {\n id: leadTypeFields.id,\n ...leadLifeCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadLife(leadLifeToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnLeadsLifeUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeLifeUpdate);\n });\n\n useEventSubscription(OnLeadsLifeError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeLifeInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeLifeInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport FormFields from '../../../../shared/components/forms/FormFields';\nimport { STATES_OPTIONS, YES_OR_NOT } from '../../leads-model';\nimport { Grid, styled, InputField, DateInputField } from '@8base/boost';\nimport { Margin } from 'shared/components';\n\nconst BtnAdd = styled.button`\n margin-top: 10px;\n display: flex;\n align-items: center;\n background: transparent;\n outline: none;\n cursor: pointer;\n`;\n\nconst BtnPlusChar = styled.p`\n box-sizing: border-box;\n height: 16px;\n width: 16px;\n border: 0.67px solid #3db4aa;\n border-radius: 100px;\n color: #3db4aa;\n font-size: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n`;\n\nconst BtnText = styled.p`\n color: #3db4aa;\n font-family: Poppins;\n font-size: 12px;\n letter-spacing: 0.18px;\n line-height: 20px;\n`;\n\nconst BtnDelete = styled.button`\n margin-top: 28px;\n height: 20px;\n width: 20px;\n border: 1px solid #eb4235;\n border-radius: 100px;\n background: transparent;\n outline: none;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst BtnLess = styled.p`\n margin-left: 2px;\n height: 20px;\n width: 20px;\n color: #eb4235;\n font-size: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst ClaimRow = ({ index, claim, onChangeClaim, onDeleteClaim }) => {\n return (\n <>\n \n onChangeClaim('type', index, value),\n }}\n />\n \n \n onChangeClaim('date', index, value),\n }}\n />\n \n \n onChangeClaim('amount', index, value),\n }}\n />\n \n \n onDeleteClaim(index)}>\n -\n \n \n \n );\n};\n\nClaimRow.propTypes = {\n index: PropTypes.number.isRequired,\n claim: PropTypes.object.isRequired,\n onChangeClaim: PropTypes.func.isRequired,\n onDeleteClaim: PropTypes.func.isRequired,\n};\n\n/**\n * Lead type home form\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n * @param {Function} props.onChangeInput handle for onChange input\n * @returns {React.Component} - Form Component\n */\nconst LeadTypeHomeForm = ({\n leadTypeData,\n onChangeInput,\n onAddNewClaim,\n onChangeClaim,\n onDeleteClaim,\n}) => {\n const rows = [\n [\n {\n key: 'bestTimeToContact',\n label: 'Best Time To Contact',\n type: 'datetime',\n },\n {\n key: 'dob',\n label: 'DOB',\n type: 'date',\n },\n {\n key: 'otherInfo',\n label: 'Other Info',\n type: 'text',\n },\n ],\n [\n {\n key: 'timeAtCurrentResidence',\n label: 'Time At Current Residence',\n type: 'text',\n },\n {\n key: 'timeAtPreviousResidence',\n label: 'Time At Previous Residence',\n type: 'text',\n },\n {\n key: 'sauna',\n label: 'Sauna',\n type: 'text',\n },\n ],\n [\n {\n key: 'woodBurningStove',\n label: 'Wood Burning Stove',\n type: 'text',\n },\n {\n key: 'smokerInHousehold',\n label: 'Smoker in Household',\n type: 'text',\n },\n {\n key: 'sumpPump',\n label: 'Sump Pump',\n type: 'text',\n },\n ],\n [\n {\n key: 'copperWaterPipes',\n label: 'Copper Water Pipes',\n type: 'text',\n },\n {\n key: 'brushHazardWithin500Feet',\n label: 'Brush Hazard Within 500 Feet',\n type: 'text',\n },\n {\n key: 'homeValue',\n label: 'Home Value',\n type: 'text',\n },\n ],\n [\n {\n key: 'comments',\n label: 'Comments',\n type: 'text',\n },\n {\n key: 'burglarAlarm',\n label: 'Burglar Alarm',\n type: 'text',\n },\n {\n key: 'deadBolts',\n label: 'Deadbolts',\n type: 'text',\n },\n ],\n [\n {\n key: 'fireAlarm',\n label: 'Fire Alarm',\n type: 'text',\n },\n {\n key: 'fireExtinguishers',\n label: 'Fire Extinguishers',\n type: 'text',\n },\n {\n key: 'mannedSecurityStation',\n label: 'Manned Security Station',\n type: 'text',\n },\n ],\n [\n {\n key: 'monitoredBurglarAlarm',\n label: 'Monitored Burglar Alarm',\n type: 'text',\n },\n {\n key: 'smokeDetectors',\n label: 'Smoke Detectors',\n type: 'text',\n },\n {\n key: 'tennisCourts',\n label: 'Tennis Courts',\n type: 'text',\n },\n ],\n [\n {\n key: 'centralHeatingAir',\n label: 'Central Heating Air',\n type: 'text',\n },\n {\n key: 'cathedralVaultedCeilings',\n label: 'Cathedral Vaulted Ceilings',\n type: 'text',\n },\n {\n key: 'hardwoodFloors',\n label: 'Hardwood Floors',\n type: 'text',\n },\n ],\n [\n {\n key: 'enclosedPorchPatio',\n label: 'Enclosed Porch Patio',\n type: 'text',\n },\n {\n key: 'swimmingPool',\n label: 'Swimming Pool',\n type: 'text',\n },\n {\n key: 'fencedInPool',\n label: 'Fenced In Pool',\n type: 'text',\n },\n ],\n [\n {\n key: 'hotTub',\n label: 'Hot Tub',\n type: 'text',\n },\n {\n key: 'indoorSprinklers',\n label: 'Indoor Sprinklers',\n type: 'text',\n },\n {\n key: 'coverageNeededOnHouse',\n label: 'Coverage Needed On House',\n type: 'text',\n },\n ],\n [\n {\n key: 'coverageNeededOnContents',\n label: 'Coverage Needed On Contents',\n type: 'text',\n },\n {\n key: 'requestedLiability',\n label: 'Requested Liability',\n type: 'text',\n },\n {\n key: 'requestedDeductible',\n label: 'Requested Deductible',\n type: 'text',\n },\n ],\n [\n {\n key: 'credit',\n label: 'Credit',\n type: 'text',\n },\n {\n key: 'numberOfClaims',\n label: 'Number Of Claims',\n type: 'number',\n },\n {\n key: 'frequencyOfPayment',\n label: 'Frequency Of Payment',\n type: 'text',\n },\n ],\n [\n {\n key: 'premium',\n label: 'Premium',\n type: 'text',\n },\n {\n key: 'currentInsuranceCompany',\n label: 'Current Insurance Company',\n type: 'text',\n },\n {\n key: 'insuredSince',\n label: 'Insured Since',\n type: 'date',\n },\n ],\n [\n {\n key: 'policyExpiration',\n label: 'Policy Expiration',\n type: 'date',\n },\n {\n key: 'continuouslyInsured',\n label: 'Continuously Insured',\n type: 'select',\n options: YES_OR_NOT,\n },\n {\n key: 'timeWithCurrentCompany',\n label: 'Time With Current Company',\n type: 'text',\n },\n ],\n [\n {\n key: 'countyToBeInsured',\n label: 'County To Be Insured',\n type: 'text',\n },\n {\n key: 'servicePanelType',\n label: 'Service Panel Type',\n type: 'text',\n },\n {\n key: 'wiringType',\n label: 'Wiring Type',\n type: 'text',\n },\n ],\n [\n {\n key: 'ageOfRoof',\n label: 'Age Of Roof',\n type: 'text',\n },\n {\n key: 'floodPlain',\n label: 'Flood Plain',\n type: 'text',\n },\n {\n key: 'businessConductedOnPremises',\n label: 'Business Conducted On Premises',\n type: 'text',\n },\n ],\n [\n {\n key: 'heatType',\n label: 'Heat Type',\n type: 'text',\n },\n {\n key: 'fireplaces',\n label: 'Fireplaces',\n type: 'text',\n },\n {\n key: 'garageType',\n label: 'Garage Type',\n type: 'text',\n },\n ],\n [\n {\n key: 'roofing',\n label: 'Roofing',\n type: 'text',\n },\n {\n key: 'foundationType',\n label: 'Foundation Type',\n type: 'text',\n },\n {\n key: 'fireStationProximity',\n label: 'Fire Station Proximity',\n type: 'text',\n },\n ],\n [\n {\n key: 'fireHydrantProximity',\n label: 'Fire Hydrant Proximity',\n type: 'text',\n },\n {\n key: 'homeUpgrades',\n label: 'Home Upgrades',\n type: 'select',\n options: YES_OR_NOT,\n },\n {\n key: 'homeUpgradesDescribed',\n label: 'Home Upgrades Described',\n type: 'text',\n },\n ],\n [\n {\n key: 'dwellingType',\n label: 'Dwelling Type',\n type: 'text',\n },\n {\n key: 'occupancyStatus',\n label: 'Occupancy Status',\n type: 'text',\n },\n {\n key: 'dogType',\n label: 'Dog Type',\n type: 'text',\n },\n ],\n [\n {\n key: 'squareFootage',\n label: 'Square Footage',\n type: 'text',\n },\n {\n key: 'stories',\n label: 'Stories',\n type: 'text',\n },\n {\n key: 'bedrooms',\n label: 'Bedrooms',\n type: 'text',\n },\n ],\n [\n {\n key: 'porches',\n label: 'Porches',\n type: 'text',\n },\n {\n key: 'constructionType',\n label: 'Construction Type',\n type: 'text',\n },\n {\n key: 'bathrooms',\n label: 'Bathrooms',\n type: 'text',\n },\n {\n key: 'yearBuilt',\n label: 'Year Built',\n type: 'text',\n },\n ],\n [\n {\n key: 'addressLineToBeInsured',\n label: 'Address To Be Insured',\n type: 'text',\n },\n {\n key: 'cityToBeInsured',\n label: 'City To Be Insured',\n type: 'text',\n },\n {\n key: 'stateToBeInsured',\n label: 'State To Be Insured',\n type: 'select',\n options: STATES_OPTIONS,\n },\n {\n key: 'zipToBeInsured',\n label: 'Zip To Be Insured',\n type: 'text',\n },\n ],\n [\n {\n key: 'newPurchase',\n label: 'New Purchase',\n type: 'checkbox',\n },\n {\n key: 'currentlyInsured',\n label: 'Currently Insured',\n type: 'checkbox',\n },\n ],\n ];\n\n return (\n <>\n \n \n \n {leadTypeData.claims.map((claim, claimIndex) => {\n return (\n \n );\n })}\n \n \n +\n Add Claim\n \n \n \n \n \n );\n};\n\nLeadTypeHomeForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onAddNewClaim: PropTypes.func.isRequired,\n onChangeClaim: PropTypes.func.isRequired,\n onDeleteClaim: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeHomeForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeHomeForm from './LeadTypeHomeForm';\n\n/**\n * Lead type home dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadTypeData lead type home data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onChangeInput handle on change for the fields\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeHomeFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n onAddNewClaim,\n onChangeClaim,\n onDeleteClaim,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeHomeFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n onAddNewClaim: PropTypes.func.isRequired,\n onChangeClaim: PropTypes.func.isRequired,\n onDeleteClaim: PropTypes.func.isRequired,\n};\n\nLeadTypeHomeFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeHomeFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsHomeUpdateEvent = createEvent();\n\nexport const OnLeadsHomeError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport { OnLeadsHomeError, OnLeadsHomeUpdateEvent } from './leads-type-home-events';\nimport { LEAD_TYPE_HOME_UPDATE_MUTATION } from './leads-type-home-queries';\nimport { leadHomeValidations } from './leads-type-home-utils';\n\n/**\n * Update a lead type home\n *\n * @param {object} leadHome lead type home\n * @returns {object} response data\n */\nexport const updateLeadHome = async (leadHome) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadHomeValidations(leadHome);\n } catch (e) {\n error('updateLeadHome', e);\n\n return OnLeadsHomeError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_HOME_UPDATE_MUTATION,\n variables: { data: leadHome },\n });\n } catch (e) {\n error('updateLeadHome', e);\n\n return OnLeadsHomeError.dispatch(e);\n }\n\n log('updateLeadHome', response);\n OnLeadsHomeUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeHomeFormDialog from './LeadTypeHomeDialogForm';\nimport { updateLeadHome } from '../leads-type-home-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport { formatData, leadHomeMap, leadHomeCreateMap } from '../leads-type-home-utils';\nimport { ColumnInfo, ColumnName, ColumnValue, RowHeader } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport { capitalize } from '../../../../shared/utils';\nimport { OnLeadsHomeError, OnLeadsHomeUpdateEvent } from '../leads-type-home-events';\n\n/**\n * Lead type home table info component\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeHomeInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(leadHomeMap(R.clone(leadTypeData)));\n const [isOpenForm, setIsOpenForm] = useState(false);\n\n const handleOnSubmitForm = () => {\n const leadHomeToUpdate = {\n id: leadTypeFields.id,\n ...leadHomeCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadHome(leadHomeToUpdate);\n };\n\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n const handleOnAddNewClaim = () => {\n const newClaim = { type: '', date: '', amount: '' };\n const newLeadHomeData = R.clone(leadTypeFields);\n\n newLeadHomeData.claims.push(newClaim);\n\n setLeadTypeFields(newLeadHomeData);\n };\n\n const handleOnChangeClaim = (key, index, value) => {\n const newClaims = R.clone(leadTypeFields.claims);\n\n newClaims[index - 1][key] = value;\n\n setLeadTypeFields({\n ...leadTypeFields,\n claims: newClaims,\n });\n };\n const handleOnDeleteClaim = (index) => {\n let newClaims = R.clone(leadTypeFields.claims);\n\n newClaims = newClaims.filter((claim, claimIndex) => claimIndex !== index - 1);\n\n setLeadTypeFields({\n ...leadTypeFields,\n claims: newClaims,\n });\n };\n\n useEventSubscription(OnLeadsHomeUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeHomeUpdate);\n });\n\n useEventSubscription(OnLeadsHomeError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n {leadTypeFields.claims.map((claim, claimIndex) => {\n return (\n <>\n Claim #{claimIndex + 1}\n \n {Object.keys(claim).map((key) => {\n return (\n \n {capitalize(key)}\n {claim[key]}\n \n );\n })}\n \n \n );\n })}\n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeHomeInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeHomeInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport FormFields from '../../../../shared/components/forms/FormFields';\n\n/**\n * Lead type workers compensation form\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n * @param {Function} props.onChangeInput handle for onChange input\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeWorkersCompensationForm = ({ leadTypeData, onChangeInput }) => {\n const rows = [\n [\n {\n key: 'annualPayroll',\n label: 'Annual Payroll',\n type: 'number',\n },\n {\n key: 'companyName',\n label: 'Company Name',\n type: 'text',\n },\n ],\n [\n {\n key: 'natureOfBusiness',\n label: 'Nature Of Business',\n type: 'text',\n },\n {\n key: 'numberOfEmployees',\n label: 'Number Of Employees',\n type: 'number',\n },\n ],\n [\n {\n key: 'policyExpirationDate',\n label: 'Policy Expiration Date',\n type: 'date',\n },\n ],\n ];\n\n return ;\n};\n\nLeadTypeWorkersCompensationForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeWorkersCompensationForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeWorkersCompensationForm from './LeadTypeWorkersCompensationForm';\n\n/**\n * Lead type workers compensation dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadTypeData lead type workers compensation data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onChangeInput handle on change for the fields\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeWorkersCompensationFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeWorkersCompensationFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeWorkersCompensationFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeWorkersCompensationFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsWorkersCompensationUpdateEvent = createEvent();\n\nexport const OnLeadsWorkersCompensationError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport { LEAD_TYPE_WORKERS_COMPENSATION_UPDATE_MUTATION } from './leads-type-workers-compensation-queries';\nimport { leadWorkersCompensationValidations } from './leads-type-workers-compensation-utils';\nimport {\n OnLeadsWorkersCompensationError,\n OnLeadsWorkersCompensationUpdateEvent,\n} from './leads-type-workers-compensation-events';\n\n/**\n * Update a lead type workers compensation\n *\n * @param {object} leadWorkersCompensation lead type workers compensation\n * @returns {object} response data\n */\nexport const updateLeadWorkersCompensation = async (leadWorkersCompensation) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadWorkersCompensationValidations(leadWorkersCompensation);\n } catch (e) {\n error('updateWorkersCompensation', e);\n\n return OnLeadsWorkersCompensationError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_WORKERS_COMPENSATION_UPDATE_MUTATION,\n variables: { data: leadWorkersCompensation },\n });\n } catch (e) {\n error('updateWorkersCompensation', e);\n\n return OnLeadsWorkersCompensationError.dispatch(e);\n }\n\n log('updateWorkersCompensation', response);\n OnLeadsWorkersCompensationUpdateEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeWorkersCompensationFormDialog from './LeadTypeWorkersCompensationDialogForm';\nimport { updateLeadWorkersCompensation } from '../leads-type-workers-compensation-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport {\n formatData,\n leadWorkersCompensationMap,\n leadWorkersCompensationCreateMap,\n} from '../leads-type-workers-compensation-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport {\n OnLeadsWorkersCompensationError,\n OnLeadsWorkersCompensationUpdateEvent,\n} from '../leads-type-workers-compensation-events';\n\n/**\n * Lead type workers compensation table info component\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeWorkersCompensationInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(\n leadWorkersCompensationMap(R.clone(leadTypeData)),\n );\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadWorkersCompensationToUpdate = {\n id: leadTypeFields.id,\n ...leadWorkersCompensationCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadWorkersCompensation(leadWorkersCompensationToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnLeadsWorkersCompensationUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeWorkersCompensationUpdate);\n });\n\n useEventSubscription(OnLeadsWorkersCompensationError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeWorkersCompensationInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeWorkersCompensationInfo;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport FormFields from '../../../../shared/components/forms/FormFields';\n\nconst LeadTypeEmployeeBenefitsForm = ({ leadTypeData, onChangeInput }) => {\n const rows = [\n [\n {\n key: 'annualPayroll',\n label: 'Annual Payroll',\n type: 'text',\n },\n {\n key: 'companyName',\n label: 'Company Name',\n type: 'text',\n },\n ],\n [\n {\n key: 'natureOfBusiness',\n label: 'Nature Of Business',\n type: 'text',\n },\n {\n key: 'numberOfEmployees',\n label: 'Number Of Employees',\n type: 'text',\n },\n ],\n ];\n\n return ;\n};\n\nLeadTypeEmployeeBenefitsForm.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n};\n\nexport default LeadTypeEmployeeBenefitsForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadTypeEmployeeBenefitsForm from './LeadTypeEmployeeBenefitsForm';\n\n/**\n * Lead type employee benefits dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadTypeData lead type employee benefits data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onChangeInput handle on change for the fields\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeEmployeeBenefitsFormDialog = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadTypeData,\n onCloseDialog,\n onChangeInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadTypeEmployeeBenefitsFormDialog.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadTypeData: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadTypeEmployeeBenefitsFormDialog.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadTypeEmployeeBenefitsFormDialog;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadsEmployeeBenefitsUpdateEvent = createEvent();\n\nexport const OnLeadsEmployeeBenefitsError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport { LEAD_TYPE_EMPLOYEE_BENEFITS_UPDATE_MUTATION } from './leads-type-employee-benefits-queries';\nimport { leadEmployeeBenefitsValidations } from './leads-type-employee-benefits-utils';\nimport {\n OnLeadsEmployeeBenefitsError,\n OnLeadsEmployeeBenefitsUpdateEvent,\n} from './leads-type-employee-benefits-events';\n\n/**\n * Update a lead type employee benefits\n *\n * @param {object} leadEmployeeBenefits lead type employee benefits\n * @returns {object} response data\n */\nexport const updateLeadEmployeeBenefits = async (leadEmployeeBenefits) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadEmployeeBenefitsValidations(leadEmployeeBenefits);\n } catch (e) {\n error('updateEmployeeBenefits', e);\n\n return OnLeadsEmployeeBenefitsError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_TYPE_EMPLOYEE_BENEFITS_UPDATE_MUTATION,\n variables: { data: leadEmployeeBenefits },\n });\n } catch (e) {\n error('updateEmployeeBenefits', e);\n\n return OnLeadsEmployeeBenefitsError.dispatch(e);\n }\n\n log('updateEmployeeBenefits', response);\n OnLeadsEmployeeBenefitsUpdateEvent.dispatch(response.data);\n return response.data;\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as R from 'ramda';\nimport LeadTypeEmployeeBenefitsFormDialog from './LeadTypeEmployeeBenefitsDialogForm';\nimport { updateLeadEmployeeBenefits } from '../leads-type-employee-benefits-actions';\nimport { onErrorMixinFC, onChangeDataHookMixin } from '../../../../shared/mixins';\nimport {\n formatData,\n leadEmployeeBenefitsMap,\n leadEmployeeBenefitsCreateMap,\n} from '../leads-type-employee-benefits-utils';\nimport { ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport PaperInfo from '../../components/PaperInfo';\nimport {\n OnLeadsEmployeeBenefitsError,\n OnLeadsEmployeeBenefitsUpdateEvent,\n} from '../leads-type-employee-benefits-events';\n\n/**\n * Lead type employee benefits table info component\n *\n * @param {object} props component props\n * @param {object} props.leadTypeData data\n *\n * @returns {React.FC} The react component\n */\nconst LeadTypeEmployeeBenefitsInfo = ({ leadTypeData }) => {\n const [loading, setLoading] = useState(false);\n const [leadTypeInfo, setLeadTypeInfo] = useState(R.clone(leadTypeData));\n const [leadTypeFields, setLeadTypeFields] = useState(\n leadEmployeeBenefitsMap(R.clone(leadTypeData)),\n );\n const [isOpenForm, setIsOpenForm] = useState(false);\n const handleOnSubmitForm = () => {\n const leadEmployeeBenefitsToUpdate = {\n id: leadTypeFields.id,\n ...leadEmployeeBenefitsCreateMap(leadTypeFields),\n };\n\n setLoading(true);\n updateLeadEmployeeBenefits(leadEmployeeBenefitsToUpdate);\n };\n const handleOnChangeInput = (value, key) => {\n onChangeDataHookMixin(leadTypeFields, setLeadTypeFields, key, value);\n };\n\n useEventSubscription(OnLeadsEmployeeBenefitsUpdateEvent, (data) => {\n setLoading(false);\n setIsOpenForm(false);\n setLeadTypeInfo(data.leadTypeEmployeeBenefitUpdate);\n });\n\n useEventSubscription(OnLeadsEmployeeBenefitsError, (err) => {\n setLoading(false);\n onErrorMixinFC(err);\n });\n\n return (\n <>\n setIsOpenForm(true)}>\n \n {leadTypeInfo &&\n formatData(leadTypeInfo).map((row, i) => {\n return (\n \n \n {row.map((column, j) => {\n return (\n \n {column.label}\n {column.value}\n \n );\n })}\n \n \n );\n })}\n \n \n setIsOpenForm(false)}\n />\n \n );\n};\n\nLeadTypeEmployeeBenefitsInfo.propTypes = {\n leadTypeData: PropTypes.object.isRequired,\n};\n\nexport default LeadTypeEmployeeBenefitsInfo;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport {} from '@8base/boost';\nimport { TextContact, PriorityBadge, OptionsDropdown } from '../../../shared/components';\nimport moment from 'moment';\nimport { TextContactHeader } from 'shared/components/ui/text/TextContact';\n\nconst MiniCardContainer = styled.div`\n padding: 8px 16px;\n`;\n\nconst MiniCardHeader = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nconst MiniCardTitle = styled.span`\n & span {\n font-weight: 600 !important;\n }\n`;\n\nconst MiniCardFooter = styled.div`\n display: flex;\n margin-top: 20px;\n`;\n\nconst TypeBox = styled.div`\n margin-right: auto;\n color: #9b9b9b;\n border-radius: 5px;\n padding: 2px 10px;\n font-size: 11px;\n background-color: #f4f5f6;\n display: flex;\n align-items: center;\n`;\n\nconst MiniCard = ({ data, options, canSeeOptions }) => {\n const { createdAt, title, priority, description, type, notes, createdBy } = data;\n const formatedDate = moment(createdAt).format('MM/DD/YYYY, hh:mm a');\n const firstName = createdBy?.firstName || '';\n const lastName = createdBy?.lastName || '';\n\n let typeBox;\n if (type) {\n typeBox = {type.name};\n }\n\n let priorityBadge;\n if (priority) {\n priorityBadge = ;\n }\n\n let optionsDropdown;\n if (canSeeOptions) {\n optionsDropdown = ;\n }\n\n return (\n \n \n \n {`${notes ? 'Disposition Note' : 'Lead Note'}`}\n
    \n {`${title || notes}`}\n
    \n {`${firstName} ${lastName} ${formatedDate}`}\n
    \n
    \n {optionsDropdown}\n
    \n
    {description}
    \n \n {typeBox}\n {priorityBadge}\n \n
    \n );\n};\n\nMiniCard.defaultProps = {\n canSeeOptions: false,\n};\n\nMiniCard.propTypes = {\n data: PropTypes.object.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n danger: PropTypes.bool,\n }),\n ).isRequired,\n canSeeOptions: PropTypes.bool,\n};\n\nexport default MiniCard;\n","import React, { useEffect, useMemo, useState, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport PropTypes from 'prop-types';\nimport { Row, Heading, Icon, Loader, useModal } from '@8base/boost';\nimport NoteForm from './forms/NoteForm';\nimport { modalId } from '../../../shared/components/dialog/DecisionDialog';\nimport { fetchLeadNotes, deleteNote } from '../leads-notes/leads-notes-actions';\nimport { canSeeTaskAndNotesOptions } from '../lead-details-utils';\nimport {\n OnFetchLeadNotes,\n OnFetchLeadNotesError,\n onLeadNoteUpdate,\n onLeadNoteDelete,\n OnNoteCreateEvent,\n OnNoteError,\n} from '../leads-notes/leads-notes-events';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { Box } from '../../../shared/components/Box';\nimport NoteItem from './MiniCardNotes';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport * as toast from '../../../shared/components/toast/Toast';\n\nconst LeadNotes = ({ id }) => {\n const [notes, setNotes] = useState([]);\n const [loading, setLoading] = useState(true);\n const [selected, setSelected] = useState(null);\n const [isOpen, setOpen] = useState(false);\n const { openModal, closeModal } = useModal(modalId);\n const [user] = useUser();\n const agency = useAgency();\n\n useEffect(() => {\n setLoading(true);\n\n fetchLeadNotes(id);\n }, [id]);\n\n const onCreate = useCallback(() => {\n setSelected(null);\n setOpen(true);\n }, []);\n\n const onUpdate = useCallback((note) => {\n setSelected(note);\n setOpen(true);\n }, []);\n\n const onDelete = useCallback(\n (note) => {\n openModal(modalId, {\n title: 'Delete note',\n text: 'Are you sure you want to delete this note ?',\n confirmText: 'Yes, Delete',\n cancelText: 'Cancel',\n onCancel: () => closeModal(modalId),\n onClose: () => closeModal(modalId),\n onConfirm: () => deleteNote(note.id),\n });\n },\n [openModal, closeModal],\n );\n\n const onClose = useCallback(() => {\n setOpen(false);\n setSelected(null);\n }, []);\n\n useSubscription(\n OnFetchLeadNotes,\n ({ leadNotesList, leadDispositionsList }) => {\n setNotes([...leadNotesList.items, ...leadDispositionsList.items]);\n\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchLeadNotesError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(OnNoteCreateEvent, () => {\n toast.success('Success', 'Note created successfully');\n\n setLoading(true);\n\n fetchLeadNotes(id);\n });\n\n useSubscription(\n onLeadNoteUpdate,\n () => {\n toast.success('Success', 'Note updated successfully');\n\n setLoading(true);\n\n fetchLeadNotes(id);\n },\n [],\n );\n\n useSubscription(\n onLeadNoteDelete,\n () => {\n toast.success('Success', 'Note deleted successfully');\n\n closeModal(modalId);\n\n setLoading(true);\n\n fetchLeadNotes(id);\n },\n [closeModal],\n );\n\n useSubscription(OnNoteError, (err) => {\n onErrorMixinFC(err);\n });\n\n const items = useMemo(\n () =>\n notes.map((note) => (\n onUpdate(note),\n },\n {\n label: 'Delete',\n onClick: () => onDelete(note),\n danger: true,\n },\n ]}\n canSeeOptions={canSeeTaskAndNotesOptions(user, agency)}\n data={note}\n />\n )),\n [notes, user, agency, onUpdate, onDelete],\n );\n\n const content = loading ? (\n \n \n \n ) : (\n items\n );\n\n return (\n \n \n \n Notes\n \n \n \n \n {content}\n \n \n \n );\n};\n\nLeadNotes.propTypes = {\n id: PropTypes.string.isRequired,\n};\n\nexport default LeadNotes;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { PropTypes } from 'prop-types';\nimport {} from '@8base/boost';\nimport { TextContact, PriorityBadge, OptionsDropdown } from '../../../shared/components';\nimport moment from 'moment';\n\nconst MiniCardContainer = styled.div`\n padding: 8px 16px;\n`;\n\nconst MiniCardHeader = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nconst MiniCardTitle = styled.span`\n & span {\n font-weight: 600 !important;\n }\n`;\n\nconst MiniCardFooter = styled.div`\n display: flex;\n margin-top: 20px;\n`;\n\nconst TypeBox = styled.div`\n margin-right: auto;\n color: #9b9b9b;\n border-radius: 5px;\n padding: 2px 10px;\n font-size: 11px;\n background-color: #f4f5f6;\n display: flex;\n align-items: center;\n`;\n\nconst MiniCard = ({ data, options, canSeeOptions }) => {\n const { date, title, priority, description, type } = data;\n const formatedDate = moment(date).format('MM/DD/YYYY');\n\n let typeBox;\n if (type) {\n typeBox = {type.name};\n }\n\n let priorityBadge;\n if (priority) {\n priorityBadge = ;\n }\n\n let optionsDropdown;\n if (canSeeOptions) {\n optionsDropdown = ;\n }\n\n return (\n \n \n \n {`${title} - ${formatedDate}`}\n \n {optionsDropdown}\n \n
    {description}
    \n \n {typeBox}\n {priorityBadge}\n \n
    \n );\n};\n\nMiniCard.defaultProps = {\n canSeeOptions: false,\n};\n\nMiniCard.propTypes = {\n data: PropTypes.object.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n danger: PropTypes.bool,\n }),\n ).isRequired,\n canSeeOptions: PropTypes.bool,\n};\n\nexport default MiniCard;\n","import React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { Heading, Row, Icon, Loader, useModal } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport TaskForm from './forms/TaskForm';\nimport { fetchLeadTasks } from '../leads-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnFetchLeadTasks, OnFetchLeadTasksError } from '../leads-store';\nimport { canSeeTaskAndNotesOptions } from '../lead-details-utils';\nimport { deleteLeadTask } from '../../lead-task/lead-task-actions';\nimport TaskItem from './MiniCard';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { modalId } from '../../../shared/components/dialog/DecisionDialog';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { onTaskCreate, onTaskUpdateEvent } from '../leads-events';\nimport { OnLeadTaskDelete } from 'modules/lead-task/lead-task-events';\n\nconst LeadTasks = ({ id, users }) => {\n const [tasks, setTasks] = useState([]);\n const [loading, setLoading] = useState(true);\n const [isOpen, setOpen] = useState(false);\n const [selected, setSelected] = useState(null);\n const { openModal, closeModal } = useModal(modalId);\n const [user] = useUser();\n const agency = useAgency();\n\n useEffect(() => {\n setLoading(true);\n\n fetchLeadTasks(id);\n }, [id]);\n\n const onCreate = useCallback(() => {\n setSelected(null);\n setOpen(true);\n }, []);\n\n const onUpdate = useCallback((task) => {\n setSelected(task);\n setOpen(true);\n }, []);\n\n const onDelete = useCallback(\n (task) => {\n openModal(modalId, {\n title: 'Delete Task',\n text: 'Are you sure you want to delete this task ?',\n confirmText: 'Yes, Delete',\n cancelText: 'Cancel',\n onClose: () => closeModal(modalId),\n onCancel: () => closeModal(modalId),\n onConfirm: () => deleteLeadTask(task.id),\n });\n },\n [openModal, closeModal],\n );\n\n const onClose = useCallback(() => {\n setOpen(false);\n setSelected(null);\n }, []);\n\n useSubscription(\n OnFetchLeadTasks,\n ({ leadTasksList }) => {\n setTasks(leadTasksList.items);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchLeadTasksError,\n (e) => {\n setLoading(false);\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(onTaskCreate, () => {\n setLoading(true);\n\n fetchLeadTasks(id);\n });\n\n useSubscription(onTaskUpdateEvent, () => {\n setLoading(true);\n\n fetchLeadTasks(id);\n });\n\n useSubscription(OnLeadTaskDelete, () => {\n setLoading(true);\n\n fetchLeadTasks(id);\n\n closeModal(modalId);\n });\n\n const items = useMemo(\n () =>\n tasks.map((task) => (\n onUpdate(task),\n },\n {\n label: 'Delete',\n onClick: () => onDelete(task),\n danger: true,\n },\n ]}\n canSeeOptions={canSeeTaskAndNotesOptions(user, agency)}\n key={task.id}\n data={task}\n />\n )),\n [tasks, user, agency, onUpdate, onDelete],\n );\n\n const content = loading ? (\n \n \n \n ) : (\n items\n );\n\n return (\n \n \n \n Tasks\n \n \n \n \n {content}\n \n {isOpen && (\n \n )}\n \n );\n};\n\nLeadTasks.propTypes = {\n id: PropTypes.string.isRequired,\n users: PropTypes.arrayOf(PropTypes.object).isRequired,\n};\n\nexport default LeadTasks;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, Grid } from '@8base/boost';\nimport { GENDER_OPTIONS, STATES_OPTIONS } from '../../leads-model';\nimport Field from '../../../../shared/components/Field';\n\nconst sections = [\n {\n title: 'Personal Data',\n rows: [\n [\n {\n label: 'First Name',\n type: 'text',\n key: 'firstName',\n },\n {\n label: 'Last Name',\n type: 'text',\n key: 'lastName',\n },\n {\n label: 'Email',\n type: 'text',\n key: 'email',\n },\n ],\n [\n {\n label: 'Birth Date',\n type: 'date',\n key: 'birthDate',\n },\n {\n label: 'Gender',\n type: 'select',\n key: 'gender',\n options: GENDER_OPTIONS,\n },\n {\n label: 'Marital Status',\n type: 'select',\n key: 'maritalStatus',\n options: [\n { label: 'WIDOW', value: 'WIDOW' },\n { label: 'SINGLE', value: 'SINGLE' },\n { label: 'MARRIED', value: 'MARRIED' },\n ],\n },\n ],\n [\n {\n label: 'Age First Licensed',\n type: 'date',\n key: 'ageFirstLicensed',\n },\n {\n label: 'Licensed State',\n type: 'select',\n key: 'licensedState',\n options: STATES_OPTIONS,\n },\n {\n label: 'Licensed Status',\n type: 'text',\n key: 'licenseStatus',\n },\n ],\n [\n {\n label: 'Fulltime Student',\n type: 'checkbox',\n key: 'fullTimeStudent',\n },\n {\n label: 'Education',\n type: 'text',\n key: 'education',\n },\n {\n label: 'Occupation',\n type: 'text',\n key: 'occupation',\n },\n ],\n [\n {\n label: 'Relationship To Applicant',\n type: 'text',\n key: 'relationshipToApplicant',\n },\n {\n label: 'Credit Rating',\n type: 'text',\n key: 'creditRating',\n },\n ],\n ],\n },\n {\n title: 'Contact Data',\n rows: [\n [\n {\n label: 'Cell Phone',\n type: 'text',\n key: 'cellPhone',\n },\n {\n label: 'Daytime Phone',\n type: 'text',\n key: 'daytimePhone',\n },\n {\n label: 'Evening Phone',\n type: 'text',\n key: 'eveningPhone',\n },\n ],\n [\n {\n label: 'Preferred Contact Number',\n type: 'text',\n key: 'preferredContactNumber',\n },\n {\n label: 'Preferred Contact Time',\n type: 'date',\n key: 'preferredContactTime',\n },\n ],\n ],\n },\n {\n title: 'Vehicle Data',\n rows: [\n [\n {\n label: 'Make Of Vehicle',\n type: 'text',\n key: 'makeOfVehicle',\n },\n {\n label: 'Model Of Vehicle',\n type: 'text',\n key: 'modelOfVehicle',\n },\n {\n label: 'Year Of Vehicle',\n type: 'text',\n key: 'yearOfVehicle',\n },\n ],\n [\n {\n label: 'Trim',\n type: 'text',\n key: 'trim',\n },\n {\n label: 'Style',\n type: 'text',\n key: 'style',\n },\n {\n label: 'Ownership',\n type: 'text',\n key: 'ownership',\n },\n ],\n [\n {\n label: 'Primary Use',\n type: 'text',\n key: 'primaryUse',\n },\n {\n label: 'Average One Way Mileage',\n type: 'text',\n key: 'averageOneWayMileage',\n },\n {\n label: 'Annual Mileage',\n type: 'text',\n key: 'annualMileage',\n },\n ],\n [\n {\n label: 'Vehicle Parking',\n type: 'text',\n key: 'vehicleParking',\n },\n {\n label: 'Anti Lock Breaks',\n type: 'text',\n key: 'antiLockBreaks',\n },\n {\n label: 'Security System',\n type: 'text',\n key: 'securitySystem',\n },\n ],\n [\n {\n label: 'salvagedVehicle',\n type: 'text',\n key: 'salvagedVehicle',\n },\n ],\n ],\n },\n {\n title: 'Residence Data',\n rows: [\n [\n {\n label: 'Years At Current Residence',\n type: 'text',\n key: 'yearsAtCurrentResidence',\n },\n {\n label: 'City',\n type: 'text',\n key: 'city',\n },\n {\n label: 'State',\n type: 'text',\n key: 'state',\n },\n ],\n [\n {\n label: 'Address Line 1',\n type: 'text',\n key: 'street1',\n },\n {\n label: 'Address Line 2',\n type: 'text',\n key: 'street2',\n },\n {\n label: 'zip',\n type: 'text',\n key: 'zip',\n },\n ],\n ],\n },\n {\n title: 'Insurance Data',\n rows: [\n [\n {\n label: 'Insurance Company',\n type: 'text',\n key: 'insuranceCompany',\n },\n {\n label: 'Continuously Insured Years',\n type: 'text',\n key: 'continuouslyInsuredYears',\n },\n {\n label: 'Continuously Insured Months',\n type: 'text',\n key: 'continuouslyInsuredMonths',\n },\n ],\n [\n {\n label: 'Current Insurance Company Years',\n type: 'text',\n key: 'currentInsuranceCompanyYears',\n },\n {\n label: 'Current Insurance Company Months',\n type: 'text',\n key: 'currentInsuranceCompanyMonths',\n },\n {\n label: 'Insured In The Past 30 Days',\n type: 'checkbox',\n key: 'insuredPast30Days',\n },\n ],\n ],\n },\n {\n title: 'Other Data',\n rows: [\n [\n {\n label: 'Years In Field',\n type: 'text',\n key: 'yearsInField',\n },\n {\n label: 'Policy Expiration Date',\n type: 'text',\n key: 'policyExpirationDate',\n },\n {\n label: 'How Many Incidents Past 5 Years',\n type: 'text',\n key: 'howManyIncidentsInThePast5Years',\n },\n ],\n [\n {\n label: 'Incidents Past 5 Years',\n type: 'text',\n key: 'incidentsPast5Years',\n },\n {\n label: 'Violations Past 5 Years',\n type: 'text',\n key: 'violationsPast5Years',\n },\n {\n label: 'Activity Past 5 Years',\n type: 'text',\n key: 'activityPast5Years',\n },\n ],\n [\n {\n label: 'Vin',\n type: 'text',\n key: 'vin',\n },\n {\n label: 'Tickets Accidents Claims Past 3 Years',\n type: 'checkbox',\n key: 'ticketsAccidentsClaimsPast3Years',\n },\n {\n label: 'Additional Drivers',\n type: 'checkbox',\n key: 'additionalDrivers',\n },\n ],\n [\n {\n label: 'Additional Vehicles',\n type: 'checkbox',\n key: 'additionalVehicles',\n },\n {\n label: 'Completed Behind The Wheel',\n type: 'checkbox',\n key: 'completedBehindTheWheel',\n },\n {\n label: 'Current Bodily Injury Coverages',\n type: 'text',\n key: 'currentBodilyInjuryCoverages',\n },\n ],\n [\n {\n label: 'Current Property Damage Coverages',\n type: 'text',\n key: 'currentPropertyDamageCoverages',\n },\n {\n label: 'Current Coverage Level',\n type: 'text',\n key: 'currentCoverageLevel',\n },\n {\n label: 'Coverage Level',\n type: 'text',\n key: 'coverageLevel',\n },\n ],\n [\n {\n label: 'Current Comprehensive Deductible',\n type: 'text',\n key: 'currentComprehensiveDeductible',\n },\n {\n label: 'Current Collision Deductible',\n type: 'text',\n key: 'currentCollisionDeductible',\n },\n {\n label: 'Filling Required',\n type: 'text',\n key: 'fillingRequired',\n },\n ],\n [\n {\n label: 'Bankruptcy In Past 5 Years',\n type: 'checkbox',\n key: 'bankruptcyInPast5Years',\n },\n {\n label: 'Multiple Policy Discount',\n type: 'text',\n key: 'multiplePolicyDiscount',\n },\n {\n label: 'eNewsletter',\n type: 'text',\n key: 'eNewsletter',\n },\n ],\n [\n {\n label: 'Suspended Or Revoked In The Past 5 Years',\n type: 'checkbox',\n key: 'suspendedOrRevokedInThePast5Years',\n },\n {\n label: 'DUIDWI In The Past 5 Years',\n type: 'date',\n key: 'dUIDWIInThePast5Years',\n },\n {\n label: 'Date Of DUIDWI',\n type: 'date',\n key: 'dateOfDUIDWI',\n },\n ],\n [\n {\n label: 'Desired Collision Coverage',\n type: 'text',\n key: 'desiredCollisionCoverage',\n },\n {\n label: 'Desired Comprehensive Coverage',\n type: 'text',\n key: 'desiredComprehensiveCoverage',\n },\n {\n label: 'Average Days Per Week Used',\n type: 'text',\n key: 'averageDaysPerWeekUsed',\n },\n ],\n [\n {\n label: 'Primary Driver',\n type: 'text',\n key: 'primaryDriver',\n },\n ],\n ],\n },\n];\n\n/**\n * Lead driver form\n *\n * @param {object} props component props\n * @param {object} props.leadDriver lead driver data\n * @param {Function} props.onBlurInput handle on blur for the fields\n * @returns {React.ReactElement} component\n */\nconst LeadDriverForm = ({ leadDriver, onBlurInput }) => {\n return (\n
    \n {sections.map((section, i) => {\n return (\n \n {section.title}\n \n {section.rows.map((row, j) => {\n return (\n \n {row.map((field, k) => {\n return (\n \n {\n onBlurInput(field.key, { target: { value } });\n },\n }\n : {})}\n />\n \n );\n })}\n \n );\n })}\n \n \n );\n })}\n
    \n );\n};\n\nLeadDriverForm.propTypes = {\n leadDriver: PropTypes.object.isRequired,\n onBlurInput: PropTypes.func.isRequired,\n};\n\nexport default LeadDriverForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DialogForm } from 'shared/components';\nimport LeadDriverForm from './LeadDriverForm';\n\n/**\n * Lead driver dialog that contains the form\n *\n * @param {object} props component props\n * @param {boolean} props.isOpen dialog open value\n * @param {boolean} props.isUpdate bool for change the title of the dialog\n * @param {boolean} props.loading bool for indicates if the request is loading\n * @param {Function} props.onSubmit handle for on submit form\n * @param {object} props.leadDriver lead driver data\n * @param {Function} props.onCloseDialog handle for close the dialog\n * @param {Function} props.onBlurInput handle on change for the fields\n * @returns {React.ReactElement} component\n */\nconst LeadDriverDialogForm = ({\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n leadDriver,\n onCloseDialog,\n onBlurInput,\n}) => {\n return (\n \n \n \n );\n};\n\nLeadDriverDialogForm.propTypes = {\n isUpdate: PropTypes.bool,\n isOpen: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n leadDriver: PropTypes.object.isRequired,\n onBlurInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nLeadDriverDialogForm.defaultProps = {\n isUpdate: false,\n};\n\nexport default LeadDriverDialogForm;\n","import moment from 'moment';\n\nexport const LEAD_DRIVER = {\n // Personal Data\n firstName: '',\n lastName: '',\n email: '',\n birthDate: moment().format('YYYY-MM-DD'),\n gender: '',\n maritalStatus: '',\n ageFirstLicensed: moment().format('YYYY-MM-DD'),\n licensedState: '',\n licenseStatus: '',\n fullTimeStudent: false,\n education: '',\n occupation: '',\n creditRating: 0,\n relationshipToApplicant: '',\n // Contact Data\n cellPhone: '',\n daytimePhone: '',\n eveningPhone: '',\n preferredContactNumber: '',\n preferredContactTime: moment().format('YYYY-MM-DD'),\n // Vehicle Data\n makeOfVehicle: '',\n modelOfVehicle: '',\n yearOfVehicle: 0,\n trim: '',\n style: '',\n ownership: '',\n primaryUse: '',\n averageOneWayMileage: 0,\n annualMileage: 0,\n vehicleParking: '',\n antiLockBreaks: '',\n securitySystem: '',\n salvagedVehicle: '',\n // Residence Data\n yearsAtCurrentResidence: 0,\n city: '',\n state: '',\n street1: '',\n street2: '',\n zip: '',\n // Insurance Data\n insuranceCompany: '',\n continuouslyInsuredYears: 0,\n continuouslyInsuredMonths: 0,\n currentInsuranceCompanyYears: 0,\n currentInsuranceCompanyMonths: 0,\n insuredPast30Days: false,\n // Other Data\n yearsInField: 0,\n policyExpirationDate: moment().format('YYYY-MM-DD'),\n howManyIncidentsInThePast5Years: 0,\n incidentsPast5Years: '',\n violationsPast5Years: '',\n activityPast5Years: '',\n vin: '',\n ticketsAccidentsClaimsPast3Years: true,\n additionalDrivers: false,\n additionalVehicles: false,\n completedBehindTheWheel: false,\n currentBodilyInjuryCoverages: '',\n currentPropertyDamageCoverages: '',\n currentCoverageLevel: '',\n coverageLevel: '',\n currentComprehensiveDeductible: 0,\n currentCollisionDeductible: '',\n fillingRequired: '',\n bankruptcyInPast5Years: false,\n multiplePolicyDiscount: '',\n eNewsletter: 0,\n suspendedOrRevokedInThePast5Years: false,\n dUIDWIInThePast5Years: moment().format('YYYY-MM-DD'),\n dateOfDUIDWI: moment().format('YYYY-MM-DD'),\n desiredCollisionCoverage: 0,\n desiredComprehensiveCoverage: 0,\n averageDaysPerWeekUsed: 0,\n primaryDriver: '',\n};\n","import Flux from '@cobuildlab/flux-state';\nimport { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchLeadDrivers = createEvent();\n\nexport const OnFetchLeadDriversError = createEvent();\n\n/**\n * Event that triggers an error.\n *\n * @type {string}\n */\nexport const LEAD_DRIVER_ERROR_EVENT = 'onLeadDriverError';\n\n/**\n * Event that triggers a Lead Driver create event.\n *\n * @type {string}\n */\nexport const LEAD_DRIVER_CREATE_EVENT = 'onLeadDriverCreate';\n\n/**\n * Event that triggers a Lead Driver update event.\n *\n * @type {string}\n */\nexport const LEAD_DRIVER_UPDATE_EVENT = 'onLeadDriverUpdate';\n\n/**\n * Event that triggers a Lead Driver delete event.\n *\n * @type {string}\n */\nexport const LEAD_DRIVER_DELETE_EVENT = 'onLeadDriverDelete';\n\nclass LeadDriverStore extends Flux.DashStore {\n constructor() {\n super();\n this.addEvent(LEAD_DRIVER_ERROR_EVENT);\n this.addEvent(LEAD_DRIVER_UPDATE_EVENT);\n this.addEvent(LEAD_DRIVER_CREATE_EVENT);\n this.addEvent(LEAD_DRIVER_DELETE_EVENT);\n }\n}\n\nexport default new LeadDriverStore();\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnLeadDriverCreateEvent = createEvent();\n\nexport const OnLeadDriverCreateError = createEvent();\n\nexport const OnLeadDriverUpdateEvent = createEvent();\n\nexport const OnLeadDriverDeleteEvent = createEvent();\n\nexport const OnLeadDriverError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n LEAD_DRIVER_UPDATE_MUTATION,\n LEAD_DRIVER_CREATE_MUTATION,\n LEAD_DRIVER_DELETE_MUTATION,\n FETCH_LEAD_DRIVERS,\n} from './leads-drivers-queries';\nimport { OnFetchLeadDrivers, OnFetchLeadDriversError } from './leads-drivers-store';\nimport { sanitize8BaseReference } from '../../../shared/utils';\nimport { leadDriverValidations } from './leads-drivers-utils';\nimport {\n OnLeadDriverCreateError,\n OnLeadDriverCreateEvent,\n OnLeadDriverDeleteEvent,\n OnLeadDriverError,\n OnLeadDriverUpdateEvent,\n} from './leads-driver-events';\n\n/**\n * Fetches the drivers for the specified lead\n *\n * @param {string} id - The lead id\n *\n * @returns {Promise} The request result\n */\nexport const fetchLeadDrivers = createAction(\n OnFetchLeadDrivers,\n OnFetchLeadDriversError,\n async (id) => {\n const client = OnApolloClient.get();\n\n const { data } = await client.query({\n query: FETCH_LEAD_DRIVERS,\n fetchPolicy: 'network-only',\n variables: {\n id,\n },\n });\n\n return {\n leadDriversList: {\n items: data.lead.drivers.items,\n },\n };\n },\n);\n\n/**\n * Creates a lead driver\n *\n * @param {object} leadDriver lead driver to create\n * @returns {object} response data\n */\nexport const createLeadDriver = async (leadDriver) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadDriverValidations(leadDriver);\n } catch (e) {\n error('createLeadDriver', e);\n\n return OnLeadDriverError.dispatch(e);\n }\n\n sanitize8BaseReference(leadDriver, 'driversLeadRelation');\n\n try {\n response = await client.mutate({\n mutation: LEAD_DRIVER_CREATE_MUTATION,\n variables: { data: leadDriver },\n });\n } catch (e) {\n error('createLeadDriver', e);\n\n return OnLeadDriverCreateError.dispatch(response.data);\n }\n\n log('createLeadDriver', response);\n OnLeadDriverCreateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Update a lead driver\n *\n * @param {object} leadDriver lead driver to update\n * @returns {object} response data\n */\nexport const updateLeadDriver = async (leadDriver) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n leadDriverValidations(leadDriver);\n } catch (e) {\n error('updateLeadDriver', e);\n\n return OnLeadDriverError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: LEAD_DRIVER_UPDATE_MUTATION,\n variables: { data: leadDriver },\n });\n } catch (e) {\n error('updateLeadDriver', e);\n\n return OnLeadDriverError.dispatch(e);\n }\n\n log('updateLeadDriver', response);\n OnLeadDriverUpdateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Delete a lead driver\n *\n * @param {string} leadDriverId lead driver id to delete\n * @returns {object} response data\n */\nexport const deleteLeadDriver = async (leadDriverId) => {\n const client = OnApolloClient.get();\n let response;\n\n try {\n response = await client.mutate({\n mutation: LEAD_DRIVER_DELETE_MUTATION,\n variables: { data: { id: leadDriverId } },\n });\n } catch (e) {\n error('deleteLeadDriver', e);\n\n return OnLeadDriverError.dispatch(e);\n }\n\n log('deleteLeadDriver', response);\n OnLeadDriverDeleteEvent.dispatch(response.data);\n\n return response.data;\n};\n","import React, { useEffect, useState } from 'react';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport PropTypes from 'prop-types';\nimport PaperInfo from '../../components/PaperInfo';\nimport { styled, Grid } from '@8base/boost';\nimport { RowHeader, ColumnInfo, ColumnName, ColumnValue } from '../../components/ColumnInfo';\nimport { IconTrash, IconUpdate } from '../../../../shared/components/ui/Icons';\nimport { TextContact, YesNoDialog } from '../../../../shared/components';\nimport * as R from 'ramda';\nimport LeadDriverDialogForm from './LeadDriverDialogForm';\nimport { formatDriversData, driverMap, driverCreateMap } from '../leads-drivers-utils';\nimport { LEAD_DRIVER } from '../leads-drivers-model';\nimport {\n fetchLeadDrivers,\n updateLeadDriver,\n createLeadDriver,\n deleteLeadDriver,\n} from '../leads-drivers-actions';\nimport { OnFetchLeadDrivers, OnFetchLeadDriversError } from '../leads-drivers-store';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as toast from 'shared/components/toast/Toast';\nimport {\n OnLeadDriverCreateEvent,\n OnLeadDriverDeleteEvent,\n OnLeadDriverError,\n OnLeadDriverUpdateEvent,\n} from '../leads-driver-events';\n\nconst DriverHeader = styled(RowHeader)`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n`;\n\nconst StyledMargin = styled.div`\n display: flex;\n justify-content: flex-end;\n margin: 0 6px;\n\n > img {\n margin: 0 5px;\n }\n`;\n\nconst LeadDriverInfo = ({ id }) => {\n const [drivers, setDrivers] = useState([]);\n const [loading, setLoading] = useState(true);\n const [leadDriver, setLeadDriver] = useState(R.clone(LEAD_DRIVER));\n const [isOpenLeadDriverForm, setIsOpenLeadDriverForm] = useState(false);\n const [loadingLeadDriver, setLoadingLeadDriver] = useState(false);\n const [loadingDeleteDriver, setLoadingDeleteDriver] = useState(false);\n const [isUpdateLeadDriver, setIsUpdateLeadDriver] = useState(false);\n const [isOpenLeadDriverDelete, setIsOpenLeadDriverDelete] = useState(false);\n\n useEffect(() => {\n setLoading(true);\n\n fetchLeadDrivers(id);\n }, [id]);\n\n useEventSubscription(\n OnFetchLeadDrivers,\n ({ leadDriversList }) => {\n setDrivers(leadDriversList.items);\n setLoading(false);\n },\n [],\n );\n\n useEventSubscription(\n OnFetchLeadDriversError,\n (e) => {\n onErrorMixinFC(e);\n setLoading(false);\n },\n [],\n );\n\n const handleOnBlur = (key, event) => {\n leadDriver[key] = event.target.value;\n };\n\n const handleOnSubmitLeadDriver = () => {\n const dataLeadDriver = driverCreateMap(leadDriver);\n\n setLoadingLeadDriver(true);\n\n if (isUpdateLeadDriver) {\n dataLeadDriver.id = leadDriver.id;\n\n updateLeadDriver(dataLeadDriver);\n } else {\n dataLeadDriver.driversLeadRelation = id;\n\n createLeadDriver(dataLeadDriver);\n }\n };\n const handleOnYesLeadDriverDelete = () => {\n setLoadingDeleteDriver(true);\n deleteLeadDriver(leadDriver.id);\n };\n const handleOnNoLeadDriverDelete = () => {\n setLeadDriver(R.clone(LEAD_DRIVER));\n setIsOpenLeadDriverDelete(false);\n };\n\n useEventSubscription(OnLeadDriverCreateEvent, () => {\n setLoadingLeadDriver(false);\n setIsOpenLeadDriverForm(false);\n\n setLoading(true);\n\n fetchLeadDrivers(id);\n\n toast.success('Lead Management', 'Lead Driver Successfully Created');\n });\n\n useEventSubscription(OnLeadDriverUpdateEvent, () => {\n setLoadingLeadDriver(false);\n setIsOpenLeadDriverForm(false);\n setIsUpdateLeadDriver(false);\n setLeadDriver(R.clone(LEAD_DRIVER));\n\n setLoading(true);\n\n fetchLeadDrivers(id);\n\n toast.success('Lead Management', 'Lead Driver Successfully Updated');\n });\n\n useEventSubscription(OnLeadDriverError, (err) => {\n onErrorMixinFC(err);\n setLoadingLeadDriver(false);\n });\n\n useEventSubscription(OnLeadDriverDeleteEvent, (err) => {\n setLeadDriver(R.clone(LEAD_DRIVER));\n setIsOpenLeadDriverDelete(false);\n setLoadingDeleteDriver(false);\n\n setLoading(true);\n\n fetchLeadDrivers(id);\n\n toast.success('Lead Management', 'Lead Driver Successfully Delete');\n });\n\n return (\n <>\n setIsOpenLeadDriverForm(true)}>\n {formatDriversData(drivers).map((driver, driverIndex) => {\n const driverData = drivers[driverIndex];\n const driverMapped = driverMap(driverData);\n\n return (\n
    \n \n {driver.header}\n \n {\n setLeadDriver(driverMapped);\n setIsOpenLeadDriverDelete(true);\n }}\n />\n {\n setLeadDriver(driverMapped);\n setIsUpdateLeadDriver(true);\n setIsOpenLeadDriverForm(true);\n }}\n />\n \n \n \n {driver.rows.map((row, rowIndex) => {\n return (\n \n \n {row.map((column, columnIndex) => {\n return (\n \n {column.label}\n \n {column.isTextContact ? (\n {column.value}\n ) : (\n column.value\n )}\n \n \n );\n })}\n \n \n );\n })}\n \n
    \n );\n })}\n \n {\n setIsOpenLeadDriverForm(false);\n setIsUpdateLeadDriver(false);\n setLeadDriver(R.clone(LEAD_DRIVER));\n }}\n />\n \n \n );\n};\n\nLeadDriverInfo.propTypes = {\n id: PropTypes.string.isRequired,\n};\n\nexport default LeadDriverInfo;\n","import React, { useState, useEffect, useCallback, useMemo } from 'react';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { Box } from '../../shared/components/Box';\nimport { useHistory, useLocation, useParams } from 'react-router-dom';\nimport { Loader, Row, Text } from '@8base/boost';\nimport { LeadDetailsHeader } from './components/LeadDetailsHeader';\nimport { LeadAmountForm } from './components/forms/LeadAmountForm';\nimport { LeadStageForm } from './components/forms/LeadStageForm';\nimport { LeadCampaignForm } from './components/forms/LeadCampaignForm';\nimport { LeadAssigneesForm } from './components/forms/LeadAssigneesForm';\nimport { LeadInfoCard } from './components/forms/LeadInfoCard';\nimport LeadTypeAutoInfo from './leads-type-auto/components/LeadTypeAutoInfo';\nimport LeadTypeCommercialAutoInfo from './leads-type-commercial-auto/components/LeadTypeCommercialAutoInfo';\nimport LeadTypeGeneralLiabilityInfo from './leads-type-general-liability/components/LeadTypeGeneralLiabilityInfo';\nimport LeadTypeLifeInfo from './leads-type-life/components/LeadTypeLifeInfo';\nimport LeadTypeHomeInfo from './leads-type-home/components/LeadTypeHomeInfo';\nimport LeadTypeWorkersCompensationInfo from './leads-type-workers-compensation/components/LeadTypeWorkersCompensationInfo';\nimport LeadTypeEmployeeBenefitsInfo from './leads-type-employee-benefits/components/LeadTypeEmployeeBenefitsInfo';\nimport DecisionDialog from '../../shared/components/dialog/DecisionDialog';\nimport {\n OnFetchLeadEvent,\n OnFetchLeadEventError,\n OnFetchCampaigns,\n OnFetchCampaignsError,\n} from './leads-store';\nimport { fetchLeadDetails, fetchAgencyCampaigns } from './leads-actions';\nimport { fetchAgencyAgents } from './../users/user-actions';\nimport { onErrorMixinFC } from '../../shared/mixins';\nimport * as toast from 'shared/components/toast/Toast';\nimport LeadNotes from './components/LeadNotes';\nimport LeadTasks from './components/LeadTasks';\nimport LeadDriverInfo from './leads-drivers/components/LeadDriverInfo';\nimport { LeadHistory } from './leads-history/components/LeadHistory';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { OnFetchAgents, OnFetchAgentsError } from '../users/user-events';\nimport moment from 'moment';\n\nconst LeadDetailsView = () => {\n const { id } = useParams();\n const agency = useAgency();\n const [lead, setLead] = useState(null);\n const [loading, setLoading] = useState(true);\n const [campaigns, setCampaigns] = useState([]);\n const [users, setUsers] = useState([]);\n const history = useHistory();\n\n const fetch = useCallback(() => {\n fetchLeadDetails(id);\n }, [id]);\n\n const leadLastCalled = useMemo(() => {\n return lead?.callCadence?.lastCalled\n ? moment(lead.callCadence.lastCalled).format('MM-DD-YYYY - LT')\n : 'Lead has not been called yet';\n }, [lead]);\n\n useEffect(() => {\n setLoading(true);\n\n fetch();\n }, [fetch]);\n\n useEffect(() => {\n fetchAgencyCampaigns(agency.id);\n fetchAgencyAgents(agency.id);\n }, [agency]);\n\n useSimpleSubscription(\n OnFetchLeadEvent,\n (data) => {\n if (data.lead) {\n setLead(data.lead);\n setLoading(false);\n } else {\n toast.warn('The lead you tried to reach does not exist');\n\n history.replace('/dashboard');\n }\n },\n [],\n );\n\n useSimpleSubscription(\n OnFetchLeadEventError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSimpleSubscription(\n OnFetchCampaigns,\n ({ campaignsList }) => {\n setCampaigns(campaignsList.items);\n },\n [],\n );\n\n useSimpleSubscription(\n OnFetchCampaignsError,\n (e) => {\n toast.error('Could not get campaigns: ' + e.message);\n },\n [],\n );\n\n useSimpleSubscription(\n OnFetchAgents,\n ({ usersList }) => {\n setUsers(usersList.items);\n },\n [],\n );\n\n useSimpleSubscription(\n OnFetchAgentsError,\n (e) => {\n toast.error('Could not get users in agency: ' + e.message);\n },\n [],\n );\n\n if (loading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n \n \n \n \n \n Created: \n {moment(lead.createdAt).format('MM-DD-YYYY - LT')}\n \n \n Last Update: \n {moment(lead.updatedAt).format('MM-DD-YYYY - LT')}\n \n \n Last Called: \n {leadLastCalled}\n \n \n \n \n \n \n \n {/* LEAD TYPES */}\n {lead.leadLeadTypeAutoRelation && (\n \n )}\n {lead.leadLeadTypeCommercialAutoRelation && (\n \n )}\n {lead.leadLeadTypeGeneralLiabilityRelation && (\n \n )}\n {lead.leadLeadTypeLifeRelation && (\n \n )}\n {lead.leadLeadTypeHomeRelation && (\n \n )}\n {lead.leadLeadTypeWorkersCompensationRelation && (\n \n )}\n {lead.leadLeadTypeEmployeeBenefitRelation && (\n \n )}\n \n \n \n \n \n );\n};\n\nexport default LeadDetailsView;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport StyledBadge from '../../../../shared/components/ui/StyledBadge';\n\nexport const Status = ({ status }) => {\n let priority;\n if (status === 'APPROVED') {\n priority = 1;\n } else if (status === 'PENDING') {\n priority = 2;\n } else if (status === 'EXPIRED') {\n priority = 3;\n } else if (status === 'REJECTED') {\n priority = 4;\n }\n return {status};\n};\nStatus.propTypes = {\n status: PropTypes.string.isRequired,\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnCreateInvitationCompanyEvent = createEvent();\n\nexport const OnCreateInvitationCompanyError = createEvent();\n\nexport const OnDeleteinvitationEvent = createEvent();\n\nexport const OnDeleteinvitationError = createEvent();\n\nexport const OnResendInvitationEvent = createEvent();\n\nexport const OnResendInvitationError = createEvent();\n\nexport const OnInvitationListEvent = createEvent();\n\nexport const OnInvitationListError = createEvent();\n\nexport const OnCreateInvitationEvent = createEvent();\n\nexport const OnCreateInvitationError = createEvent();\n","import { OnApolloClient, OnSessionFetch } from '../../../shared/session/session-events';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport {\n QUERY_INVITATIONS,\n CREATE_INVITATION,\n RESEND_INVITATION,\n DELETE_INVITATION,\n CREATE_INVITATION_COMPANY,\n} from './invitations-queries';\nimport {\n createAgencyInvitationValidator,\n createCompanyInvitationValidator,\n} from '@cobuildlab/lead-volt-share';\nimport { normalize8baseReferenceConnect } from '@cobuildlab/8base-utils';\nimport {\n OnCreateInvitationCompanyError,\n OnCreateInvitationCompanyEvent,\n OnCreateInvitationError,\n OnCreateInvitationEvent,\n OnDeleteinvitationError,\n OnDeleteinvitationEvent,\n OnInvitationListError,\n OnInvitationListEvent,\n OnResendInvitationError,\n OnResendInvitationEvent,\n} from './invitation-events';\n\nexport const fetchInvitationList = async (agencyId, pageSize, queryOffset) => {\n const client = OnApolloClient.get();\n const variables = { agencyId: agencyId, limit: pageSize, offset: queryOffset };\n try {\n const response = await client.query({\n query: QUERY_INVITATIONS,\n fetchPolicy: 'network-only',\n variables,\n });\n OnInvitationListEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnInvitationListError.dispatch(e);\n }\n};\n\nexport const createInvitation = async (data) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n let response = null;\n\n try {\n createAgencyInvitationValidator(user, data);\n } catch (e) {\n error('createInvitation', e);\n\n return OnCreateInvitationError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: CREATE_INVITATION,\n variables: { data },\n });\n } catch (e) {\n error('createInvitation', e);\n\n return OnCreateInvitationError.dispatch(e);\n }\n\n log('createInvitation', response.data);\n OnCreateInvitationEvent.dispatch(response.data);\n\n return response.data;\n};\n\nexport const deleteInvitation = async (invitationId) => {\n const client = OnApolloClient.get();\n try {\n const response = await client.mutate({\n mutation: DELETE_INVITATION,\n variables: { id: invitationId },\n });\n OnDeleteinvitationEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnDeleteinvitationError.dispatch(e);\n }\n};\nexport const resendInvitation = async (invitationId, resend) => {\n const client = OnApolloClient.get();\n try {\n const response = await client.mutate({\n mutation: RESEND_INVITATION,\n variables: { id: invitationId, resend },\n });\n OnResendInvitationEvent.dispatch(response.data);\n return response.data;\n } catch (e) {\n return OnResendInvitationError.dispatch(e);\n }\n};\n\nexport const createInvitationCompany = async (data) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n let response = null;\n\n try {\n createCompanyInvitationValidator(user, data);\n } catch (e) {\n error('createInvitationCompany', e);\n return OnCreateInvitationCompanyError.dispatch(response.data);\n }\n\n normalize8baseReferenceConnect(data, 'company');\n\n try {\n response = await client.mutate({\n mutation: CREATE_INVITATION_COMPANY,\n variables: { data },\n });\n } catch (e) {\n error('companyInvitationCompany', e);\n return OnCreateInvitationCompanyError.dispatch(response.data);\n }\n\n OnCreateInvitationCompanyEvent.dispatch(response.data);\n return response.data;\n};\n","import React, { useState, useCallback } from 'react';\nimport moment from 'moment';\nimport { Dropdown, Pagination, Icon, Table, Menu, Dialog, Paragraph, Button } from '@8base/boost';\nimport * as toast from 'shared/components/toast/Toast';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { Status } from './Status';\nimport { deleteInvitation, resendInvitation } from '../invitations-actions';\nimport { deleteCompanyInvitation } from '../../../company-invitation/company-invitation-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport {\n OnDeleteinvitationError,\n OnDeleteinvitationEvent,\n OnResendInvitationError,\n OnResendInvitationEvent,\n} from '../invitation-events';\nimport {\n OnDeleteCompanyInvitationError,\n OnDeleteCompanyInvitationEvent,\n} from 'modules/company/campany-events';\n\nconst tableColumns = '80px minmax(250px,1fr) 150px 200px 100px';\n\nconst PaginationWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: ${({ height }) => height};\n`;\n\nexport const InvitationsList = ({\n loading,\n page,\n pageSize,\n total,\n handleChange,\n offset,\n invitations,\n refetch,\n CompanyInvitationList,\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [menuOpen, setMenuOpen] = useState('');\n const [invitation, setInvitation] = useState('');\n const [loadingDelete, setLoadingDelete] = useState(false);\n const [loadingResend, setLoadingResend] = useState(false);\n const deleteModal = useCallback((id) => {\n setInvitation(id);\n setIsOpen(true);\n }, []);\n\n useEventSubscription(OnDeleteinvitationEvent, () => {\n setInvitation('');\n setIsOpen(false);\n refetch('network-only');\n toast.success('Invitation deleted successfully');\n setLoadingDelete(false);\n });\n\n useEventSubscription(OnDeleteinvitationError, (err) => {\n toast.error(`${JSON.stringify(err)}`);\n setLoadingDelete(false);\n });\n\n useEventSubscription(OnDeleteCompanyInvitationEvent, () => {\n setInvitation('');\n setIsOpen(false);\n refetch('network-only');\n toast.success('Invitation deleted successfully');\n setLoadingDelete(false);\n });\n\n useEventSubscription(OnDeleteCompanyInvitationError, (error) => {\n toast.error(`${JSON.stringify(error)}`);\n setLoadingDelete(false);\n });\n\n useEventSubscription(OnResendInvitationEvent, () => {\n toast.success('Invitation was resend successfully');\n setMenuOpen('');\n setLoadingDelete(false);\n });\n\n useEventSubscription(OnResendInvitationError, (error) => {\n toast.error(`${JSON.stringify(error)}`);\n setLoadingDelete(false);\n });\n\n const deleteInvitationAction = useCallback(() => {\n setLoadingDelete(true);\n if (CompanyInvitationList) {\n deleteCompanyInvitation(invitation);\n } else {\n deleteInvitation(invitation);\n }\n }, [invitation, CompanyInvitationList]);\n\n const resendInvitationAction = useCallback((invitation) => {\n setLoadingResend(true);\n resendInvitation(invitation, moment().format('x'));\n }, []);\n\n const height = `${pageSize * 47}px`;\n\n return (\n <>\n \n \n #\n Email\n Status\n Updated At\n Actions\n \n \n {(item, i) => (\n \n {i + 1 + offset}\n {item.email}\n \n \n \n {moment(item.updatedAt).format('MM/DD/YYYY HH:mm')}\n \n {item.status === 'APPROVED' || item.status === 'REJECTED' ? (\n '-'\n ) : (\n setMenuOpen((id) => (id === item.id ? '' : item.id))}>\n \n \n \n \n \n deleteModal(item.id)}>Delete\n {!CompanyInvitationList ? (\n resendInvitationAction(item.id)}\n loading={loadingResend}>\n Resend\n \n ) : (\n ''\n )}\n \n \n \n )}\n \n \n )}\n \n \n \n \n \n \n
    \n \n setIsOpen(false)} />\n \n Are you sure about delete this invitation\n \n \n \n \n \n \n \n );\n};\n\nInvitationsList.propTypes = {\n loading: PropTypes.bool.isRequired,\n page: PropTypes.number.isRequired,\n pageSize: PropTypes.number.isRequired,\n total: PropTypes.number.isRequired,\n handleChange: PropTypes.func.isRequired,\n offset: PropTypes.number.isRequired,\n invitations: PropTypes.arrayOf(PropTypes.object).isRequired,\n refetch: PropTypes.func.isRequired,\n CompanyInvitationList: PropTypes.bool,\n};\n\nInvitationsList.defaultProps = {\n CompanyInvitationList: false,\n};\n","export const USER_INVITATION_TYPES = [\n { value: 'MANAGER', label: 'Manager' },\n { value: 'AGENT', label: 'Agent' },\n];\n\nexport const PAGE_SIZE = 10;\n","import React, { useState, useCallback } from 'react';\nimport * as toast from 'shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\nimport { Button, Form, SelectField, InputField, Dialog } from '@8base/boost';\nimport { hasError } from 'apollo-client/core/ObservableQuery';\nimport { createInvitation } from '../invitations-actions';\nimport { USER_INVITATION_TYPES } from '../invitations-model';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { OnCreateInvitationError, OnCreateInvitationEvent } from '../invitation-events';\n\nexport const Invitation = ({ close, isOpen, agencyId, agencyName, refetch }) => {\n const formDefault = {\n type: '',\n email: '',\n };\n const [form, setForm] = useState(formDefault);\n const [formErrors, setFormErrors] = useState({\n type: {},\n email: {},\n });\n const [loading, setLoading] = useState(false);\n const handleChange = useCallback(({ target }) => {\n const { value, name } = target;\n setFormErrors((state) => ({ ...state, [name]: {} }));\n setForm((state) => ({ ...state, [name]: value }));\n }, []);\n\n const handleSelectChange = useCallback((type) => {\n setFormErrors((state) => ({ ...state, type: {} }));\n setForm((state) => ({ ...state, type }));\n }, []);\n\n useEventSubscription(OnCreateInvitationEvent, () => {\n refetch('network-only');\n setForm(formDefault);\n close();\n toast.success('Success', 'Invitation send successfully');\n setLoading(false);\n });\n\n useEventSubscription(OnCreateInvitationError, (error) => {\n onErrorMixinFC(error);\n setLoading(false);\n });\n\n const saveInvitation = useCallback(() => {\n const data = {\n ...form,\n agency: {\n connect: {\n id: agencyId,\n },\n },\n };\n\n setLoading(true);\n createInvitation(data);\n }, [form, agencyId]);\n\n const disabledSubmit = hasError(formErrors);\n\n return (\n <>\n \n \n \n
    \n \n \n \n \n
    \n \n \n \n \n \n \n );\n};\nInvitation.propTypes = {\n close: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n agencyId: PropTypes.string.isRequired,\n agencyName: PropTypes.string.isRequired,\n refetch: PropTypes.func.isRequired,\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport * as toast from 'shared/components/toast/Toast';\nimport { useHistory } from 'react-router-dom';\nimport { Card, Loader, Row } from '@8base/boost';\nimport { OnSessionFetch } from '../../../shared/session/session-events';\nimport { InvitationsList } from './components/InvitationsList';\nimport { Invitation } from './components/Invitation';\nimport { fetchInvitationList } from './invitations-actions';\nimport { PAGE_SIZE } from './invitations-model';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { Box } from '../../../shared/components/Box';\nimport { CreateButton } from 'shared/components';\nimport { OnInvitationListError, OnInvitationListEvent } from './invitation-events';\n\nexport const InvitationsView = () => {\n const [user, setUser] = useState(null);\n const [page, setPage] = useState(1);\n const [modal, setModal] = useState(false);\n const [loadingUser, setLoadingUser] = useState(true);\n const history = useHistory();\n const [invitations, setInvitations] = useState([]);\n const [loading, setLoading] = useState(false);\n const [total, setTotal] = useState(0);\n const agency = useAgency();\n\n useEffect(() => {\n const user = OnSessionFetch.get().user;\n const validUser = user?.userAdminRelation.count > 0;\n const userRole = user.userAgencyUserRelation.items[0].roles[0];\n\n if (!validUser && userRole !== 'MANAGER') {\n history.goBack();\n } else {\n setLoadingUser(false);\n setUser(user);\n }\n }, [history]);\n\n const userId = user?.id;\n\n const queryOffset = (page - 1) * PAGE_SIZE;\n\n useEventSubscription(OnInvitationListEvent, (data) => {\n const {\n agencyInvitationsList: { count, items },\n } = data;\n setInvitations(items);\n setTotal(count);\n setLoading(false);\n });\n useEventSubscription(OnInvitationListError, (data) => {\n toast.error(JSON.stringify(data));\n setLoading(false);\n });\n const fetchInviations = useCallback(() => {\n setLoading((state) => !state);\n fetchInvitationList(agency.id, PAGE_SIZE, queryOffset);\n }, [agency, queryOffset]);\n\n useEffect(() => {\n if (!userId) {\n return;\n }\n fetchInviations();\n }, [userId, fetchInviations]);\n\n const handlePageChange = useCallback((value) => {\n setPage(value);\n }, []);\n\n const closeModal = useCallback(() => {\n setModal(false);\n }, []);\n\n const refetch = fetchInviations;\n\n if (loadingUser) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n setModal((modal) => !modal)}\n text=\"Create Invitation\"\n />\n \n \n \n \n \n \n \n \n );\n};\n","import React, { useCallback } from 'react';\nimport { Table, Dropdown, Menu, Icon, Tag as BoostTag } from '@8base/boost';\nimport { DropdownBodyOnTable } from '../../../../shared/components';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\nconst Tag = styled(BoostTag)`\n ${(props) => {\n switch (props.status) {\n case 'active':\n return `\n color: #3DB4AA !important;\n background-color: rgba(61, 180, 170, .1) !important;\n border-color: rgba(61, 180, 170, .4) !important;\n `;\n case 'invited':\n return `\n color: #62ABFE !important;\n background-color: rgba(98, 171, 254, .1) !important;\n border-color: rgba(98, 171, 254, .4) !important;\n `;\n case 'inactive':\n return `\n color: #FF0606 !important;\n background-color: rgba(255, 6, 6, .1) !important;\n border-color: rgba(255, 6, 6, .4) !important;\n `;\n default:\n return `\n color: #3DB4AA !important;\n background-color: rgba(61, 180, 170, .1) !important;\n border-color: rgba(61, 180, 170, .4) !important;\n `;\n }\n }}\n`;\n\n/**\n * Admin table row compnent\n *\n * @param {object} props - The component's prop object\n * @param {number} props.index - The number of the row in the table\n * @param {object} props.admin - The user object to display the data from\n * @param {Function} props.onDelete - Callback that is triggered when the delete button is clicked\n *\n * @returns {React.FC} The component to render\n */\nconst AdminsTableRow = ({ index, admin, onDelete }) => {\n const handleDelete = useCallback(\n (callback) => {\n onDelete(admin);\n callback();\n },\n [admin, onDelete],\n );\n\n return (\n <>\n {index}\n \n {admin.user.firstName} {admin.user.lastName}\n \n {admin.user.email}\n \n {admin.user.status}\n \n \n \n \n \n \n \n {({ closeDropdown }) => (\n \n handleDelete(closeDropdown)}>\n Delete\n \n \n )}\n \n \n \n \n );\n};\n\nAdminsTableRow.propTypes = {\n index: PropTypes.number.isRequired,\n admin: PropTypes.shape({\n user: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n status: PropTypes.array.isRequired,\n }).isRequired,\n __typename: PropTypes.string.isRequired,\n }).isRequired,\n onDelete: PropTypes.func.isRequired,\n};\n\nexport default AdminsTableRow;\n","import React, { useState, useCallback } from 'react';\nimport { Table } from '@8base/boost';\nimport AdminsTableRow from './AdminsTableRow';\nimport PropTypes from 'prop-types';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport YesNoDialog from '../../../../shared/components/YesNoDialog';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { fetchCompany } from '../../../company/company-actions';\nimport { removeAdminFromCompany } from '../../../users/user-actions';\nimport styled from 'styled-components';\nimport { OnAdminDeletedError, OnAdminDeletedEvent } from 'modules/users/user-events';\n\nconst Body = styled(Table.Body)`\n min-height: 335px;\n`;\n\nconst columns = '68px repeat(3 , 1fr) 105px';\n\nconst AdminsTable = ({ user, companyId, admins, page, onUsersCount, setLoaderUpdate }) => {\n const [deleteModal, setDeleteModal] = useState({ open: false, selected: {}, loading: false });\n\n useEventSubscription(OnAdminDeletedError, (err) => {\n setDeleteModal((state) => ({ ...state, open: false, loading: false }));\n onErrorMixinFC(err);\n });\n\n useEventSubscription(OnAdminDeletedEvent, () => {\n setDeleteModal({ open: false, selected: {}, loading: false });\n setLoaderUpdate(true);\n fetchCompany(companyId, user.id);\n });\n\n const handleDeleteClick = useCallback(\n (admin) =>\n setDeleteModal({\n open: true,\n selected: admin,\n }),\n [],\n );\n\n const handleDelete = useCallback(async () => {\n const admin = deleteModal.selected;\n setDeleteModal((state) => ({ ...state, loading: true }));\n removeAdminFromCompany(admin);\n }, [deleteModal]);\n\n return (\n \n \n #\n NAME\n EMAIL\n STATUS\n ACTIONS\n \n \n {(admin, i) => (\n \n \n \n )}\n \n setDeleteModal((state) => ({ ...state, open: false }))}\n onYes={handleDelete}\n onNo={() => setDeleteModal((state) => ({ ...state, open: false }))}\n isLoading={deleteModal.loading}\n />\n
    \n );\n};\n\nAdminsTable.propTypes = {\n user: PropTypes.object.isRequired,\n companyId: PropTypes.string.isRequired,\n admins: PropTypes.array.isRequired,\n page: PropTypes.number.isRequired,\n onUsersCount: PropTypes.func.isRequired,\n setLoaderUpdate: PropTypes.func.isRequired,\n};\n\nexport default AdminsTable;\n","import React, { useState, useCallback } from 'react';\nimport * as toast from 'shared/components/toast/Toast';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { Button, Form, InputField, Dialog } from '@8base/boost';\nimport { hasError } from 'apollo-client/core/ObservableQuery';\nimport PropTypes from 'prop-types';\nimport { createInvitationCompany } from './../../invitations/invitations-actions';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport {\n OnCreateInvitationCompanyError,\n OnCreateInvitationCompanyEvent,\n} from 'modules/my-account/invitations/invitation-events';\n\nexport const Invitation = ({ onClose, isOpen, companyId, companyName }) => {\n const formDefault = {\n email: '',\n };\n const [form, setForm] = useState(formDefault);\n const [formErrors, setFormErrors] = useState({\n email: {},\n });\n const [loading, setLoading] = useState(false);\n const handleChange = useCallback(({ target }) => {\n const { value, name } = target;\n setFormErrors((state) => ({ ...state, [name]: {} }));\n setForm((state) => ({ ...state, [name]: value }));\n }, []);\n\n useEventSubscription(OnCreateInvitationCompanyEvent, () => {\n setForm(formDefault);\n onClose();\n toast.success('Success', 'Invitation send successfully');\n setLoading(false);\n });\n\n useEventSubscription(OnCreateInvitationCompanyError, (err) => {\n onErrorMixinFC(err);\n setLoading(false);\n });\n\n const saveInvitation = useCallback(() => {\n const data = {\n ...form,\n company: companyId,\n };\n\n setLoading(true);\n createInvitationCompany(data);\n }, [form, companyId]);\n\n const disabledSubmit = hasError(formErrors);\n\n return (\n <>\n \n \n \n
    \n \n \n \n
    \n \n \n \n \n \n \n );\n};\nInvitation.propTypes = {\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n companyId: PropTypes.string.isRequired,\n companyName: PropTypes.string.isRequired,\n};\n","import React, { useCallback, useState, useEffect } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport {\n Button,\n Card,\n Column,\n Dialog,\n Grid,\n Form,\n InputField,\n Pagination,\n Paragraph,\n Row,\n SelectField,\n Loader,\n} from '@8base/boost';\nimport { fetchCompanies, updateCompany } from '../../company/company-actions';\nimport AdminsTable from './components/AdminsTable';\nimport { Invitation } from './components/Invitation';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { OnSessionFetch } from '../../../shared/session/session-events';\nimport { CreateButton, PrimaryBtn } from '../../../shared/components';\nimport { Box } from '../../../shared/components/Box';\nimport * as toast from 'shared/components/toast/Toast';\nimport styled from 'styled-components';\nimport {\n OnCompanyfetched,\n OnCompanyUpdated,\n OnfetchCompanyList,\n} from 'modules/company/campany-events';\n\nconst CardHeaderWithButton = styled(Card.Header)`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst CardTitle = styled.h3`\n font-size: 16px;\n font-weight: bold;\n line-height: 28px;\n margin-right: 20px !important;\n`;\n\nconst CardBody = styled(Card.Body)`\n padding: 0 !important;\n`;\n\nconst ColumnLeft = styled(Grid.Box)`\n padding-right: 10px !important;\n`;\n\nconst ColumnRight = styled(Grid.Box)`\n padding-left: 10px !important;\n`;\n//for updating companies in settings\nconst CompanyView = () => {\n const defaultPageSize = 10;\n const agency = useAgency();\n const [user, setUser] = useState(null);\n const [isOpenUpdate, setIsOpenUpdate] = useState(false);\n const [loaderUpdate, setLoaderUpdate] = useState(false);\n const [isInviteModalOpen, setisInviteModalOpen] = useState(false);\n const [data, setData] = useState({\n company: null,\n companies: [],\n options: [],\n total: 0,\n page: 1,\n loading: true,\n });\n // Form\n const [companyId, setCompanyId] = useState('');\n const [companyName, setCompanyName] = useState('');\n const history = useHistory();\n\n const handleOpenUpdate = () => setIsOpenUpdate(true);\n const handleCloseUpdate = () => setIsOpenUpdate(false);\n\n const handleSubmit = () => {\n setLoaderUpdate(true);\n\n const companyData = {\n id: companyId,\n name: companyName,\n };\n\n updateCompany(companyData, user.id);\n };\n\n const initOptionsSelectCompany = (companies) => {\n return companies.map((company) => {\n return { label: company.name, value: company.id };\n });\n };\n\n useEffect(() => {\n const user = OnSessionFetch.get().user;\n const validUser = user?.userAdminRelation.count > 0;\n if (!validUser) {\n history.goBack();\n } else {\n setUser(user);\n const companyIds = user.userAdminRelation.items.map((companyData) => companyData.company.id);\n fetchCompanies({ companyIds }, user.id);\n }\n }, [history, data.page, setUser]);\n\n useEventSubscription(OnfetchCompanyList, ({ companiesList }) => {\n const options = initOptionsSelectCompany(companiesList.items);\n let company = null;\n let total = 0;\n\n if (options.length === 1) {\n setCompanyId(options[0].value);\n setCompanyName(options[0].label);\n company = companiesList.items[0];\n total = company.adminCompanyRelation.count;\n } else if (options.length > 1) {\n const companyOfActiveAgency = companiesList.items.find(\n (company) => company.id === agency.company.id,\n );\n setCompanyId(companyOfActiveAgency.id);\n setCompanyName(companyOfActiveAgency.name);\n company = companyOfActiveAgency;\n total = companyOfActiveAgency.adminCompanyRelation.count;\n }\n\n setData((state) => ({\n ...state,\n companies: companiesList.items,\n loading: false,\n company,\n total,\n options,\n }));\n });\n\n useEventSubscription(OnCompanyfetched, ({ company }) => {\n setLoaderUpdate(false);\n setData((state) => {\n const companies = state.companies.map((currentCompany) =>\n currentCompany.id === company.id ? company : currentCompany,\n );\n return {\n ...state,\n companies: companies,\n options: initOptionsSelectCompany(companies),\n company: company,\n total: company.adminCompanyRelation.count,\n page: 1,\n };\n });\n toast.success('Company', 'Admin successfully removed from company');\n });\n\n useEventSubscription(OnCompanyUpdated, ({ companyUpdate }) => {\n setLoaderUpdate(false);\n handleCloseUpdate();\n toast.success('Company', 'Updated Successfully!');\n setData((state) => {\n const companiesWithCompanyUpdated = state.companies.map((company) =>\n company.id === companyUpdate.id ? companyUpdate : company,\n );\n return {\n ...state,\n companies: companiesWithCompanyUpdated,\n options: initOptionsSelectCompany(companiesWithCompanyUpdated),\n company: companyUpdate,\n total: companyUpdate.adminCompanyRelation.count,\n page: 1,\n };\n });\n });\n\n const handlePageChange = useCallback((page) => {\n setData((state) => ({ ...state, page }));\n }, []);\n\n const handleTotalChange = useCallback((total) => {\n setData((state) => ({ ...state, total: total }));\n }, []);\n\n const handleSelectChange = useCallback(\n (value) => {\n setCompanyId(value);\n setCompanyName(data.options.find((option) => option.value === value).label);\n setData((state) => {\n const company = state.companies.find((company) => company.id === value);\n return {\n ...state,\n company: company,\n total: company.adminCompanyRelation.count,\n page: 1,\n };\n });\n },\n [data.options],\n );\n\n let admins = data.company ? data.company.adminCompanyRelation.items : [];\n\n if (admins.length > 0 && data.total > 0) {\n admins = admins.slice((data.page - 1) * defaultPageSize, data.page * defaultPageSize);\n }\n\n let renderInputCompany = null;\n if (data.options.length === 1) {\n renderInputCompany = (\n \n );\n } else {\n renderInputCompany = (\n \n );\n }\n\n if (data.loading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n Company\n {renderInputCompany}\n \n \n
    \n \n \n \n \n setCompanyName(e.target.value)}\n input={{\n name: 'companyName',\n type: 'text',\n value: companyName,\n }}\n />\n \n \n \n \n \n
    \n
    \n \n \n \n Save Changes\n \n \n \n
    \n \n \n setisInviteModalOpen(true)}\n text=\"Create Company's Admin\"\n disabled={data.company ? false : true}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n Are you sure update the changes?\n \n \n \n \n \n \n setisInviteModalOpen(false)}\n companyId={data.company ? data.company.id : null}\n companyName={data.company ? data.company.name : ''}\n />\n
    \n
    \n );\n};\n\nexport default CompanyView;\n","import React, { useState, useCallback } from 'react';\r\nimport * as toast from 'shared/components/toast/Toast';\r\nimport PropTypes from 'prop-types';\r\nimport { Button, Form, SelectField, InputField, Dialog } from '@8base/boost';\r\nimport { hasError } from 'apollo-client/core/ObservableQuery';\r\nimport { createCompanyInvitation } from '../../../company-invitation/company-invitation-actions';\r\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\r\nimport { onErrorMixinFC } from '../../../../shared/mixins';\r\nimport {\r\n OnCreateCompanyInvitationError,\r\n OnCreateCompanyInvitationEvent,\r\n} from 'modules/company/campany-events';\r\n\r\nconst formDefault = {\r\n company: '',\r\n email: '',\r\n};\r\n\r\nexport const Invitation = ({ close, companies, isOpen, refetch }) => {\r\n const [form, setForm] = useState(formDefault);\r\n const [formErrors, setFormErrors] = useState({\r\n company: {},\r\n email: '',\r\n });\r\n const [loading, setLoading] = useState(false);\r\n const handleChange = useCallback(({ target }) => {\r\n const { value, name } = target;\r\n setFormErrors((state) => ({ ...state, [name]: {} }));\r\n setForm((state) => ({ ...state, [name]: value }));\r\n }, []);\r\n\r\n const companyOptions = companies.map((item) => {\r\n return { value: item.company.id, label: item.company.name };\r\n });\r\n\r\n const handleSelectChange = useCallback((company) => {\r\n setFormErrors((state) => ({ ...state, company: {} }));\r\n setForm((state) => ({ ...state, company }));\r\n }, []);\r\n\r\n useEventSubscription(OnCreateCompanyInvitationEvent, () => {\r\n refetch('network-only');\r\n setForm(formDefault);\r\n close();\r\n toast.success('Invitation Management', 'Invitation send successfully');\r\n setLoading(false);\r\n });\r\n\r\n useEventSubscription(OnCreateCompanyInvitationError, (err) => {\r\n onErrorMixinFC(err);\r\n setLoading(false);\r\n });\r\n\r\n const saveInvitation = useCallback(() => {\r\n setLoading(true);\r\n createCompanyInvitation(form);\r\n }, [form]);\r\n\r\n const disabledSubmit = hasError(formErrors);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nInvitation.propTypes = {\r\n close: PropTypes.func.isRequired,\r\n isOpen: PropTypes.bool.isRequired,\r\n companies: PropTypes.array.isRequired,\r\n refetch: PropTypes.func.isRequired,\r\n};\r\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport * as toast from 'shared/components/toast/Toast';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { Card, Row, Loader } from '@8base/boost';\r\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\r\nimport { OnSessionFetch } from '../../../shared/session/session-events';\r\nimport { InvitationsList } from '../invitations/components/InvitationsList';\r\nimport { Invitation } from './components/Invitation';\r\nimport { fetchCompanyInvitationList } from '../../company-invitation/company-invitation-actions';\r\nimport { PAGE_SIZE } from '../invitations/invitations-model';\r\nimport { CreateButton } from 'shared/components';\r\nimport { Box } from '../../../shared/components/Box';\r\nimport styled from 'styled-components';\r\nimport {\r\n OnCompanyinvitationError,\r\n OnCompanyinvitationListEvent,\r\n} from 'modules/company-invitation/company-invitation-events';\r\n\r\nconst CardTitle = styled.h3`\r\n font-size: 16px;\r\n font-weight: bold;\r\n line-height: 28px;\r\n`;\r\n\r\nconst CompanyInvitationsView = () => {\r\n const [user, setUser] = useState(null);\r\n const [page, setPage] = useState(1);\r\n const [modal, setModal] = useState(false);\r\n const [companies, setCompanies] = useState('');\r\n const [loadingUser, setLoadingUser] = useState(true);\r\n const history = useHistory();\r\n const [invitations, setInvitations] = useState([]);\r\n const [loading, setLoading] = useState(false);\r\n const [total, setTotal] = useState(0);\r\n useEffect(() => {\r\n const user = OnSessionFetch.get().user;\r\n const validUser = user?.userAdminRelation.count > 0;\r\n if (!validUser) {\r\n history.goBack();\r\n } else {\r\n setLoadingUser(false);\r\n setUser(user);\r\n setCompanies(user.userAdminRelation.items);\r\n }\r\n }, [history]);\r\n\r\n const userId = user?.id;\r\n\r\n const queryOffset = (page - 1) * PAGE_SIZE;\r\n\r\n useEventSubscription(OnCompanyinvitationListEvent, (data) => {\r\n const {\r\n companyInvitationsList: { count, items },\r\n } = data;\r\n setInvitations(items);\r\n setTotal(count);\r\n setLoading(false);\r\n });\r\n\r\n useEventSubscription(OnCompanyinvitationError, (err) => {\r\n toast.error(JSON.stringify(err));\r\n setLoading(false);\r\n });\r\n\r\n const fetchCompanyInvitations = useCallback(\r\n (fetchPolicy = 'cache-first') => {\r\n setLoading((state) => !state);\r\n fetchCompanyInvitationList(userId, PAGE_SIZE, queryOffset, fetchPolicy);\r\n },\r\n [userId, queryOffset],\r\n );\r\n useEffect(() => {\r\n if (!userId) {\r\n return;\r\n }\r\n fetchCompanyInvitations();\r\n // eslint-disable-next-line\r\n }, [userId]);\r\n const handlePageChange = useCallback(\r\n (value) => {\r\n setPage(value);\r\n setLoading((state) => !state);\r\n fetchCompanyInvitationList(userId, PAGE_SIZE, (value - 1) * PAGE_SIZE, 'no-cache');\r\n },\r\n [userId],\r\n );\r\n\r\n const closeModal = useCallback(() => {\r\n setModal(false);\r\n }, []);\r\n\r\n const refetch = fetchCompanyInvitations;\r\n\r\n if (loadingUser) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n Company Invitations\r\n setModal((modal) => !modal)}\r\n text=\"Create Invitation\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default CompanyInvitationsView;\r\n","export const TABLE_COLUMNS = [{ name: 'Name' }, { name: 'Campaigns' }];\n\nexport const VENDOR = {\n name: '',\n};\n","import { Table, styled } from '@8base/boost';\n\nexport const StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 16px !important;\n padding-right: 6px !important;\n`;\n\nexport const StyledTableBody = styled(Table.Body)`\n max-height: 50vh;\n\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const StyledCell = styled(Table.BodyCell)`\n padding: 8px 16px !important;\n`;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Form, InputField, Grid } from '@8base/boost';\n\n/**\n * Vendor form\n *\n * @param {object} props component props\n * @param {object} props.vendor data\n * @param {Function} props.onChangeInput handle for onChange input\n * @param {Function} props.onSubmit handle on submit\n * @returns {React.ReactElement} component\n */\nconst VendorForm = ({ vendor, onChangeInput, onSubmit }) => {\n return (\n {\n event.preventDefault();\n onSubmit();\n }}>\n \n \n \n onChangeInput('name', value),\n }}\n />\n \n \n \n \n );\n};\n\nVendorForm.propTypes = {\n vendor: PropTypes.object.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n};\n\nexport default VendorForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport DialogForm from '../../../shared/components/dialog/DialogForm';\nimport VendorForm from './VendorForm';\n\nconst VendorFormDialog = ({\n vendor,\n isOpen,\n isUpdate,\n loading,\n onSubmit,\n campaigns,\n onChangeInput,\n onCloseDialog,\n}) => {\n return (\n \n \n \n );\n};\n\nVendorFormDialog.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n isUpdate: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n vendor: PropTypes.object.isRequired,\n campaigns: PropTypes.array.isRequired,\n onChangeInput: PropTypes.func.isRequired,\n onCloseDialog: PropTypes.func.isRequired,\n};\n\nexport default VendorFormDialog;\n","/**\n * Map for the form fields.\n *\n * @param {object} vendor data\n * @returns {object} vendor mapped\n */\nexport const vendorMap = (vendor) => {\n return {\n ...vendor,\n campaigns: vendor.vendorCampaignRelation.items.map((campaign) => ({\n value: campaign.id,\n label: campaign.name,\n })),\n };\n};\n\n/**\n * Map for table\n *\n * @param {Array} vendors data\n * @returns {Array} mapped vendors\n */\nexport const vendorsMap = (vendors) => {\n return vendors.map((vendor) => ({\n id: vendor.id,\n name: vendor.name,\n campaigns: vendor.vendorCampaignRelation.count,\n }));\n};\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { Paper, Grid, Row, styled, Table } from '@8base/boost';\nimport { SearchInput, Loader, TextEllipsis } from 'shared/components';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { onChangeDataHookMixin, onErrorMixinFC } from '../../shared/mixins';\nimport { TABLE_COLUMNS, VENDOR } from './vendors-model';\nimport { fetchVendors, createVendor, updateVendor, deleteVendor } from './vendors-actions';\nimport { IconTrash, IconUpdate } from '../../shared/components/ui/Icons';\nimport {\n StyledHeaderCell,\n StyledTableBody,\n StyledCell,\n} from '../../shared/components/tables/CustomTable';\nimport VendorFormDialog from './components/VendorFormDialog';\nimport * as R from 'ramda';\nimport withSession from '../../shared/hoc/withSession';\nimport { vendorMap, vendorsMap } from './vendors-utils';\nimport YesNoDialog from '../../shared/components/YesNoDialog';\nimport { CreateButton } from 'shared/components';\nimport { Box } from '../../shared/components/Box';\nimport {\n OnVendorCreateEvent,\n OnVendorDeleteEvent,\n OnVendorsError,\n OnVendorsEvent,\n OnVendorUpdateEvent,\n} from './vendors-events';\n\nconst StyledLayout = styled(Grid.Layout)`\n padding: 16px;\n`;\n\n/**\n * Vendors view\n *\n * @param {object} props components props\n * @param {string} props.activeAgencyId active agency ID\n *\n * @returns {React.FC} The react component\n */\nconst VendorsView = ({ activeAgencyId }) => {\n const [filters, setFilters] = useState({ search: '', agency: activeAgencyId });\n const [loading, setLoading] = useState(false);\n const [loadingForm, setLoadingForm] = useState(false);\n const [vendors, setVendors] = useState([]);\n const [isOpenForm, setIsOpenForm] = useState(false);\n const [isUpdateForm, setIsUpdateForm] = useState(false);\n const [vendor, setVendor] = useState(R.clone(VENDOR));\n const [isOpenDelete, setIsOpenDelete] = useState(false);\n const handleOnClickBtnSearch = () => {\n setLoading(true);\n fetchVendors(filters);\n };\n const handleOnSubmitForm = () => {\n setLoadingForm(true);\n\n if (isUpdateForm) {\n updateVendor({\n id: vendor.id,\n name: vendor.name,\n });\n } else {\n createVendor(vendor);\n }\n };\n const handleOnChangeInput = (key, value) => {\n onChangeDataHookMixin(vendor, setVendor, key, value);\n };\n const handleOnYesDelete = () => {\n setLoading(true);\n setIsOpenDelete(false);\n deleteVendor(vendor.id);\n };\n const handleOnNoDelete = () => {\n setVendor(R.clone(VENDOR));\n setIsOpenDelete(false);\n };\n const handleVendorEvent = () => {\n setIsOpenForm(false);\n setLoadingForm(false);\n setLoading(true);\n fetchVendors(filters);\n setVendor(R.clone(VENDOR));\n };\n const columnsSize = '45% 45% 10%';\n const ignoreColumns = ['id'];\n\n useEffect(() => {\n setLoading(true);\n fetchVendors(filters);\n }, []);\n\n useSimpleSubscription(OnVendorsEvent, (data) => {\n if (data) {\n setLoading(false);\n setVendors(data.vendorsList.items);\n }\n });\n\n useSimpleSubscription(OnVendorsError, (e) => {\n if (e) {\n setLoading(false);\n setLoadingForm(false);\n onErrorMixinFC(e);\n }\n });\n\n useSimpleSubscription(OnVendorCreateEvent, (data) => {\n if (data) handleVendorEvent();\n });\n\n useSimpleSubscription(OnVendorUpdateEvent, (data) => {\n if (data) {\n handleVendorEvent();\n setIsUpdateForm(false);\n }\n });\n\n useSimpleSubscription(OnVendorDeleteEvent, () => {\n fetchVendors(filters);\n setVendor(R.clone(VENDOR));\n });\n\n return (\n \n \n \n \n onChangeDataHookMixin(filters, setFilters, 'search', value)}\n placeholder=\"Search Vendors\"\n />\n \n \n setIsOpenForm(true)}\n text=\"Create Vendor\"\n />\n \n \n \n \n {TABLE_COLUMNS.map((column, index) => {\n return {column.name};\n })}\n Actions\n \n {loading ? (\n \n ) : (\n \n {(row, index) => (\n \n {Object.keys(row)\n .filter((key) => ignoreColumns.indexOf(key) === -1)\n .map((key, index) => {\n if (\n TABLE_COLUMNS[index] &&\n TABLE_COLUMNS[index].customBodyRender !== undefined\n ) {\n const { customBodyRender } = TABLE_COLUMNS[index];\n const CustomCellValue = customBodyRender(row, row[key]);\n\n return (\n \n \n \n );\n }\n\n return (\n \n {row[key]}\n \n );\n })}\n \n {\n setIsUpdateForm(true);\n setIsOpenForm(true);\n setVendor(vendorMap(vendors[index]));\n }}\n />\n {\n setVendor(row);\n setIsOpenDelete(true);\n }}\n />\n \n \n )}\n \n )}\n
    \n {\n setIsOpenForm(false);\n setIsUpdateForm(false);\n setVendor(R.clone(VENDOR));\n }}\n />\n \n
    \n
    \n );\n};\n\nVendorsView.propTypes = {\n activeAgencyId: PropTypes.string.isRequired,\n};\n\nexport default withSession(VendorsView);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport StyledBadge from '../../../../shared/components/ui/StyledBadge';\n\n/**\n * @param {object} props Props\n * @param {boolean} props.status status boolean\n * @returns {object} react component\n */\nexport function PhoneStatus({ status }) {\n const priority = status ? 1 : 4;\n const text = status ? 'ACTIVE' : 'INACTIVE';\n\n return {text};\n}\nPhoneStatus.propTypes = {\n status: PropTypes.bool.isRequired,\n};\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Dialog, Button, Paragraph } from '@8base/boost';\nimport { deletePhoneNumber } from '../phone-numbers-actions';\n\n/**\n * @param {object} props Props\n * @param {boolean} props.isOpen To show or not\n * @param {Function} props.close Close callback\n * @param {string} props.id Id to delete\n * @returns {object} React componet\n *\n */\nfunction DeleteNumberModal({ isOpen, close, id }) {\n const [loading, setLoading] = useState(false);\n return (\n \n \n \n Are you sure about deleting this number?\n This action can't be undone.\n \n \n \n {\n deletePhoneNumber(id);\n setLoading(true);\n }}\n loading={loading}>\n Delete\n \n \n \n );\n}\n\nDeleteNumberModal.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n close: PropTypes.func.isRequired,\n id: PropTypes.string.isRequired,\n};\n\nexport default DeleteNumberModal;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, Icon, Loader } from '@8base/boost';\nimport styled from 'styled-components';\nimport { updatePhoneNumber } from '../phone-numbers-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { OnPhoneNumberUpdateError, OnPhoneNumberUpdateEvent } from '../phone-numbers-events';\n\nconst Span = styled.span`\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n`;\n/**\n *\n * @typedef {object} PhoneNumber\n * @property {{code:string,number:string}} number\n * @property {number} priority\n * @property {string} id\n */\n/**\n * @param {object} props Props\n * @param {PhoneNumber} props.number Props\n * @returns {object} React Component\n */\nfunction PhoneNumberPriority({ number }) {\n const [loading, setLoading] = useState(false);\n const { priority, id, number: phoneNumber } = number;\n const canBeUp = priority > 1;\n const canBeDown = priority < 10;\n const priorityUp = priority - 1;\n const priorityDown = priority + 1;\n\n useEventSubscription(OnPhoneNumberUpdateEvent, () => {\n setLoading(false);\n });\n useEventSubscription(OnPhoneNumberUpdateError, () => {\n setLoading(false);\n });\n if (loading) {\n return ;\n }\n return (\n <>\n {canBeDown ? (\n {\n setLoading(true);\n updatePhoneNumber(id, {\n priority: priorityDown,\n number: phoneNumber,\n });\n }}>\n \n \n ) : (\n \n )}\n {priority}\n {canBeUp ? (\n {\n setLoading(true);\n updatePhoneNumber(number.id, {\n priority: priorityUp,\n number: phoneNumber,\n });\n }}>\n \n \n ) : (\n \n )}\n \n );\n}\n\nPhoneNumberPriority.propTypes = {\n number: PropTypes.object.isRequired,\n};\n\nexport default PhoneNumberPriority;\n","import React, { useState, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { Pagination, Table, Dropdown, Icon, Menu } from '@8base/boost';\nimport { usePhoneNumbersList } from '../phone-numbers-hooks';\nimport { formatPhoneNumber } from '../../../phone-calls/phone-calls-utils';\nimport { PhoneStatus } from './PhoneStatus';\nimport { TableBody, PaginationWrapper } from '../../components/Card';\nimport styled from 'styled-components';\nimport { updatePhoneNumber } from '../phone-numbers-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as toast from 'shared/components/toast/Toast';\nimport DeleteNumberModal from './DeleteNumberModal';\nimport PhoneNumberPriority from './PhoneNumberPriority';\nimport {\n OnPhoneNumberDeleteError,\n OnPhoneNumberDeleteEvent,\n OnPhoneNumberUpdateError,\n OnPhoneNumberUpdateEvent,\n OnPurchasedPhoneNumbersEvent,\n} from '../phone-numbers-events';\nconst tableColumns = '80px minmax(150px,1fr) minmax(250px,1fr) minmax(150px,1fr) minmax(150px,1fr)';\nconst PAGE_SIZE = 10;\n\nconst BodyCell = styled(Table.BodyCell)`\n justify-content: center !important;\n`;\nconst HeaderCell = styled(Table.HeaderCell)`\n justify-content: center !important;\n`;\n/**\n * @param {object} props Props\n * @param {string} props.agency Agency id\n * @returns {object} React Component\n */\nfunction PhoneNumbersList({ agency }) {\n const [page, setPage] = useState(1);\n const [deleteModal, setDeleteModal] = useState('');\n const queryOffset = (page - 1) * PAGE_SIZE;\n const [menuOpen, setMenuOpen] = useState('');\n const [numbers, loading, total, refetch] = usePhoneNumbersList(agency, PAGE_SIZE, queryOffset);\n\n // to pass up in the tree the refecth function so the list can be updated when an phone number is added\n\n const openMenu = useCallback((itemId) => {\n setMenuOpen((id) => (id === itemId ? '' : itemId));\n }, []);\n\n const closeDeleteModal = useCallback(() => {\n setDeleteModal('');\n }, []);\n\n useEventSubscription(OnPurchasedPhoneNumbersEvent, (numbers) => {\n refetch();\n });\n useEventSubscription(OnPhoneNumberUpdateEvent, () => {\n toast.success('Updated successfully');\n refetch();\n });\n useEventSubscription(OnPhoneNumberUpdateError, (e) => {\n toast.error(`Failed to update ${JSON.stringify(e)}`);\n });\n\n useEventSubscription(OnPhoneNumberDeleteEvent, () => {\n toast.success('Delete successfully');\n refetch();\n closeDeleteModal();\n });\n\n useEventSubscription(OnPhoneNumberDeleteError, (e) => {\n toast.error(`Failed to delete ${JSON.stringify(e)}`);\n closeDeleteModal();\n });\n\n const shouldShowDeleteModal = deleteModal !== '';\n\n return (\n <>\n \n \n #\n Number\n Status\n Priority\n Actions\n \n \n {(item, i) => (\n \n {i + 1 + queryOffset}\n {formatPhoneNumber(`${item.number.code}${item.number.number}`)}\n \n \n \n \n \n \n \n openMenu(item.id)}>\n \n \n \n \n \n \n updatePhoneNumber(item.id, {\n status: !item.status,\n number: item.number,\n })\n }>\n {item.status ? 'Deactivate' : 'Activate'}\n \n setDeleteModal(item.id)}>Delete\n \n \n \n \n \n )}\n \n \n \n \n \n \n
    \n {shouldShowDeleteModal && (\n \n )}\n \n );\n}\n\nPhoneNumbersList.defaultProps = {\n setRefetch: () => null,\n};\nPhoneNumbersList.propTypes = {\n agency: PropTypes.string.isRequired,\n};\n\nexport default PhoneNumbersList;\n","import { useState, useEffect, useCallback } from 'react';\nimport { fetchPhoneNumbersList, fetchTwilioPhoneNumbersList } from './phone-numbers-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as toast from 'shared/components/toast/Toast';\nimport { fetchSession } from '../../auth/auth.actions';\nimport {\n OnPhoneNumbersListError,\n OnPhoneNumbersListEvent,\n OnTwilioPhonenumbersListError,\n OnTwilioPhonenumbersListEvent,\n} from './phone-numbers-events';\n\n/**\n * @typedef {object} PhoneNumber\n * @property {object.<{number:string,code:string}>} number Phone number object with code and number properties\n * @property {number} priority priority of the phone number\n * @property {boolean} status status active/inactive\n * @property {string} id Id of the phone\n */\n/**\n * @typedef {[Array., boolean,number]} HookState array\n * @param {string} agency Agency Id\n * @param {number} pageSize Page size\n * @param {number} queryOffset Offset\n * @returns {HookState} Hook array\n */\nexport function usePhoneNumbersList(agency, pageSize, queryOffset) {\n const [numbers, setNumbers] = useState([]);\n const [count, setCount] = useState(0);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (!agency) {\n return;\n }\n fetchPhoneNumbersList(agency, pageSize, queryOffset);\n }, [agency, pageSize, queryOffset]);\n const refetch = useCallback(\n (fetchPolicy = 'network-only') => {\n fetchPhoneNumbersList(agency, pageSize, queryOffset, fetchPolicy);\n fetchSession();\n },\n [agency, pageSize, queryOffset],\n );\n useEventSubscription(OnPhoneNumbersListEvent, (data) => {\n const {\n phoneNumbersList: { items, count },\n } = data;\n setLoading(false);\n setCount(count);\n setNumbers(items);\n });\n useEventSubscription(OnPhoneNumbersListError, (data) => {\n toast.error(JSON.stringify(data));\n setLoading(false);\n });\n return [numbers, loading, count, refetch];\n}\n/**\n * @typedef {object} TwilioPhoneNumber\n * @property {string} friendlyName Formated phone number (555) 555-5555\n * @property {string} phoneNumber Phone number +15555555555\n * @property {string} region Phone region NJ\n */\n/**\n * @typedef {[Array., boolean,Function]} TwilioHookState array\n * @returns {TwilioHookState} Hook state\n */\nexport function useTwilioPhoneNumbersList(type) {\n const [{ numbers, loading }, setState] = useState({\n numbers: [],\n loading: true,\n });\n\n useEffect(() => {\n console.log('FROM useTwilioPhoneNumbersList', type);\n setState((state) => ({ ...state, loading: true }));\n fetchTwilioPhoneNumbersList(null, type);\n }, [type]);\n\n const refetch = useCallback(\n (search) => {\n setState((state) => ({ ...state, loading: true }));\n fetchTwilioPhoneNumbersList(search, type);\n },\n [type],\n );\n\n useEventSubscription(OnTwilioPhonenumbersListEvent, (phoneNumbers) => {\n setState((state) => ({\n ...state,\n loading: false,\n numbers: phoneNumbers,\n }));\n });\n\n useEventSubscription(OnTwilioPhonenumbersListError, () => {\n toast.error('Error loading phone numbers');\n setState((state) => ({ ...state, loading: false }));\n });\n return [numbers, loading, refetch];\n}\n","import React, { useState, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, InputField, Row } from '@8base/boost';\n\n/**\n * @param {object} props Props\n * @returns {object} React component\n */\nfunction SearchBarNumbers({ search: searchAction }) {\n const [search, setSearch] = useState('');\n const handleSearchChange = useCallback(({ target }) => {\n const { value } = target;\n setSearch(value);\n }, []);\n\n return (\n \n \n \n \n );\n}\n\nSearchBarNumbers.propTypes = {\n search: PropTypes.func.isRequired,\n};\n\nexport default SearchBarNumbers;\n","import React, { memo } from 'react';\nimport PropTypes from 'prop-types';\nimport { Table, Checkbox } from '@8base/boost';\nimport { ALL_PHONE_NUMBERS } from '../phone-numbers-model';\n\n/**\n * @param {object} props props\n * @param {Function} props.handleChange Handle change\n * @param {Array} props.numbers Numbers array\n * @param {Array} props.selectedNumbers Selacted Numbers array\n * @param {boolean} props.loading Loading state\n * @returns {object} React component\n */\nfunction AvailablePhoneNumberList({ handleChange, numbers, selectedNumbers, loading }) {\n const allSelected = selectedNumbers.length === numbers.length && !loading;\n return (\n \n \n \n handleChange(value, ALL_PHONE_NUMBERS)}\n />\n \n Number\n Friendly Number\n Region\n \n\n \n {(item, i) => (\n \n \n handleChange(value, item.phoneNumber)}\n checked={selectedNumbers.includes(item.phoneNumber)}\n />\n \n {item.phoneNumber}\n {item.friendlyName}\n {item.region}\n \n )}\n \n
    \n );\n}\nAvailablePhoneNumberList.propTypes = {\n handleChange: PropTypes.func.isRequired,\n numbers: PropTypes.arrayOf(PropTypes.object).isRequired,\n selectedNumbers: PropTypes.arrayOf(PropTypes.string).isRequired,\n loading: PropTypes.bool.isRequired,\n};\nexport default memo(AvailablePhoneNumberList);\n","export const ALL_PHONE_NUMBERS = 'ALL';\n","import gql from 'graphql-tag';\n\nexport const SubscriptionPlanItemFragment = gql`\n fragment SubscriptionPlanItemFragment on SubscriptionPlanItem {\n id\n name\n price\n initialQuantity\n stripePriceId\n description\n }\n`;\n\nexport const FETCH_SUBSCRIPTION_PLAN_ITEMS = gql`\n query FetchSubscriptionPlanItems(\n $filter: SubscriptionPlanItemFilter\n $first: Int\n $skip: Int\n $orderBy: [SubscriptionPlanItemOrderBy]\n ) {\n subscriptionPlanItemsList(filter: $filter, first: $first, skip: $skip, orderBy: $orderBy) {\n items {\n ...SubscriptionPlanItemFragment\n }\n }\n }\n ${SubscriptionPlanItemFragment}\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnSubItemFetchByName = createEvent();\n\nexport const OnSubItemFetchByNameError = createEvent();\n","import { FETCH_SUBSCRIPTION_PLAN_ITEMS } from './subscription-plan-item-queries';\nimport { OnSubItemFetchByName, OnSubItemFetchByNameError } from './subscription-plan-item-events';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { error, log } from '@cobuildlab/pure-logger';\n\n/**\n * Fetches a subscription item by its name\n *\n * @param {string} name - The subscription item name to search\n *\n * @returns {Promise} The request result\n */\nexport const fetchSubscriptionItemByName = async (name) => {\n const client = OnApolloClient.get();\n const first = 1;\n const skip = 0;\n const filter = { name: { equals: name } };\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_SUBSCRIPTION_PLAN_ITEMS,\n variables: { first, skip, filter },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchSubscriptionItemByName', e);\n\n return OnSubItemFetchByNameError.dispatch(e);\n }\n\n log('fetchSubscriptionItemByName', response.data);\n\n return OnSubItemFetchByName.dispatch(response.data);\n};\n","export const SUBSCRIPTION_ITEMS = {\n PHONE_NUMBER: 'Phone Number',\n};\n","import React, { useCallback, useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, Row, Modal, Card, Icon } from '@8base/boost';\nimport { useTwilioPhoneNumbersList } from '../phone-numbers-hooks';\nimport { ALL_PHONE_NUMBERS } from '../phone-numbers-model';\nimport SearchBarNumbers from './SearchBarNumbers';\nimport AvailablePhoneNumberList from './AvailablePhoneNumberList';\nimport { parsePhoneNumber, getPhoneNumbersString } from '../phone-numbers-utils';\nimport { purchasePhoneNumbers } from '../phone-numbers-actions';\nimport { useSubscriptionItem } from '../../../subscription-plan/subscription-plan-item/subscription-plan-item-hooks';\nimport { SUBSCRIPTION_ITEMS } from '../../../subscription-plan/subscription-plan-item/subscription-plan-item-model';\nimport * as toast from 'shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { Header, CardTitle } from '../../components/Card';\nimport styled from 'styled-components';\nimport {\n OnPurchasedPhoneNumbersError,\n OnPurchasedPhoneNumbersEvent,\n} from '../phone-numbers-events';\nimport { OnApolloClient } from 'shared/session/session-events';\nimport gql from 'graphql-tag';\n\nconst { PHONE_NUMBER } = SUBSCRIPTION_ITEMS;\n\nconst Body = styled(Card.Body)`\n max-height: 60vh;\n`;\n\nconst AGENCY_STATUS_QUERY = gql`\n query agency_status($id: ID) {\n agency(id: $id) {\n twilioBusinessType\n }\n }\n`;\n/**\n * @param {object} props Props\n * @param {Function} props.close Function to close the modal\n * @param {boolean} props.isOpen Boolean to show or hide the modal\n * @returns {object} React component\n */\nfunction AddPhoneNumbers({ close, isOpen, user, agency, company }) {\n const [selectedNumbers, setSelectedNumbers] = useState([]);\n const [purchasing, setPurchasing] = useState(false);\n const { item, loading: loadingItem, error } = useSubscriptionItem(PHONE_NUMBER);\n const [phoneType, setPhoneType] = useState('Local');\n const [numbers, loading, search] = useTwilioPhoneNumbersList(phoneType);\n\n const changePhoneType = (type) => {\n console.log('PHONE TYPE CHANGED');\n if (type === 'Toll-Free') {\n setPhoneType('Toll-Free');\n } else {\n setPhoneType('Local');\n }\n };\n\n useEffect(() => {\n console.log('phoneType', phoneType);\n }, [phoneType]);\n\n useEffect(() => {\n if (error) {\n onErrorMixinFC(error);\n }\n }, [error]);\n\n const handlePhonesChange = useCallback(\n (value, number) => {\n if (number === ALL_PHONE_NUMBERS) {\n if (value) {\n const allNumbers = numbers.map((item) => item.phoneNumber);\n setSelectedNumbers(allNumbers);\n } else {\n setSelectedNumbers([]);\n }\n } else {\n if (value) {\n setSelectedNumbers((currentNumbers) => [...currentNumbers, number]);\n } else {\n // filter the current array to remove the selected number\n setSelectedNumbers((currentNumbers) => currentNumbers.filter((num) => num !== number));\n }\n }\n },\n [numbers],\n );\n const purchase = useCallback(() => {\n const parsedNumbers = selectedNumbers.map((item) => parsePhoneNumber(item));\n\n setPurchasing(true);\n purchasePhoneNumbers({ user, agency, company, item: item.id }, parsedNumbers);\n }, [selectedNumbers, user, agency, company, item]);\n\n useEventSubscription(OnPurchasedPhoneNumbersEvent, (numbers) => {\n const string = getPhoneNumbersString(numbers);\n\n toast.success(`The numbers ${string} were purchased successfully`);\n\n setPurchasing(false);\n close();\n });\n useEventSubscription(OnPurchasedPhoneNumbersError, (error) => {\n if (Array.isArray(error)) {\n const string = getPhoneNumbersString(error);\n\n toast.error(`The numbers ${string} are not available anymore`);\n } else {\n onErrorMixinFC(error);\n }\n\n setPurchasing(false);\n });\n\n return (\n <>\n \n \n
    \n Phone Numbers\n \n
    \n \n \n \n changePhoneType('Local')}>\n Local Phone Numbers\n \n changePhoneType('Toll-Free')}>\n Toll-Free Phone Numbers\n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n \n );\n}\n\nAddPhoneNumbers.propTypes = {\n close: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n user: PropTypes.string.isRequired,\n agency: PropTypes.string.isRequired,\n company: PropTypes.string.isRequired,\n};\n\nexport default AddPhoneNumbers;\n","import { useState, useEffect } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchSubscriptionItemByName } from './subscription-plan-item-actions';\nimport { OnSubItemFetchByName, OnSubItemFetchByNameError } from './subscription-plan-item-events';\n\n/**\n * Hook that returns the subscription item by its name\n *\n * @param {string} itemName - The item name\n *\n * @returns {object} The hook state\n */\nexport function useSubscriptionItem(itemName) {\n const [name, setName] = useState(itemName);\n const [state, setState] = useState({\n item: null,\n loading: true,\n error: null,\n setName,\n });\n\n useEffect(() => {\n setState((state) => ({\n ...state,\n loading: true,\n }));\n\n fetchSubscriptionItemByName(name);\n }, [name]);\n\n useSubscription(\n OnSubItemFetchByName,\n ({ subscriptionPlanItemsList }) => {\n const [item] = subscriptionPlanItemsList.items;\n\n setState((state) => ({\n ...state,\n item: item,\n loading: false,\n error: null,\n }));\n },\n [],\n );\n\n useSubscription(\n OnSubItemFetchByNameError,\n (e) => {\n setState((state) => ({\n ...state,\n item: null,\n loading: false,\n error: e,\n }));\n },\n [],\n );\n\n return state;\n}\n","import React, { useState, useCallback } from 'react';\nimport { Card, Row } from '@8base/boost';\nimport { Body } from '../components/Card';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport PhoneNumbersList from './components/PhoneNumbersList';\nimport AddPhoneNumbers from './components/AddPhoneNumbers';\nimport { CreateButton } from 'shared/components';\nimport { Box } from '../../../shared/components/Box';\n\n/**\n * View of the phone numbers management in settings\n *\n * @returns {object} Phone numbers view component\n */\nexport default function PhoneNumberView() {\n const [showModal, setShowModal] = useState(false);\n const agency = useAgency();\n const [user] = useUser();\n\n const closeModal = useCallback(() => {\n setShowModal(false);\n }, []);\n\n const openModal = useCallback(() => {\n setShowModal(true);\n }, []);\n\n return (\n \n \n \n \n \n \n \n \n \n \n {showModal && (\n \n )}\n \n \n );\n}\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString } from '../../../shared/validators';\n\nexport const updateUserSignatureValidator = (data) => {\n let errorMessages = [];\n if (data.isEnableSignature && !isValidString(data.signature)) {\n errorMessages.push('Signature can not be empty.');\n }\n if (data.signature.length > 2000) {\n errorMessages.push('Very long Signature');\n }\n\n if (errorMessages.length !== 0) throw new ValidationError(errorMessages);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUserSignatureUpdateEvent = createEvent();\n\nexport const OnUserSignatureUpdateError = createEvent();\n\nexport const OnTestConnectEvent = createEvent();\n\nexport const OnTestConnectError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { UPDATE_USER } from '../../auth/queries';\nimport { OnApolloClient, OnSessionFetch } from '../../../shared/session/session-events';\nimport { updateUserSignatureValidator } from './email-validators';\nimport {\n OnTestConnectError,\n OnTestConnectEvent,\n OnUserSignatureUpdateError,\n OnUserSignatureUpdateEvent,\n} from './email-events';\n\n/**\n * Update user signature\n *\n * @param {object} data - the fields to update the user signature\n */\nexport const updateUserSignature = async (data) => {\n const client = OnApolloClient.get();\n const user = OnSessionFetch.get().user;\n data.id = user.id;\n let response;\n\n try {\n updateUserSignatureValidator(data);\n } catch (e) {\n error('updateUserSignature', e);\n console.log(e);\n return OnUserSignatureUpdateError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: UPDATE_USER,\n variables: { data },\n });\n } catch (e) {\n error('updateUserSignature', e);\n return OnUserSignatureUpdateError.dispatch(e);\n }\n\n log('updateUserSignature', response);\n OnUserSignatureUpdateEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Tests the connection with the give parameters\n *\n * @param {object} data - Data sent to the endpoint to test the connection\n * @param {string} type - The type of service to be tested\n *\n * @returns {Promise} The request result\n */\nexport const testConnection = async (data, type = 'inbound') => {\n let response = null;\n\n try {\n response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/email/test/${type}/connection`,\n {\n method: 'POST',\n body: JSON.stringify(data),\n },\n );\n } catch (e) {\n error('testConnection', e);\n\n return OnTestConnectError.dispatch(e);\n }\n\n if (response.status !== 200) {\n error('testConnection');\n\n return OnTestConnectError.dispatch();\n }\n\n log('testConnection');\n OnTestConnectEvent.dispatch();\n};\n","import React, { useState, useCallback } from 'react';\nimport { Button, Icon } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { testConnection } from '../../my-account/email/email-actions';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\nimport { OnTestConnectError, OnTestConnectEvent } from 'modules/my-account/email/email-events';\n\n/**\n * Renders a button used to test SMTP, POP and IMAP connections\n *\n * @param {object} props - The compoment props\n * @param {object} props.data - The connection parameters\n * @param {string} props.type - Type of connection, either \"inbound\" or \"outbound\"\n *\n * @returns {React.FC} The component to render\n */\nfunction TestConnectionButton({ data, type, disabled }) {\n const [loading, setLoading] = useState();\n const [color, setColor] = useState('neutral');\n\n const handleClick = useCallback(() => {\n setLoading(true);\n setColor('neutral');\n\n testConnection(data, type);\n }, [data, type]);\n\n useEventSubscription(OnTestConnectEvent, () => {\n setLoading(false);\n setColor('success');\n\n setTimeout(() => setColor('neutral'), 5000);\n\n Toast.success('Success', `Connected successfully to client`);\n });\n\n useEventSubscription(OnTestConnectError, () => {\n setLoading(false);\n setColor('danger');\n\n setTimeout(() => setColor('neutral'), 5000);\n\n Toast.error(`The connection with the client failed`);\n });\n\n let text = 'Test Connection';\n\n if (color === 'success') {\n text = 'Success';\n } else if (color === 'danger') {\n text = 'Wrong Credentials';\n }\n\n return (\n \n );\n}\n\nTestConnectionButton.propTypes = {\n data: PropTypes.object.isRequired,\n type: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n};\n\nTestConnectionButton.defaultProps = {\n disabled: false,\n};\n\nexport default TestConnectionButton;\n","import gql from 'graphql-tag';\n\nexport const InboundFragment = gql`\n fragment InboundFragment on EmailInboundService {\n id\n description\n protocol\n server\n port\n connection\n username\n password\n active\n }\n`;\n\nexport const INBOUND_SERVICE_SETTINGS_QUERY = gql`\n query FetchInboundServiceSettings($first: Int, $filter: EmailInboundServiceFilter) {\n emailInboundServicesList(first: $first, filter: $filter) {\n items {\n ...InboundFragment\n }\n }\n }\n ${InboundFragment}\n`;\n\nexport const CREATE_INBOUND_SERVICE_MUTATION = gql`\n mutation CreateEmailInboundService($data: EmailInboundServiceCreateInput!) {\n emailInboundServiceCreate(data: $data) {\n ...InboundFragment\n }\n }\n ${InboundFragment}\n`;\n\nexport const UPDATE_INBOUND_SERVICE_MUTATION = gql`\n mutation UpdateEmailInboundService($data: EmailInboundServiceUpdateInput!) {\n emailInboundServiceUpdate(data: $data) {\n ...InboundFragment\n }\n }\n ${InboundFragment}\n`;\n\nexport const UPDATE_MANY_INBOUND_SERVICES = gql`\n mutation UpdateEmailInboundServices(\n $data: EmailInboundServiceUpdateByFilterInput!\n $filter: EmailInboundServiceFilter!\n ) {\n emailInboundServiceUpdateByFilter(data: $data, filter: $filter) {\n count\n }\n }\n`;\n","import gql from 'graphql-tag';\n\nexport const OutboundFragment = gql`\n fragment OutboundFragment on EmailOutboundService {\n id\n description\n server\n port\n connection\n username\n password\n active\n fallback\n }\n`;\n\nexport const QUERY_OUTBOUND_SERVICE_SETTINGS = gql`\n query FetchOutboundEmailServices($first: Int, $filter: EmailOutboundServiceFilter) {\n emailOutboundServicesList(first: $first, filter: $filter) {\n items {\n ...OutboundFragment\n }\n }\n }\n ${OutboundFragment}\n`;\n\nexport const CREATE_OUTBOUND_SERVICE_MUTATION = gql`\n mutation CreateOutboundEmailService($data: EmailOutboundServiceCreateInput!) {\n emailOutboundServiceCreate(data: $data) {\n ...OutboundFragment\n }\n }\n ${OutboundFragment}\n`;\n\nexport const DISABLE_EMAIL_SERVICES = gql`\n mutation DisableEmailServices($agency: ID!, $user: ID!) {\n emailOutboundServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n emailInboundServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n gmailServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n outlookServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n }\n`;\n\nexport const DISABLE_THIRD_PARTY_SERVICES = gql`\n mutation DisableThirdPartyServices($agency: ID!, $user: ID!) {\n gmailServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n outlookServiceUpdateByFilter(\n filter: { user: { id: { equals: $user } }, agency: { id: { equals: $agency } } }\n data: { active: [{ set: false }] }\n ) {\n count\n }\n }\n`;\n\nexport const UPDATE_OUTBOUND_SERVICE_MUTATION = gql`\n mutation UpdateOutboundEmailService($data: EmailOutboundServiceUpdateInput!) {\n emailOutboundServiceUpdate(data: $data) {\n ...OutboundFragment\n }\n }\n ${OutboundFragment}\n`;\n\nexport const UPDATE_MANY_OUTBOUND_SERVICES = gql`\n mutation UpdateOuboundEmailServices(\n $data: EmailOutboundServiceUpdateByFilterInput!\n $filter: EmailOutboundServiceFilter!\n ) {\n emailOutboundServiceUpdateByFilter(data: $data, filter: $filter) {\n count\n }\n }\n`;\n\nexport const FETCH_GMAIL_SERVICE = gql`\n query FetchGmailServices(\n $filter: GmailServiceFilter\n $first: Int\n $skip: Int\n $sort: [GmailServiceSort!]\n ) {\n gmailServicesList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n items {\n id\n active\n profile {\n id\n name\n email\n avatar\n }\n }\n }\n }\n`;\n\nexport const CREATE_GMAIL_SERVICE = gql`\n mutation CreateGmailService($data: GmailServiceCreateInput!) {\n gmailServiceCreate(data: $data) {\n id\n active\n profile {\n id\n name\n email\n avatar\n }\n }\n }\n`;\n\nexport const UPDATE_GMAIL_SERVICE = gql`\n mutation UpdateGmailSerivce(\n $filter: GmailServiceKeyFilter\n $data: GmailServiceUpdateInput!\n $force: Boolean\n ) {\n gmailServiceUpdate(filter: $filter, data: $data, force: $force) {\n id\n active\n profile {\n id\n name\n email\n avatar\n }\n }\n }\n`;\n\nexport const LOGOUT_FROM_GMAIL_SERVICE = gql`\n mutation LogoutFromGmailService($agency: ID!) {\n googleLogout(agency: $agency) {\n id\n active\n profile {\n id\n name\n email\n avatar\n }\n }\n }\n`;\n\nexport const FETCH_GOOGLE_AUTH_URL = gql`\n query FetchGoogleAuthUrl($agency: ID!, $from: AuthFrom!) {\n googleAuthUrl(agency: $agency, from: $from) {\n url\n }\n }\n`;\n\nexport const EXCHANGE_CODE_FOR_TOKENS = gql`\n mutation ExchangeGoogleCodeForToken($agency: ID!, $code: String!, $from: AuthFrom!) {\n googleExchangeTokens(agency: $agency, code: $code, from: $from) {\n id\n active\n name\n email\n avatar\n accessToken\n refreshToken\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchInboundService = createEvent();\n\nexport const OnFetchInboundServiceError = createEvent();\n\nexport const OnUpdateInboundService = createEvent();\n\nexport const OnUpdateInboundServiceError = createEvent();\n\nexport const OnDisableInboundServices = createEvent();\n\nexport const OnDisableInboundServicesError = createEvent();\n","export const CONNECTION_SECURITY_OPTIONS = [\n {\n label: 'None',\n value: 'None',\n },\n {\n label: 'TLS',\n value: 'TLS',\n },\n];\n\nexport const PROTOCOL_OPTIONS = [\n {\n label: 'POP',\n value: 'POP',\n },\n {\n label: 'IMAP',\n value: 'IMAP',\n },\n];\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString, isValidInteger } from '../../../shared/validators';\nimport { CONNECTION_SECURITY_OPTIONS, PROTOCOL_OPTIONS } from './inbound-model';\n\n/**\n * Validates the input when creating a outbound service\n *\n * @param {object} service - The service object\n * @param {string} service.id - Indicates the identifier of the service to update\n * @param {boolean} service.active - Indicates if the current configuration is active\n * @param {number} service.priority - This email service priority\n * @param {string} service.server - The service smtp server\n * @param {number} service.port - The service smtp port\n * @param {string} service.connection - The service authentication option\n * @param {string} service.username - The authentication username\n * @param {string} service.password - The authentication password\n *\n * @returns {void}\n */\nexport const updateInboundServiceValidation = (service) => {\n const errors = [];\n\n if (!isValidString(service.id)) errors.push('The outbound service identifier is not correct');\n\n if (!service.active) {\n if (errors.length > 0) throw new ValidationError(errors);\n\n return;\n }\n\n if (!isValidString(service.server)) errors.push('The server must be a valid string');\n\n if (!isValidInteger(service.port)) errors.push('The port has to be an integer bigger than zero');\n\n if (CONNECTION_SECURITY_OPTIONS.every((con) => con.value !== service.connection))\n errors.push('The connection must be a valid option');\n\n if (PROTOCOL_OPTIONS.every((con) => con.value !== service.protocol))\n errors.push('The protocol must be a valid option');\n\n if (!isValidString(service.username)) errors.push('The username must be a valid string');\n\n if (!isValidString(service.password)) errors.push('The password must be a valid string');\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport {\n INBOUND_SERVICE_SETTINGS_QUERY,\n CREATE_INBOUND_SERVICE_MUTATION,\n UPDATE_INBOUND_SERVICE_MUTATION,\n UPDATE_MANY_INBOUND_SERVICES,\n} from './inbound-queries';\nimport {\n QUERY_OUTBOUND_SERVICE_SETTINGS,\n CREATE_OUTBOUND_SERVICE_MUTATION,\n DISABLE_THIRD_PARTY_SERVICES,\n} from '../outbound/outbound-queries';\nimport {\n OnFetchInboundService,\n OnFetchInboundServiceError,\n OnUpdateInboundService,\n OnUpdateInboundServiceError,\n OnDisableInboundServices,\n OnDisableInboundServicesError,\n} from './inbound-store';\nimport { updateInboundServiceValidation } from './inbound-validation';\nimport { OnApolloClient } from '../../../shared/session/session-events';\n\n/**\n * Fetches an inbound service binded to a agency\n *\n * @param {string} agencyId - The agency id\n * @param {string} userId - The user id\n *\n * @returns {Promise} The action result\n */\nexport const fetchInboundServices = createAction(\n OnFetchInboundService,\n OnFetchInboundServiceError,\n async (agencyId, userId) => {\n const client = OnApolloClient.get();\n const first = 1;\n const filter = {\n agency: { id: { equals: agencyId } },\n user: { id: { equals: userId } },\n };\n\n const {\n data: { emailInboundServicesList },\n } = await client.query({\n query: INBOUND_SERVICE_SETTINGS_QUERY,\n fetchPolicy: 'network-only',\n variables: {\n first,\n filter,\n },\n });\n\n const {\n data: { emailOutboundServicesList },\n } = await client.query({\n query: QUERY_OUTBOUND_SERVICE_SETTINGS,\n fetchPolicy: 'network-only',\n variables: {\n first,\n filter,\n },\n });\n\n let [inbound] = emailInboundServicesList.items;\n let [outbound] = emailOutboundServicesList.items;\n\n if (!outbound) {\n await client.mutate({\n mutation: CREATE_OUTBOUND_SERVICE_MUTATION,\n variables: {\n data: {\n description: 'Example connection configuration',\n server: 'smtp.example.com',\n port: 465,\n connection: 'None',\n active: false,\n agency: { connect: { id: agencyId } },\n user: { connect: { id: userId } },\n },\n },\n });\n }\n\n if (!inbound) {\n const {\n data: { emailInboundServiceCreate },\n } = await client.mutate({\n mutation: CREATE_INBOUND_SERVICE_MUTATION,\n variables: {\n data: {\n active: false,\n description: 'Example connection configuration',\n server: 'imap.example.com',\n protocol: 'IMAP',\n port: 993,\n connection: 'TLS',\n agency: { connect: { id: agencyId } },\n user: { connect: { id: userId } },\n },\n },\n });\n\n inbound = emailInboundServiceCreate;\n }\n\n return { emailInboundService: inbound };\n },\n);\n\n/**\n * Updates the email inbound service configuration\n *\n * @param {object} data - The inbound service object to update\n * @param {string} userId - The user id\n * @param {string} agencyId - The agency id\n *\n * @returns {Promise} - The action result\n */\nexport const updateInboundService = createAction(\n OnUpdateInboundService,\n OnUpdateInboundServiceError,\n async (data, userId, agencyId) => {\n const client = OnApolloClient.get();\n\n updateInboundServiceValidation(data);\n\n await client.mutate({\n mutation: DISABLE_THIRD_PARTY_SERVICES,\n variables: {\n user: userId,\n agency: agencyId,\n },\n });\n\n const response = await client.mutate({\n mutation: UPDATE_INBOUND_SERVICE_MUTATION,\n variables: { data },\n });\n\n return response.data;\n },\n);\n\n/**\n * Disable all inbound services\n *\n * @param {string} userId - The user id\n * @param {string} agencyId - The agency id\n *\n * @returns {Promise} The request result\n */\nexport const disableInboundServices = createAction(\n OnDisableInboundServices,\n OnDisableInboundServicesError,\n async (userId, agencyId) => {\n const client = OnApolloClient.get();\n\n await client.mutate({\n mutation: DISABLE_THIRD_PARTY_SERVICES,\n variables: {\n user: userId,\n agency: agencyId,\n },\n });\n\n await client.mutate({\n mutation: UPDATE_MANY_INBOUND_SERVICES,\n variables: {\n filter: {\n user: { id: { equals: userId } },\n agency: { id: { equals: agencyId } },\n },\n data: {\n active: [{ set: false }],\n },\n },\n });\n },\n);\n","import React, { useState, useEffect } from 'react';\nimport TestConnectionButton from '../../../email/components/TestConnectionButton';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchInboundServices, updateInboundService } from '../inbound-actions';\nimport { PROTOCOL_OPTIONS, CONNECTION_SECURITY_OPTIONS } from '../inbound-model';\nimport { Box } from '../../../../shared/components/Box';\nimport {\n Card as BoostCard,\n Row as BoostRow,\n Grid,\n SelectField,\n Column,\n Form,\n Radio,\n InputField,\n Button,\n styled,\n} from '@8base/boost';\nimport {\n OnFetchInboundService,\n OnFetchInboundServiceError,\n OnUpdateInboundService,\n OnUpdateInboundServiceError,\n} from '../inbound-store';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { useAgency } from '../../../../shared/hooks/useAgency';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport PropTypes from 'prop-types';\n\nconst Card = styled(BoostCard)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst Row = styled(BoostRow)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst initialForm = {\n id: null,\n active: false,\n description: '',\n protocol: 'POP',\n server: '',\n port: 0,\n connection: 'None',\n username: '',\n password: '',\n loading: false,\n};\n\nexport const InboundForm = ({ type, setType }) => {\n const [form, setForm] = useState(initialForm);\n const [loading, setLoading] = useState(true);\n const agency = useAgency();\n const [user] = useUser();\n\n useEffect(() => {\n setLoading(true);\n\n fetchInboundServices(agency.id, user.id);\n }, [agency.id, user.id]);\n\n useSubscription(\n OnFetchInboundService,\n ({ emailInboundService }) => {\n setLoading(false);\n\n setForm((prevState) => ({\n ...prevState,\n ...emailInboundService,\n }));\n\n if (emailInboundService.active) {\n setType('CUSTOM');\n }\n },\n [],\n );\n\n useSubscription(\n OnFetchInboundServiceError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnUpdateInboundService,\n ({ emailInboundServiceUpdate }) => {\n setForm((prevState) => ({\n ...prevState,\n ...emailInboundServiceUpdate,\n }));\n\n setLoading(false);\n\n toast.success('Success', 'Email inbound service updated');\n },\n [],\n );\n\n useSubscription(\n OnUpdateInboundServiceError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleSubmit = () => {\n setLoading(true);\n\n updateInboundService(\n {\n id: form.id,\n active: true,\n description: form.description,\n protocol: form.protocol,\n server: form.server,\n port: form.port,\n connection: form.connection,\n username: form.username,\n password: form.password,\n },\n user.id,\n agency.id,\n );\n };\n\n const isCustom = type === 'CUSTOM';\n\n return (\n \n \n
    e.preventDefault()}>\n \n \n \n setType('CUSTOM')} />\n \n \n \n Connection Information\n \n \n setForm({ ...form, protocol: value }),\n }}\n stretch={false}\n />\n setForm({ ...form, description: value }),\n }}\n />\n setForm({ ...form, server: value }),\n }}\n stretch\n />\n setForm({ ...form, port: value }),\n }}\n width={10}\n />\n \n \n \n \n Security and Authentication\n \n \n setForm({ ...form, connection: value }),\n }}\n stretch={false}\n />\n setForm({ ...form, username: value }),\n }}\n stretch\n />\n setForm({ ...form, password: value }),\n }}\n stretch\n />\n \n \n \n \n \n \n \n
    \n
    \n \n \n \n \n \n
    \n );\n};\n\nInboundForm.propTypes = {\n type: PropTypes.string.isRequired,\n setType: PropTypes.func.isRequired,\n};\n","import gql from 'graphql-tag';\n\nexport const FETCH_OUTLOOK_SERVICES = gql`\n query FetchOurlookServices(\n $filter: OutlookServiceFilter\n $first: Int\n $skip: Int\n $sort: [OutlookServiceSort!]\n ) {\n outlookServicesList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n count\n items {\n id\n active\n profile {\n id\n name\n email\n }\n }\n }\n }\n`;\n\nexport const CREATE_OUTLOOK_SERVICE = gql`\n mutation CreateOulookService($data: OutlookServiceCreateInput!) {\n outlookServiceCreate(data: $data) {\n id\n active\n profile {\n id\n name\n email\n }\n }\n }\n`;\n\nexport const UPDATE_OUTLOOK_SERVICE = gql`\n mutation UpdateOutlookService(\n $data: OutlookServiceUpdateInput!\n $filter: OutlookServiceKeyFilter\n ) {\n outlookServiceUpdate(data: $data, filter: $filter) {\n id\n active\n profile {\n id\n name\n email\n }\n }\n }\n`;\n\nexport const FETCH_AZURE_AUTH_URL = gql`\n query FetchAzureAuthUrl($agency: ID!, $from: AuthFrom!) {\n azureAuthUrl(agency: $agency, from: $from) {\n url\n }\n }\n`;\n\nexport const EXCHANGE_CODE_FOR_TOKENS = gql`\n mutation ExchangeOutlookCodeForTokens($agency: ID!, $code: String!, $from: AuthFrom!) {\n azureExchangeTokens(agency: $agency, code: $code, from: $from) {\n id\n active\n profile {\n id\n name\n email\n }\n }\n }\n`;\n\nexport const LOGOUT_FROM_AZURE = gql`\n mutation LogoutFromAzure($agency: ID!) {\n azureLogout(agency: $agency) {\n id\n active\n profile {\n id\n name\n email\n }\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnAzureAuthUrl = createEvent();\n\nexport const OnAzureAuthUrlError = createEvent();\n\nexport const OnFetchOutlookService = createEvent();\n\nexport const OnFetchOutlookServiceError = createEvent();\n\nexport const OnEnableOutlookService = createEvent();\n\nexport const OnEnableOutlookServiceError = createEvent();\n\nexport const OnExchangeOutlookCode = createEvent();\n\nexport const OnExchangeOutlookCodeError = createEvent();\n\nexport const OnAzureLogout = createEvent();\n\nexport const OnAzureLogoutError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport {\n CREATE_OUTLOOK_SERVICE,\n FETCH_AZURE_AUTH_URL,\n FETCH_OUTLOOK_SERVICES,\n UPDATE_OUTLOOK_SERVICE,\n EXCHANGE_CODE_FOR_TOKENS,\n LOGOUT_FROM_AZURE,\n} from './azure-queries';\nimport { DISABLE_EMAIL_SERVICES } from '../settings/outbound/outbound-queries';\nimport {\n OnAzureAuthUrl,\n OnAzureAuthUrlError,\n OnFetchOutlookService,\n OnFetchOutlookServiceError,\n OnEnableOutlookService,\n OnEnableOutlookServiceError,\n OnExchangeOutlookCode,\n OnExchangeOutlookCodeError,\n OnAzureLogout,\n OnAzureLogoutError,\n} from './azure-events';\nimport { OnApolloClient } from '../../shared/session/session-events';\n\n/**\n * Fetches the user's outlook service in the\n * specified agency\n *\n * @param {string} user - The id of the user\n * @param {string} agency - The id of the agency\n *\n * @returns {Promise} The outlook service object\n */\nexport const fetchOutlookService = createAction(\n OnFetchOutlookService,\n OnFetchOutlookServiceError,\n async (user, agency) => {\n const client = OnApolloClient.get();\n\n const {\n data: { outlookServicesList },\n } = await client.query({\n query: FETCH_OUTLOOK_SERVICES,\n fetchPolicy: 'network-only',\n variables: {\n first: 1,\n filter: {\n user: { id: { equals: user } },\n agency: { id: { equals: agency } },\n },\n },\n });\n\n let [service] = outlookServicesList.items;\n\n if (!service) {\n const {\n data: { outlookServiceCreate },\n } = await client.mutate({\n mutation: CREATE_OUTLOOK_SERVICE,\n variables: {\n data: {\n user: { connect: { id: user } },\n agency: { connect: { id: agency } },\n active: false,\n },\n },\n });\n\n service = outlookServiceCreate;\n }\n\n return { outlookService: service || null };\n },\n);\n\nexport const enableOutlookService = createAction(\n OnEnableOutlookService,\n OnEnableOutlookServiceError,\n async (id, user, agency) => {\n const client = OnApolloClient.get();\n\n await client.mutate({\n mutation: DISABLE_EMAIL_SERVICES,\n variables: {\n user,\n agency,\n },\n });\n\n const response = await client.mutate({\n mutation: UPDATE_OUTLOOK_SERVICE,\n variables: {\n filter: { id },\n data: { active: true },\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the authorization url for\n * microsoft azure services\n *\n * @param {string} agency - The agency id\n * @param {string} from - The page fetching from \"inbound\" or \"outbound\"\n *\n * @returns {Promise} The authorization url\n */\nexport const fetchAzureAuthUrl = createAction(\n OnAzureAuthUrl,\n OnAzureAuthUrlError,\n async (agency, from) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_AZURE_AUTH_URL,\n fetchPolicy: 'network-only',\n variables: {\n agency,\n from,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Exchanges outlook code for access and refresh tokens\n *\n * @param {string} code - The authorization code\n * @param {string} agency - The agency id\n * @param {string} from - Either \"inbound\" or \"outbound\"\n *\n * @returns {Promise} The outlook service object\n */\nexport const exchangeOutlookCode = createAction(\n OnExchangeOutlookCode,\n OnExchangeOutlookCodeError,\n async (code, agency, from) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: EXCHANGE_CODE_FOR_TOKENS,\n variables: {\n code,\n agency,\n from,\n },\n });\n\n return response.data;\n },\n);\n\nexport const logoutFromAzure = createAction(OnAzureLogout, OnAzureLogoutError, async (agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: LOGOUT_FROM_AZURE,\n variables: {\n agency,\n },\n });\n\n return response.data;\n});\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { MicrosoftButton } from '../../../../shared/components/MicrosoftButton';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport {\n Card as BoostCard,\n Grid,\n Radio,\n Row as BoostRow,\n InputField,\n Button,\n styled,\n} from '@8base/boost';\nimport {\n enableOutlookService,\n fetchAzureAuthUrl,\n fetchOutlookService,\n exchangeOutlookCode,\n logoutFromAzure,\n} from '../../../email/azure-actions';\nimport {\n OnAzureAuthUrl,\n OnAzureAuthUrlError,\n OnEnableOutlookService,\n OnEnableOutlookServiceError,\n OnFetchOutlookService,\n OnFetchOutlookServiceError,\n OnExchangeOutlookCode,\n OnExchangeOutlookCodeError,\n OnAzureLogoutError,\n OnAzureLogout,\n} from '../../../email/azure-events';\nimport { useAgency } from '../../../../shared/hooks/useAgency';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport { useURLQuery } from '../../../../shared/hooks/useURLQuery';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\n\nconst Card = styled(BoostCard)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst Row = styled(BoostRow)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nexport const MicrosoftServiceForm = ({ from, type, setType }) => {\n const [service, setService] = useState(null);\n const [loading, setLoading] = useState(false);\n const [redirecting, setRedirecting] = useState(false);\n const [saving, setSaving] = useState(false);\n const [exiting, setExiting] = useState(false);\n const [query] = useURLQuery();\n const agency = useAgency();\n const [user] = useUser();\n\n useEffect(() => {\n setLoading(true);\n\n if (query.code) {\n /**\n * [0] The service used either \"google\" or \"azure\"\n * [1] The agency that started the auth flow\n */\n const state = query.state.split(',');\n\n if (state[0] === 'azure') {\n exchangeOutlookCode(query.code, state[1], from);\n } else {\n fetchOutlookService(user.id, agency.id);\n }\n } else {\n fetchOutlookService(user.id, agency.id);\n }\n }, [agency, user, from, query]);\n\n useSubscription(\n OnAzureAuthUrl,\n ({ azureAuthUrl }) => {\n window.location.href = azureAuthUrl.url;\n },\n [],\n );\n\n useSubscription(\n OnAzureAuthUrlError,\n (e) => {\n setRedirecting(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnFetchOutlookService,\n ({ outlookService }) => {\n setService(outlookService);\n setLoading(false);\n\n if (outlookService && outlookService.active) {\n setType('MICROSOFT');\n }\n },\n [],\n );\n\n useSubscription(\n OnFetchOutlookServiceError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnEnableOutlookService,\n ({ outlookServiceUpdate }) => {\n setService(outlookServiceUpdate);\n setSaving(false);\n\n toast.success('Success', 'Outlook service enabled successfuly');\n },\n [],\n );\n\n useSubscription(\n OnEnableOutlookServiceError,\n (e) => {\n setSaving(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnExchangeOutlookCode,\n ({ azureExchangeTokens }) => {\n console.log('process.env.NODE_ENV', process.env.NODE_ENV);\n\n if (process.env.NODE_ENV === 'test') {\n setService(azureExchangeTokens);\n setLoading(false);\n } else {\n window.location.href = `${window.location.origin}${window.location.pathname}`;\n }\n },\n [],\n );\n\n useSubscription(\n OnExchangeOutlookCodeError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnAzureLogout,\n ({ azureLogout }) => {\n setService(azureLogout);\n setExiting(false);\n setType('NONE');\n\n toast.success('Success', 'Logged out from azure successfuly');\n },\n [setType],\n );\n\n useSubscription(\n OnAzureLogoutError,\n (e) => {\n setExiting(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const onSignIn = useCallback(() => {\n if (!loading) {\n setRedirecting(true);\n\n fetchAzureAuthUrl(agency.id, from);\n }\n }, [agency, from, loading]);\n\n const onSave = useCallback(() => {\n setSaving(true);\n\n enableOutlookService(service.id, user.id, agency.id);\n }, [service, user.id, agency.id]);\n\n const onSignOut = useCallback(() => {\n setExiting(true);\n\n logoutFromAzure(agency.id);\n }, [agency]);\n\n const isSelected = type === 'MICROSOFT';\n\n const { profile } = service || {};\n\n return (\n \n \n \n \n setType('MICROSOFT')}\n />\n \n \n \n \n \n \n \n \n \n \n \n {(loading || (service && !service.profile)) && (\n \n Sign in with Microsoft\n \n )}\n {service && service.profile && (\n <>\n \n Save\n \n \n Logout\n \n \n )}\n \n \n \n );\n};\n\nMicrosoftServiceForm.propTypes = {\n from: PropTypes.oneOf(['inbound', 'outbound']).isRequired,\n type: PropTypes.string.isRequired,\n setType: PropTypes.func.isRequired,\n};\n","import React, { useState, useCallback } from 'react';\nimport { InboundForm } from './components/InboundForm';\n// import { GmailServiceForm } from '../outbound/components/GmailServiceForm';\nimport { MicrosoftServiceForm } from '../outbound/components/MicrosoftServiceForm';\nimport { Box } from '../../../shared/components/Box';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { disableInboundServices } from './inbound-actions';\nimport { OnDisableInboundServices, OnDisableInboundServicesError } from './inbound-store';\nimport { Card as BoostCard, Row, Grid, Text, Radio, Loader, Column, styled } from '@8base/boost';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport * as toast from '../../../shared/components/toast/Toast';\n\nconst Card = styled(BoostCard)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst InboundService = () => {\n const [loading, setLoading] = useState(false);\n const [type, setType] = useState('NONE');\n const agency = useAgency();\n const [user] = useUser();\n\n const handleTypeChange = useCallback(\n (value) => {\n if (!loading) {\n setType(value);\n\n if (value === 'NONE') {\n setLoading(true);\n\n disableInboundServices(user.id, agency.id);\n }\n }\n },\n [agency, user, loading],\n );\n\n useSubscription(\n OnDisableInboundServices,\n () => {\n setLoading(false);\n\n toast.success('Success', 'Inbound services disabled completely');\n },\n [],\n );\n\n useSubscription(\n OnDisableInboundServicesError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n return (\n \n \n {/* */}\n \n \n \n \n \n \n handleTypeChange('NONE')}\n />\n \n \n \n Disabled\n {loading && }\n \n \n \n \n \n \n \n );\n};\n\nexport default InboundService;\n","import React from 'react';\nimport { Icon, Text as BoostText, Row, styled } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\n\nconst Text = styled(BoostText)`\n font-size: 12px !important;\n`;\n\nexport const GmailServiceItem = ({ service, selected, setSelected }) => {\n const { profile } = service;\n\n return (\n setSelected(service)}>\n \n {service.id === selected?.id && }\n \n \n {profile.name} {`<${profile.email}>`}\n \n \n \n );\n};\n\nGmailServiceItem.propTypes = {\n service: PropTypes.shape({\n id: PropTypes.string.isRequired,\n profile: PropTypes.shape({\n name: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n selected: PropTypes.string.isRequired,\n setSelected: PropTypes.func.isRequired,\n};\n","import React from 'react';\nimport { Icon, Text as BoostText, Row, styled } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\n\nconst Text = styled(BoostText)`\n font-size: 12px !important;\n`;\n\nexport const OutlookServiceItem = ({ service, selected, setSelected }) => {\n const { profile } = service;\n\n return (\n setSelected(service)}>\n \n {service.id === selected?.id && }\n \n \n {profile.name} {`<${profile.email}>`}\n \n \n \n );\n};\n\nOutlookServiceItem.propTypes = {\n service: PropTypes.shape({\n id: PropTypes.string.isRequired,\n profile: PropTypes.shape({\n name: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n selected: PropTypes.string.isRequired,\n setSelected: PropTypes.func.isRequired,\n};\n","import React from 'react';\nimport { Icon, Text as BoostText, Row, styled } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\n\nconst Text = styled(BoostText)`\n font-size: 12px !important;\n`;\n\nexport const OutboundServiceItem = ({ service, selected, setSelected }) => {\n return (\n setSelected(service)}>\n \n {service.id === selected?.id && }\n \n \n {service.server} {`<${service.username}>`}\n \n \n \n );\n};\n\nOutboundServiceItem.propTypes = {\n service: PropTypes.shape({\n id: PropTypes.string.isRequired,\n server: PropTypes.string.isRequired,\n username: PropTypes.string.isRequired,\n }).isRequired,\n selected: PropTypes.string.isRequired,\n setSelected: PropTypes.func.isRequired,\n};\n","import React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchAvailableEmailServices, setAgencyEmailService } from '../email-actions';\nimport {\n OnFetchAvailableEmailServices,\n OnFetchAvailableEmailServicesError,\n OnSetAgencyEmailServiceError,\n} from '../email-store';\nimport { Dialog, Row, Button, useModal, Loader, styled } from '@8base/boost';\nimport { GmailServiceItem } from './GmailServiceItem';\nimport { OutlookServiceItem } from './OutlookServiceItem';\nimport { OutboundServiceItem } from './OutboundServiceItem';\nimport { Box } from '../../../shared/components/Box';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { EmailServiceTypename } from '@cobuildlab/lead-volt-share';\nimport PropTypes from 'prop-types';\n\nconst Body = styled(Dialog.Body)`\n min-height: 300px;\n`;\n\nexport const modalId = 'email-service-dialog';\n\nexport const ChooseServiceDialog = ({ agency }) => {\n const { isOpen, args, closeModal } = useModal(modalId);\n const [selected, setSelected] = useState(null);\n const [services, setServices] = useState([]);\n const [loading, setLoading] = useState(true);\n const [submitting, setSubmitting] = useState(false);\n\n const onSubmit = useCallback(() => {\n setSubmitting(true);\n\n let type = 'outbound';\n\n if (selected.__typename === EmailServiceTypename.GMAIL) {\n type = 'gmail';\n }\n\n if (selected.__typename === EmailServiceTypename.OUTLOOK) {\n type = 'outlook';\n }\n\n setAgencyEmailService(args.agencyEmailServiceId, selected.id, type);\n }, [args, selected]);\n\n useEffect(() => {\n if (isOpen && args) {\n setLoading(true);\n setSelected(args.selected);\n\n fetchAvailableEmailServices(agency);\n } else {\n setSubmitting(false);\n }\n }, [isOpen, args, agency]);\n\n useSubscription(\n OnFetchAvailableEmailServices,\n ({ agencyAvailableEmailServices }) => {\n setServices(agencyAvailableEmailServices.items);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchAvailableEmailServicesError,\n (e) => {\n onErrorMixinFC(e);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(OnSetAgencyEmailServiceError, (e) => {\n onErrorMixinFC(e);\n setLoading(false);\n });\n\n const items = useMemo(\n () =>\n services.map((service) => {\n if (service.__typename === 'GmailService') {\n return (\n \n );\n }\n\n if (service.__typename === 'OutlookService') {\n return (\n \n );\n }\n\n return (\n \n );\n }),\n [services, selected, setSelected],\n );\n\n const content = loading ? (\n \n \n \n ) : (\n items\n );\n\n return (\n \n closeModal(modalId)} />\n \n {content}\n \n \n \n \n Save\n \n \n \n \n );\n};\n\nChooseServiceDialog.propTypes = {\n agency: PropTypes.string.isRequired,\n};\n","import React from 'react';\nimport { Column, Text as BoostText, Icon, Button, styled } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport PropTypes from 'prop-types';\n\nconst Text = styled(BoostText)`\n font-size: 12px !important;\n`;\n\nexport const AgencyEmailServiceInfo = ({ service, onChange }) => {\n if (service.outlook) {\n return (\n \n \n \n {service.outlook.profile.name}\n {`<${service.outlook.profile.email}>`}\n \n \n \n );\n }\n\n if (service.gmail) {\n return (\n \n \n \n {service.gmail.profile.name}\n {`<${service.gmail.profile.email}>`}\n \n \n \n );\n }\n\n return (\n \n \n \n {service.outbound.server}\n {`<${service.outbound.username}>`}\n \n \n \n );\n};\n\nAgencyEmailServiceInfo.propTypes = {\n service: PropTypes.shape({\n outlook: PropTypes.shape({\n profile: PropTypes.shape({\n name: PropTypes.string,\n email: PropTypes.string.isRequired,\n }).isRequired,\n }),\n gmail: PropTypes.shape({\n profile: PropTypes.shape({\n name: PropTypes.string,\n email: PropTypes.string.isRequired,\n }).isRequired,\n }),\n outbound: PropTypes.shape({\n server: PropTypes.string.isRequired,\n username: PropTypes.string.isRequired,\n }),\n }).isRequired,\n onChange: PropTypes.func.isRequired,\n};\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { ChooseServiceDialog, modalId } from './ChooseServiceDialog';\nimport { fetchAgencyEmailService } from '../email-actions';\nimport {\n OnFetchAgencyEmailService,\n OnFetchAgencyEmailServiceError,\n OnSetAgencyEmailService,\n} from '../email-store';\nimport { Card, Column, Row, Text, Button, Heading, useModal } from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport * as toast from '../../../shared/components/toast/Toast';\nimport { AgencyEmailServiceInfo } from './AgencyEmailServiceInfo';\nimport { onErrorMixinFC } from '../../../shared/mixins';\n\nexport const AgencyEmailService = () => {\n const [loading, setLoading] = useState(true);\n const [service, setService] = useState(null);\n const { openModal, closeModal } = useModal(modalId);\n const agency = useAgency();\n\n useEffect(() => {\n setLoading(true);\n\n fetchAgencyEmailService(agency.id);\n }, [agency]);\n\n const onSelect = useCallback(() => {\n openModal(modalId, {\n agencyEmailServiceId: service.id,\n selected: service.outbound || service.gmail || service.outlook || null,\n });\n }, [service, openModal]);\n\n useSubscription(\n OnFetchAgencyEmailService,\n ({ agencyEmailService }) => {\n setService(agencyEmailService);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnFetchAgencyEmailServiceError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnSetAgencyEmailService,\n ({ agencyEmailServiceUpdate }) => {\n setService(agencyEmailServiceUpdate);\n closeModal(modalId);\n\n toast.success('Success', 'Agency email service set successfully');\n },\n [],\n );\n\n let hasService = false;\n\n if (service) {\n hasService = service.outbound || service.gmail || service.outlook;\n }\n\n return (\n \n \n \n \n \n Default agency email service\n \n You need to select a default email service from the ones active to be used as the\n default service to send the automated emails from\n \n \n \n {hasService ? (\n \n ) : (\n \n )}\n \n \n \n \n );\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnGmailServiceFetch = createEvent();\n\nexport const OnGmailServiceFetchError = createEvent();\n\nexport const OnGmailServiceUpdate = createEvent();\n\nexport const OnGmailServiceUpdateError = createEvent();\n\nexport const OnGoogleAuthUrl = createEvent();\n\nexport const OnGoogleAuthUrlError = createEvent();\n\nexport const OnExchangeToken = createEvent();\n\nexport const OnExchangeTokenError = createEvent();\n\nexport const OnFetchOutboundService = createEvent();\n\nexport const OnFetchOutboundServiceError = createEvent();\n\nexport const OnUpdateOutboundService = createEvent();\n\nexport const OnUpdateOutboundServiceError = createEvent();\n\nexport const OnDisableEmailService = createEvent();\n\nexport const OnDisableEmailServiceError = createEvent();\n\nexport const OnGoogleLogoutEvent = createEvent();\n\nexport const OnGoogleLogoutEventError = createEvent();\n","export const CONNECTION_SECURITY_OPTIONS = [\n {\n label: 'None',\n value: 'None',\n },\n {\n label: 'TLS (STARTTLS)',\n value: 'TLS (STARTTLS)',\n },\n {\n label: 'SSL/TLS',\n value: 'SSL/TLS',\n },\n];\n","import { ValidationError } from '../../../shared/errors';\nimport { isValidString, isValidInteger } from '../../../shared/validators';\nimport { CONNECTION_SECURITY_OPTIONS } from './outbound-model';\n\n/**\n * Validates the input when creating a outbound service\n *\n * @param {object} service - The service object\n * @param {string} service.id - Indicates the identifier of the service to update\n * @param {boolean} service.active - Indicates if the current configuration is active\n * @param {string} service.server - The service smtp server\n * @param {number} service.port - The service smtp port\n * @param {string} service.connection - The service authentication option\n * @param {string} service.username - The authentication username\n * @param {string} service.password - The authentication password\n *\n * @returns {void}\n */\nexport const updateOutboundServiceValidation = (service) => {\n const errors = [];\n\n if (!isValidString(service.id)) errors.push('The outbound service identifier is not correct');\n\n if (!service.active) {\n if (errors.length > 0) throw new ValidationError(errors);\n\n return;\n }\n\n if (!isValidString(service.server)) errors.push('The server must be a valid string');\n\n if (!isValidInteger(service.port)) errors.push('The port has to be an integer bigger than zero');\n\n if (CONNECTION_SECURITY_OPTIONS[service.connection])\n errors.push('The connection must be a valid option');\n\n if (!isValidString(service.username)) errors.push('The username must be a valid string');\n\n if (!isValidString(service.password)) errors.push('The password must be a valid string');\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport {\n QUERY_OUTBOUND_SERVICE_SETTINGS,\n CREATE_OUTBOUND_SERVICE_MUTATION,\n UPDATE_OUTBOUND_SERVICE_MUTATION,\n FETCH_GMAIL_SERVICE,\n FETCH_GOOGLE_AUTH_URL,\n EXCHANGE_CODE_FOR_TOKENS,\n DISABLE_THIRD_PARTY_SERVICES,\n CREATE_GMAIL_SERVICE,\n UPDATE_GMAIL_SERVICE,\n DISABLE_EMAIL_SERVICES,\n UPDATE_MANY_OUTBOUND_SERVICES,\n LOGOUT_FROM_GMAIL_SERVICE,\n} from './outbound-queries';\nimport {\n INBOUND_SERVICE_SETTINGS_QUERY,\n CREATE_INBOUND_SERVICE_MUTATION,\n} from '../inbound/inbound-queries';\nimport {\n OnGmailServiceFetch,\n OnGmailServiceFetchError,\n OnGmailServiceUpdate,\n OnGmailServiceUpdateError,\n OnGoogleAuthUrl,\n OnGoogleAuthUrlError,\n OnExchangeToken,\n OnExchangeTokenError,\n OnFetchOutboundService,\n OnFetchOutboundServiceError,\n OnUpdateOutboundService,\n OnUpdateOutboundServiceError,\n OnDisableEmailService,\n OnDisableEmailServiceError,\n OnGoogleLogoutEvent,\n OnGoogleLogoutEventError,\n} from './outbound-store';\nimport { updateOutboundServiceValidation } from './outbound-validation';\nimport { OnApolloClient } from '../../../shared/session/session-events';\n\n/**\n * Fetches an outbound service binded to a agency\n *\n * @param {string} agencyId - The agency id\n * @param {string} userId - The user id\n *\n * @returns {Promise} The action result\n */\nexport const fetchOutboundServices = createAction(\n OnFetchOutboundService,\n OnFetchOutboundServiceError,\n async (agencyId, userId) => {\n const client = OnApolloClient.get();\n const first = 1;\n const filter = {\n agency: { id: { equals: agencyId } },\n user: { id: { equals: userId } },\n };\n\n const {\n data: { emailOutboundServicesList },\n } = await client.query({\n query: QUERY_OUTBOUND_SERVICE_SETTINGS,\n fetchPolicy: 'network-only',\n variables: {\n first,\n filter,\n },\n });\n\n const {\n data: { emailInboundServicesList },\n } = await client.query({\n query: INBOUND_SERVICE_SETTINGS_QUERY,\n fetchPolicy: 'network-only',\n variables: {\n first,\n filter,\n },\n });\n\n let [inbound] = emailInboundServicesList.items;\n let [outbound] = emailOutboundServicesList.items;\n\n if (!inbound) {\n await client.mutate({\n mutation: CREATE_INBOUND_SERVICE_MUTATION,\n variables: {\n data: {\n active: false,\n description: 'Example connection configuration',\n server: 'imap.example.com',\n protocol: 'IMAP',\n port: 993,\n connection: 'TLS',\n agency: { connect: { id: agencyId } },\n user: { connect: { id: userId } },\n },\n },\n });\n }\n\n if (!outbound) {\n const {\n data: { emailOutboundServiceCreate },\n } = await client.mutate({\n mutation: CREATE_OUTBOUND_SERVICE_MUTATION,\n variables: {\n data: {\n description: 'Example connection configuration',\n server: 'smtp.example.com',\n port: 465,\n connection: 'None',\n active: false,\n agency: { connect: { id: agencyId } },\n user: { connect: { id: userId } },\n },\n },\n });\n\n outbound = emailOutboundServiceCreate;\n }\n\n return { emailOutboundService: outbound };\n },\n);\n\n/**\n * Updates the email outbound service configuration\n *\n * @param {object} service - The outbound service object to update\n *\n * @returns {Promise} - The action result\n */\nexport const updateOutboundService = createAction(\n OnUpdateOutboundService,\n OnUpdateOutboundServiceError,\n async (data, userId, agencyId) => {\n const client = OnApolloClient.get();\n\n updateOutboundServiceValidation(data);\n\n await client.mutate({\n mutation: DISABLE_THIRD_PARTY_SERVICES,\n variables: {\n user: userId,\n agency: agencyId,\n },\n });\n\n const response = await client.mutate({\n mutation: UPDATE_OUTBOUND_SERVICE_MUTATION,\n variables: { data },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches the specified user gmail configuration in the current agency\n *\n * @param {string} user - The user id\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The service object\n */\nexport const fetchGmailService = createAction(\n OnGmailServiceFetch,\n OnGmailServiceFetchError,\n async (user, agency) => {\n const client = OnApolloClient.get();\n\n const first = 1;\n const filter = {\n user: { id: { equals: user } },\n agency: { id: { equals: agency } },\n };\n\n const {\n data: { gmailServicesList },\n } = await client.query({\n query: FETCH_GMAIL_SERVICE,\n fetchPolicy: 'network-only',\n variables: {\n filter,\n first,\n },\n });\n\n let [service] = gmailServicesList.items;\n\n if (!service) {\n const {\n data: { gmailServiceCreate },\n } = await client.mutate({\n mutation: CREATE_GMAIL_SERVICE,\n variables: {\n data: {\n active: false,\n user: { connect: { id: user } },\n agency: { connect: { id: agency } },\n },\n },\n });\n\n service = gmailServiceCreate;\n }\n\n return service || null;\n },\n);\n\n/**\n * Enables the gmail service\n *\n * @param {string} id - The gmail service string\n * @param {string} userId - The user id\n * @param {string} agencyId - The agency id\n *\n * @returns {Promise} The gmail service object\n */\nexport const enableGmailService = createAction(\n OnGmailServiceUpdate,\n OnGmailServiceUpdateError,\n async (id, userId, agencyId) => {\n const client = OnApolloClient.get();\n\n const filter = { id };\n const data = { active: true };\n\n await client.mutate({\n mutation: DISABLE_EMAIL_SERVICES,\n variables: {\n user: userId,\n agency: agencyId,\n },\n });\n\n const response = await client.mutate({\n mutation: UPDATE_GMAIL_SERVICE,\n variables: {\n filter,\n data,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Fetches google authorization url\n *\n * @param {string} agency - The agency id\n *\n * @returns {Promise} The auth url\n */\nexport const fetchGoogleAuthUrl = createAction(\n OnGoogleAuthUrl,\n OnGoogleAuthUrlError,\n async (agency, from) => {\n const client = OnApolloClient.get();\n\n const response = await client.query({\n query: FETCH_GOOGLE_AUTH_URL,\n fetchPolicy: 'network-only',\n variables: {\n agency,\n from,\n },\n });\n\n return response.data;\n },\n);\n\n/**\n * Exchanges the specified auth code for an access and refresh tokens\n *\n * @param {string} agency - The agency id\n * @param {string} code - The authorization code\n *\n * @returns {Promise} The gmailService object\n */\nexport const exchangeCodeForTokens = createAction(\n OnExchangeToken,\n OnExchangeTokenError,\n async (agency, from, code) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: EXCHANGE_CODE_FOR_TOKENS,\n variables: {\n agency,\n code,\n from,\n },\n });\n\n return response.data;\n },\n);\n\nexport const logoutFromGoogle = createAction(\n OnGoogleLogoutEvent,\n OnGoogleLogoutEventError,\n async (agency) => {\n const client = OnApolloClient.get();\n\n const response = await client.mutate({\n mutation: LOGOUT_FROM_GMAIL_SERVICE,\n variables: {\n agency,\n },\n });\n\n return response.data;\n },\n);\n\nexport const disableOutboundServices = createAction(\n OnDisableEmailService,\n OnDisableEmailServiceError,\n async (userId, agencyId) => {\n const client = OnApolloClient.get();\n\n await client.mutate({\n mutation: DISABLE_THIRD_PARTY_SERVICES,\n variables: {\n user: userId,\n agency: agencyId,\n },\n });\n\n await client.mutate({\n mutation: UPDATE_MANY_OUTBOUND_SERVICES,\n variables: {\n filter: {\n user: { id: { equals: userId } },\n agency: { id: { equals: agencyId } },\n },\n data: {\n active: [{ set: false }],\n },\n },\n });\n },\n);\n","import React, { useState, useEffect } from 'react';\nimport TestConnectionButton from '../../../email/components/TestConnectionButton';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { updateOutboundService, fetchOutboundServices } from '../outbound-actions';\nimport { CONNECTION_SECURITY_OPTIONS } from '../outbound-model';\nimport { Box } from '../../../../shared/components/Box';\nimport {\n Card as BoostCard,\n Row as BoostRow,\n Grid,\n SelectField,\n Column,\n Switch,\n Form,\n Radio,\n InputField,\n Button,\n styled,\n} from '@8base/boost';\nimport {\n OnFetchOutboundService,\n OnFetchOutboundServiceError,\n OnUpdateOutboundService,\n OnUpdateOutboundServiceError,\n} from '../outbound-store';\nimport * as toast from '../../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { useAgency } from '../../../../shared/hooks/useAgency';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport PropTypes from 'prop-types';\n\nconst Card = styled(BoostCard)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst Row = styled(BoostRow)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\nconst initialForm = {\n id: null,\n active: false,\n description: '',\n server: '',\n port: 0,\n connection: 'None',\n username: '',\n password: '',\n fallback: false,\n};\n\nexport const OutboundForm = ({ type, setType }) => {\n const [form, setForm] = useState(initialForm);\n const [loading, setLoading] = useState(true);\n const agency = useAgency();\n const [user] = useUser();\n\n useEffect(() => {\n setLoading(true);\n fetchOutboundServices(agency.id, user.id);\n }, [agency.id, user.id]);\n\n useSubscription(\n OnFetchOutboundService,\n ({ emailOutboundService }) => {\n setLoading(false);\n\n setForm((prevState) => ({\n ...prevState,\n ...emailOutboundService,\n }));\n\n if (emailOutboundService.active) {\n setType('CUSTOM');\n }\n },\n [],\n );\n\n useSubscription(\n OnFetchOutboundServiceError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnUpdateOutboundService,\n ({ emailOutboundServiceUpdate }) => {\n setForm((prevState) => ({\n ...prevState,\n ...emailOutboundServiceUpdate,\n }));\n\n setLoading(false);\n\n toast.success('Success', 'Email outbound service updated');\n },\n [],\n );\n\n useSubscription(\n OnUpdateOutboundServiceError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleSubmit = () => {\n setLoading(true);\n\n updateOutboundService(\n {\n id: form.id,\n active: true,\n description: form.description,\n server: form.server,\n port: form.port,\n connection: form.connection,\n username: form.username,\n password: form.password,\n fallback: form.fallback,\n },\n user.id,\n agency.id,\n );\n };\n\n const isCustom = type === 'CUSTOM';\n\n return (\n \n \n
    e.preventDefault()}>\n \n \n \n setType('CUSTOM')} />\n \n \n \n Connection Information\n \n \n setForm({ ...form, description: value }),\n }}\n />\n setForm({ ...form, server: value }),\n }}\n stretch\n />\n setForm({ ...form, port: value }),\n }}\n width={10}\n />\n \n setForm({ ...form, fallback: !form.fallback })}\n />\n \n \n \n \n \n Security and Authentication\n \n \n setForm({ ...form, connection: value }),\n }}\n stretch={false}\n />\n setForm({ ...form, username: value }),\n }}\n />\n setForm({ ...form, password: value }),\n }}\n />\n \n \n \n \n \n \n \n
    \n
    \n \n \n \n \n \n
    \n );\n};\n\nOutboundForm.propTypes = {\n type: PropTypes.string.isRequired,\n setType: PropTypes.func.isRequired,\n};\n","import React, { useCallback, useState } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Box } from '../../../shared/components/Box';\nimport { AgencyEmailService } from '../../email/components/AgencyEmailService';\nimport { OutboundForm } from './components/OutboundForm';\n// import { GmailServiceForm } from './components/GmailServiceForm';\nimport { MicrosoftServiceForm } from './components/MicrosoftServiceForm';\nimport { disableOutboundServices } from './outbound-actions';\nimport { Card as BoostCard, Row, Loader, Text, Radio, Column, Grid, styled } from '@8base/boost';\nimport { OnDisableEmailService, OnDisableEmailServiceError } from './outbound-store';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useUser } from '../../../shared/hooks/useUser';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport * as toast from '../../../shared/components/toast/Toast';\n\nconst Card = styled(BoostCard)`\n ${(props) => props.fullWidth && `width: 100%;`}\n`;\n\n/**\n * Created the Outbound service configuration page\n *\n * @returns {React.Component} The component to render\n */\nfunction OutboundService() {\n const [type, setType] = useState('NONE');\n const [loading, setLoading] = useState(false);\n const agency = useAgency();\n const [user] = useUser();\n\n useSubscription(\n OnDisableEmailService,\n () => {\n setLoading(false);\n\n toast.success('Success', 'Outbound services disabled completely');\n },\n [],\n );\n\n useSubscription(\n OnDisableEmailServiceError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleTypeChange = useCallback(\n (value) => {\n if (!loading) {\n setType(value);\n\n if (value === 'NONE') {\n setLoading(true);\n\n disableOutboundServices(user.id, agency.id);\n }\n }\n },\n [agency, user, loading],\n );\n\n return (\n \n \n \n {/* */}\n \n \n \n \n \n \n handleTypeChange('NONE')}\n />\n \n \n \n Disabled\n {loading && }\n \n \n \n \n \n \n \n );\n}\n\nexport default OutboundService;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnFetchPhoneCallSettingEvent = createEvent();\n\nexport const OnFetchPhoneCallSettingError = createEvent();\n\nexport const OnCreatePhoneCallSettingEvent = createEvent();\n\nexport const OnCreatePhoneCallSettingError = createEvent();\n\nexport const OnUpdatePhoneCallSettingEvent = createEvent();\n\nexport const OnUpdatePhoneCallSettingError = createEvent();\n","import gql from 'graphql-tag';\n\nexport const FETCH_PHONE_CALL_SETTING = gql`\n query FetchPhoneCallSettings($id: ID) {\n phoneCallSetting(id: $id) {\n id\n automaticCalls\n recordCalls\n forwardingPhoneNumber {\n code\n number\n }\n timeToForward\n campignAssineeFilter\n agency {\n id\n name\n }\n voicemail\n callCadenceConfig\n }\n }\n`;\n\nexport const FETCH_PHONE_CALL_SETTING_LIST = gql`\n query FetchPhoneCallSettingsList($filter: PhoneCallSettingFilter, $first: Int) {\n phoneCallSettingsList(filter: $filter, first: $first) {\n items {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n timeToForward\n forwardingPhoneNumber {\n code\n number\n }\n agency {\n id\n name\n }\n voicemail\n callCadenceConfig\n }\n }\n }\n`;\n\nexport const CREATE_PHONE_CALL_SETTING = gql`\n mutation CreatePhoneCallSettings($data: PhoneCallSettingCreateInput!) {\n phoneCallSettingCreate(data: $data) {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n timeToForward\n forwardingPhoneNumber {\n code\n number\n }\n agency {\n id\n name\n }\n callCadenceConfig\n }\n }\n`;\n\nexport const UPDATE_PHONE_CALL_SETTING = gql`\n mutation UpdatePhoneCallSetting($data: PhoneCallSettingUpdateInput!) {\n phoneCallSettingUpdate(data: $data) {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n timeToForward\n forwardingPhoneNumber {\n code\n number\n }\n agency {\n id\n name\n }\n callCadenceConfig\n }\n }\n`;\n\nexport const QUERY_CAMPAIGNS_LIST = gql`\n query campaingList($agency: ID!, $offset: Int!, $limit: Int!) {\n campaignsList(filter: { agency: { id: { equals: $agency } } }, skip: $offset, first: $limit) {\n items {\n id\n name\n status\n automaticCalls\n priority\n agents {\n items {\n name\n }\n }\n createdAt\n }\n count\n }\n }\n`;\n","import { log, error } from '@cobuildlab/pure-logger';\nimport { OnApolloClient } from '../../../../shared/session/session-events';\nimport {\n OnCreatePhoneCallSettingError,\n OnCreatePhoneCallSettingEvent,\n OnFetchPhoneCallSettingError,\n OnFetchPhoneCallSettingEvent,\n OnUpdatePhoneCallSettingError,\n OnUpdatePhoneCallSettingEvent,\n} from './phone-calls-settings-events';\nimport {\n FETCH_PHONE_CALL_SETTING_LIST,\n UPDATE_PHONE_CALL_SETTING,\n CREATE_PHONE_CALL_SETTING,\n} from './phone-calls-settings-queries';\n\n/**\n * Finds phone call configuration filtering by agency\n *\n * @param {string} id - The agency id to find the configuration\n *\n * @returns {Promise} The request result\n */\nexport const fetchPhoneCallSettingByAgency = async (id) => {\n const client = OnApolloClient.get();\n const filter = { agency: { id: { equals: id } } };\n const first = 1;\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_PHONE_CALL_SETTING_LIST,\n fetchPolicy: 'network-only',\n variables: { filter, first },\n });\n } catch (e) {\n error('fetchPhoneCallSettingByAgency', e);\n\n OnFetchPhoneCallSettingError.dispatch(e);\n return;\n }\n\n const { 0: configuration } = response.data.phoneCallSettingsList.items;\n\n log('fetchPhoneCallSettingByAgency', configuration);\n\n OnFetchPhoneCallSettingEvent.dispatch(configuration);\n\n return configuration;\n};\n\n/**\n * Creates a new Phone Call Configuration for the specified agency\n *\n * @param {object} config - The configuration data to store\n * @param {boolean} config.automaticCalls - Turns On/Off automatic calls\n * @param {boolean} config.recordCalls - Turns On/Off call recording\n * @param {string} config.agency - Agency related to this configuration\n *\n * @returns {Promise} Request result\n */\nexport const createPhoneCallSetting = async (config) => {\n const client = OnApolloClient.get();\n const data = {\n automaticCalls: config.automaticCalls,\n recordCalls: config.recordCalls,\n agency: { connect: { id: config.agency } },\n };\n\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: CREATE_PHONE_CALL_SETTING,\n variables: { data },\n });\n } catch (e) {\n error('createPhoneCallSetting', e);\n\n OnCreatePhoneCallSettingError.dispatch(e);\n return;\n }\n\n log('createPhoneCallSetting', response.data);\n\n OnCreatePhoneCallSettingEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Updates a Phone Call Configuration object\n *\n * @param {object} config - The configuration data to store\n * @param {string} config.id - Id of the configuration to update\n * @param {boolean} config.automaticCalls - Turns On/Off automatic calls\n * @param {boolean} config.recordCalls - Turns On/Off call recording\n *\n * @returns {Promise} Request result\n */\nexport const updatePhoneCallSetting = async (config) => {\n const client = OnApolloClient.get();\n\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: UPDATE_PHONE_CALL_SETTING,\n variables: { data: config },\n });\n } catch (e) {\n error('updatePhoneCallSetting', e);\n\n OnUpdatePhoneCallSettingError.dispatch(response.data);\n\n return;\n }\n\n log('updatePhoneCallSetting', response.data);\n\n OnUpdatePhoneCallSettingEvent.dispatch(response.data);\n return response.data;\n};\n","import React, { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Table, Switch } from '@8base/boost';\nimport { PRIORITIES } from '../../../../shared/constants';\nimport { updateCampaign } from '../../../campaigns/campaigns-actions';\nimport moment from 'moment';\n\n/**\n *\n * @typedef {object} data\n * @property {string} name Name of the campaign\n * @property {string} priority Priority of the campaign\n * @property {string} createdAt Created date of the campaign\n * @property {string} id Id of the campaign\n * @property {boolean} automaticCalls if the setting if active\n * @property {object} agents Agents object\n * @property {Array} agents.items Agents array\n *\n */\n/**\n * @param {object} props props\n * @param {string} props.columns columns widths string\n * @param {data} props.data Campaign object\n * @returns {React.FC} React component\n */\nfunction CampaignListItem({ columns, data }) {\n const {\n name,\n automaticCalls,\n priority,\n id,\n createdAt,\n agents: { items: agents },\n } = data;\n const [active, setActive] = useState(automaticCalls);\n const shouldShowAgents = agents.length > 0;\n const [firstAgents, ...rest] = agents;\n const agentsText =\n shouldShowAgents && `${firstAgents?.name} ${rest.length > 0 && `& ${rest.length} more... `}`;\n\n const handleChange = useCallback(\n (value) => {\n setActive(value);\n updateCampaign(\n {\n id,\n automaticCalls: value,\n },\n false,\n );\n },\n [id],\n );\n\n return (\n \n {name}\n {PRIORITIES[priority - 1]}\n {moment(createdAt).format('MM-DD-YYYY, hh:mm a')}\n {shouldShowAgents ? agentsText : ' - '}\n \n \n \n \n );\n}\n\nCampaignListItem.propTypes = {\n columns: PropTypes.string.isRequired,\n data: PropTypes.shape({\n name: PropTypes.string,\n automaticCalls: PropTypes.bool,\n priority: PropTypes.string,\n id: PropTypes.string,\n createdAt: PropTypes.string,\n agents: PropTypes.shape({\n items: PropTypes.array,\n }),\n }).isRequired,\n};\n\nexport default CampaignListItem;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { Table, Row, Pagination } from '@8base/boost';\nimport { useList } from '../../../../shared/utils/useList';\nimport { QUERY_CAMPAIGNS_LIST } from '../phone-calls-settings/phone-calls-settings-queries';\nimport CampaignListItem from './CampaignListItem';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport * as toast from 'shared/components/toast/Toast';\nimport { OnCampaignUpdate } from 'modules/campaigns/campaign-events';\n\nconst columns = '1fr minmax(100px,130px) 1fr minmax(100px,180px) minmax(100px,180px)';\nconst pageSize = 10;\n\nconst Body = styled(Table.Body)`\n min-height: ${10 * 53}px;\n`;\n/**\n * @param {object} props props\n * @param {string} props.agency agency id\n * @returns {object} React component\n */\nfunction CampaignsList({ agency }) {\n const [page, setPage] = useState(1);\n const offset = (page - 1) * pageSize;\n\n const {\n data: { items, count },\n loading,\n } = useList('campaignsList', QUERY_CAMPAIGNS_LIST, {\n agency,\n limit: pageSize,\n offset,\n });\n useSimpleSubscription(OnCampaignUpdate, (data) => {\n if (data) {\n toast.success(`Campaign \"${data.campaignUpdate.name}\" updated successfully`);\n }\n });\n\n return (\n <>\n \n \n Name\n Priority\n Created\n Agents\n Automatic Calls\n \n \n {(item) => }\n \n \n \n \n \n \n
    \n \n );\n}\n\nCampaignsList.propTypes = {\n agency: PropTypes.string.isRequired,\n};\n\nexport default CampaignsList;\n","import { useQuery } from '@apollo/react-hooks';\nimport { onErrorMixinFC } from '../mixins';\n\n/**\n *\n * @typedef {object} listOject\n * @property {object} data\n * @property {Function} refetch\n * @property {boolean} loading\n */\n/**\n *\n * A function that allows you to refetch the query and optionally pass in new variables\n *\n * @param {string} namespace the object key that returns the query\n * @param {string} query the query must be a list that returs a items array and count key\n * @param {object} variables variables\n * @returns {listOject} variables variables\n */\nexport function useList(namespace, query, variables) {\n const { data, refetch, loading } = useQuery(query, {\n variables,\n onError: (error) => {\n onErrorMixinFC(error);\n },\n });\n\n const newData = data ? data[namespace] : { items: [], count: 0 };\n\n return {\n data: newData,\n refetch,\n loading,\n };\n}\n","/**\n * Deafult state of the phone calls settings form\n * this must match the default field values in the PhoneCallSetting table\n */\nexport const INITIAL_SETTINGS = {\n loading: false,\n id: '',\n recordCalls: false,\n automaticCalls: false,\n callsDelay: 1,\n campignAssineeFilter: true,\n timeToForward: 0,\n forwardingPhoneNumber: {code: '1', number: ''},\n callCadenceConfig: {\n day1: 6,\n day2To7: 18,\n day8To30: 69,\n day31To89: 30,\n },\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport {\n Card,\n Column,\n Switch,\n Row,\n Loader,\n Heading,\n Button,\n Form,\n Grid,\n InputField,\n Input,\n Label,\n} from '@8base/boost';\nimport Field from 'shared/components/Field';\nimport {\n fetchPhoneCallSettingByAgency,\n createPhoneCallSetting,\n updatePhoneCallSetting,\n} from './phone-calls-settings/phone-calls-settings-actions';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { fetchSession } from '../../auth/auth.actions';\nimport CampaignsList from './components/CampaignsList';\nimport { Body } from '../../my-account/components/Card';\nimport { OnSessionFetch } from '../../../shared/session/session-events';\nimport { INITIAL_SETTINGS } from './phone-calls-settings/phone-calls-settings-model';\nimport { Box } from '../../../shared/components/Box';\nimport { OnCreateVoiceMailMessageEvent } from 'modules/phone-calls/voice-mail-message/voice-mail-message-events';\nimport {\n OnCreatePhoneCallSettingError,\n OnCreatePhoneCallSettingEvent,\n OnFetchPhoneCallSettingError,\n OnFetchPhoneCallSettingEvent,\n OnUpdatePhoneCallSettingError,\n OnUpdatePhoneCallSettingEvent,\n} from './phone-calls-settings/phone-calls-settings-events';\n\n// const initialForm = {\n// loading: false,\n// id: '',\n// recordCalls: false,\n// automaticCalls: false,\n// };\n\n/**\n * Phone call settings view\n *\n * @returns {React.FC} The component to render\n */\nfunction PhoneCallSettings() {\n const agency = useAgency();\n const [form, setForm] = useState(INITIAL_SETTINGS);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n setLoading(true);\n\n fetchPhoneCallSettingByAgency(agency.id);\n }, [agency.id]);\n\n useSimpleSubscription(OnCreateVoiceMailMessageEvent, () =>\n Toast.success('Success', 'Voice mail message created successfully'),\n );\n\n useSimpleSubscription(OnFetchPhoneCallSettingEvent, (configuration) => {\n if (configuration) {\n console.log('configuration', configuration);\n setForm({\n ...form,\n ...configuration,\n });\n\n setLoading(false);\n } else {\n //TODO: Create a trigger after agency create to a settings record for every new agency\n createPhoneCallSetting({\n ...INITIAL_SETTINGS,\n agency: agency.id,\n });\n }\n });\n\n useSimpleSubscription(OnCreatePhoneCallSettingEvent, ({ phoneCallSettingCreate }) => {\n setLoading(false);\n setForm({\n ...form,\n ...phoneCallSettingCreate,\n });\n });\n\n useSimpleSubscription(OnUpdatePhoneCallSettingEvent, () => {\n Toast.success('Success!', 'Configuration updated successfully');\n fetchSession();\n });\n\n useSimpleSubscription(OnSessionFetch, () => {\n setForm((state) => ({ ...state, loading: false }));\n });\n\n useSimpleSubscription(OnFetchPhoneCallSettingError, onErrorMixinFC);\n\n useSimpleSubscription(OnCreatePhoneCallSettingError, onErrorMixinFC);\n\n useSimpleSubscription(OnUpdatePhoneCallSettingError, onErrorMixinFC);\n\n const handleChange = useCallback((key, value) => {\n setForm((state) => ({ ...state, [key]: value }));\n }, []);\n\n function removeTypenameRecursively(obj) {\n if (obj === null || obj === undefined) {\n return obj;\n } else if (Array.isArray(obj)) {\n return obj.map(removeTypenameRecursively);\n } else if (typeof obj === 'object') {\n const { __typename, ...rest } = obj;\n Object.keys(rest).forEach((key) => {\n rest[key] = removeTypenameRecursively(rest[key]);\n });\n return rest;\n }\n return obj;\n }\n\n const handleSubmit = useCallback(() => {\n const { loading, agency, ...data } = form;\n const cleanData = {\n ...removeTypenameRecursively(data),\n timeToForward: parseInt(data.timeToForward, 10) || 0, // Fallback to 0 if NaN\n };\n console.log('CLEAN DATA', cleanData);\n updatePhoneCallSetting(cleanData);\n\n setForm({ ...form, loading: true });\n }, [form]);\n\n const handleCadenceChange = useCallback((name, value) => {\n setForm((prevState) => ({\n ...prevState,\n callCadenceConfig: {\n ...prevState.callCadenceConfig,\n [name]: value,\n },\n }));\n }, []);\n\n const handleForwardingPhoneChange = useCallback((value) => {\n setForm((prevState) => ({\n ...prevState,\n forwardingPhoneNumber: {\n code: '1',\n number: value,\n },\n }));\n }, []);\n useEffect(() => {\n console.log('form', removeTypenameRecursively(form));\n }, [form]);\n\n if (loading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n \n \n Forwarding Phone Number\n \n\n \n null}\n options={[\n {\n label: '+1',\n value: '1',\n },\n ]}\n />\n handleForwardingPhoneChange(value)}\n />\n \n \n handleChange('timeToForward', value)}\n />\n handleChange('automaticCalls', value)}\n />\n handleChange('recordCalls', value)}\n />\n handleChange('campignAssineeFilter', value)}\n />\n handleChange('voicemail', value)}\n />\n \n \n Call Cadence\n \n \n \n handleCadenceChange('day1', value),\n }}\n />\n \n \n handleCadenceChange('day2To7', value),\n }}\n />\n \n \n handleCadenceChange('day8To30', value),\n }}\n />\n \n \n handleCadenceChange('day31To89', value),\n }}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default PhoneCallSettings;\n","export const PUBLIC = 'PUBLIC';\n\nexport const PRIVATE = 'PRIVATE';\n\nexport const VOICE_MESSAGE_TYPE_OPTIONS = [\n { label: 'Public', value: PUBLIC },\n { label: 'Private', value: PRIVATE },\n];\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Table, CheckboxField, Dropdown, Icon, Menu } from '@8base/boost';\nimport AudioPlayer from 'react-h5-audio-player';\nimport { useSubscription } from '@cobuildlab/react-flux-state';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport voiceMailMessageStore, {\n UPDATE_VOICE_MAIL_MESSAGE_EVENT,\n UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR,\n} from '../../../phone-calls/voice-mail-message/voice-mail-message-store';\nimport { updateVoiceMailMessage } from '../../../phone-calls/voice-mail-message/voice-mail-message-actions';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport 'react-h5-audio-player/lib/styles.css';\nimport { PRIVATE, PUBLIC } from '../../../phone-calls/voice-mail-message/voice-mail-message-model';\n\nconst PlayerCell = styled(Table.BodyCell)`\n padding-left: 0px !important;\n`;\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\n/**\n * Row item of the VoiceMailMessagesTable component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.message - The voice mail message\n * @param {string} props.message.id - The id of the voice mail message\n * @param {string} props.message.name - The name of the voice mail message\n * @param {string} props.message.url - The url pointing to the voice mail audio file (.mp3 would be appended to it)\n * @param {boolean} props.message.active - Indicates if the current voice mail message is available for use\n * @param {string} props.columns - css grid layout columns property\n * @param {Function} props.onUpdate - Callback function to execute when the \"Update\" menu item is clicked\n * @param {Function} props.onDelete - Callback function to execute when the \"Delete\" menu item is clicked\n *\n * @returns {React.FC} The component to render\n */\nfunction VoiceMailMessageItem({ message, columns, onDelete, onUpdate }) {\n const [user] = useUser();\n const [active, setActive] = useState(message.active);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n setActive(message.active);\n }, [message.active]);\n\n useSubscription(\n voiceMailMessageStore,\n UPDATE_VOICE_MAIL_MESSAGE_EVENT,\n ({ voiceMailMessageUpdate }) => {\n if (message.id === voiceMailMessageUpdate.id) setLoading(false);\n },\n );\n\n useSubscription(voiceMailMessageStore, UPDATE_VOICE_MAIL_MESSAGE_EVENT_ERROR, onErrorMixinFC);\n\n const handleChange = useCallback(\n (value) => {\n setActive(value);\n setLoading(true);\n\n updateVoiceMailMessage({\n id: message.id,\n name: message.name,\n active: value,\n file: message.audio,\n });\n },\n [message.id, message.audio, message.name],\n );\n\n return (\n \n {message.name}\n \n \n \n \n \n \n \n {user.id === message.createdBy.id && (\n \n \n \n \n \n \n onUpdate(message)}>Update\n onDelete(message)} danger>\n Delete\n \n \n \n \n )}\n \n \n );\n}\n\nVoiceMailMessageItem.propTypes = {\n message: PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: PropTypes.oneOf([PRIVATE, PUBLIC]).isRequired,\n name: PropTypes.string.isRequired,\n audio: PropTypes.shape({\n id: PropTypes.string.isRequired,\n filename: PropTypes.string.isRequired,\n downloadUrl: PropTypes.string.isRequired,\n }).isRequired,\n createdBy: PropTypes.shape({\n id: PropTypes.string.isRequired,\n }).isRequired,\n active: PropTypes.bool.isRequired,\n }).isRequired,\n columns: PropTypes.string.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n};\n\nexport default VoiceMailMessageItem;\n","import React, { useState, useCallback, useEffect } from 'react';\nimport { Button } from '@8base/boost';\nimport MicRecorder from 'mic-recorder-to-mp3';\nimport { formatSeconds } from '../../../phone-calls/phone-calls-utils';\nimport PropTypes from 'prop-types';\n\nconst recorder = new MicRecorder({\n bitRate: 128,\n});\n\n/**\n * Audio Recorded component\n *\n * @param {object} props - The component's prop object\n * @param {Function} props.onRecorded - Call back to be called when recording has finished\n *\n * @returns {React.FC} The component to render\n */\nfunction AudioRecorder({ onRecorded }) {\n const [recording, setRecording] = useState(false);\n const [loading, setLoading] = useState(false);\n const [time, setTime] = useState(0);\n\n useEffect(() => {\n return () => recorder.stop();\n }, []);\n\n const handleClick = useCallback(() => {\n if (recording) {\n setLoading(true);\n setRecording(false);\n recorder.stop();\n\n recorder.getMp3().then(([buffer, blob]) => {\n const file = new File(buffer, 'voicemail-message.mp3', {\n type: blob.type,\n lastModified: Date.now(),\n });\n\n setLoading(false);\n onRecorded(file);\n });\n } else {\n setRecording(true);\n setTime(0);\n\n recorder.start();\n }\n }, [recording, onRecorded]);\n\n useEffect(() => {\n let id = 0;\n\n if (recording) id = setInterval(() => setTime((time) => time + 1), 1000);\n\n return () => clearInterval(id);\n }, [recording]);\n\n const text = recording ? `STOP ${formatSeconds(time)}` : `Record`;\n\n return (\n \n );\n}\n\nAudioRecorder.propTypes = {\n onRecorded: PropTypes.func.isRequired,\n};\n\nexport default AudioRecorder;\n","import React, { useState, useCallback, useEffect } from 'react';\nimport { Form, Select, InputField, Column, Row, Divider, Button } from '@8base/boost';\nimport { ADMIN, MANAGER } from '../../../../shared/constants';\nimport { Padding } from '../../../../shared/components';\nimport { PrimaryBtn as ActionButton } from '../../../../shared/components/ui/buttons/PrimaryBtn';\nimport AudioRecorder from '../../phone-calls/components/AudioRecorder';\nimport AudioPlayer from 'react-h5-audio-player';\nimport 'react-h5-audio-player/lib/styles.css';\nimport styled from 'styled-components';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport {\n PRIVATE,\n PUBLIC,\n VOICE_MESSAGE_TYPE_OPTIONS,\n} from '../../../phone-calls/voice-mail-message/voice-mail-message-model';\nimport PropTypes from 'prop-types';\n\nconst Div = styled(Divider)`\n margin-top: 5px !important;\n`;\n\n/**\n * Voicemail message form component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.message - The message object about to update (null if the form is going to create a new message)\n * @param {string} props.message.id - The Id of the voice mail message object\n * @param {string} props.message.name - The name of the voice mail message\n * @param {object} props.message.audio - The data of the audio file related to the message\n * @param {boolean} props.loading - The loading state of the component\n * @param {Function} props.onSubmit - Function called on submit with form values\n * @param {Function} props.onCancel - Function called on cancel button clicked\n *\n * @returns {React.FC} The component to render\n */\nfunction VoiceMailMessageForm({ message, loading, onSubmit, onCancel }) {\n const [, , roles] = useUser();\n const [name, setName] = useState(message ? message.name : '');\n const [file, setFile] = useState(message ? message.audio : null);\n const [type, setType] = useState(message ? message.type : PRIVATE);\n const [objectURL, setObjectURL] = useState(null);\n\n useEffect(() => {\n if (message) {\n setName(message.name);\n setFile(message.audio);\n setType(message.type);\n }\n }, [message]);\n\n const handleRecorded = useCallback((file) => {\n setFile(file);\n setObjectURL(URL.createObjectURL(file));\n }, []);\n\n const handleSubmit = useCallback(\n (e) => {\n e.preventDefault();\n\n const canPublish = roles.some((role) => role === MANAGER || role === ADMIN);\n\n const data = {\n name,\n file,\n type: canPublish ? type : PRIVATE,\n };\n\n if (message) {\n data.id = message.id;\n }\n\n onSubmit(data);\n },\n [message, name, file, roles, type, onSubmit],\n );\n\n const source = file !== null ? (file.downloadUrl ? file.downloadUrl : objectURL) : '';\n const canPublish = roles.some((role) => role === MANAGER || role === ADMIN);\n\n return (\n
    \n \n \n \n \n \n \n \n {canPublish && (\n \n )}\n \n \n \n
    \n \n \n \n \n {message ? 'Update Message' : 'Add Message'}\n \n \n \n \n
    \n );\n}\n\nVoiceMailMessageForm.propTypes = {\n message: PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n audio: PropTypes.object.isRequired,\n type: PropTypes.oneOf([PRIVATE, PUBLIC]).isRequired,\n }),\n loading: PropTypes.bool.isRequired,\n onSubmit: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n};\n\nVoiceMailMessageForm.defaultProps = {\n message: null,\n};\n\nexport default VoiceMailMessageForm;\n","import React, { useState, useEffect } from 'react';\nimport { Dialog } from '@8base/boost';\nimport VoiceMailMessageForm from './VoiceMailMessageForm';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport {\n createVoiceMailMessage,\n updateVoiceMailMessage,\n} from '../../../phone-calls/voice-mail-message/voice-mail-message-actions';\nimport {\n OnCreateVoiceMailMessageError,\n OnCreateVoiceMailMessageEvent,\n OnUpdateVoiceMailMessageError,\n OnUpdateVoiceMailMessageEvent,\n} from 'modules/phone-calls/voice-mail-message/voice-mail-message-events';\n\nexport const VoiceMailMessageDialog = ({ isOpen, handleOnClose, agencyId, initialMessage }) => {\n const [loading, setLoading] = useState(false);\n const [message, setMessage] = useState(initialMessage);\n\n const close = () => {\n handleOnClose();\n setLoading(false);\n setMessage(null);\n };\n\n const handleSubmit = (voiceMail) => {\n setLoading(true);\n\n if (voiceMail.id) {\n updateVoiceMailMessage(voiceMail);\n } else {\n createVoiceMailMessage(voiceMail, agencyId);\n }\n };\n\n useEffect(() => {\n setMessage(initialMessage);\n }, [initialMessage]);\n\n useEventSubscription(OnCreateVoiceMailMessageEvent, () => {\n close();\n });\n\n useEventSubscription(OnCreateVoiceMailMessageError, () => {\n setLoading(false);\n });\n\n useEventSubscription(OnUpdateVoiceMailMessageEvent, () => {\n close();\n });\n\n useEventSubscription(OnUpdateVoiceMailMessageError, () => {\n setLoading(false);\n });\n\n return (\n \n \n \n \n \n \n );\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Table, Row, Pagination } from '@8base/boost';\nimport VoiceMailMessageItem from './VoiceMailMessageItem';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport {\n fetchVoiceMailMessages,\n deleteVoiceMailMessage,\n} from '../../../phone-calls/voice-mail-message/voice-mail-message-actions';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport { YesNoDialog } from '../../../../shared/components';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport PropTypes from 'prop-types';\nimport { VoiceMailMessageDialog } from './VoiceMailMessageDialog';\nimport { useUser } from '../../../../shared/hooks/useUser';\nimport styled from 'styled-components';\nimport {\n OnCreateVoiceMailMessageEvent,\n OnDeleteVoiceMailMessageError,\n OnDeleteVoiceMailMessageEvent,\n OnFetchVoiceMailMessagesError,\n OnFetchVoiceMailMessagesEvent,\n OnUpdateVoiceMailMessageError,\n OnUpdateVoiceMailMessageEvent,\n} from 'modules/phone-calls/voice-mail-message/voice-mail-message-events';\n\nconst Body = styled(Table.Body)`\n min-height: 400px;\n`;\n\nconst columns = 'minmax(200px, 1fr) minmax(350px, 1fr) 100px 100px';\n\n/**\n * Table of voice mail messages of a specific agency\n *\n * @param {object} props - The component's prop object\n * @param {string} props.agencyId - The agency related to the voice messages\n *\n * @returns {React.FC} The component to render\n */\nfunction VoiceMailMessagesTable({ agencyId }) {\n const [loading, setLoading] = useState(true);\n const [page, setPage] = useState(1);\n const [messages, setMessages] = useState([]);\n const [count, setCount] = useState(0);\n const [del, setDelete] = useState({ open: false, selected: null, loading: false });\n const [user, userLoading] = useUser();\n const [isOpen, setIsOpen] = useState(false);\n const [messageToUpdate, setMessageToUpdate] = useState(null);\n\n const handleOpen = () => setIsOpen(true);\n\n const handleOnClose = () => {\n setIsOpen(false);\n setMessageToUpdate(null);\n };\n\n const handleDelete = useCallback(\n (message) => {\n setDelete({ ...del, open: true, selected: message });\n },\n [del],\n );\n\n const onConfirmDelete = useCallback(() => {\n deleteVoiceMailMessage(del.selected.id);\n setDelete({ ...del, loading: true });\n }, [del]);\n\n const handleUpdate = (message) => {\n setMessageToUpdate(message);\n handleOpen();\n };\n\n const refresh = useCallback(() => {\n setLoading(true);\n\n fetchVoiceMailMessages(\n {\n agency: agencyId,\n user: [user.id, 'equals'],\n },\n page,\n );\n }, [user, page, agencyId, setLoading]);\n\n useEffect(() => {\n refresh();\n }, [refresh]);\n\n useEventSubscription(OnFetchVoiceMailMessagesEvent, ({ voiceMailMessagesList }) => {\n setLoading(false);\n setMessages(voiceMailMessagesList.items);\n setCount(voiceMailMessagesList.count);\n });\n\n useEventSubscription(OnCreateVoiceMailMessageEvent, () => {\n if (page === 1) {\n refresh();\n } else {\n setPage(1);\n }\n });\n\n useEventSubscription(OnUpdateVoiceMailMessageEvent, () => {\n Toast.success('Success', 'Voicemail message updated successfully!');\n\n if (page === 1) {\n refresh();\n } else {\n setPage(1);\n }\n });\n\n useEventSubscription(OnDeleteVoiceMailMessageEvent, () => {\n Toast.success('Success', 'Voicemail message deleted successfully!');\n\n setDelete({ ...del, selected: null, open: false, loading: false });\n\n if (page === 1) {\n refresh();\n } else {\n setPage(1);\n }\n });\n\n useEventSubscription(OnFetchVoiceMailMessagesError, onErrorMixinFC);\n\n useEventSubscription(OnUpdateVoiceMailMessageError, onErrorMixinFC);\n\n useEventSubscription(OnDeleteVoiceMailMessageError, (e) => {\n onErrorMixinFC(e);\n\n setDelete({ ...del, loading: false });\n });\n\n return (\n <>\n \n \n Name\n Play\n Active\n Action\n \n \n {(message) => (\n \n )}\n \n \n \n \n \n \n
    \n setDelete({ ...del, open: false, loading: false, selected: null })}\n onClose={() => setDelete({ ...del, open: false, loading: false, selected: null })}\n />\n \n \n );\n}\n\nVoiceMailMessagesTable.propTypes = {\n agencyId: PropTypes.string.isRequired,\n};\n\nexport default VoiceMailMessagesTable;\n","import React, { useState } from 'react';\nimport { Card, Row } from '@8base/boost';\nimport VoiceMailMessagesTable from './components/VoiceMailMessagesTable';\nimport { VoiceMailMessageDialog } from './components/VoiceMailMessageDialog';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { CreateButton } from 'shared/components';\nimport { Box } from '../../../shared/components/Box';\n\n/**\n * Voice mail messages component for the settings page\n *\n * @returns {React.FC} The component to render\n */\nfunction VoiceMailMessages() {\n const agency = useAgency();\n const [isOpen, setIsOpen] = useState(false);\n const handleOpen = () => setIsOpen(true);\n\n const handleOnClose = () => setIsOpen(false);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default VoiceMailMessages;\n","import styled from 'styled-components';\n\nexport const Container = styled.div`\n padding: 2em;\n height: 100%;\n`;\n","import { Card } from '@8base/boost';\nimport styled from 'styled-components';\nimport { customScrollBar } from 'shared/css/mixins';\n\nexport const CardBody = styled(Card.Body)`\n ${customScrollBar};\n`;\n","import styled from 'styled-components';\nimport { FaRegClock, FaRegCheckCircle, FaRegTimesCircle } from 'react-icons/fa';\n\nexport const Approved = styled(FaRegCheckCircle)`\n color: #3db4aa;\n font-size: 25px;\n`;\n\nexport const Rejected = styled(FaRegTimesCircle)`\n color: var(--color-red);\n font-size: 25px;\n`;\n\nexport const Review = styled(FaRegClock)`\n color: var(--color-yellow);\n font-size: 25px;\n`;\n","export const TWILIO_TRUST_PRODUCT_STATUSES = {\n DRAFT: 'draft',\n PENDING_REVIEW: 'pending-review',\n IN_REVIEW: 'in-review',\n REJECTED: 'twilio-rejected',\n APPROVED: 'twilio-approved',\n};\n\nexport const TWILIO_MESSAGING_PRODUCT_STATUSES = {\n APPROVED: 'APPROVED',\n VERIFIED: 'VERIFIED',\n\n FAILED: 'FAILED',\n DELETION_FAILED: 'DELETION_FAILED',\n\n IN_PROGRESS: 'IN_PROGRESS',\n PENDING: 'PENDING',\n IN_REVIEW: 'IN_REVIEW',\n DELETION_PENDING: 'DELETION_PENDING',\n SUSPENDED: 'SUSPENDED',\n};\n\nexport type TwilioMessagingProductStatuses = keyof typeof TWILIO_MESSAGING_PRODUCT_STATUSES;\n","import React from 'react';\nimport { ColorRing } from 'react-loader-spinner';\nimport { Approved, Rejected, Review } from './Icons';\nimport { TWILIO_TRUST_PRODUCT_STATUSES } from '../constants';\n\n/**\n * @typedef {'draft' | 'pending-review' | 'in-review' | 'twilio-rejected' | 'twilio-approved'} TrustProductStatus\n */\n\n/**\n * @param {object} props - Component props.\n * @param {boolean} props.isLoading - Tells whether the request is loading or not.\n * @param {TrustProductStatus | boolean} [props.status] - Tells whether the product is approved or not.\n * @returns {React.ReactNode} Product status component\n */\nexport function TrustProductStatus({ isLoading, status }) {\n if (isLoading)\n return (\n \n );\n\n if (status === TWILIO_TRUST_PRODUCT_STATUSES.APPROVED || status === true) return ;\n\n if (\n status === TWILIO_TRUST_PRODUCT_STATUSES.DRAFT ||\n status === TWILIO_TRUST_PRODUCT_STATUSES.IN_REVIEW ||\n status === TWILIO_TRUST_PRODUCT_STATUSES.PENDING_REVIEW\n )\n return ;\n\n return ;\n}\n","import React from 'react';\nimport { Table, Text } from '@8base/boost';\nimport { TrustProductStatus } from './TrustProductStatus';\nimport styled from 'styled-components';\n\n/**\n * @typedef {'draft' | 'pending-review' | 'in-review' | 'twilio-rejected' | 'twilio-approved'} TrustProductStatus\n */\n\n/**\n * @typedef {object} EvaluationResultField\n * @property {string} failure_reason\n */\n\n/**\n * @typedef {object} EvaluationResult\n * @property {EvaluationResultField[]} fields\n */\n\n/**\n * @param {object} props - Component props.\n * @param {string} props.cols - Css declaration of columns number.\n * @param {string} props.title - Name of the trust product.\n * @param {TrustProductStatus} [props.status] - Trust product twilio status.\n * @param {EvaluationResult[] | string | null} props.failedEvaluationsResults - Trust product failed evaluation results.\n * @param {boolean} props.isLoading - Tells wheter the data is loaind or not.\n * @returns {React.ReactNode} props - Component props.\n */\nexport function TrustProductRegistrationRow({\n cols,\n title,\n status,\n failedEvaluationsResults,\n isLoading,\n}) {\n return (\n \n Trust\n {title}\n \n \n \n \n \n \n \n );\n}\n\nconst StyledUl = styled.ul`\n display: flex;\n flex-direction: column;\n gap: 1em;\n`;\n\n/**\n * @param {object} props - Component props.\n * @param {EvaluationResult[] | string | null} props.failedEvaluationsResults - Trust product failed evaluation results.\n * @param {TrustProductStatus} [props.status] - Trust product twilio status.\n * @returns {React.ReactNode} props - Component props.\n */\nfunction TrustProductRejectionReasons({ failedEvaluationsResults, status }) {\n if (!failedEvaluationsResults && !status) return Unexptected rejection;\n\n if (failedEvaluationsResults && Array.isArray(failedEvaluationsResults))\n return (\n \n {failedEvaluationsResults.map((evalResult) =>\n evalResult.fields.map((field) => (\n
  • \n {field.failure_reason}\n
  • \n )),\n )}\n
    \n );\n\n if (failedEvaluationsResults && typeof failedEvaluationsResults === 'string')\n return {failedEvaluationsResults};\n\n return ;\n}\n","import React from 'react';\nimport { ColorRing } from 'react-loader-spinner';\nimport { Approved, Rejected, Review } from './Icons';\nimport { TWILIO_MESSAGING_PRODUCT_STATUSES, TwilioMessagingProductStatuses } from '../constants';\n\ntype MessagingProductStatusProps = {\n isLoading: boolean;\n status?: TwilioMessagingProductStatuses | boolean;\n};\n\nexport function MessagingProductStatus({ isLoading, status }: MessagingProductStatusProps) {\n if (isLoading)\n return (\n \n );\n\n if (\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.APPROVED ||\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.VERIFIED ||\n status === true\n )\n return ;\n\n if (\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.PENDING ||\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.IN_REVIEW ||\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.DELETION_PENDING ||\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.IN_PROGRESS ||\n status === TWILIO_MESSAGING_PRODUCT_STATUSES.SUSPENDED\n )\n return ;\n\n return ;\n}\n","import React from 'react';\nimport { Table, Text } from '@8base/boost';\nimport { MessagingProductStatus } from './MessagingProductStatus';\nimport { TwilioMessagingProductStatuses } from '../constants';\n\ntype MessagingProductRegistrationRowProps = {\n cols: string;\n title: string;\n status?: TwilioMessagingProductStatuses | boolean;\n rejectionReason?: string;\n isLoading: boolean;\n};\n\nexport function MessagingProductRegistrationRow({\n cols,\n title,\n isLoading,\n status,\n rejectionReason,\n}: MessagingProductRegistrationRowProps): React.ReactNode {\n return (\n \n Messaging\n {title}\n \n \n \n \n \n \n \n );\n}\n\ntype RejectionReasonProps = {\n status?: TwilioMessagingProductStatuses | boolean;\n rejectionReason?: string;\n};\n\nfunction RejectionReason({ status, rejectionReason }: RejectionReasonProps) {\n if (rejectionReason) return {rejectionReason};\n\n if (!rejectionReason && !status) return Unexptected rejection;\n\n return ;\n}\n","import React, { useEffect, useMemo, useState } from 'react';\nimport { Table, Card } from '@8base/boost';\nimport { error as toastError, errors as toastErrors } from 'shared/components/toast/Toast';\nimport { Container } from './components/Container';\nimport { CardBody } from './components/Card';\n\nimport { getUserToken } from 'shared/helpers';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport { useFetch } from 'shared/hooks/useFetch';\nimport { TrustProductRegistrationRow } from './components/TrustProductRegistrationRow';\nimport { MessagingProductRegistrationRow } from './components/MessagingProductRegistrationRow';\nimport { TableHeader } from 'shared/components';\n\nconst REACT_APP_WORKSPACE_ENDPOINT = process.env.REACT_APP_WORKSPACE_ENDPOINT;\n\n/**\n * @description Component to monitor statuses of registration for messaging and phone services\n * @returns {React.ReactNode} RegistrationStatus component.\n */\nexport default function RegistrationStatus() {\n const [token] = useState(getUserToken());\n const selectedAgency = useAgency();\n\n const cols = useMemo(() => '1fr 2fr 3fr 1fr', []);\n\n /**@type {RequestInit}*/\n const requestOptions = useMemo(\n () => ({\n method: 'GET',\n headers: {\n Authorization: `Bearer ${token}`,\n },\n }),\n [token],\n );\n\n const telephonyProductsEndpoint = useMemo(\n () =>\n `${REACT_APP_WORKSPACE_ENDPOINT}/webhook/agencies/${selectedAgency.id}/telephony-products-status`,\n [selectedAgency.id],\n );\n\n const { data: productsData, isLoading: isLoadingProductsData, error: productsError } = useFetch(\n telephonyProductsEndpoint,\n requestOptions,\n );\n\n useEffect(() => {\n if (productsError)\n toastError(`Error fetching trust products registration data: ${productsError?.message}`);\n }, [productsError]);\n\n useEffect(() => {\n if (productsData?.errors) {\n toastErrors(productsData.errors.map((err) => err.message));\n }\n }, [productsData]);\n\n return (\n \n \n \n \n \n \n \n \n Type\n Name\n Rejection reason\n Status\n \n \n {(product) => {\n if (product.type === 'trust')\n return (\n \n );\n\n if (product.type === 'messaging')\n return (\n \n );\n }}\n \n
    \n
    \n
    \n
    \n );\n}\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\ntype FetchState = {\n data: T | null;\n isLoading: boolean;\n error: Error | null;\n};\n\ntype UseFetch = FetchState & { reFetch: () => void };\n\nexport function useFetch(url: string, options?: RequestInit): UseFetch {\n const [state, setState] = useState>({\n data: null,\n isLoading: true,\n error: null,\n });\n\n const optsRef = useRef(options);\n const abortControllerRef = useRef(null);\n\n const reFetch = useCallback(() => {\n abortControllerRef.current = new AbortController();\n setState((prevState) => ({ ...prevState, error: null, isLoading: true }));\n\n fetch(url, { ...optsRef.current, signal: abortControllerRef.current.signal })\n .then((response) => response.json())\n .then((resData) => setState((prevState) => ({ ...prevState, data: resData })))\n .catch((error) => {\n if (error.name !== 'AbortError') {\n console.error(`[Error] useFetch: `, error);\n setState((prevState) => ({ ...prevState, error: error }));\n }\n })\n .finally(() => setState((prevState) => ({ ...prevState, isLoading: false })));\n }, [url]);\n\n useEffect(() => {\n reFetch();\n return () => {\n if (!abortControllerRef.current) return;\n\n abortControllerRef.current.abort();\n };\n }, [reFetch]);\n\n return { ...state, reFetch };\n}\n","export const TIMEZONE_OPTIONS = [\n {\n label: '(UTC-12:00) International Date Line West',\n value: '(UTC-12:00) International Date Line West',\n },\n {\n label: '(UTC-11:00) Coordinated Universal Time-11',\n value: '(UTC-11:00) Coordinated Universal Time-11',\n },\n { label: '(UTC-11:00) Samoa', value: '(UTC-11:00) Samoa' },\n { label: '(UTC-10:00) Hawaii', value: '(UTC-10:00) Hawaii' },\n { label: '(UTC-09:00) Alaska', value: '(UTC-09:00) Alaska' },\n { label: '(UTC-08:00) Baja California', value: '(UTC-08:00) Baja California' },\n {\n label: '(UTC-08:00) Pacific Time (US & Canada)',\n value: '(UTC-08:00) Pacific Time (US & Canada)',\n },\n { label: '(UTC-07:00) Arizona', value: '(UTC-07:00) Arizona' },\n {\n label: '(UTC-07:00) Chihuahua, La Paz, Mazatlan',\n value: '(UTC-07:00) Chihuahua, La Paz, Mazatlan',\n },\n {\n label: '(UTC-07:00) Mountain Time (US & Canada)',\n value: '(UTC-07:00) Mountain Time (US & Canada)',\n },\n { label: '(UTC-06:00) Central America', value: '(UTC-06:00) Central America' },\n {\n label: '(UTC-06:00) Central Time (US & Canada)',\n value: '(UTC-06:00) Central Time (US & Canada)',\n },\n {\n label: '(UTC-06:00) Guadalajara, Mexico City, Monterrey',\n value: '(UTC-06:00) Guadalajara, Mexico City, Monterrey',\n },\n { label: '(UTC-06:00) Saskatchewan', value: '(UTC-06:00) Saskatchewan' },\n { label: '(UTC-05:00) Bogota, Lima, Quito', value: '(UTC-05:00) Bogota, Lima, Quito' },\n {\n label: '(UTC-05:00) Eastern Time (US & Canada)',\n value: '(UTC-05:00) Eastern Time (US & Canada)',\n },\n { label: '(UTC-05:00) Indiana (East)', value: '(UTC-05:00) Indiana (East)' },\n { label: '(UTC-04:30) Caracas', value: '(UTC-04:30) Caracas' },\n { label: '(UTC-04:00) Asuncion', value: '(UTC-04:00) Asuncion' },\n { label: '(UTC-04:00) Atlantic Time (Canada)', value: '(UTC-04:00) Atlantic Time (Canada)' },\n { label: '(UTC-04:00) Cuiaba', value: '(UTC-04:00) Cuiaba' },\n {\n label: '(UTC-04:00) Georgetown, La Paz, Manaus, San Juan',\n value: '(UTC-04:00) Georgetown, La Paz, Manaus, San Juan',\n },\n { label: '(UTC-04:00) Santiago', value: '(UTC-04:00) Santiago' },\n { label: '(UTC-03:30) Newfoundland', value: '(UTC-03:30) Newfoundland' },\n { label: '(UTC-03:00) Brasilia', value: '(UTC-03:00) Brasilia' },\n { label: '(UTC-03:00) Buenos Aires', value: '(UTC-03:00) Buenos Aires' },\n { label: '(UTC-03:00) Cayenne, Fortaleza', value: '(UTC-03:00) Cayenne, Fortaleza' },\n { label: '(UTC-03:00) Greenland', value: '(UTC-03:00) Greenland' },\n { label: '(UTC-03:00) Montevideo', value: '(UTC-03:00) Montevideo' },\n {\n label: '(UTC-02:00) Coordinated Universal Time-02',\n value: '(UTC-02:00) Coordinated Universal Time-02',\n },\n { label: '(UTC-02:00) Mid-Atlantic', value: '(UTC-02:00) Mid-Atlantic' },\n { label: '(UTC-01:00) Azores', value: '(UTC-01:00) Azores' },\n { label: '(UTC-01:00) Cape Verde Is.', value: '(UTC-01:00) Cape Verde Is.' },\n { label: '(UTC) Casablanca', value: '(UTC) Casablanca' },\n { label: '(UTC) Coordinated Universal Time', value: '(UTC) Coordinated Universal Time' },\n {\n label: '(UTC) Dublin, Edinburgh, Lisbon, London',\n value: '(UTC) Dublin, Edinburgh, Lisbon, London',\n },\n { label: '(UTC) Monrovia, Reykjavik', value: '(UTC) Monrovia, Reykjavik' },\n {\n label: '(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',\n value: '(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',\n },\n {\n label: '(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',\n value: '(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',\n },\n {\n label: '(UTC+01:00) Brussels, Copenhagen, Madrid, Paris',\n value: '(UTC+01:00) Brussels, Copenhagen, Madrid, Paris',\n },\n {\n label: '(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb',\n value: '(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb',\n },\n { label: '(UTC+01:00) West Central Africa', value: '(UTC+01:00) West Central Africa' },\n { label: '(UTC+02:00) Amman', value: '(UTC+02:00) Amman' },\n {\n label: '(UTC+02:00) Athens, Bucharest, Istanbul',\n value: '(UTC+02:00) Athens, Bucharest, Istanbul',\n },\n { label: '(UTC+02:00) Beirut', value: '(UTC+02:00) Beirut' },\n { label: '(UTC+02:00) Cairo', value: '(UTC+02:00) Cairo' },\n { label: '(UTC+02:00) Damascus', value: '(UTC+02:00) Damascus' },\n { label: '(UTC+02:00) Harare, Pretoria', value: '(UTC+02:00) Harare, Pretoria' },\n {\n label: '(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius',\n value: '(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius',\n },\n { label: '(UTC+02:00) Jerusalem', value: '(UTC+02:00) Jerusalem' },\n { label: '(UTC+02:00) Minsk', value: '(UTC+02:00) Minsk' },\n { label: '(UTC+02:00) Windhoek', value: '(UTC+02:00) Windhoek' },\n { label: '(UTC+03:00) Baghdad', value: '(UTC+03:00) Baghdad' },\n { label: '(UTC+03:00) Kuwait, Riyadh', value: '(UTC+03:00) Kuwait, Riyadh' },\n {\n label: '(UTC+03:00) Moscow, St. Petersburg, Volgograd',\n value: '(UTC+03:00) Moscow, St. Petersburg, Volgograd',\n },\n { label: '(UTC+03:00) Nairobi', value: '(UTC+03:00) Nairobi' },\n { label: '(UTC+03:30) Tehran', value: '(UTC+03:30) Tehran' },\n { label: '(UTC+04:00) Abu Dhabi, Muscat', value: '(UTC+04:00) Abu Dhabi, Muscat' },\n { label: '(UTC+04:00) Baku', value: '(UTC+04:00) Baku' },\n { label: '(UTC+04:00) Port Louis', value: '(UTC+04:00) Port Louis' },\n { label: '(UTC+04:00) Tbilisi', value: '(UTC+04:00) Tbilisi' },\n { label: '(UTC+04:00) Yerevan', value: '(UTC+04:00) Yerevan' },\n { label: '(UTC+04:30) Kabul', value: '(UTC+04:30) Kabul' },\n { label: '(UTC+05:00) Ekaterinburg', value: '(UTC+05:00) Ekaterinburg' },\n { label: '(UTC+05:00) Islamabad, Karachi', value: '(UTC+05:00) Islamabad, Karachi' },\n { label: '(UTC+05:00) Tashkent', value: '(UTC+05:00) Tashkent' },\n {\n label: '(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi',\n value: '(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi',\n },\n { label: '(UTC+05:30) Sri Jayawardenepura', value: '(UTC+05:30) Sri Jayawardenepura' },\n { label: '(UTC+05:45) Kathmandu', value: '(UTC+05:45) Kathmandu' },\n { label: '(UTC+06:00) Astana', value: '(UTC+06:00) Astana' },\n { label: '(UTC+06:00) Dhaka', value: '(UTC+06:00) Dhaka' },\n { label: '(UTC+06:00) Novosibirsk', value: '(UTC+06:00) Novosibirsk' },\n { label: '(UTC+06:30) Yangon (Rangoon)', value: '(UTC+06:30) Yangon (Rangoon)' },\n { label: '(UTC+07:00) Bangkok, Hanoi, Jakarta', value: '(UTC+07:00) Bangkok, Hanoi, Jakarta' },\n { label: '(UTC+07:00) Krasnoyarsk', value: '(UTC+07:00) Krasnoyarsk' },\n {\n label: '(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi',\n value: '(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi',\n },\n { label: '(UTC+08:00) Irkutsk', value: '(UTC+08:00) Irkutsk' },\n { label: '(UTC+08:00) Kuala Lumpur, Singapore', value: '(UTC+08:00) Kuala Lumpur, Singapore' },\n { label: '(UTC+08:00) Perth', value: '(UTC+08:00) Perth' },\n { label: '(UTC+08:00) Taipei', value: '(UTC+08:00) Taipei' },\n { label: '(UTC+08:00) Ulaanbaatar', value: '(UTC+08:00) Ulaanbaatar' },\n { label: '(UTC+09:00) Osaka, Sapporo, Tokyo', value: '(UTC+09:00) Osaka, Sapporo, Tokyo' },\n { label: '(UTC+09:00) Seoul', value: '(UTC+09:00) Seoul' },\n { label: '(UTC+09:00) Yakutsk', value: '(UTC+09:00) Yakutsk' },\n { label: '(UTC+09:30) Adelaide', value: '(UTC+09:30) Adelaide' },\n { label: '(UTC+09:30) Darwin', value: '(UTC+09:30) Darwin' },\n { label: '(UTC+10:00) Brisbane', value: '(UTC+10:00) Brisbane' },\n {\n label: '(UTC+10:00) Canberra, Melbourne, Sydney',\n value: '(UTC+10:00) Canberra, Melbourne, Sydney',\n },\n { label: '(UTC+10:00) Guam, Port Moresby', value: '(UTC+10:00) Guam, Port Moresby' },\n { label: '(UTC+10:00) Hobart', value: '(UTC+10:00) Hobart' },\n { label: '(UTC+10:00) Vladivostok', value: '(UTC+10:00) Vladivostok' },\n {\n label: '(UTC+11:00) Magadan, Solomon Is., New Caledonia',\n value: '(UTC+11:00) Magadan, Solomon Is., New Caledonia',\n },\n { label: '(UTC+12:00) Auckland, Wellington', value: '(UTC+12:00) Auckland, Wellington' },\n {\n label: '(UTC+12:00) Coordinated Universal Time+12',\n value: '(UTC+12:00) Coordinated Universal Time+12',\n },\n { label: '(UTC+12:00) Fiji', value: '(UTC+12:00) Fiji' },\n {\n label: '(UTC+12:00) Petropavlovsk-Kamchatsky – Old',\n value: '(UTC+12:00) Petropavlovsk-Kamchatsky – Old',\n },\n { label: '(UTC+13:00) Nuku’alofa', value: '(UTC+13:00) Nuku’alofa' },\n];\n","import React from 'react';\nimport { Paper, Table } from '@8base/boost';\nimport PropTypes from 'prop-types';\n\nconst columns = '60% 40%';\n\ninterface IAgencyRolesTable {\n userAgencyRelation: any[];\n}\n\n/**\n * Table with every role of the user in agencies related to him\n *\n * @param props - The React component's prop object\n *\n * @returns Component\n */\nconst AgencyRolesTable: React.FC = ({ userAgencyRelation }) => {\n return (\n \n \n \n Agency\n Roles\n \n \n {(userAgency: any) => (\n \n {userAgency.agency.name}\n {userAgency.roles.join(', ')}\n \n )}\n \n
    \n
    \n );\n};\n\nAgencyRolesTable.propTypes = {\n userAgencyRelation: PropTypes.array.isRequired,\n};\n\nexport default AgencyRolesTable;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, Paper, Table } from '@8base/boost';\n\ninterface IRoleTableProps {\n roleRelationArray: any[];\n titleHeader: string;\n userRole: string;\n}\n\n/**\n * Show user roles.\n *\n * @param props - The react component's prop object\n * @param roleRelationArray - User relationships with roles.\n * @param titleHeader - Check if it is company or agency.\n * @param userRole - Role of the user.\n *\n * @returns Table - The component to render\n */\nconst RoleTable: React.FC = ({ roleRelationArray, titleHeader, userRole }) => {\n return (\n <>\n {roleRelationArray.length > 0 ? (\n \n \n \n \n \n {titleHeader}\n Role\n \n \n {roleRelationArray.map((data) => {\n return (\n \n \n {`${titleHeader === 'Company' ? data.company.name : data.agency.name}`}\n \n {userRole}\n \n );\n })}\n \n
    \n
    \n
    \n
    \n ) : null}\n \n );\n};\n\nRoleTable.propTypes = {\n roleRelationArray: PropTypes.array.isRequired,\n titleHeader: PropTypes.string.isRequired,\n userRole: PropTypes.string.isRequired,\n};\n\nexport { RoleTable };\n","import React, { useState, useEffect, FC, CSSProperties } from 'react';\nimport { updateUser, fetchSession } from '../../auth/auth.actions';\nimport {\n OnUserUpdateError,\n OnSessionFetch,\n OnUserUpdate,\n} from '../../../shared/session/session-events';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport styled from 'styled-components';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport {\n Card,\n Grid,\n Avatar,\n Form,\n InputField,\n SelectField,\n Dialog,\n Paragraph,\n Button,\n Row,\n Loader,\n} from '@8base/boost';\nimport { Box } from '../../../shared/components/Box';\nimport { FileInput } from '@8base-react/file-input';\nimport { TIMEZONE_OPTIONS } from './general-model';\nimport AgencyRolesTable from './components/AgencyRolesTable';\nimport { RoleTable } from './components/RoleTable';\nimport { PrimaryBtn } from '../../../shared/components/ui/buttons/PrimaryBtn';\nimport * as toast from 'shared/components/toast/Toast';\n\nconst AvatarGridBox = styled(Grid.Box)`\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nconst AvatarText = styled.button`\n margin-top: 20px;\n height: 20px;\n width: 100%;\n color: #3db4aa;\n font-size: 13px;\n line-height: 18px;\n text-align: center;\n background: transparent;\n outline: none;\n cursor: pointer;\n`;\n\nconst AvatarStyle: CSSProperties = {\n width: 200,\n height: 200,\n border: '3px solid #3db4aa',\n};\nconst defaultAvatar = {\n downloadUrl: '',\n fileId: '',\n filename: '',\n public: false,\n mimetype: '',\n};\n\nexport const GeneralView: FC = () => {\n const [loading, setLoading] = useState(true);\n const [id, setId] = useState('');\n const [firstName, setFirstName] = useState('');\n const [lastName, setLastName] = useState('');\n const [email, setEmail] = useState('');\n const [timezone, setTimezone] = useState('');\n const [cellPhone, setCellPhone] = useState('');\n const [workPhone, setWorkPhone] = useState('');\n const [workPhoneExt, setWorkPhoneExt] = useState('');\n const [avatar, setAvatar] = useState(null);\n\n const [downloadUrl, setDownloadUrl] = useState('');\n\n const [adminRelation, setAdminRelation] = useState([]);\n const [userAgencyRelation, setUserAgencyRelation] = useState([]);\n\n const [isOpenUpdate, setIsOpenUpdate] = useState(false);\n const [loaderUpdate, setLoaderUpdate] = useState(false);\n\n const handleChangeFirstName = (e: any) => setFirstName(e.target.value);\n const handleChangeLastName = (e: any) => setLastName(e.target.value);\n const handleChangeEmail = (e: any) => setEmail(e.target.value);\n const handleChangeCellPhone = (e: any) => setCellPhone(e.target.value);\n const handleChangeWorkPhone = (e: any) => setWorkPhone(e.target.value);\n const handleChangeWorkPhoneExtra = (e: any) => setWorkPhoneExt(e.target.value);\n\n const handleOpenUpdate = () => setIsOpenUpdate(true);\n const handleCloseUpdate = () => setIsOpenUpdate(false);\n\n useEffect(() => {\n fetchSession();\n }, []);\n\n useSimpleSubscription(\n OnSessionFetch,\n (props) => {\n const { user } = props!;\n const { cellPhone, workPhone, workPhoneExt, timezone } = user;\n\n setId(user.id);\n setFirstName(user.firstName);\n setLastName(user.lastName);\n setEmail(user.email);\n setTimezone(timezone ? timezone : '');\n setCellPhone(cellPhone ? cellPhone : '');\n setWorkPhone(workPhone ? workPhone : '');\n setWorkPhoneExt(workPhoneExt ? workPhoneExt : '');\n setAdminRelation(user.userAdminRelation.items);\n setUserAgencyRelation(user.userAgencyUserRelation.items);\n setDownloadUrl(user.avatar !== null ? user.avatar.downloadUrl : null);\n setLoading(false);\n },\n [],\n );\n\n useSimpleSubscription(\n OnUserUpdate,\n () => {\n setLoaderUpdate(false);\n handleCloseUpdate();\n toast.success('Profile', 'Updated Successfully!');\n setLoading(true);\n fetchSession();\n },\n [handleCloseUpdate],\n );\n\n useSimpleSubscription(\n OnUserUpdateError,\n (error) => {\n setLoaderUpdate(false);\n handleCloseUpdate();\n onErrorMixinFC(error);\n },\n [handleCloseUpdate],\n );\n\n const handleSubmit = () => {\n setLoaderUpdate(true);\n\n const _Avatar = {\n fileId: avatar ? avatar.fileId : defaultAvatar.fileId,\n filename: avatar ? avatar.filename : defaultAvatar.filename,\n };\n\n const userData = {\n id,\n firstName,\n lastName,\n email,\n timezone,\n cellPhone,\n workPhone,\n workPhoneExt,\n avatar: avatar && _Avatar,\n };\n\n updateUser(userData);\n };\n\n if (loading) return ;\n\n return (\n \n \n \n \n \n \n \n {\n setDownloadUrl(picture.downloadUrl);\n setAvatar(picture);\n }}\n // value={input.field}\n maxFiles={1}>\n {({ pick }) => (\n pick({})}>Change Profile Image\n )}\n \n \n \n
    \n \n Personal Information\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setTimezone(value),\n }}\n options={TIMEZONE_OPTIONS}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n \n \n Save Changes\n \n \n \n \n \n Are you sure update the changes?\n \n \n \n \n Update\n \n \n \n
    \n
    \n );\n};\n\nconst LoaderSpinner: FC = () => (\n \n \n \n);\n","import React, { useState, useEffect } from 'react';\nimport styled from 'styled-components';\nimport * as toast from 'shared/components/toast/Toast';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { updateUserSignature } from './email-actions';\nimport { Card, Loader, Row } from '@8base/boost';\nimport { RadioInputField } from 'shared/components';\nimport { PrimaryBtn } from '../../../shared/components/ui/buttons/PrimaryBtn';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { Box } from '../../../shared/components/Box';\nimport { OnUserSignatureUpdateError, OnUserSignatureUpdateEvent } from './email-events';\nimport { OnUserSignatureError, OnUserSignatureEvent } from 'modules/email/email-events';\nimport { fetchUserSignature } from 'modules/email/email-actions';\n\nconst CardBodyHeight = styled(Card.Body)`\n display: flex;\n flex-direction: column;\n min-height: 335px;\n`;\n\nconst CardFooterFlexEnd = styled(Card.Footer)`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst FullHeightContainer = styled.div`\n display: grid;\n grid-template-columns: 250px 1fr;\n`;\n\nconst TitleCardBody = styled.p`\n font-size: 13px;\n font-weight: bold;\n`;\n\nconst EmailView = () => {\n const [isEnableSignature, setIsEnableSignature] = useState(false);\n const [editorState, setEditorState] = useState(/* EditorState.createEmpty() */);\n\n const [loaderComponent, setLoaderComponent] = useState(true);\n const [loaderUpdate, setLoaderUpdate] = useState(false);\n\n useEffect(() => {\n fetchUserSignature();\n }, []);\n\n const handleChangeEnableSignature = () => {\n setIsEnableSignature(!isEnableSignature);\n };\n\n useEventSubscription(OnUserSignatureUpdateEvent, () => {\n setLoaderUpdate(false);\n toast.success('Signature Successfully Updated');\n });\n\n useEventSubscription(OnUserSignatureUpdateError, (err) => {\n setLoaderUpdate(false);\n onErrorMixinFC(err);\n });\n\n useEventSubscription(OnUserSignatureEvent, (data) => {\n setIsEnableSignature(data.user.isEnableSignature ? true : false);\n if (data.user.signature !== null) {\n setEditorState(data.user.signature);\n }\n setLoaderComponent(false);\n });\n\n useEventSubscription(OnUserSignatureError, (err) => {\n console.log(err);\n onErrorMixinFC(err);\n });\n\n const handleUpdateSignature = () => {\n setLoaderUpdate(true);\n\n const data = {\n signature: editorState || '',\n isEnableSignature,\n };\n updateUserSignature(data);\n };\n\n if (loaderComponent) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n Email Signature\n \n
    \n \n
    \n
    \n setEditorState(newContent)}\n />\n
    \n
    \n
    \n \n \n Save Changes\n \n \n
    \n
    \n );\n};\n\nexport { EmailView };\n","import React, { useCallback } from 'react';\nimport { Table, Dropdown, Menu, Icon, Tag as BoostTag } from '@8base/boost';\nimport { DropdownBodyOnTable } from '../../../../shared/components';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\nconst Roles = styled(Table.BodyCell)`\n word-break: break-word !important;\n`;\n\nconst Tag = styled(BoostTag)`\n ${(props) => {\n switch (props.status) {\n case 'active':\n return `\n color: #3DB4AA !important;\n background-color: rgba(61, 180, 170, .1) !important;\n border-color: rgba(61, 180, 170, .4) !important;\n `;\n case 'invited':\n return `\n color: #62ABFE !important;\n background-color: rgba(98, 171, 254, .1) !important;\n border-color: rgba(98, 171, 254, .4) !important;\n `;\n case 'inactive':\n return `\n color: #FF0606 !important;\n background-color: rgba(255, 6, 6, .1) !important;\n border-color: rgba(255, 6, 6, .4) !important;\n `;\n default:\n return `\n color: #3DB4AA !important;\n background-color: rgba(61, 180, 170, .1) !important;\n border-color: rgba(61, 180, 170, .4) !important;\n `;\n }\n }}\n`;\n\n/**\n * User table row compnent\n *\n * @param {object} props - The component's prop object\n * @param {number} props.index - The number of the row in the table\n * @param {object} props.user - The user object to display the data from\n * @param {Function} props.onUpdate - Callback that is triggered when the update button is clicked\n * @param {Function} props.onDelete - Callback that is triggered when the delete button is clicked\n *\n * @returns {React.FC} The component to render\n */\nfunction UsersTableRow({ index, user, onUpdate, onDelete }) {\n const {\n 0: { roles },\n } = user.userAgencyUserRelation.items;\n const [admin] = user.userAdminRelation.items;\n\n const handleUpdate = useCallback(\n (callback) => {\n onUpdate(user);\n callback();\n },\n [user, onUpdate],\n );\n\n const handleDelete = useCallback(\n (callback) => {\n onDelete(user);\n callback();\n },\n [user, onDelete],\n );\n\n return (\n <>\n {index}\n \n {user.firstName} {user.lastName}\n \n {user.email}\n \n {roles.join(', ')} {admin ? ', ADMIN' : ''}\n \n \n {user.status}\n \n \n \n \n \n \n \n \n {({ closeDropdown }) => (\n \n handleUpdate(closeDropdown)}>Edit Details\n handleDelete(closeDropdown)}>\n Delete\n \n \n )}\n \n \n \n \n );\n}\n\nUsersTableRow.propTypes = {\n index: PropTypes.number.isRequired,\n user: PropTypes.shape({\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n roles: PropTypes.array.isRequired,\n status: PropTypes.array.isRequired,\n userAgencyUserRelation: PropTypes.shape({\n items: PropTypes.array.isRequired,\n }).isRequired,\n userAdminRelation: PropTypes.shape({\n items: PropTypes.array.isRequired,\n }).isRequired,\n }).isRequired,\n onUpdate: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n};\n\nexport default UsersTableRow;\n","import gql from 'graphql-tag';\n\nexport const AGENCY_USERS_LIST = gql`\n query FetchAgencyUsers($id: ID, $first: Int, $skip: Int) {\n usersList(\n filter: { userAgencyUserRelation: { some: { agency: { id: { equals: $id } } } } }\n first: $first\n skip: $skip\n orderBy: createdAt_DESC\n ) {\n count\n items {\n id\n firstName\n lastName\n email\n status\n userAgencyUserRelation(filter: { agency: { id: { equals: $id } } }) {\n items {\n id\n roles\n }\n }\n userAdminRelation(\n filter: { company: { agencyCompanyRelation: { some: { id: { equals: $id } } } } }\n ) {\n items {\n company {\n id\n name\n }\n }\n }\n }\n }\n }\n`;\n\nexport const UPDATE_USER_AGENCY_ROLES = gql`\n mutation UpdateUserAgencyRole($data: AgencyUserUpdateInput!) {\n agencyUserUpdate(data: $data) {\n id\n roles\n }\n }\n`;\n\nexport const REMOVE_USER_FROM_AGENCY = gql`\n mutation DeleteUserAgency($data: AgencyUserDeleteInput) {\n agencyUserDelete(data: $data) {\n success\n }\n }\n`;\nexport const DELETE_AGENT = gql`\n mutation deleteAgent($agent: AgentDeleteInput) {\n agentDelete(data: $agent) {\n success\n }\n }\n`;\n\nexport const DELETE_MANAGER = gql`\n mutation deleteManager($manager: ManagerDeleteInput) {\n managerDelete(data: $manager) {\n success\n }\n }\n`;\n\nexport const UPDATE_AGENT = gql`\n mutation editAgentToManager($userId: ID, $agencyId: ID, $agentId: AgentDeleteInput) {\n agentDelete(data: $agentId) {\n success\n }\n\n managerCreate(\n data: { user: { connect: { id: $userId } }, agency: { connect: { id: $agencyId } } }\n ) {\n id\n }\n }\n`;\n\nexport const UPDATE_MANAGER = gql`\n mutation editManagerToAgent($userId: ID, $agencyId: ID, $managerId: ManagerDeleteInput) {\n managerDelete(data: $managerId) {\n success\n }\n\n agentCreate(\n data: { user: { connect: { id: $userId } }, agency: { connect: { id: $agencyId } } }\n ) {\n id\n }\n }\n`;\n","import { ValidationError } from '../../../shared/errors';\nimport { AGENCY_ROLES } from '../../../shared/constants';\nimport { isValidString } from '../../../shared/validators';\n\n/**\n * Validator on the User Role update operation\n *\n * @param {object} data - The data to validate\n *\n * @returns {void}\n */\nexport const updateUserRolesValidator = (data) => {\n const errors = [];\n\n if (!isValidString(data.id)) errors.push('This request is not valid');\n\n if (data.roles.length === 0) errors.push('The user must have at least one role in the agency');\n\n const validRoles = data.roles.every(\n (role) => role === AGENCY_ROLES.MANAGER || role === AGENCY_ROLES.AGENT,\n );\n\n if (!validRoles) errors.push('The roles assigned to the user are not valid');\n\n if (errors.length > 0) {\n throw new ValidationError(errors);\n }\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUsersListEvent = createEvent();\n\nexport const OnUsersListError = createEvent();\n\nexport const OnUpdateUserAgencyRolesEvent = createEvent();\n\nexport const OnUpdateUserAgencyRolesError = createEvent();\n\nexport const OnRemoveUserFromAgencyEvent = createEvent();\n\nexport const OnRemoveUserFromAgencyError = createEvent();\n\nexport const OnDeleteAgentEvent = createEvent();\n\nexport const OnDeleteAgentError = createEvent();\n\nexport const OnUpdateAgentEvent = createEvent();\n\nexport const OnUpdateAgentError = createEvent();\n\nexport const OnDeleteManagerEvent = createEvent();\n\nexport const OnDeleteManagerError = createEvent();\n\nexport const OnUpdateManagerEvent = createEvent();\n\nexport const OnUpdateManagerError = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport {\n AGENCY_USERS_LIST,\n DELETE_AGENT,\n DELETE_MANAGER,\n UPDATE_AGENT,\n UPDATE_MANAGER,\n UPDATE_USER_AGENCY_ROLES,\n REMOVE_USER_FROM_AGENCY,\n} from './team-queries';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { updateUserRolesValidator } from './team-validators';\nimport {\n OnDeleteAgentError,\n OnDeleteAgentEvent,\n OnDeleteManagerError,\n OnDeleteManagerEvent,\n OnRemoveUserFromAgencyError,\n OnRemoveUserFromAgencyEvent,\n OnUpdateAgentError,\n OnUpdateAgentEvent,\n OnUpdateManagerError,\n OnUpdateManagerEvent,\n OnUpdateUserAgencyRolesError,\n OnUpdateUserAgencyRolesEvent,\n OnUsersListError,\n OnUsersListEvent,\n} from './team-events';\n\n/**\n * Fetch user list\n *\n * @param {string} agencyId - The agency id\n * @param {number} page - The page to search the users from\n *\n * @returns {Promise} The request result\n */\nexport const fetchUsersList = async (agencyId, page = 1) => {\n const client = OnApolloClient.get();\n const first = 10;\n const skip = first * (page - 1);\n let response = null;\n\n try {\n response = await client.query({\n query: AGENCY_USERS_LIST,\n fetchPolicy: 'network-only',\n variables: { id: agencyId, first, skip },\n });\n } catch (e) {\n error('fetchUsersList', e);\n\n return OnUsersListError.dispatch(e.message);\n }\n\n log('fetchUsersList', response.data);\n\n OnUsersListEvent.dispatch(response.data);\n return response.data;\n};\n\n/**\n * Updates the roles of a user in a specific agency\n *\n * @param {string} id - The AgencyUser id\n * @param {Array} roles - The roles assigned to the user\n *\n * @returns {Promise} The request response\n */\nexport const updateUserRolesInAgency = async (id, roles) => {\n const client = OnApolloClient.get();\n let response = null;\n const data = {\n id,\n roles,\n };\n\n try {\n updateUserRolesValidator(data);\n } catch (e) {\n error('updateUserRolesInAgency');\n\n return OnUpdateUserAgencyRolesError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: UPDATE_USER_AGENCY_ROLES,\n variables: { data },\n });\n } catch (e) {\n error('updateUserRoles', e);\n\n return OnUpdateUserAgencyRolesError.dispatch(e);\n }\n\n log('updateUserRoles', response.data);\n\n OnUpdateUserAgencyRolesEvent.dispatch(response.data);\n};\n\n/**\n * Removes the user from the agency\n *\n * @param {string} id - Id of the AgencyUser record\n *\n * @returns {Promise} The request result\n */\nexport const removeUserFromAgency = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n const data = {\n id,\n };\n\n try {\n response = await client.mutate({\n mutation: REMOVE_USER_FROM_AGENCY,\n variables: { data },\n });\n } catch (e) {\n error('removeUserFromAgency', e);\n\n return OnRemoveUserFromAgencyError.dispatch(e);\n }\n\n log('removeUserFromAgency', response.data);\n OnRemoveUserFromAgencyEvent.dispatch(response.data);\n};\n\n/**\n * Function to delete Agent\n *\n * @param {string} id - id from the agent to delete\n * @param {boolean} force\n */\n\nexport const deleteAgent = async (id, force) => {\n const client = OnApolloClient.get();\n\n let response;\n\n try {\n response = await client.mutate({\n mutation: DELETE_AGENT,\n fetchPolicy: 'no-cache',\n variables: {\n agent: {\n id,\n force,\n },\n },\n });\n } catch (e) {\n error('deleteAgent', e);\n OnDeleteAgentError.dispatch(e);\n }\n\n OnDeleteAgentEvent.dispatch(response.data);\n fetchUsersList();\n return response;\n};\n\n/**\n * Function to delete manager\n *\n * @param {string} id - id from the manager to delete\n * @param {boolean} force\n */\n\nexport const deleteManager = async (id, force) => {\n const client = OnApolloClient.get();\n\n let response;\n\n try {\n response = await client.mutate({\n mutation: DELETE_MANAGER,\n fetchPolicy: 'no-cache',\n variables: {\n manager: {\n id,\n force,\n },\n },\n });\n } catch (e) {\n error('delete Manager', e);\n OnDeleteManagerError.dispatch(e);\n }\n\n OnDeleteManagerEvent.dispatch(response.data);\n fetchUsersList();\n return response;\n};\n\n/**\n * Function to update Agent\n *\n * @param {string} agentId - id from the agent to edit\n * @param {string} userId - id from the user to create a manager\n * @param {string} agencyId - id from the agency to create an manager there\n *\n */\n\nexport const updateAgent = async (agentId, userId, agencyId) => {\n const client = OnApolloClient.get();\n\n const agent = {\n id: agentId,\n force: true,\n };\n\n let response;\n\n try {\n response = await client.mutate({\n mutation: UPDATE_AGENT,\n fetchPolicy: 'no-cache',\n variables: { agentId: agent, userId, agencyId },\n });\n } catch (e) {\n error('updateAgent', e);\n OnUpdateAgentError.dispatch(e);\n }\n\n OnUpdateAgentEvent.dispatch(response.data);\n fetchUsersList(agencyId);\n return response;\n};\n\n/**\n * Function to update manager\n *\n * @param {string} managerId - id from the manager to update\n * @param {string} userId - id from the user to create a manager\n * @param {string} agencyId - id from the agency to create an agent there\n *\n */\n\nexport const updateManager = async (managerId, userId, agencyId) => {\n const client = OnApolloClient.get();\n\n const manager = {\n id: managerId,\n force: true,\n };\n\n let response;\n\n try {\n response = await client.mutate({\n mutation: UPDATE_MANAGER,\n fetchPolicy: 'no-cache',\n variables: { managerId: manager, userId, agencyId },\n });\n } catch (e) {\n error('updateManager', e);\n OnUpdateManagerError.dispatch(e);\n }\n\n OnUpdateManagerEvent.dispatch(response.data);\n fetchUsersList(agencyId);\n return response;\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { SelectField } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport { DialogForm } from '../../../../../shared/components';\nimport { updateUserRolesInAgency } from '../../team-actions';\nimport PropTypes from 'prop-types';\nimport { OnUpdateUserAgencyRolesError, OnUpdateUserAgencyRolesEvent } from '../../team-events';\n\nconst ROLES_OPTIONS = [\n { label: 'Manager', value: 'MANAGER' },\n { label: 'Agent', value: 'AGENT' },\n];\n\n/**\n * Function to update role\n *\n * @param {Function} onClose - function to close modal\n * @param {Function} isOpen - function to open modal\n * @param {object} user - user to update\n */\n\nconst UpdateDetailsForm = ({ onClose, isOpen, user }) => {\n const [roles, setRoles] = useState([]);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n if (isOpen) {\n const {\n 0: { roles },\n } = user.userAgencyUserRelation.items;\n setRoles(roles);\n }\n }, [user, isOpen]);\n\n useEventSubscription(OnUpdateUserAgencyRolesEvent, () => setLoading(false));\n\n useEventSubscription(OnUpdateUserAgencyRolesError, (e) => {\n setLoading(false);\n onErrorMixinFC(e);\n });\n\n const handleUpdate = useCallback(() => {\n setLoading(true);\n\n const {\n 0: { id },\n } = user.userAgencyUserRelation.items;\n\n updateUserRolesInAgency(id, roles);\n }, [user, roles]);\n\n return (\n \n \n \n );\n};\n\nUpdateDetailsForm.propTypes = {\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n user: PropTypes.object,\n};\n\nUpdateDetailsForm.defaultProps = {\n user: {},\n};\n\nexport default UpdateDetailsForm;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Table } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport UsersTableRow from './UsersTableRow';\nimport UpdateDetailsForm from './team-actions/UpdateDetailsForm';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport YesNoDialog from '../../../../shared/components/YesNoDialog';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport { fetchUsersList, removeUserFromAgency } from '../team-actions';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport {\n OnRemoveUserFromAgencyError,\n OnRemoveUserFromAgencyEvent,\n OnUpdateUserAgencyRolesEvent,\n OnUsersListError,\n OnUsersListEvent,\n} from '../team-events';\n\nconst Body = styled(Table.Body)`\n min-height: 335px;\n`;\n\nconst columns = '68px repeat(5 , 1fr) 105px';\n\n/**\n * The users table component\n *\n * @param {object} props - The react component props object\n * @param {string} props.agencyId - The agency to fetch the users from\n * @param {number} props.page - The page to reduce the results of users\n * @param {Function} props.onUsersCount - Callback that triggers when the final count of users in this agency is available\n *\n * @returns {React.FC} The component to render\n */\nfunction UsersTable({ agencyId, page, onUsersCount }) {\n const [users, setUsers] = useState([]);\n const [loading, setLoading] = useState(true);\n const [updateModal, setUpdateModal] = useState({ open: false, selected: {} });\n const [deleteModal, setDeleteModal] = useState({ open: false, selected: {}, loading: false });\n\n useEffect(() => {\n setLoading(true);\n\n fetchUsersList(agencyId, page);\n }, [agencyId, page]);\n\n useEventSubscription(OnUsersListEvent, ({ usersList }) => {\n setLoading(false);\n\n onUsersCount(usersList.count);\n setUsers(usersList.items);\n });\n\n useEventSubscription(OnUpdateUserAgencyRolesEvent, () => {\n setUpdateModal({ open: false, selected: {} });\n\n Toast.success('Success', 'User roles in agency updated');\n\n if (page === 1) {\n setLoading(true);\n fetchUsersList(agencyId, page);\n }\n });\n\n useEventSubscription(OnRemoveUserFromAgencyEvent, () => {\n setDeleteModal({ open: false, selected: {}, loading: false });\n\n Toast.success('Success', 'User successfully removed from agency');\n\n if (page === 1) {\n setLoading(true);\n fetchUsersList(agencyId, page);\n }\n });\n\n useEventSubscription(OnUsersListError, onErrorMixinFC);\n\n useEventSubscription(OnRemoveUserFromAgencyError, (e) => {\n setDeleteModal((state) => ({ ...state, loading: false }));\n\n onErrorMixinFC(e);\n });\n\n const handleEdit = useCallback((user) => {\n setUpdateModal({\n open: true,\n selected: user,\n });\n }, []);\n\n const handleDeleteClick = useCallback(\n (user) =>\n setDeleteModal({\n open: true,\n selected: user,\n }),\n [],\n );\n\n const handleDelete = useCallback(() => {\n const {\n 0: { id },\n } = deleteModal.selected.userAgencyUserRelation.items;\n\n setDeleteModal((state) => ({ ...state, loading: true }));\n\n removeUserFromAgency(id);\n }, [deleteModal]);\n\n return (\n \n \n #\n NAME\n EMAIL\n ROLES\n STATUS\n LAST SIGN IN\n ACTIONS\n \n \n {(user, i) => (\n \n \n \n )}\n \n setUpdateModal({ open: false, selected: {} })}\n />\n setDeleteModal((state) => ({ ...state, open: false }))}\n onYes={handleDelete}\n onNo={() => setDeleteModal((state) => ({ ...state, open: false }))}\n isLoading={deleteModal.loading}\n />\n
    \n );\n}\n\nUsersTable.propTypes = {\n agencyId: PropTypes.string.isRequired,\n page: PropTypes.number.isRequired,\n onUsersCount: PropTypes.func.isRequired,\n};\n\nexport default UsersTable;\n","import React, { useState, useCallback } from 'react';\nimport * as toast from 'shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport PropTypes from 'prop-types';\nimport { Button, Form, SelectField, InputField, Dialog } from '@8base/boost';\nimport { hasError } from 'apollo-client/core/ObservableQuery';\nimport { createInvitation } from './../../../invitations/invitations-actions';\nimport { USER_INVITATION_TYPES } from './../../../invitations/invitations-model';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport {\n OnCreateInvitationError,\n OnCreateInvitationEvent,\n} from 'modules/my-account/invitations/invitation-events';\n\nexport const Invitation = ({ onClose, isOpen, agencyId, agencyName }) => {\n const formDefault = {\n type: '',\n email: '',\n };\n const [form, setForm] = useState(formDefault);\n const [formErrors, setFormErrors] = useState({\n type: {},\n email: {},\n });\n const [loading, setLoading] = useState(false);\n const handleChange = useCallback(({ target }) => {\n const { value, name } = target;\n setFormErrors((state) => ({ ...state, [name]: {} }));\n setForm((state) => ({ ...state, [name]: value }));\n }, []);\n\n const handleSelectChange = useCallback((type) => {\n setFormErrors((state) => ({ ...state, type: {} }));\n setForm((state) => ({ ...state, type }));\n }, []);\n\n useEventSubscription(OnCreateInvitationEvent, () => {\n setForm(formDefault);\n onClose();\n toast.success('Success', 'Invitation send successfully');\n setLoading(false);\n });\n\n useEventSubscription(OnCreateInvitationError, (error) => {\n onErrorMixinFC(error);\n setLoading(false);\n });\n\n const saveInvitation = useCallback(() => {\n const data = {\n ...form,\n agency: {\n connect: {\n id: agencyId,\n },\n },\n };\n setLoading(true);\n createInvitation(data);\n }, [form, agencyId]);\n\n const disabledSubmit = hasError(formErrors);\n\n return (\n <>\n \n \n \n
    \n \n \n \n \n
    \n \n \n \n \n \n \n );\n};\nInvitation.propTypes = {\n onClose: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n agencyId: PropTypes.string.isRequired,\n agencyName: PropTypes.string.isRequired,\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { OnSessionFetch } from '../../../shared/session/session-events';\nimport { Card, Pagination, Row } from '@8base/boost';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport UsersTable from './components/UsersTable';\nimport { Invitation } from './components/invite-team-member/Invitation';\nimport { useHistory } from 'react-router-dom';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { Box } from '../../../shared/components/Box';\nimport { CreateButton } from 'shared/components';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { OnRemoveUserFromAgencyEvent, OnUpdateUserAgencyRolesEvent } from './team-events';\n\nconst CardHeader = styled(Card.Header)`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst StatusTeam = ({ color1, color2, dato }) => (\n \n {dato}\n

    \n);\n\nconst TeamView = (props) => {\n const [pagination, setPagination] = useState({ page: 1, total: 0 });\n const [isInviteModalOpen, setisInviteModalOpen] = useState(false);\n const agency = useAgency();\n const history = useHistory();\n\n useEffect(() => {\n const user = OnSessionFetch.get().user;\n const validUser = user?.userAdminRelation.count > 0;\n if (!validUser) {\n history.goBack();\n }\n }, [history]);\n\n useEventSubscription(OnUpdateUserAgencyRolesEvent, () => {\n if (pagination.page !== 1) {\n setPagination((state) => ({ ...state, page: 1 }));\n }\n });\n\n useEventSubscription(OnRemoveUserFromAgencyEvent, () => {\n if (pagination.page !== 1) {\n setPagination((state) => ({ ...state, page: 1 }));\n }\n });\n\n const handlePageChange = useCallback(\n (page) => setPagination((state) => ({ ...state, page })),\n [],\n );\n\n const handleTotalChange = useCallback(\n (total) => setPagination((state) => ({ ...state, total })),\n [],\n );\n\n return (\n \n \n \n setisInviteModalOpen(true)}\n text=\"Create Team Member\"\n />\n \n \n \n \n \n \n \n \n \n setisInviteModalOpen(false)}\n agencyId={agency.id}\n agencyName={agency.name}\n />\n \n \n );\n};\n\nStatusTeam.propTypes = {\n dato: PropTypes.string.isRequired,\n color1: PropTypes.string.isRequired,\n color2: PropTypes.string.isRequired,\n};\n\nexport { TeamView };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport SettingsMenu from '../../settings/SettingsView';\nimport { Loader, Row } from '@8base/boost';\nimport { Margin } from '../../../shared/components';\n/**\n * Component that renders it's children with the layout of the settings\n *\n * @param {object} props Props\n * @param {object} props.children React element\n * @returns {object} React element\n */\nexport default function SettingsLayout({ children, loading }) {\n return (\n <>\n \n {loading ? (\n \n \n \n ) : (\n \n {children}\n \n )}\n \n );\n}\nSettingsLayout.defaultProps = {\n loading: false,\n};\nSettingsLayout.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n loading: PropTypes.bool,\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnUpdateCompanySubscription = createEvent();\n\nexport const OnUpdateCompanySubscriptionError = createEvent();\n\nexport const OnConfirmSubscriptionChange = createEvent();\n\nexport const OnConfirmSubscriptionChangeError = createEvent();\n\nexport const OnCancelSubscriptionChange = createEvent();\n\nexport const OnCancelSubscriptionChangeError = createEvent();\n\nexport const OnFetchCompanySubscriptionPlanEvent = createEvent();\n\nexport const OnFetchCompanySubscriptionPlanError = createEvent();\n\nexport const OnFetchAvailableSubscriptionPlansEvent = createEvent();\n\nexport const OnFetchAvailableSubscriptionPlansError = createEvent();\n","import { isValidString, isValidInteger } from '@cobuildlab/validation-utils';\nimport { ValidationError } from '../../../../shared/errors';\n\n/**\n * Create payment method validator\n *\n * @param {object} data - The data to create the payment method\n *\n * @returns {void}\n */\nexport function updateCompanySubscriptionValidator(data) {\n const errors = [];\n\n if (!isValidString(data.companySubscriptionId)) {\n errors.push('The company should have a valid subscription plan already');\n }\n\n if (!isValidString(data.subscriptionPlanId)) {\n errors.push('The selected company should be a valid one');\n }\n\n if (!isValidInteger(data.numberOfSeats)) {\n errors.push('The number of seats should be a valid integer');\n }\n\n if (errors.length > 0) throw new ValidationError(errors);\n}\n","import { OnApolloClient } from '../../../../shared/session/session-events';\nimport { INVOICE_STATUS } from '@cobuildlab/lead-volt-share';\nimport { fetchPaymentIntentFromInvoice } from '../billing-actions';\nimport { voidInvoice } from '../billing-actions';\nimport { log, error } from '@cobuildlab/pure-logger';\nimport {\n FETCH_COMPANY_SUBSCRIPTION_PLAN,\n FETCH_COMPANY_SUBSCRIPTION_PLANS,\n FETCH_SUBSCRIPTION_PLANS,\n} from './subscription-plan-queries';\nimport {\n OnUpdateCompanySubscription,\n OnUpdateCompanySubscriptionError,\n OnConfirmSubscriptionChange,\n OnConfirmSubscriptionChangeError,\n OnCancelSubscriptionChange,\n OnCancelSubscriptionChangeError,\n OnFetchCompanySubscriptionPlanEvent,\n OnFetchCompanySubscriptionPlanError,\n OnFetchAvailableSubscriptionPlansEvent,\n OnFetchAvailableSubscriptionPlansError,\n} from './subscription-plan-events';\nimport { updateCompanySubscriptionValidator } from './subscription-plan-validators';\n\n/**\n * Fetches a subscription plan\n *\n * @param {string} id - The subscription plan id\n *\n * @returns {Promise} The request result\n */\nexport const fetchSubscriptionPlan = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COMPANY_SUBSCRIPTION_PLAN,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchSubscriptionPlan', e);\n\n return OnFetchCompanySubscriptionPlanError.dispatch(e);\n }\n\n log('fetchSubscriptionPlan', response.data);\n\n return OnFetchCompanySubscriptionPlanEvent.dispatch(response.data);\n};\n\n/**\n * Fetches the current company subscription plan\n *\n * @param {string} id - The company id\n *\n * @returns {Promise} The request result\n */\nexport const fetchCompanyCurrentSubscription = async (id) => {\n const client = OnApolloClient.get();\n const first = 1;\n const skip = 0;\n const orderBy = 'createdAt_DESC';\n const filter = { company: { id: { equals: id } } };\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COMPANY_SUBSCRIPTION_PLANS,\n variables: { filter, first, skip, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchCompanyCurrentSubscription', e);\n\n return OnFetchCompanySubscriptionPlanError.dispatch(e);\n }\n\n log('fetchCompanyCurrentSubscription', response.data);\n\n return OnFetchCompanySubscriptionPlanEvent.dispatch(response.data);\n};\n\n/**\n * Updates a company subscription\n *\n * @param {object} data - The data object\n *\n * @returns {Promise} The request result\n */\nexport const updateCompanySubscription = async (data) => {\n let response = null;\n\n try {\n updateCompanySubscriptionValidator(data);\n } catch (e) {\n error('updateCompanySubscription', e);\n\n return OnUpdateCompanySubscriptionError.dispatch(e);\n }\n\n try {\n response = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/change-subscription`,\n {\n method: 'post',\n body: JSON.stringify({\n ...data,\n }),\n },\n );\n } catch (e) {\n error('updateCompanySubscription', e);\n\n return OnUpdateCompanySubscriptionError.dispatch(e);\n }\n\n const result = await response.json();\n\n if (!response.ok) {\n const message = result.message ? result.message : 'Something happened, please try again';\n\n error('updateCompanySubscription', message);\n\n return OnUpdateCompanySubscriptionError.dispatch(new Error(message));\n }\n\n log('updateCompanySubscription', result);\n\n return OnUpdateCompanySubscription.dispatch(result);\n};\n\n/**\n * Confirms the subscription change in case it requires a payment method\n * or the card was declined\n *\n * @param {object} data - The data needed to confirm subscription payment\n * @param {object} stripe - The stripe object\n *\n * @returns {Promise} The request result\n */\nexport const confirmSubscriptionChange = async (data, stripe) => {\n const { invoice, paymentMethodId } = data;\n\n if (invoice.status === INVOICE_STATUS.OPEN) {\n let paymentIntent = null;\n\n try {\n paymentIntent = await fetchPaymentIntentFromInvoice(invoice.invoiceId);\n } catch (e) {\n error('confirmSubscriptionChange', e);\n\n return OnConfirmSubscriptionChangeError.dispatch(e);\n }\n\n if (\n paymentIntent.status === 'requires_action' ||\n paymentIntent.status === 'requires_payment_method'\n ) {\n let result = null;\n\n try {\n result = await stripe.confirmCardPayment(paymentIntent.client_secret, {\n payment_method: paymentMethodId,\n });\n } catch (e) {\n error('confirmSubscriptionChange', e);\n\n return OnConfirmSubscriptionChangeError.dispatch(e);\n }\n\n if (result.error) {\n return OnConfirmSubscriptionChangeError.dispatch(new Error(result.error.message));\n }\n\n return OnConfirmSubscriptionChange.dispatch(result);\n }\n\n if (paymentIntent.status === 'requires_payment_method') {\n return OnConfirmSubscriptionChangeError.dispatch(\n new Error(paymentIntent.last_payment_error.message),\n );\n }\n }\n};\n\n/**\n * Cancels the specified invoice that belongs to a\n * pending update in a subscription\n *\n * @param {string} stripeInvoiceId - The stripe invoice id\n *\n * @returns {Promise} The request result\n */\nexport const cancelSubscriptionChange = async (stripeInvoiceId) => {\n let invoice = null;\n\n try {\n invoice = await voidInvoice(stripeInvoiceId);\n } catch (e) {\n error('cancelSubscriptionChange', e);\n\n return OnCancelSubscriptionChangeError.dispatch(e);\n }\n\n log('cancelSubscriptionChange', invoice);\n\n return OnCancelSubscriptionChange.dispatch(invoice);\n};\n\n/**\n * Fetches the available plans\n *\n * @param {string} currentPlanId - The current plan id\n *\n * @returns {Promise} The request result\n */\nexport const fetchAvailablePlans = async (currentPlanId) => {\n const client = OnApolloClient.get();\n const orderBy = 'order_ASC';\n let response = null;\n const filter = {\n OR: [{ isFreeTrial: { equals: false } }, { id: { equals: currentPlanId } }],\n };\n\n try {\n response = await client.query({\n query: FETCH_SUBSCRIPTION_PLANS,\n variables: { filter, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchAvailablePlans', e);\n\n return OnFetchAvailableSubscriptionPlansError.dispatch(e);\n }\n\n log('fetchAvailablePlans', response.data);\n\n return OnFetchAvailableSubscriptionPlansEvent.dispatch(response.data);\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport {\n Heading as BoostHeading,\n Dialog,\n Row,\n Column,\n Loader,\n Button,\n useModal,\n} from '@8base/boost';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useSubscriptionPlans } from '../../../../onboarding/onboarding-hooks';\nimport { PlanCard } from '../../../../company/components/PlanCard';\nimport { PrimaryBtn as PrimaryButton } from '../../../../../shared/components/ui/buttons/PrimaryBtn';\nimport { updateCompanySubscription } from '../subscription-plan-actions';\nimport {\n OnUpdateCompanySubscription,\n OnUpdateCompanySubscriptionError,\n} from '../subscription-plan-events';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\n\nconst Heading = styled(BoostHeading)`\n letter-spacing: 0.5px !important;\n ${(props) => {\n switch (props.color) {\n case 'primary':\n return 'color: #3DB4AA';\n default:\n return 'color: #7D828C';\n }\n }}\n`;\n\nexport const modalId = 'change-subscription-plan-dialog';\n\n/**\n * Change plan dialog component\n *\n * @param {object} props - The component props object\n * @param {string} props.id - The id of the modal\n * @param {string} props.currentPlanId - The id of the currently used plan\n *\n * @returns {React.FC} The component to render\n */\nfunction ChangePlanDialog({ companySubscription, companyUsersCount }) {\n const { isOpen, closeModal } = useModal(modalId);\n const { items, loading, fetch } = useSubscriptionPlans({ isFreeTrial: false });\n const [dialogLoading, setDialogLoading] = useState(false);\n const [selected, setSelected] = useState('');\n const [seats, setSeats] = useState(0);\n\n useEffect(() => {\n if (isOpen) {\n fetch();\n }\n }, [fetch, isOpen]);\n\n useEffect(() => {\n if (companySubscription) {\n setSeats(companySubscription.numberOfSeats);\n setSelected(companySubscription.subscriptionPlan.id);\n }\n }, [companySubscription]);\n\n useSubscription(\n OnUpdateCompanySubscription,\n () => {\n setDialogLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnUpdateCompanySubscriptionError,\n (e) => {\n setDialogLoading(false);\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleChange = useCallback((plan) => {\n setSelected(plan.id);\n }, []);\n\n const handleSubmit = useCallback(() => {\n setDialogLoading(true);\n\n updateCompanySubscription({\n companySubscriptionId: companySubscription.id,\n subscriptionPlanId: selected,\n numberOfSeats: seats,\n });\n }, [seats, selected, companySubscription]);\n\n const plans = loading ? (\n \n ) : (\n items.map((subscription) => (\n \n ))\n );\n\n return (\n \n closeModal(modalId)} />\n \n \n \n Subscription Plan\n \n {plans}\n \n \n \n \n \n \n Save\n \n \n \n \n );\n}\n\nChangePlanDialog.propTypes = {\n companySubscription: PropTypes.object,\n companyUsersCount: PropTypes.number.isRequired,\n};\n\nChangePlanDialog.defaultProps = {\n companySubscription: null,\n};\n\nexport default ChangePlanDialog;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { Loader, Row as BoostRow, Paragraph, Text } from '@8base/boost';\nimport { retrieveUpcomingInvoice } from '../../billing-actions';\nimport { OnUpcomingInvoiceFetch, OnUpcomingInvoiceFetchError } from '../../billing-events';\nimport PropTypes from 'prop-types';\nimport * as Toast from '../../../../../shared/components/toast/Toast';\nimport * as moment from 'moment';\nimport styled from 'styled-components';\n\nconst Row = styled(BoostRow)`\n width: 150px;\n`;\n\n/**\n * Next invoice information component\n *\n * @param {object} props - The component's prop object\n * @param {string} props.companyId - The company id\n *\n * @returns {React.FC} The component to render\n */\nfunction NextInvoiceInformation({ companyId }) {\n const [invoice, setInvoice] = useState(null);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n setLoading(true);\n retrieveUpcomingInvoice(companyId);\n }, [companyId]);\n\n const retryFetch = useCallback(() => {\n setLoading(true);\n retrieveUpcomingInvoice(companyId);\n }, [companyId]);\n\n useSubscription(\n OnUpcomingInvoiceFetch,\n ({ invoice: nextInvoice }) => {\n setInvoice(nextInvoice);\n\n setLoading(false);\n setError(null);\n },\n [],\n );\n\n useSubscription(\n OnUpcomingInvoiceFetchError,\n (e) => {\n setError(e);\n setLoading(false);\n\n Toast.error('Could not show next invoice information, please try again.');\n },\n [],\n );\n\n if (loading) {\n return (\n \n \n \n );\n }\n\n if (error) {\n return (\n \n Retry\n \n );\n }\n\n return (\n \n You will be charged ${invoice.amount_due / 100} on{' '}\n {moment.unix(invoice.period_end).format('MM/DD/YYYY')}\n \n );\n}\n\nNextInvoiceInformation.propTypes = {\n companyId: PropTypes.string.isRequired,\n};\n\nexport default NextInvoiceInformation;\n","import React, { useEffect, useState, useCallback } from 'react';\nimport { Card, Loader, Button, Row, Paragraph, Column, Icon, Paper, withModal } from '@8base/boost';\nimport { useStripe } from '@stripe/react-stripe-js';\nimport { PrimaryBtn as PrimaryButton } from '../../../../../shared/components/ui/buttons/PrimaryBtn';\nimport ChangePlanDialog, { modalId } from './ChangePlanDialog';\nimport NextInvoiceInformation from './NextInvoiceInformation';\nimport { PlanCard } from '../../../../company/components/PlanCard';\nimport styled from 'styled-components';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { confirmSubscriptionChange, cancelSubscriptionChange } from '../subscription-plan-actions';\nimport {\n OnUpdateCompanySubscription,\n OnConfirmSubscriptionChange,\n OnConfirmSubscriptionChangeError,\n OnCancelSubscriptionChange,\n OnCancelSubscriptionChangeError,\n} from '../subscription-plan-events';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport * as Toast from '../../../../../shared/components/toast/Toast';\nimport PropTypes from 'prop-types';\n\nconst Title = styled.h3`\n font-size: 16px;\n font-weight: bold;\n line-height: 28px;\n`;\n\nconst Alert = styled(Paper)`\n box-shadow: none !important;\n border: 1px solid #d0d7dd;\n`;\n\n/**\n * Subscription plan changed component\n *\n * @returns {React.FC} The component to render\n */\nfunction SubscriptionPlanChanger({ company, companyUsersCount, openModal, closeModal }) {\n const stripe = useStripe();\n const [subscription, setSubscription] = useState(null);\n const [loading, setLoading] = useState(true);\n const [confirming, setConfirming] = useState(false);\n const [canceling, setCanceling] = useState(false);\n\n useEffect(() => {\n const sub = company?.subscriptions?.items[0];\n\n if (sub) {\n setSubscription(sub ? sub : null);\n setLoading(false);\n }\n }, [company]);\n\n useSubscription(\n OnUpdateCompanySubscription,\n ({ subscription: sub }) => {\n closeModal(modalId);\n\n if (!sub.pending_update) {\n return Toast.success('Success', 'Subscription plan changed successfully');\n }\n\n Toast.info('Info', 'Processing payment...');\n const [{ paymentMethodId }] = company.companyPaymentMethods.items;\n\n setConfirming(true);\n\n confirmSubscriptionChange(\n {\n invoice: {\n invoiceId: sub.latest_invoice.id,\n status: sub.latest_invoice.status,\n },\n paymentMethodId,\n },\n stripe,\n );\n },\n [company, stripe, closeModal],\n );\n\n useSubscription(\n OnConfirmSubscriptionChange,\n () => {\n setConfirming(false);\n\n Toast.success('Success', 'Subscription plan changed successfully');\n },\n [],\n );\n\n useSubscription(\n OnCancelSubscriptionChange,\n () => {\n setCanceling(false);\n\n Toast.success('Success', 'Subscription plan change canceled successfully');\n },\n [],\n );\n\n useSubscription(\n OnConfirmSubscriptionChangeError,\n (e) => {\n setConfirming(false);\n onErrorMixinFC(e);\n },\n [],\n );\n\n useSubscription(\n OnCancelSubscriptionChangeError,\n (e) => {\n setCanceling(false);\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleChange = useCallback(() => {\n if (!company) return Toast.warn('Wait until the form loads');\n\n const [paymentMethod] = company.companyPaymentMethods.items;\n\n if (!paymentMethod) return Toast.error('You need to register a payment method first');\n\n openModal(modalId);\n }, [company, openModal]);\n\n const handlePaySubscription = useCallback(() => {\n setConfirming(true);\n\n const [invoice] = company.companyInvoices.items;\n const [{ paymentMethodId }] = company.companyPaymentMethods.items;\n\n confirmSubscriptionChange(\n {\n invoice,\n paymentMethodId,\n },\n stripe,\n );\n }, [company, stripe]);\n\n const handleCancelChange = useCallback(() => {\n setCanceling(true);\n const [{ invoiceId }] = company.companyInvoices.items;\n\n cancelSubscriptionChange(invoiceId);\n }, [company]);\n\n return (\n \n \n Subscription Plan\n \n \n {loading ? (\n \n \n \n ) : (\n \n {subscription?.pendingUpdate && (\n \n \n \n \n You have a pending subscription change to another plan, please confirm or cancel\n this chage to continue let us know what are your preferences\n \n \n \n )}\n \n \n )}\n \n \n {subscription?.pendingUpdate ? (\n \n \n Confirm Payment\n \n \n Cancel Payment\n \n \n ) : (\n \n \n Change Plan\n \n \n \n )}\n \n \n \n );\n}\n\nSubscriptionPlanChanger.propTypes = {\n company: PropTypes.shape({\n id: PropTypes.string.isRequired,\n companyInvoices: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n invoiceId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n companyPaymentMethods: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n nameOnCard: PropTypes.string,\n addressLine1: PropTypes.string,\n addressLine2: PropTypes.string,\n city: PropTypes.string,\n state: PropTypes.string,\n last4: PropTypes.string,\n expireDate: PropTypes.string,\n paymentMethodId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n subscriptions: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n status: PropTypes.string,\n numberOfSeatsh: PropTypes.number,\n subscriptionPlan: PropTypes.object,\n stripeCustomerId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n }).isRequired,\n companyUsersCount: PropTypes.number.isRequired,\n openModal: PropTypes.func.isRequired,\n closeModal: PropTypes.func.isRequired,\n};\n\nexport default withModal(SubscriptionPlanChanger);\n","import gql from 'graphql-tag';\n\nexport const FETCH_COMPANY_PAYMENT_METHOD = gql`\n query FetchCompanyPaymentMethod($id: ID) {\n companyPaymentMethod(id: $id) {\n id\n nameOnCard\n expireDate\n last4\n addressLine1\n addressLine2\n city\n state\n country\n paymentMethodId\n company {\n id\n name\n }\n }\n }\n`;\n\nexport const FETCH_PAYMENT_METHODS = gql`\n query FetchPaymentMethods(\n $filter: CompanyPaymentMethodFilter\n $skip: Int\n $first: Int\n $last: Int\n $orderBy: [CompanyPaymentMethodOrderBy]\n ) {\n companyPaymentMethodsList(\n filter: $filter\n skip: $skip\n first: $first\n last: $last\n orderBy: $orderBy\n ) {\n count\n items {\n id\n nameOnCard\n expireDate\n last4\n addressLine1\n addressLine2\n city\n state\n country\n paymentMethodId\n company {\n id\n name\n }\n }\n }\n }\n`;\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnPaymentMethodUpdate = createEvent();\n\nexport const OnPaymentMethodUpdateError = createEvent();\n\nexport const OnFetchPaymentMethod = createEvent();\n\nexport const OnFetchPaymentMethodError = createEvent();\n\nexport const OnFetchCurrentPaymentMethodEvent = createEvent();\n\nexport const OnFetchCurrentPaymentMethodError = createEvent();\n","import { isValidString } from '@cobuildlab/validation-utils';\nimport { ValidationError } from '../../../../shared/errors';\n\n/**\n * Create payment method validator\n *\n * @param {object} data - The data to create the payment method\n *\n * @returns {void}\n */\nexport function updatePaymentMethodValidator(data) {\n const errors = [];\n\n if (!isValidString(data.cardHolderName)) {\n errors.push('The name on the card should be a valid string');\n }\n\n if (!isValidString(data.addressLine1)) {\n errors.push('The address line 1 should be a valid string');\n }\n\n if (!isValidString(data.city)) {\n errors.push('The city should be a valid string');\n }\n\n if (!isValidString(data.state)) {\n errors.push('The state should be a valid string');\n }\n\n if (errors.length > 0) throw new ValidationError(errors);\n}\n","import { FETCH_PAYMENT_METHODS, FETCH_COMPANY_PAYMENT_METHOD } from './payment-method-queries';\nimport { OnApolloClient, OnSessionFetch } from '../../../../shared/session/session-events';\nimport { createPaymentMethod } from '../billing-actions';\nimport {\n OnFetchCurrentPaymentMethodError,\n OnFetchCurrentPaymentMethodEvent,\n OnFetchPaymentMethod,\n OnFetchPaymentMethodError,\n OnPaymentMethodUpdate,\n OnPaymentMethodUpdateError,\n} from './payment-method-events';\nimport { error, log } from '@cobuildlab/pure-logger';\nimport { updatePaymentMethodValidator } from './payment-method-validators';\n\n/**\n * Updates the customer payment method\n *\n * @param {object} method - The data to create the payment method\n * @param {object} stripe - The stripe object\n * @param {object} elements - The elements object\n * @returns {Promise} The request result\n */\nexport const updatePaymentMethod = async (method, stripe, elements) => {\n const { user } = OnSessionFetch.get();\n const { addressLine1, addressLine2, city, state, cardHolderName, customerId, companyId } = method;\n let paymentMethod = null;\n\n try {\n updatePaymentMethodValidator(method);\n } catch (e) {\n error('updatePaymentMethod', e);\n\n return OnPaymentMethodUpdateError.dispatch(e);\n }\n\n const data = {\n billing_details: {\n address: {\n line1: addressLine1,\n line2: addressLine2,\n city: city,\n state: state,\n country: 'US',\n },\n email: user.email,\n name: cardHolderName,\n },\n metadata: { company_id: companyId },\n };\n\n try {\n paymentMethod = await createPaymentMethod(data, customerId, stripe, elements);\n } catch (e) {\n error('updatePaymentMethod', e);\n\n return OnPaymentMethodUpdateError.dispatch(e);\n }\n\n log('updatePaymentMethod', paymentMethod);\n\n return OnPaymentMethodUpdate.dispatch(paymentMethod);\n};\n\n/**\n * Fetches the specified company payment method\n *\n * @param {string} id - The payment method id\n *\n * @returns {Promise} The request result\n */\nexport const fetchCompanyPaymentMethod = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_COMPANY_PAYMENT_METHOD,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchCompanyPaymentMethod', e);\n\n return OnFetchPaymentMethodError.dispatch(e);\n }\n\n log('fetchCompanyPaymentMethod', response.data);\n\n return OnFetchPaymentMethod.dispatch(response.data);\n};\n\n/**\n * Fetches the current payment method used\n *\n * @param {string} id - The company id\n *\n * @returns {Promise} The request result\n */\nexport const fetchCurrentPaymentMethod = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n const first = 1;\n const orderBy = 'createdAt_DESC';\n const filter = { company: { id: { equals: id } } };\n\n try {\n response = await client.query({\n query: FETCH_PAYMENT_METHODS,\n variables: { filter, first, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchCurrentPaymentMethod', e);\n\n return OnFetchCurrentPaymentMethodError.dispatch(e);\n }\n\n log('fetchCurrentPaymentMethod', response.data);\n\n return OnFetchCurrentPaymentMethodEvent.dispatch(response.data);\n};\n","import React, { useCallback, useState, useEffect } from 'react';\nimport { PropTypes } from 'prop-types';\nimport DialogForm from '../../../../../shared/components/dialog/DialogForm';\nimport { PaymentForm } from './PaymentForm';\nimport { updatePaymentMethod } from '../payment-method-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { OnPaymentMethodUpdate, OnPaymentMethodUpdateError } from '../payment-method-events';\nimport * as Toast from '../../../../../shared/components/toast/Toast';\nimport { useModal } from '@8base/boost';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport { useElements, useStripe } from '@stripe/react-stripe-js';\n\n/**\n * This component is a Dialog/Modal with a form to update the Payment.\n *\n * @param {object} props - The component props object\n * @param {string} props.id - The id of the dialog\n *\n * @returns {React.FC} - The View in a Dialog/Modal\n */\nconst PaymentDialogForm = ({ id }) => {\n const elements = useElements();\n const stripe = useStripe();\n const { isOpen, args, closeModal } = useModal(id);\n const [ready, setReady] = useState(false);\n const [loading, setLoading] = useState(true);\n const [form, setForm] = useState(args.data ? args.data : {});\n\n useEffect(() => {\n if (!isOpen) {\n setReady(false);\n setLoading(true);\n }\n }, [isOpen]);\n\n useEffect(() => {\n setForm(\n args.data\n ? {\n customerId: args.data.customerId,\n companyId: args.data.companyId,\n cardHolderName: args.data.nameOnCard,\n addressLine1: args.data.addressLine1,\n addressLine2: args.data.addressLine2,\n city: args.data.city,\n state: args.data.state,\n card: {},\n }\n : { card: {} },\n );\n }, [args.data]);\n\n useEffect(() => {\n if (elements && stripe && ready) {\n setLoading(false);\n }\n }, [elements, stripe, ready]);\n\n useSubscription(\n OnPaymentMethodUpdate,\n () => {\n setLoading(false);\n\n Toast.success('Success', 'Payment method updated successfully');\n\n closeModal(id);\n },\n [],\n );\n\n useSubscription(\n OnPaymentMethodUpdateError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const handleSubmit = useCallback(() => {\n if (!stripe || !elements) {\n return Toast.warn('Wait a few seconds and try again...');\n }\n\n setLoading(true);\n\n updatePaymentMethod(form, stripe, elements);\n }, [stripe, elements, form]);\n\n const handleChange = useCallback((name, value) => {\n setForm((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const handleReady = useCallback(() => {\n setReady(true);\n }, []);\n\n return (\n closeModal(id)}\n onClickCreate={handleSubmit}\n isOpen={isOpen}\n isLoading={loading}>\n \n \n );\n};\n\nPaymentDialogForm.propTypes = {\n id: PropTypes.string.isRequired,\n};\n\nexport { PaymentDialogForm };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Row, Card, Button, Loader, NoData, Grid, useModal, styled } from '@8base/boost';\nimport { PaymentDialogForm } from './PaymentDialogForm';\nimport { fetchCompanyPaymentMethod } from '../payment-method-actions';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useAgency } from '../../../../../shared/hooks/useAgency';\nimport {\n OnFetchPaymentMethod,\n OnFetchPaymentMethodError,\n OnPaymentMethodUpdate,\n} from '../payment-method-events';\nimport { onErrorMixinFC } from '../../../../../shared/mixins';\nimport PropTypes from 'prop-types';\n\nconst Section = styled(Card.Section)`\n padding: 12px 24px !important;\n`;\n\nconst id = 'change-payment-dialog';\n\n/**\n * Payment method changed component\n *\n * @returns {React.FC} The component to render\n */\nfunction PaymentMethodChanger({ customerId, paymentMethodId }) {\n const agency = useAgency();\n const [companyId, setCompanyId] = useState(agency.company.id);\n const [method, setPaymentMethod] = useState(null);\n const [loading, setLoading] = useState(paymentMethodId ? true : false);\n const { openModal } = useModal(id);\n\n const fetch = useCallback(() => {\n if (paymentMethodId) {\n setLoading(true);\n fetchCompanyPaymentMethod(paymentMethodId);\n }\n }, [paymentMethodId]);\n\n useEffect(() => {\n if (agency.company.id !== companyId) {\n setCompanyId(agency.company.id);\n }\n }, [agency, companyId]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n const handleClick = useCallback(() => {\n openModal(id, {\n data: {\n ...method,\n companyId,\n customerId,\n },\n });\n }, [openModal, customerId, companyId, method]);\n\n useSubscription(\n OnFetchPaymentMethod,\n ({ companyPaymentMethod }) => {\n setPaymentMethod(companyPaymentMethod);\n setLoading(false);\n },\n [],\n );\n\n useSubscription(\n OnPaymentMethodUpdate,\n () => {\n fetch();\n },\n [fetch],\n );\n\n useSubscription(\n OnFetchPaymentMethodError,\n (e) => {\n onErrorMixinFC(e);\n },\n [],\n );\n\n let content = null;\n\n /**\n * If component is loading, then render a loader\n */\n if (loading)\n content = (\n
    \n \n \n \n
    \n );\n\n /**\n * If component finished loading and payment method exists,\n * render card information\n */\n if (!loading && method && method.last4)\n content = (\n <>\n
    \n \n Credit Card\n {`**** **** **** ${method.last4}`}\n \n
    \n
    \n \n Expiration Date\n {method.expireDate}\n \n
    \n \n );\n\n /**\n * If component finished loading and there is no payment method,\n * then render the no data component\n */\n if (!loading && (!method || !method.last4))\n content = (\n
    \n \n
    \n );\n\n return (\n \n \n \n \n \n \n {content}\n \n \n );\n}\n\nPaymentMethodChanger.propTypes = {\n paymentMethodId: PropTypes.string,\n customerId: PropTypes.string,\n};\n\nPaymentMethodChanger.defaultProps = {\n paymentMethodId: null,\n customerId: null,\n};\n\nexport default PaymentMethodChanger;\n","import React from 'react';\r\nimport { INVOICE_STATUS } from '@cobuildlab/lead-volt-share';\r\nimport { Tag as BoostTag } from '@8base/boost';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\n\r\nconst Tag = styled(BoostTag)`\r\n ${(props) => {\r\n switch (props.type) {\r\n case INVOICE_STATUS.DRAFT:\r\n return `\r\n color: #1E87F6 !important;\r\n border-color: #1E87F6 !important;\r\n background-color: rgba(30, 195, 246, 0.15) !important;\r\n `;\r\n case INVOICE_STATUS.OPEN:\r\n return `\r\n color: #F6C01E !important;\r\n border-color: #F6C01E !important;\r\n background-color: rgba(246,192,30,0.15) !important;\r\n `;\r\n case INVOICE_STATUS.PAID:\r\n return `\r\n color: #3DB4AA !important;\r\n border-color: #3DB4AA !important;\r\n background-color: rgba(61,180,170,0.1) !important;\r\n `;\r\n case INVOICE_STATUS.VOID:\r\n return `\r\n color: rgb(125, 130, 140) !important;\r\n border-color: rgb(125, 130, 140) !important;\r\n background-color: rgba(125, 130, 140, 0.1) !important;\r\n `;\r\n case INVOICE_STATUS.UNCOLLECTIBLE:\r\n return `\r\n color: #FF0000 !important;\r\n border-color: #FF0000 !important;\r\n background-color: rgba(255,0,0,0.08) !important;\r\n `;\r\n default:\r\n return `\r\n color: #3DB4AA !important;\r\n border-color: #3DB4AA !important;\r\n background-color: rgba(61,180,170,0.1) !important;\r\n `;\r\n }\r\n }}\r\n`;\r\n\r\n/**\r\n * This component show a text with a pre-format text\r\n *\r\n * @param {string} status - refer to the status text/string for the History Table\r\n * @returns {string} return a Pre-format Text\r\n */\r\n\r\nconst StatusCell = ({ status }) => {\r\n return {status.split('_').join(' ')};\r\n};\r\n\r\nStatusCell.propTypes = {\r\n status: PropTypes.string.isRequired,\r\n};\r\n\r\nexport default StatusCell;\r\n","import React, { useState, useEffect } from 'react';\nimport { Card, Grid, Table, Row, Pagination, styled } from '@8base/boost';\nimport StatusCell from './StatusCell';\nimport { DateBox } from '../../../../shared/components';\nimport { useCompanyInvoices } from '../billing-hooks';\nimport PropTypes from 'prop-types';\n\nconst TableContainer = styled(Table)`\n & div[role='loader'] > div[role='loader'] div {\n border-color: #3db4aa !important;\n }\n`;\n\nconst Body = styled(Table.Body)`\n height: 275px;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\n/**\n * Billing history component\n *\n * @param {object} props - The components prop object\n * @param {string} props.companyId - The company id\n * @param {string} props.invoice - The latest invoice\n *\n * @returns {React.FC} The component to render\n */\nfunction BillingHistory({ companyId, latestInvoice }) {\n const [page, setPage] = useState(1);\n const { items, count, loading, refetch } = useCompanyInvoices(companyId, page);\n\n useEffect(() => {\n if (latestInvoice.id || latestInvoice.status) {\n refetch();\n }\n }, [latestInvoice.id, latestInvoice.status, refetch]);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n Date\n Item Name\n Status\n Amount\n \n \n {(invoice) => (\n \n \n \n \n Subscription\n \n \n \n ${invoice.total}\n \n )}\n \n \n \n \n \n \n \n \n \n );\n}\n\nBillingHistory.propTypes = {\n companyId: PropTypes.string.isRequired,\n latestInvoice: PropTypes.object,\n};\n\nBillingHistory.defaultProps = {\n latestInvoice: {},\n};\n\nexport default BillingHistory;\n","import { useState, useEffect, useCallback } from 'react';\nimport { fetchCompanyInvoices } from './billing-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { LIST_INITIAL_STATE } from '../../../shared/constants';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { OnFetchCompanyInvoicesError, OnFetchCompanyInvoicesEvent } from './billing-events';\n\n/**\n * Hook to use company invoices as a list of items\n *\n * @param {string} companyId - The company id\n * @param {number} page - The page to fetch\n *\n * @returns {Promise} The request result\n */\nexport function useCompanyInvoices(companyId, page = 1) {\n const [state, setState] = useState(LIST_INITIAL_STATE);\n\n const fetch = useCallback(() => {\n setState((state) => ({\n ...state,\n loading: true,\n }));\n fetchCompanyInvoices(companyId, page);\n }, [companyId, page]);\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n useEventSubscription(OnFetchCompanyInvoicesEvent, ({ companyInvoicesList }) => {\n setState((state) => ({\n ...state,\n items: companyInvoicesList.items,\n count: companyInvoicesList.count,\n loading: false,\n }));\n });\n\n useEventSubscription(OnFetchCompanyInvoicesError, (e) => {\n onErrorMixinFC(e);\n\n setState((state) => ({\n ...state,\n items: [],\n count: 0,\n loading: true,\n }));\n });\n\n return {\n ...state,\n refetch: fetch,\n };\n}\n","import React, { useCallback, useState, useEffect } from 'react';\r\nimport { Dialog, Paragraph, Row, Button, Column, Text as BoostText, useModal } from '@8base/boost';\r\nimport { useSubscription } from '@cobuildlab/react-simple-state';\r\nimport { OnSubscriptionCanceled, OnSubscriptionCanceledError } from '../billing-events';\r\nimport { cancelSubscription } from '../billing-actions';\r\nimport { PlanCard } from '../../../company/components/PlanCard';\r\nimport { onErrorMixinFC } from '../../../../shared/mixins';\r\nimport PropTypes from 'prop-types';\r\nimport moment from 'moment';\r\nimport styled from '@emotion/styled';\r\n\r\nconst Note = styled(Paragraph)`\r\n color: #a5afb6;\r\n margin-top: 5px;\r\n`;\r\n\r\nconst Text = styled(BoostText)`\r\n font-size: 1.3rem !important;\r\n`;\r\n\r\nexport const modalId = 'cancel-subscription-dialog';\r\n\r\n/**\r\n * This Component show the Name and description of the Plan to Cancel\r\n *\r\n * @returns {React.FC} - The component to render\r\n */\r\nfunction CancelSubscriptionDialog() {\r\n const [loading, setLoading] = useState(false);\r\n const { isOpen, args, closeModal } = useModal(modalId);\r\n\r\n useEffect(() => {\r\n if (!isOpen) {\r\n setLoading(false);\r\n }\r\n }, [isOpen]);\r\n\r\n const handleClose = useCallback(() => {\r\n closeModal(modalId);\r\n }, [closeModal]);\r\n\r\n const handleConfirm = useCallback(() => {\r\n setLoading(true);\r\n\r\n cancelSubscription(args.companySubscription.id);\r\n }, [args.companySubscription]);\r\n\r\n useSubscription(\r\n OnSubscriptionCanceled,\r\n () => {\r\n closeModal(modalId);\r\n },\r\n [],\r\n );\r\n\r\n useSubscription(\r\n OnSubscriptionCanceledError,\r\n (e) => {\r\n setLoading(false);\r\n\r\n onErrorMixinFC(e);\r\n },\r\n [],\r\n );\r\n\r\n const companySubscription = args.companySubscription || {};\r\n const expireDate = companySubscription.expireDate\r\n ? moment(companySubscription.expireDate).format('MM/DD/YYYY')\r\n : null;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n Are you sure you want to cancel? Your subscription will be cancelled for the following\r\n plan:\r\n \r\n \r\n \r\n You will still have full access to your workspace until{' '}\r\n {expireDate}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nCancelSubscriptionDialog.propTypes = {\r\n companySubscription: PropTypes.shape({\r\n expireDate: PropTypes.string.isRequired,\r\n subscriptionPlan: PropTypes.object.isRequired,\r\n }).isRequired,\r\n};\r\n\r\nexport default CancelSubscriptionDialog;\r\n","import React, { useCallback } from 'react';\nimport { Card, Row, Text, Button, useModal } from '@8base/boost';\nimport { PropTypes } from 'prop-types';\nimport CancelSubscriptionDialog, { modalId } from './CancelSubscriptionDialog';\nimport styled from 'styled-components';\n\nconst Title = styled.h3`\n font-size: 16px;\n font-weight: bold;\n line-height: 28px;\n`;\n\n/**\n * Cancel plan card component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.companySubscription - The current company subscription\n *\n * @returns {React.FC} The component to render\n */\nfunction CancelPlanCard({ companySubscription }) {\n const { openModal } = useModal(modalId);\n\n const handleCancel = useCallback(() => {\n openModal(modalId, {\n companySubscription,\n });\n }, [openModal, companySubscription]);\n\n return (\n \n \n Cancel Subscription\n \n \n \n \n You can cancel at anytime\n \n \n \n \n );\n}\n\nCancelPlanCard.propTypes = {\n companySubscription: PropTypes.object.isRequired,\n};\n\nexport default CancelPlanCard;\n","import React, { useState, useCallback, useEffect } from 'react';\nimport { Card, Column, Row, Loader, Scrollable } from '@8base/boost';\nimport { useStripe, useElements } from '@stripe/react-stripe-js';\nimport { useSubscription } from '@cobuildlab/react-simple-state';\nimport { PlanCard } from '../../../company/components/PlanCard';\nimport { PrimaryBtn as Button } from '../../../../shared/components/ui/buttons/PrimaryBtn';\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\nimport { renewCompanySubscription } from '../billing-actions';\nimport { OnSubscriptionRenew, OnSubscriptionRenewError } from '../billing-events';\nimport { useSubscriptionPlans } from '../../../onboarding/onboarding-hooks';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\n\nconst Title = styled.h3`\n font-size: 16px;\n font-weight: bold;\n line-height: 28px;\n`;\n\nconst PlanList = styled.div`\n max-height: 200px;\n`;\n\nconst { CANCELED } = SUBSCRIPTION_STATUS;\n\n/**\n * The renovate subscription component\n *\n * @param {object} props - The component props\n * @param {object} props.company - The company to renew the subscription from\n *\n * @returns {React.FC} The component to render\n */\nfunction RenovateSubscription({ company }) {\n const { items, loading: fetchLoading } = useSubscriptionPlans({ isFreeTrial: false });\n const [loading, setLoading] = useState(false);\n const [form, setForm] = useState({});\n const [subscription] = company.subscriptions.items;\n const stripe = useStripe();\n const elements = useElements();\n\n useEffect(() => {\n const [paymentMethod] = company.companyPaymentMethods.items;\n const [sub] = company.subscriptions.items;\n const [invoice] = company.companyInvoices.items;\n\n setForm({\n companyId: company.id,\n subscriptionPlan: sub.status !== CANCELED ? sub.subscriptionPlan : null,\n numberOfSeats: sub.numberOfSeats,\n status: sub.status,\n stripeCustomerId: sub.stripeCustomerId,\n stripeInvoiceId: invoice.invoiceId,\n paymentMethodId: paymentMethod?.paymentMethodId,\n });\n }, [company]);\n\n const handleChange = useCallback((name, value) => {\n setForm((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const handleSeatsChange = useCallback((change) => {\n setForm((state) => ({\n ...state,\n numberOfSeats: typeof change === 'number' ? change : change(state.numberOfSeats),\n }));\n }, []);\n\n const handleSubmit = useCallback(() => {\n const [subscription] = company.subscriptions.items;\n setLoading(true);\n\n if (!stripe || !elements) return Toast.warn('Try again in a few seconds...');\n\n renewCompanySubscription(form, subscription, stripe, elements);\n }, [company, form, stripe, elements]);\n\n useSubscription(\n OnSubscriptionRenew,\n () => {\n setLoading(false);\n\n Toast.success('Success', 'Subscription renewed, recovering information...');\n },\n [],\n );\n\n useSubscription(\n OnSubscriptionRenewError,\n (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n },\n [],\n );\n\n const plans = items.map((plan) => (\n handleChange('subscriptionPlan', plan)}\n numberOfSeats={form.numberOfSeats}\n min={subscription.numberOfSeats}\n onQuantityChange={handleSeatsChange}\n readOnly={subscription.status !== CANCELED}\n />\n ));\n\n return (\n \n \n Renew Subscription\n \n \n {fetchLoading ? (\n \n \n \n ) : (\n \n \n {plans}\n \n \n )}\n \n \n \n \n \n \n \n );\n}\n\nRenovateSubscription.propTypes = {\n company: PropTypes.shape({\n id: PropTypes.string.isRequired,\n companyInvoices: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n invoiceId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n companyPaymentMethods: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n nameOnCard: PropTypes.string,\n addressLine1: PropTypes.string,\n addressLine2: PropTypes.string,\n city: PropTypes.string,\n state: PropTypes.string,\n last4: PropTypes.string,\n expireDate: PropTypes.string,\n paymentMethodId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n subscriptions: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n status: PropTypes.string,\n numberOfSeats: PropTypes.number,\n subscriptionPlan: PropTypes.object,\n stripeCustomerId: PropTypes.string,\n }),\n ).isRequired,\n }).isRequired,\n }).isRequired,\n};\n\nexport default RenovateSubscription;\n","import React, { useState, useEffect, useRef } from 'react';\r\nimport { Redirect } from 'react-router-dom';\r\nimport { Row, Loader } from '@8base/boost';\r\nimport { Box } from '../../../shared/components/Box';\r\nimport Layout from '../components/Layout';\r\nimport { Column, NoData } from '@8base/boost';\r\nimport { SUBSCRIPTION_STATUS } from '@cobuildlab/lead-volt-share';\r\nimport SubscriptionPlanChanger from './subscription-plan/components/SubscriptionPlanChanger';\r\nimport PaymentMethodChanger from './payment-method/components/PaymentMethodChanger';\r\nimport BillingHistory from './components/BillingHistory';\r\nimport CancelPlanCard from './components/CancelPlanCard';\r\nimport RenovateSubscription from './components/RenovateSubscription';\r\nimport { useCompany } from '../../company/company-hooks';\r\nimport { useAgency } from '../../../shared/hooks/useAgency';\r\nimport { useUser } from '../../../shared/hooks/useUser';\r\nimport { onErrorMixinFC } from '../../../shared/mixins';\r\nimport withSession from '../../../shared/hoc/withSession';\r\nimport { fetchSession } from '../../auth/auth.actions';\r\n\r\nconst { CANCELED, INCOMPLETE } = SUBSCRIPTION_STATUS;\r\n\r\n/**\r\n * A Component to show information about the billing info and the Subcription Plan of a Company\r\n *\r\n * @returns {React.FC} The component to render\r\n */\r\nfunction BillingView() {\r\n const [user, loadingUser] = useUser();\r\n const agency = useAgency();\r\n const [companyId, setCompanyId] = useState(agency.company.id);\r\n const { data, loading, error, setCompany } = useCompany(companyId);\r\n const prevSubStatus = useRef('');\r\n\r\n useEffect(() => {\r\n if (agency.company.id !== companyId) {\r\n setCompanyId(agency.company.id);\r\n setCompany(agency.company.id);\r\n }\r\n }, [agency, companyId, setCompany]);\r\n\r\n useEffect(() => {\r\n if (data) {\r\n const [subscription] = data.company.subscriptions.items;\r\n\r\n if (prevSubStatus.current !== '' && subscription.status !== prevSubStatus.current) {\r\n fetchSession();\r\n }\r\n\r\n prevSubStatus.current = subscription.status;\r\n }\r\n }, [data]);\r\n\r\n useEffect(() => {\r\n if (error) {\r\n onErrorMixinFC(error);\r\n }\r\n }, [error]);\r\n\r\n if (loading) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n if (error) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n /**\r\n * If user is loading, render a loading component\r\n */\r\n if (loadingUser) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n const { company, usersList } = data;\r\n const admins = user.userAdminRelation.items;\r\n const isAdminInCurrentAgency = admins.some(({ company: c }) => c.id === company.id);\r\n\r\n if (!isAdminInCurrentAgency) {\r\n return ;\r\n }\r\n\r\n const [subscription] = company.subscriptions.items;\r\n const [paymentMethod] = company.companyPaymentMethods.items;\r\n const [invoice] = company.companyInvoices.items;\r\n\r\n /**\r\n * If subscription is canceled, show renew subscription component\r\n */\r\n const renewal =\r\n subscription.status === CANCELED || subscription.status === INCOMPLETE ? (\r\n \r\n ) : null;\r\n\r\n /**\r\n * If subscription is canceled, hide the cancel plan card component\r\n */\r\n const cancel =\r\n subscription.status !== CANCELED && subscription.status !== INCOMPLETE ? (\r\n \r\n ) : null;\r\n\r\n if (loading) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n {renewal}\r\n {subscription.status !== CANCELED && subscription.status !== INCOMPLETE && (\r\n \r\n )}\r\n \r\n \r\n {cancel}\r\n \r\n \r\n );\r\n}\r\n\r\n/** export the Component with User Session Data */\r\nexport default withSession(BillingView);\r\n","import gql from 'graphql-tag';\n\nexport const agencyFragment = gql`\n fragment agencyFragment on Agency {\n id\n name\n createdAt\n quoteOfDay {\n title\n }\n company {\n id\n name\n }\n phoneCallSettings {\n id\n automaticCalls\n recordCalls\n campignAssineeFilter\n agency {\n id\n name\n }\n callCadenceConfig\n }\n ifsScore\n voicemailUrl\n }\n`;\n\nexport const QUERY_AGENCY_LIST = gql`\n query FetchAgenciesList($filter: AgencyFilter, $sort: [AgencySort!], $first: Int, $skip: Int) {\n agenciesList(filter: $filter, first: $first, skip: $skip, sort: $sort) {\n count\n items {\n ...agencyFragment\n }\n }\n }\n ${agencyFragment}\n`;\n\nexport const MUTATION_CREATE_AGENCY = gql`\n mutation CreateAgency($data: AgencyCreateInput!) {\n agencyCreate(data: $data) {\n ...agencyFragment\n }\n }\n ${agencyFragment}\n`;\n\nexport const MUTATION_UPDATE_AGENCY = gql`\n mutation UpdateAgency($data: AgencyUpdateInput!, $filter: AgencyKeyFilter) {\n agencyUpdate(data: $data, filter: $filter) {\n id\n name\n }\n }\n`;\n\nexport const MUTATION_DELETE_AGENCY = gql`\n mutation DeleteAgency($filter: AgencyKeyFilter) {\n agencyDelete(filter: $filter, force: true) {\n success\n }\n }\n`;\n","import { ValidationError } from '../../shared/errors';\nimport { isValidEmail, isValidString } from '../../shared/validators';\n\nconst agencyMessage = 'The agency must have a ';\nconst agencyMessageValid = `${agencyMessage} valid`;\nconst messages = {\n name: `${agencyMessageValid} name`,\n company: `${agencyMessageValid} company`,\n agents: `The agents emails must be valid`,\n};\n\nexport const agencyCreateUpdateValidator = (agency) => {\n let errors = [];\n\n if (!isValidString(agency.name)) errors.push(messages.name);\n\n if (!isValidString(agency.companyId)) errors.push(messages.company);\n\n if (agency.agents) {\n let email = agency.agents.find((agentMail) => !isValidEmail(agentMail));\n\n if (email) {\n errors.push(`${messages.agents}, \"${email}\" was given`);\n }\n }\n\n if (errors.length > 0) throw new ValidationError(errors);\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const OnAgencyError = createEvent();\n\nexport const OnAgencyListFetched = createEvent();\n\nexport const OnAgenyCreateEvent = createEvent();\n\nexport const OnAgencyPhoneCreateError = createEvent();\n\nexport const OnAgencyUpdateEvent = createEvent();\n\nexport const OnAgencyDeleteEvent = createEvent();\n","import { error, log } from '@cobuildlab/pure-logger';\nimport { OnApolloClient, OnSessionFetch } from '../../shared/session/session-events';\nimport { getRolesOnSelectedAgency } from '../../shared/utils/agency-utils';\nimport {\n QUERY_AGENCY_LIST,\n MUTATION_CREATE_AGENCY,\n MUTATION_UPDATE_AGENCY,\n MUTATION_DELETE_AGENCY,\n} from './agency-queries';\nimport { agencyCreateUpdateValidator } from './agency-validators';\nimport { ADMIN } from '../../shared/constants';\nimport {\n OnAgencyDeleteEvent,\n OnAgencyError,\n OnAgencyListFetched,\n OnAgencyUpdateEvent,\n OnAgenyCreateEvent,\n} from './agency-events';\n\n/**\n * Creates a filter object\n *\n * @param {object} filter - the data used to filter the search\n * @param {string} search - Search term used for also filter the search\n *\n * @returns {object} the filter object\n */\nconst createFilter = (filter, search) => {\n const byCompany = filter.company\n ? {\n company: { id: { equals: filter.company } },\n }\n : {\n company: { adminCompanyRelation: { some: { user: { id: { equals: filter.user } } } } },\n };\n\n const byStartDate = filter.startDate\n ? { createdAt: { gte: `${filter.startDate}T00:00:00Z` } }\n : {};\n\n const byEndDate = filter.endDate ? { createdAt: { lte: `${filter.endDate}T00:00:00Z` } } : {};\n\n const bySearch = search ? { OR: [{ name: { contains: search } }] } : {};\n\n return {\n ...byCompany,\n ...bySearch,\n AND: [byStartDate, byEndDate],\n };\n};\n\n/**\n * Generates a sort object\n *\n * @param {string} sort - Sort value\n *\n * @returns {object} The sort object\n */\nconst createSort = (sort) => {\n return {\n ...(sort === 'newest' && { sort: [{ createdAt: 'DESC' }] }),\n ...(sort === 'oldest' && { sort: [{ createdAt: 'ASC' }] }),\n };\n};\n\n/**\n * Fetches the agencies given the filter data\n *\n * @param {number} page - The page to fetch\n * @param {object} data - Object that contains filter data\n * @param {string} search - The search string to filter results\n *\n * @returns {void}\n */\nexport const fetchAgencies = async (page, data, search) => {\n const client = OnApolloClient.get();\n const filter = createFilter(data, search);\n const sort = createSort(data.sort);\n const skip = (page - 1) * 10;\n\n try {\n const response = await client.query({\n query: QUERY_AGENCY_LIST,\n fetchPolicy: 'no-cache',\n variables: { first: 10, skip, filter, ...sort },\n });\n\n log('fetchAgencies', response.data);\n\n return OnAgencyListFetched.dispatch(response.data);\n } catch (e) {\n error('fetchAgencies', e);\n return OnAgencyError.dispatch(e);\n }\n};\n\n/**\n * Stores agency in the database\n *\n * @param {object} agency - The agency object\n *\n * @returns {void}\n */\nexport const createAgency = async (agency) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n let response = null;\n\n const data = {\n name: agency.name,\n company: {\n connect: { id: agency.companyId },\n },\n agencyInvitationAgencyRelation: {\n create: agency.invitations,\n },\n ifsScore: agency.ifsScores,\n voicemailUrl: agency.voicemailUrl\n };\n\n try {\n agencyCreateUpdateValidator(agency);\n } catch (e) {\n error('createAgency', e);\n return OnAgencyError.dispatch(e);\n }\n\n try {\n response = await client.mutate({\n mutation: MUTATION_CREATE_AGENCY,\n variables: { data },\n });\n } catch (e) {\n error('createAgency', e);\n return OnAgencyError.dispatch(e);\n }\n\n const { agencyCreate } = response.data;\n\n log('createAgency', response.data);\n\n return OnAgenyCreateEvent.dispatch({ agencyCreate });\n};\n\n/**\n * Updates the agency in db\n *\n * @param {object} agency - The agency object\n *\n * @returns {void}\n */\nexport const updateAgency = async (agency) => {\n const client = OnApolloClient.get();\n const { user } = OnSessionFetch.get();\n console.log('update', agency);\n const variables = {\n data: {\n name: agency.name,\n ifsScore: agency.ifsScores,\n voicemailUrl: agency.voicemailUrl\n },\n filter: {\n id: agency.id,\n },\n };\n\n const roles = getRolesOnSelectedAgency(user, { ...agency, company: { id: agency.id } });\n\n if (roles.includes(ADMIN)) {\n variables.data.company = {\n connect: { id: agency.companyId },\n };\n }\n\n try {\n agencyCreateUpdateValidator(agency);\n\n const response = await client.mutate({\n mutation: MUTATION_UPDATE_AGENCY,\n variables,\n });\n\n log('updateAgency', response.data);\n\n return OnAgencyUpdateEvent.dispatch(response.data);\n } catch (e) {\n error('updateAgency', e);\n return OnAgencyError.dispatch(e);\n }\n};\n\n/**\n * Deletes the given agency from the db\n *\n * @param {number} id - The agency id\n *\n * @returns {void}\n */\nexport const deleteAgency = async (id) => {\n const client = OnApolloClient.get();\n\n try {\n const response = await client.mutate({\n mutation: MUTATION_DELETE_AGENCY,\n variables: { filter: { id } },\n });\n\n log('deleteAgency', response.data);\n\n return OnAgencyDeleteEvent.dispatch(response.data);\n } catch (e) {\n error('deleteAgency', e);\n return OnAgencyError.dispatch(e);\n }\n};\n","import React, { useState } from 'react';\nimport { Dropdown, Icon, Menu } from '@8base/boost';\nimport { DropdownBodyOnTable } from 'shared/components';\nimport { YesNoDialog } from '../../../shared/components';\nimport { deleteAgency } from '../agency-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { OnAgencyDeleteEvent } from '../agency-events';\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\nconst BoldText = styled.span`\n font-weight: bold;\n`;\n\nconst AgencyActions = ({ agency, onUpdateClick }) => {\n const [isDeleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const [isDeleting, setIsDeleting] = useState(false);\n\n const handleDelete = () => {\n setIsDeleting(true);\n deleteAgency(agency.id);\n };\n\n useEventSubscription(OnAgencyDeleteEvent, () => {\n setIsDeleting(false);\n setDeleteDialogOpen(false);\n });\n\n return (\n <>\n \n \n \n \n \n {({ closeDropdown }) => (\n \n {\n onUpdateClick(agency);\n closeDropdown();\n }}>\n Update Agency\n \n \n )}\n \n setDeleteDialogOpen(false)}\n onClose={() => setDeleteDialogOpen(false)}\n isLoading={isDeleting}\n yesText=\"Yes, Delete\"\n noText=\"Cancel\"\n title=\"Delete Agency\"\n text={\n \n {`Are you sure you want to delete this Agency ?`}\n
    \n This action can’t be undone.\n
    \n }\n />\n
    \n \n );\n};\n\nAgencyActions.propTypes = {\n agency: PropTypes.shape({\n id: PropTypes.string.isRequired,\n }).isRequired,\n onUpdateClick: PropTypes.func.isRequired,\n};\n\nexport default AgencyActions;\n","export const SORT_OPTIONS = [\n { label: 'Date: Newest First', value: 'newest', field: 'createdAt', orderWay: 'DESC' },\n { label: 'Date: Oldest First', value: 'oldest', field: 'createdAt', orderWay: 'ASC' },\n];\n\nexport const FILTER_CATEGORIES = {\n startDate: {\n title: 'Date Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'startDate',\n },\n endDate: {\n title: 'Date End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'endDate',\n },\n companyId: {\n title: 'Company',\n identifier: 'companyId',\n },\n};\n\nexport const FORM_TOOLTIP_STRINGS = {\n agents: {\n tooltipPlacement: 'top',\n tooltipText:\n 'Invite agents using their email address. This will send them an invite to join this agency.',\n },\n managers: {\n tooltipPlacement: 'top',\n tooltipText:\n 'Invite managers using their email address. This will send them an invite to join this agency.',\n },\n};\n","import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport { Dropdown } from '@8base/boost';\nimport { DropdownBodyOnTable, FilterFooter, FilterCategory } from 'shared/components';\nimport { FILTER_CATEGORIES } from '../agency-model';\nimport filterIconGrey from 'shared/assets/images/filter-grey.svg';\nimport filterIconGreen from 'shared/assets/images/filter-green.svg';\nimport PropTypes from 'prop-types';\n\nconst FilterDropdown = styled(Dropdown)`\n display: inline-block;\n`;\n\nconst DropdownBody = styled.div`\n background-color: #fff;\n position: relative;\n z-index: 2000;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n`;\n\nconst FilterBody = styled.div`\n display: grid;\n grid-template-rows: repeat(3, min-content);\n grid-template-columns: repeat(2, [col-start] 1fr [col-end]);\n gap: 12px;\n padding: 12px;\n`;\n\nconst FilterBtn = styled.div`\n display: flex;\n border-radius: 5px;\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\n padding: 0px 16px;\n height: 36px;\n box-sizing: border-box;\n align-items: center;\n`;\n\nconst FilterIconLabel = styled.span`\n margin-left: 4px;\n font-size: 13px;\n opacity: 0.9;\n ${(props) => (props.active ? 'color: #3db4aa;' : '')}\n`;\n\nconst FilterIcon = styled.img`\n width: 2rem;\n height: 2rem;\n`;\n\nconst AgencyFilter = ({ onConfirm, companies }) => {\n const [filterValues, setFilterValues] = useState({\n startDate: '',\n endDate: '',\n companyId: '',\n });\n const [isOpen, setIsOpen] = useState(false);\n\n const filters = {\n ...FILTER_CATEGORIES,\n companyId: {\n title: 'Company',\n placeholder: 'Select',\n identifier: 'companyId',\n options: [{ label: 'None', value: '' }, ...companies],\n },\n };\n\n const handleFilter = (key, value) => {\n const newState = { ...filterValues };\n newState[key] = value;\n\n if (key === 'startDate') {\n if (newState.startDate > newState.endDate) newState.endDate = '';\n }\n\n setFilterValues(newState);\n };\n\n const categories = Object.entries(filters).map(([key, value]) => (\n \n ));\n\n const icon = isOpen ? : ;\n\n return (\n \n \n setIsOpen(!isOpen)}>\n {icon}\n Filters\n \n \n \n {({ closeDropdown }) => (\n \n {categories}\n onConfirm(filterValues)}\n onCancel={() => null}\n closeDropdown={() => {\n setIsOpen(false);\n closeDropdown();\n }}\n />\n \n )}\n \n \n );\n};\n\nAgencyFilter.propTypes = {\n onConfirm: PropTypes.func.isRequired,\n companies: PropTypes.array.isRequired,\n};\n\nexport default AgencyFilter;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Grid, styled } from '@8base/boost';\nimport Field from './Field';\n\nconst BtnAddItem = styled.button`\n margin-top: 10px;\n display: flex;\n align-items: center;\n background: transparent;\n outline: none;\n cursor: pointer;\n`;\n\nconst BtnDeleteItem = styled.button`\n margin-top: 28px;\n height: 20px;\n width: 20px;\n border: 1px solid #eb4235;\n border-radius: 100px;\n background: transparent;\n outline: none;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst BtnLess = styled.p`\n margin-left: 2px;\n height: 20px;\n width: 20px;\n color: #eb4235;\n font-size: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst BtnPlus = styled.p`\n box-sizing: border-box;\n height: 16px;\n width: 16px;\n border: 0.67px solid #3db4aa;\n border-radius: 100px;\n color: #3db4aa;\n font-size: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst BtnText = styled.p`\n color: #3db4aa;\n font-family: Poppins;\n font-size: 12px;\n letter-spacing: 0.18px;\n line-height: 20px;\n margin-left: 16px;\n`;\n\n/**\n * Render a list with inputs and its can add or remove new inputs.\n *\n * @param {object} props component props\n * @param {Array} props.data list data\n * @param {string} props.inputPlaceholder placeholder for each input\n * @param {string} props.inputLabel label for each input\n * @param {Function} props.onBlurInput handle on blur\n * @param {Function} props.onDeleteItem handle for deletes an item\n * @param {Function} props.onAddItem handle for creates an item\n * @returns {React.ReactElement} component\n */\nconst ListInputsEditable = ({\n data,\n inputPlaceholder,\n inputLabel,\n btnAddText,\n onBlurInput,\n onDeleteItem,\n onAddItem,\n}) => {\n return (\n <>\n {data.map((item, index) => {\n const label = `${inputLabel} #${index + 1}`;\n\n return (\n \n \n \n \n \n \n -\n \n \n \n );\n })}\n \n \n \n +\n {btnAddText}\n \n \n \n \n );\n};\n\nListInputsEditable.propTypes = {\n data: PropTypes.array.isRequired,\n inputPlaceholder: PropTypes.string.isRequired,\n inputLabel: PropTypes.string.isRequired,\n btnAddText: PropTypes.string.isRequired,\n onBlurInput: PropTypes.func.isRequired,\n onDeleteItem: PropTypes.func.isRequired,\n onAddItem: PropTypes.func.isRequired,\n};\n\nexport default ListInputsEditable;\n","import React, { useState, useEffect } from 'react';\nimport { Form, InputField, SelectField } from '@8base/boost';\nimport { TagsInput } from '../../../../shared/components';\nimport { OnSessionFetch } from '../../../../shared/session/session-events';\nimport ListInputsEditable from '../../../../shared/components/ListInputsEditable';\nimport { IFS_SCORES_DEFAULT } from '@cobuildlab/lead-volt-share';\nimport { ADMIN } from '../../../../shared/constants';\nimport { getRolesOnSelectedAgency } from '../../../../shared/utils/agency-utils';\nimport { fetchVoiceMailMessagesForCalls } from 'modules/phone-calls/voice-mail-message/voice-mail-message-actions';\nimport { FORM_TOOLTIP_STRINGS } from '../../agency-model';\nimport PropTypes from 'prop-types';\n\nexport const AgencyForm = ({ agency, setFormData }) => {\n let initialCompanyId = '';\n const { user } = OnSessionFetch.get();\n\n if (agency) {\n initialCompanyId = agency.company.id;\n } else if (user.userAdminRelation.items.length === 1) {\n initialCompanyId = user.userAdminRelation.items[0].company.id;\n }\n const [name, setName] = useState(agency ? agency.name : '');\n const [companyId, setCompanyId] = useState(initialCompanyId);\n const [voicemailUrl, setVoicemailUrl] = useState(agency ? agency.voicemailUrl : '');\n const [agents, setAgents] = useState([]);\n const [managers, setManagers] = useState([]);\n const [voicemails, setVoicemails] = useState([]);\n const [ifsScores, setIfsScores] = useState([]);\n\n const handleOnBlurIfsScore = (index, event) => {\n const newIfsScores = [...ifsScores];\n newIfsScores[index].value = event.target.value;\n setIfsScores(newIfsScores);\n };\n\n const handleOnAddIfsScore = () => {\n setIfsScores([...ifsScores, { value: '' }]);\n };\n\n const handleOnDeleteIfsScore = (index) => {\n const value = ifsScores[index].value;\n const newIfsScores = [...ifsScores.filter((score) => score.value !== value)];\n setIfsScores(newIfsScores);\n };\n\n const roles = getRolesOnSelectedAgency(user, agency);\n\n useEffect(() => {\n console.log({\n agency,\n name,\n managers,\n agents,\n ifsScores,\n companyId,\n voicemailUrl,\n });\n setFormData({\n agency,\n name,\n managers,\n agents,\n ifsScores,\n companyId,\n voicemailUrl,\n });\n }, [agency, name, agents, managers, ifsScores, companyId, setFormData, voicemailUrl]);\n\n useEffect(() => {\n if (agency?.id) {\n fetchVoicemailList();\n }\n }, [agency, user]);\n\n const fetchVoicemailList = async () => {\n const { voiceMailMessagesList } = await fetchVoiceMailMessagesForCalls({\n agency: agency.id,\n user: [user.id, 'equals'],\n active: [true, 'equals'],\n });\n setVoicemails(voiceMailMessagesList.items);\n };\n\n useEffect(() => {\n const ifsScores = agency\n ? agency.ifsScore.length === 1 && agency.ifsScore[0] === ''\n ? IFS_SCORES_DEFAULT\n : agency.ifsScore\n : IFS_SCORES_DEFAULT;\n setIfsScores(ifsScores.map((score) => ({ value: score })));\n }, [agency]);\n\n return (\n
    event.preventDefault()}>\n \n \n setName(value),\n }}\n />\n {(!agency || roles.includes(ADMIN)) && (\n ({\n label: company.name,\n value: company.id,\n }))}\n stretch={true}\n input={{\n name: 'companyId',\n value: companyId,\n onChange: (value) => setCompanyId(value),\n }}\n />\n )}\n ({\n label: v.name,\n value: v.audio.downloadUrl,\n }))}\n stretch={true}\n input={{\n name: 'voicemailUrl',\n value: voicemailUrl,\n onChange: (value) => setVoicemailUrl(value),\n }}\n />\n \n \n {agency === null && (\n <>\n \n Invite agents\n \n setAgents(value)}\n tags={agents}\n tooltipPlacement={FORM_TOOLTIP_STRINGS.agents.tooltipPlacement}\n tooltipText={FORM_TOOLTIP_STRINGS.agents.tooltipText}\n />\n \n \n \n Invite managers\n \n setManagers(value)}\n tags={managers}\n tooltipPlacement={FORM_TOOLTIP_STRINGS.managers.tooltipPlacement}\n tooltipText={FORM_TOOLTIP_STRINGS.managers.tooltipText}\n />\n \n \n \n )}\n \n IFS Scores\n \n \n \n \n
    \n );\n};\nAgencyForm.propTypes = {\n agency: PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n company: PropTypes.shape({\n id: PropTypes.string.isRequired,\n }),\n ifsScore: PropTypes.array.isRequired,\n }),\n};\nAgencyForm.defaultProps = {\n agency: null,\n};\n","import React, { useState } from 'react';\nimport { DialogForm } from '../../../shared/components';\nimport { AgencyForm } from './forms/AgencyForm';\nimport PropTypes from 'prop-types';\nconst AgencyFormDialog = ({ agency, isOpen, isLoading, isUpdate, onClose, onSubmit }) => {\n const [formData, setFormData] = useState({ agency });\n const handleSubmit = () => {\n const form = {\n operation: formData.agency ? 'Update' : 'create',\n id: formData.agency ? formData.agency.id : undefined,\n name: formData.name,\n companyId: formData.companyId,\n agents: formData.agents,\n managers: formData.managers,\n ifsScores: formData.ifsScores.map((score) => score.value),\n voicemailUrl: formData.voicemailUrl\n };\n onSubmit(form);\n };\n return (\n \n \n \n );\n};\n\nAgencyFormDialog.propTypes = {\n agency: PropTypes.object,\n isOpen: PropTypes.bool.isRequired,\n isLoading: PropTypes.bool.isRequired,\n isUpdate: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onSubmit: PropTypes.bool.isRequired,\n};\n\nAgencyFormDialog.defaultProps = {\n agency: null,\n};\n\nexport default AgencyFormDialog;\n","import React, { useState, useEffect, useRef, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { Card, Table, Pagination } from '@8base/boost';\nimport AgencyActions from '../../agency/components/AgencyActions';\nimport AgencyFilter from '../../agency/components/AgencyFilter';\nimport { ListCardBody as ListCard, ItemFilter, SearchInput } from '../../../shared/components';\nimport { DateBox } from 'shared/components';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchAgencies, createAgency, updateAgency } from '../../agency/agency-actions';\nimport { SORT_OPTIONS } from '../../agency/agency-model';\nimport { OnSessionFetch } from '../../../shared/session/session-events';\nimport AgencyFormDialog from '../../agency/components/AgencyFormDialog';\nimport { fetchSession } from '../../auth/auth.actions';\nimport { CreateButton } from 'shared/components';\nimport { Box } from '../../../shared/components/Box';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport {\n OnAgencyDeleteEvent,\n OnAgencyError,\n OnAgencyListFetched,\n OnAgencyPhoneCreateError,\n OnAgencyUpdateEvent,\n OnAgenyCreateEvent,\n} from 'modules/agency/agency-events';\n\nconst ListCardBody = styled(ListCard)`\n padding: 0 !important;\n`;\n\nconst TableRow = styled(Table.BodyRow)`\n ${(props) => (props.active ? `background-color: #fcfcfc !important` : '')};\n`;\n\nconst StyledHeaderCell = styled(Table.HeaderCell)`\n padding-left: 24px !important;\n`;\n\nconst StyledTableHeader = styled(Table.Header)`\n height: 36px !important;\n`;\n\nconst TableBody = styled(Table.Body)`\n max-height: 50vh;\n height: 50vh;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nconst SearchBar = styled(SearchInput)`\n width: 100% !important;\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst CustomGrid = styled.div`\n display: grid;\n width: ${(props) => props.width};\n grid-template-columns: ${(props) => props.columns};\n column-gap: ${(props) => props.columnGap};\n grid-template-areas: ${(props) => props.areas};\n ${(props) => (props.alignItems ? `align-items:${props.alignItems} ` : '')};\n`;\n\nconst CustomGridCell = styled.div`\n grid-area: ${(props) => props.area};\n ${(props) => (props.justifySelf ? `justify-self:${props.justifySelf} ` : '')};\n`;\n\nconst TABLE_COLUMUNS = '70px repeat(3,1fr) 100px';\n\nconst AgencyView = () => {\n const [data, setData] = useState({\n agency: null,\n isLoading: true,\n agencies: [],\n count: 0,\n page: 1,\n search: '',\n });\n const [dialog, setDialog] = useState({\n isOpen: false,\n isLoading: false,\n });\n const [deleteDialog, setDeleteDialog] = useState({\n isOpen: false,\n isLoading: false,\n });\n const [filters, setFilters] = useState({\n sort: 'newest',\n startDate: '',\n endDate: '',\n companyId: '',\n });\n\n const paginationRef = useRef(null);\n const searchRef = useRef(null);\n const { user } = OnSessionFetch.get();\n\n /**\n * Function to fetch agencies when component mounts\n *\n * @param {string} search -Search term\n *\n * @returns {void}\n */\n const refreshAgencies = (search = '') => {\n setData((state) => ({\n ...state,\n isLoading: true,\n agencies: [],\n }));\n\n setDialog((state) => ({\n ...state,\n isOpen: false,\n isLoading: false,\n }));\n\n const { companyId } = filters;\n\n fetchAgencies(\n data.page,\n {\n ...filters,\n company: companyId !== '' ? companyId : null,\n user: user.id,\n },\n search,\n );\n\n paginationRef.current.children[0].children[3].childNodes[5].textContent = ' agencies';\n };\n\n useEffect(refreshAgencies, [user.id, data.page, data.search, filters]);\n\n /**\n * Handle submit of the create/update dialog form\n *\n * @param {object} form - The agency attributes to create/edit\n *\n * @returns {void}\n */\n const handleSubmit = (form) => {\n setDialog((state) => ({ ...state, isLoading: true }));\n setDeleteDialog((state) => ({ ...state, isLoading: true }));\n\n if (form.operation === 'create') {\n const invitations = [\n ...form.agents.map((email) => ({\n email,\n type: 'AGENT',\n })),\n ...form.managers.map((email) => ({\n email,\n type: 'MANAGER',\n })),\n ];\n\n createAgency({ ...form, invitations });\n } else if (form.operation === 'Update') {\n updateAgency(form);\n }\n };\n\n const handleFilter = useCallback((newFilters) => {\n setData((state) => ({\n ...state,\n page: 1,\n }));\n setFilters((state) => ({\n ...state,\n startDate: newFilters.startDate,\n endDate: newFilters.endDate,\n companyId: newFilters.companyId,\n }));\n }, []);\n\n // Suscriptions for handling request results\n useEventSubscription(OnAgencyListFetched, ({ agenciesList }) =>\n setData((state) => ({\n ...state,\n agencies: agenciesList.items,\n count: agenciesList.count,\n isLoading: false,\n })),\n );\n\n useEventSubscription(OnAgenyCreateEvent, () => {\n setData((state) => ({\n ...state,\n agency: null,\n }));\n setDialog((state) => ({\n ...state,\n isLoading: false,\n isOpen: false,\n }));\n setDeleteDialog({\n ...deleteDialog,\n isLoading: false,\n isOpen: false,\n });\n\n refreshAgencies();\n });\n\n useEventSubscription(OnAgencyPhoneCreateError, () => {\n Toast.warn(\n 'Could not create phone number automatically on the agency, please create it manually',\n );\n });\n\n useEventSubscription(OnAgencyUpdateEvent, () => {\n setData({\n ...data,\n agency: null,\n });\n setDialog({\n ...dialog,\n isLoading: false,\n isOpen: false,\n });\n setDeleteDialog({\n ...deleteDialog,\n isLoading: false,\n isOpen: false,\n });\n\n refreshAgencies();\n\n fetchSession();\n });\n\n useEventSubscription(OnAgencyError, (err) => {\n setDialog({\n ...dialog,\n isLoading: false,\n });\n setDeleteDialog({\n ...deleteDialog,\n isLoading: false,\n });\n\n onErrorMixinFC(err);\n });\n\n useEventSubscription(OnAgencyDeleteEvent, () => {\n setData({\n ...data,\n agency: null,\n });\n setDialog({\n ...dialog,\n isLoading: false,\n isOpen: false,\n });\n setDeleteDialog({\n ...deleteDialog,\n isLoading: false,\n isOpen: false,\n });\n\n refreshAgencies();\n });\n\n const pageOffset = (data.page - 1) * 10;\n\n return (\n \n \n \n \n \n refreshAgencies(searchRef.current.value)}\n />\n \n \n ({\n label: company.name,\n value: company.id,\n }))}\n onConfirm={handleFilter}\n />\n \n \n \n {\n setFilters({ ...filters, sort: value });\n setData({ ...data, page: 1 });\n }}\n value={filters.sort}\n options={SORT_OPTIONS}\n placeholder=\"Sort agencies by\"\n />\n \n \n {\n setData({\n ...data,\n agency: !dialog.isOpen ? null : data.agency,\n });\n setDialog({\n ...dialog,\n isOpen: !dialog.isOpen,\n });\n }}\n text=\"Create Agency\"\n />\n \n \n \n \n \n \n \n Name\n Company\n Created At\n Action\n \n \n {(agency, i) => (\n \n {i + 1 + pageOffset}\n {agency.name}\n {agency.company.name}\n {/**/}\n {/* {agency.quoteOfDay ? agency.quoteOfDay.title : '-'}*/}\n {/**/}\n \n \n \n \n {\n setData({ ...data, agency });\n setDialog({ ...dialog, isOpen: true });\n }}\n />\n \n \n )}\n \n \n \n setData({ ...data, page })}\n defaultPage={1}\n total={data.count}\n page={data.page}\n />\n \n \n
    \n
    \n {\n setData({\n ...data,\n agency: !dialog.isOpen ? null : data.agency,\n });\n setDialog({\n ...dialog,\n isOpen: !dialog.isOpen,\n });\n }}\n onSubmit={handleSubmit}\n isUpdate={data.agency === null ? false : true}\n />\n
    \n
    \n );\n};\n\nexport { AgencyView };\n","import React, { useState, useEffect, useMemo } from 'react';\nimport { Heading } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport { Link, Route, Switch, Redirect, withRouter } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { OnSessionFetch } from '../../shared/session/session-events';\nimport { ADMIN, MANAGER, AGENT } from '../../shared/constants/index';\nimport { useAgency } from '../../shared/hooks/useAgency';\nimport { userHasAnyRoleInAgency } from '../../shared/utils/agency-utils';\nimport { isCompanyAvailable } from '../../shared/utils/company-utils';\nimport { Box } from '../../shared/components/Box';\nimport { InvitationsView } from '../my-account/invitations/InvitationsView';\nimport CompanyView from '../my-account/company/CompanyView';\nimport CompanyInvitationsView from '../my-account/company-invitations/CompanyInvitationsView';\nimport VendorsView from '../vendors/VendorsView';\nimport PhoneNumberView from '../my-account/phone-numbers/PhoneNumberView';\nimport InboundService from './inbound/InboundService';\nimport OutboundService from './outbound/OutboundService';\nimport PhoneCallSettings from './phone-calls/PhoneCallSettings';\nimport VoiceMailMessages from './voice-mail-messages/VoiceMailMessages';\nimport RegistrationStatus from './registration-status/RegistrationStatus';\nimport { GeneralView } from '../my-account/general/GeneralView';\nimport { EmailView } from '../my-account/email/EmailView';\nimport { TeamView } from '../my-account/team/TeamView';\nimport BillingView from '../my-account/billing/BillingView';\nimport { AgencyView } from '../my-account/agency/AgencyView';\n\nexport const routes = [\n {\n name: 'Profile',\n path: '/settings/general',\n auth: [ADMIN, MANAGER, AGENT],\n },\n {\n name: 'Email',\n path: '/settings/email',\n auth: [ADMIN, MANAGER, AGENT],\n },\n {\n name: 'Agencies',\n path: '/settings/agency',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Agency Invitations',\n path: '/settings/invitations',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Company',\n path: '/settings/company',\n auth: [ADMIN],\n },\n {\n name: 'Company Invitations',\n path: '/settings/company-invitations',\n auth: [ADMIN],\n },\n // {\n // name: 'Status Mapping',\n // path: '/settings/status-mapping',\n // },\n {\n name: 'Billing',\n path: '/settings/billing',\n auth: [ADMIN],\n allow: true,\n },\n {\n name: 'Team',\n path: '/settings/team',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Phone numbers',\n path: '/settings/phone-numbers',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Outbound Email Services',\n path: '/settings/services/email/outbound',\n auth: [ADMIN, MANAGER, AGENT],\n },\n {\n name: 'Inbound Email Services',\n path: '/settings/services/email/inbound',\n auth: [ADMIN, MANAGER, AGENT],\n },\n {\n name: 'Vendors',\n path: '/settings/vendors',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Phone Call Settings',\n path: '/settings/phone-call',\n auth: [ADMIN, MANAGER],\n },\n {\n name: 'Voice Mail Messages',\n path: '/settings/voice-mail-messages',\n auth: [ADMIN, MANAGER, AGENT],\n },\n {\n name: 'Telephony Registration',\n path: '/settings/telephony-registration',\n auth: [ADMIN, MANAGER],\n },\n];\n\nconst Container = styled.div`\n height: calc(100vh - 91px);\n width: 100%;\n background-color: #f4f5f6;\n display: flex;\n flex-direction: row;\n`;\n\nconst Sidebar = styled.div`\n height: calc(100vh - 91px);\n width: 250px;\n display: flex;\n flex-direction: column;\n padding: 24px 0px;\n box-shadow: 2px 0px 5px 0 rgb(50, 50, 93, 0.14);\n`;\n\nconst Content = styled.div`\n width: 100%;\n height: calc(100vh - 91px);\n max-height: calc(100vh - 91px);\n overflow: auto;\n`;\n\nconst List = styled.ul`\n width: 100%;\n list-style: none;\n`;\n\nconst Li = styled.li`\n width: 99%;\n height: 32px;\n ${(props) =>\n props.active &&\n `\n background-color: #fff;\n border-left: 2.5px solid #3db4aa;\n a {\n color: #3db4aa;\n }\n `}\n\n &:hover {\n background-color: #fff;\n border-left: 2.5px solid #3db4aa;\n }\n`;\n\nconst StyledLink = styled(Link)`\n color: #323c47;\n text-decoration: none;\n height: 100%;\n padding-left: 24px;\n display: flex;\n align-items: center;\n ${(props) => (props.active ? 'color: #3db4aa;' : '')}\n &:hover {\n color: #3db4aa;\n }\n`;\n\nconst SettingsView = ({ history }) => {\n const [pathnameActive, setPathnameActive] = useState(window.location.pathname);\n const { user } = OnSessionFetch.get();\n const agency = useAgency();\n\n useEffect(() => {\n const unlisten = history.listen((location) => setPathnameActive(location.pathname));\n\n return () => unlisten();\n }, [history]);\n\n const isCompanyPaid = isCompanyAvailable(agency);\n const items = useMemo(\n () =>\n routes\n .filter(\n (route) =>\n !route.auth ||\n (userHasAnyRoleInAgency(user, agency, route.auth) &&\n (!isCompanyPaid ? route.allow : true)),\n )\n .map((route) => {\n const isActive = pathnameActive === route.path;\n\n return (\n
  • \n \n {route.name}\n \n
  • \n );\n }),\n [user, agency, pathnameActive, isCompanyPaid],\n );\n\n // if (!isCompanyPaid) {\n // return null;\n // }\n\n return (\n \n \n \n Settings\n \n {items}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nSettingsView.propTypes = {\n history: PropTypes.object.isRequired,\n};\n\nexport default withRouter(SettingsView);\n","import { error, log } from '@cobuildlab/pure-logger';\nimport {\n FETCH_PHONE_CALL_RECORDINGS,\n DELETE_PHONE_CALL_RECORDING,\n} from './phone-call-recordings-queries';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport {\n OnDeletePhoneCallRecordingError,\n OnDeletePhoneCallRecordingEvent,\n OnFetchPhoneCallRecordingsError,\n OnFetchPhoneCallRecordingsEvent,\n} from '../phone-calls-events';\n\n/**\n * Fetches the Phone Call Recordings by filter and page\n *\n * @param {object} filter - The parameters to filter the results\n * @param {number} page - The page to fetch results from\n *\n * @returns {Promise} Request result\n */\nexport const fetchPhoneCallRecordings = async (filter, page = 1) => {\n const client = OnApolloClient.get();\n const first = 10;\n const skip = first * (page - 1);\n const orderBy = 'createdAt_DESC';\n let response = null;\n\n try {\n response = await client.query({\n query: FETCH_PHONE_CALL_RECORDINGS,\n variables: { filter, first, skip, orderBy },\n fetchPolicy: 'network-only',\n });\n } catch (e) {\n error('fetchPhoneCallRecordings', e);\n OnFetchPhoneCallRecordingsError.dispatch(e);\n\n return;\n }\n\n log('fetchPhoneCallRecordings', response.data);\n OnFetchPhoneCallRecordingsEvent.dispatch(response.data);\n};\n\n/**\n * Deletes the specified phone call recording\n *\n * @param {string} id - Phone call recording id\n *\n * @returns {Promise} The request result\n */\nexport const deletePhoneCallRecording = async (id) => {\n const client = OnApolloClient.get();\n let response = null;\n\n try {\n response = await client.mutate({\n mutation: DELETE_PHONE_CALL_RECORDING,\n variables: { data: { id } },\n });\n } catch (e) {\n error('deletePhoneCallRecording', e);\n OnDeletePhoneCallRecordingError.dispatch(e);\n\n return;\n }\n\n log('deletePhoneCallRecording', response.data);\n OnDeletePhoneCallRecordingEvent.dispatch(response.data);\n};\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Card, Paper, Row, Table, Column, Pagination, Icon, Dropdown, Menu } from '@8base/boost';\nimport {\n fetchPhoneCallRecordings,\n deletePhoneCallRecording,\n} from '../../phone-calls/phone-call-recordings/phone-call-recordings-actions';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { formatPhoneNumber, formatDuration } from '../../phone-calls/phone-calls-utils';\nimport { CALL_TYPES } from '../../phone-calls/phone-calls-model';\nimport { DateBox, YesNoDialog } from '../../../shared/components';\nimport AudioPlayer from 'react-h5-audio-player';\nimport styled from 'styled-components';\nimport 'react-h5-audio-player/lib/styles.css';\nimport {\n OnDeletePhoneCallRecordingError,\n OnDeletePhoneCallRecordingEvent,\n OnFetchPhoneCallRecordingsError,\n OnFetchPhoneCallRecordingsEvent,\n} from 'modules/phone-calls/phone-calls-events';\n\nconst PlayerCell = styled(Table.BodyCell)`\n padding-left: 0px !important;\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: 250px;\n`;\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\n/**\n * Renders the record calls configuration view\n *\n * @param {object} props - Props object passed to this component\n *\n * @returns {React.FC} The component to render\n */\nfunction PhoneCallRecordings(props) {\n const [loading, setLoading] = useState(true);\n const [page, setPage] = useState(1);\n const [recordings, setRecordings] = useState([]);\n const [count, setCount] = useState(0);\n const agency = useAgency();\n const [del, setDelete] = useState({ open: false, loading: false, selected: null });\n\n const refresh = useCallback(() => {\n // const filter = { call: { agency: { id: { equals: agency.id } } } };\n const filter = {\n OR: [\n { call: { agency: { id: { equals: agency.id } } } },\n {\n inboundCall: { agency: { id: { equals: agency.id } } },\n },\n ],\n };\n\n setLoading(true);\n\n fetchPhoneCallRecordings(filter, page);\n }, [agency.id, page]);\n\n const handleDelete = useCallback(\n (recording) => {\n setDelete({ ...del, open: true, selected: recording });\n },\n [del],\n );\n\n const handleConfirmDelete = useCallback(() => {\n deletePhoneCallRecording(del.selected.id);\n\n setDelete({ ...del, loading: true });\n }, [del]);\n\n useEffect(() => {\n refresh();\n }, [refresh]);\n\n useSimpleSubscription(OnFetchPhoneCallRecordingsEvent, ({ phoneCallRecordingsList }) => {\n setLoading(false);\n\n setRecordings(phoneCallRecordingsList.items);\n setCount(phoneCallRecordingsList.count);\n });\n\n useSimpleSubscription(OnDeletePhoneCallRecordingEvent, () => {\n Toast.success('Success', 'Recording deleted successfully!');\n\n setDelete({ ...del, open: false, loading: false, selected: null });\n\n if (page === 1) {\n refresh();\n } else {\n setPage(1);\n }\n });\n\n useSimpleSubscription(OnFetchPhoneCallRecordingsError, (err) => {\n onErrorMixinFC(err);\n });\n\n useSimpleSubscription(OnDeletePhoneCallRecordingError, (err) => {\n onErrorMixinFC(err);\n\n setDelete({ ...del, loading: false });\n });\n\n console.log('recordings', recordings);\n\n return (\n \n \n \n \n \n \n Date\n From\n To\n Duration\n Play\n Actions\n \n \n {(recording) => {\n const call = recording.call || recording.inboundCall;\n const recordingType = recording.call ? CALL_TYPES.OUTBOUND : CALL_TYPES.INBOUND;\n\n const from =\n recordingType === CALL_TYPES.OUTBOUND\n ? `${call.user.firstName} ${call.user.lastName} ${formatPhoneNumber(\n `+${call.from.number.code}${call.from.number.number}`,\n )}`\n : formatPhoneNumber(call.from);\n\n const to =\n recordingType === CALL_TYPES.OUTBOUND\n ? call.lead\n ? `${call.lead.firstName} ${call.lead.lastName} ${formatPhoneNumber(call.to)}`\n : formatPhoneNumber(call.to)\n : `+${call.to.number.code}${call.to.number.number}`;\n\n return (\n \n \n \n \n {from}\n {to}\n {formatDuration(recording.duration * 1000)}\n \n \n \n \n \n \n \n \n \n \n handleDelete(recording)}>\n Delete\n \n \n \n \n \n \n );\n }}\n \n \n \n \n \n \n
    \n
    \n
    \n setDelete({ open: false, loading: false, selected: null })}\n onClose={() => setDelete({ open: false, loading: false, selected: null })}\n title=\"Delete Phone Call Recording\"\n text=\"Are you sure you want to delete this phone call recording ?\"\n />\n
    \n );\n}\n\nexport default PhoneCallRecordings;\n","import React from 'react';\r\nimport { Dropdown } from '@8base/boost';\r\nimport styled from 'styled-components';\r\nimport { PropTypes } from 'prop-types';\r\nimport { DropdownBodyOnTable, FilterFooter, FilterCategory } from 'shared/components';\r\nimport filterIconGrey from 'shared/assets/images/filter-grey.svg';\r\nimport filterIconGreen from 'shared/assets/images/filter-green.svg';\r\n\r\nconst FilterDropdown = styled(Dropdown)`\r\n display: inline-block;\r\n`;\r\n\r\nconst DropdownBody = styled.div`\r\n background-color: #fff;\r\n position: relative;\r\n z-index: 2000;\r\n border: solid 1px #d0d7dd;\r\n border-radius: 5px;\r\n`;\r\n\r\nconst FilterBody = styled.div`\r\n display: grid;\r\n grid-template-rows: repeat(3, min-content);\r\n grid-template-columns: repeat(${(props) => props.columnsNumber}, [col-start] 1fr [col-end]);\r\n gap: 12px;\r\n padding: 12px;\r\n`;\r\n\r\nconst FilterBtn = styled.div`\r\n display: flex;\r\n border-radius: 5px;\r\n border: solid 1px ${({ active }) => (active ? '#3db4aa' : '#d0d7dd')};\r\n padding: 0px 16px;\r\n height: 36px;\r\n box-sizing: border-box;\r\n align-items: center;\r\n`;\r\n\r\nconst FilterIconLabel = styled.span`\r\n margin-left: 4px;\r\n font-size: 13px;\r\n opacity: 0.9;\r\n ${(props) => (props.active ? 'color: #3db4aa;' : '')}\r\n`;\r\n\r\nconst FilterIcon = styled.img`\r\n width: 2rem;\r\n height: 2rem;\r\n`;\r\n\r\nconst LogFilter = (props) => {\r\n const categories = Object.entries(props.categories).map(([identifier, category]) => (\r\n \r\n ));\r\n const icon = props.active ? (\r\n \r\n ) : (\r\n \r\n );\r\n\r\n return (\r\n \r\n \r\n props.onFilterClick()}>\r\n {icon}\r\n Filters\r\n \r\n \r\n \r\n {({ closeDropdown }) => (\r\n \r\n {categories}\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nLogFilter.propTypes = {\r\n onConfirm: PropTypes.func.isRequired,\r\n onCancel: PropTypes.func.isRequired,\r\n onFilterClick: PropTypes.func.isRequired,\r\n active: PropTypes.bool.isRequired,\r\n categories: PropTypes.object.isRequired,\r\n values: PropTypes.object.isRequired,\r\n onFilter: PropTypes.func.isRequired,\r\n};\r\nLogFilter.defaultProps = {\r\n columnsNumber: 2,\r\n};\r\n\r\nexport default LogFilter;\r\n","import { useSubscription } from '@cobuildlab/react-simple-state';\nimport { useCallback, useEffect, useState } from 'react';\nimport { fetchAgencyEmails } from '../../../email/email-actions';\nimport { OnFetchEmails, OnFetchEmailsError } from '../../../email/email-store';\n\nconst initialState = {\n items: [],\n count: 0,\n loading: true,\n error: null,\n};\n\n/**\n * Hook that fetches agency emails\n *\n * @param {string} agency - The agency id\n * @param {object} filters - Data to filter the results\n * @param {string} sort - Order to return the results\n *\n * @returns {object} The hook state\n */\nexport function useAgencyEmails(agency, filters = {}, sort = '') {\n const [state, setState] = useState(initialState);\n const [page, setPage] = useState(1);\n\n const fetch = useCallback(() => {\n setState((prevState) => ({ ...prevState, items: [], loading: true }));\n\n fetchAgencyEmails(agency, page, sort, filters);\n }, [agency, filters, sort, page]);\n\n useSubscription(\n OnFetchEmails,\n ({ mailList }) => {\n setState((prevState) => ({\n ...prevState,\n items: mailList.items,\n count: mailList.count,\n loading: false,\n error: null,\n }));\n },\n [],\n );\n\n useSubscription(\n OnFetchEmailsError,\n (e) => {\n setState((prevState) => ({\n ...prevState,\n error: e,\n loading: false,\n }));\n },\n [],\n );\n\n useEffect(() => {\n fetch();\n }, [fetch]);\n\n return {\n ...state,\n page,\n setPage,\n refresh: fetch,\n };\n}\n","import React, { useMemo } from 'react';\nimport { Table, Tag, Text, Link, Column } from '@8base/boost';\nimport { EMAIL_TYPES } from '@cobuildlab/lead-volt-share';\nimport { DateBox } from '../../../../shared/components';\nimport PropTypes from 'prop-types';\n\nexport const EmailLogRow = ({ email, columns }) => {\n const { lead } = email;\n let type = null;\n\n if (email.type === EMAIL_TYPES.INBOX) {\n type = Incoming;\n } else {\n type = Outgoing;\n }\n\n const to = useMemo(() => {\n return email?.to?.split(',').map((address, i) => {address});\n }, [email.to]);\n\n const cc = useMemo(\n () => email.ccopy.split(',').map((address, i) => {address}),\n [email.ccopy],\n );\n\n return (\n \n {type}\n \n \n {`${lead.firstName} ${lead.lastName}`}\n \n \n \n {email.from}\n \n \n \n {to}\n \n \n \n \n {cc}\n \n \n \n \n \n \n );\n};\n\nEmailLogRow.propTypes = {\n columns: PropTypes.string.isRequired,\n email: PropTypes.shape({\n from: PropTypes.string.isRequired,\n to: PropTypes.string.isRequired,\n ccopy: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n lead: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }).isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n};\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport { Card, Table, Pagination, Row } from '@8base/boost';\r\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\r\nimport { fetchManagerAndAgents } from '../../users/user-actions';\r\nimport { ItemFilter as SortFilter } from 'shared/components';\r\nimport { SORT_OPTIONS, FILTER_CATEGORIES } from '../../email/email-model';\r\nimport { onErrorMixinFC } from 'shared/mixins';\r\nimport { useAgency } from 'shared/hooks/useAgency';\r\nimport LogFilter from './components/LogFilter';\r\nimport * as R from 'ramda';\r\nimport styled from 'styled-components';\r\nimport { useAgencyEmails } from './hooks/useAgencyEmails';\r\nimport { EmailLogRow } from './components/EmailLogRow';\r\nimport { Box } from '../../../shared/components/Box';\r\nimport {\r\n OnFetchManagerAndAgentUsersError,\r\n OnFetchManagerAndAgentUsersEvent,\r\n} from 'modules/users/user-events';\r\n\r\nconst TableBody = styled(Table.Body)`\r\n min-height: 400px;\r\n`;\r\n\r\nconst columns =\r\n '150px minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) 150px';\r\n\r\nconst EmailLogs = () => {\r\n const agency = useAgency();\r\n const [filter, setFilter] = useState({});\r\n const [filters, setFilters] = useState({});\r\n const [sort, setSort] = useState('');\r\n const { items, count, loading, error, page, setPage } = useAgencyEmails(agency.id, filters, sort);\r\n const [open, setOpen] = useState(false);\r\n const [categories, setCategories] = useState(FILTER_CATEGORIES);\r\n\r\n useEffect(() => {\r\n fetchManagerAndAgents(agency.id);\r\n }, [agency.id]);\r\n\r\n useEffect(() => {\r\n if (error) {\r\n onErrorMixinFC(error);\r\n }\r\n }, [error]);\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) => {\r\n const options = R.clone(categories);\r\n\r\n options.assignedTo.options = [\r\n { label: 'None', value: '' },\r\n ...usersList.items.map((user) => ({\r\n label: `${user.firstName} ${user.lastName}`,\r\n value: user.id,\r\n })),\r\n ];\r\n\r\n setCategories(options);\r\n });\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersError, (e) => {\r\n onErrorMixinFC(e);\r\n });\r\n\r\n const onConfirm = useCallback(() => {\r\n setOpen(false);\r\n\r\n setFilters(filter);\r\n }, [filter]);\r\n\r\n const onFilter = useCallback((name, value) => {\r\n setFilter((prevState) => ({\r\n ...prevState,\r\n [name]: value,\r\n ...(name === 'dateStart' && value > prevState.dateEnd\r\n ? {\r\n dateEnd: '',\r\n }\r\n : {}),\r\n }));\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n \r\n setOpen(true)}\r\n active={open}\r\n onFilter={onFilter}\r\n values={filter}\r\n categories={categories}\r\n onConfirm={onConfirm}\r\n onCancel={() => setOpen(false)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Type\r\n Lead\r\n From\r\n To\r\n Cc\r\n Date\r\n \r\n \r\n {(email) => }\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default EmailLogs;\r\n","import React, { useMemo } from 'react';\nimport { Table, Link, Tag, Text, Paragraph } from '@8base/boost';\nimport { DateBox } from 'shared/components';\nimport PropTypes from 'prop-types';\n\nexport const SmsRow = ({ message, columns }) => {\n let fromComponent = null;\n let toComponent = null;\n let typeComponent = null;\n\n const fromNumber = useMemo(() => {\n return message.from\n ? `+${message.from.number.code} ${message.from.number.number}`\n : message.receivedFrom\n ? `+1 ${message.receivedFrom}`\n : 'No information';\n }, [message]);\n\n const toNumber = useMemo(() => {\n return message.to ? `+1 ${message.to}` : 'No information';\n }, [message]);\n\n if (message.type === 'INCOMING') {\n fromComponent = message.lead ? (\n \n {message.lead.firstName} {message.lead.lastName}\n \n ) : (\n fromNumber\n );\n\n toComponent = toNumber;\n\n typeComponent = {message.type.toLowerCase()};\n } else {\n fromComponent = message.user ? (\n \n {`${message.user.firstName} ${message.user.lastName}`}
    \n {fromNumber}\n
    \n ) : (\n `${fromNumber}`\n );\n\n toComponent = message.lead ? (\n \n {message.lead.firstName} {message.lead.lastName}\n \n ) : (\n toNumber\n );\n\n typeComponent = {message.type.toLowerCase()};\n }\n\n return (\n \n {fromComponent}\n {toComponent}\n {typeComponent}\n \n {message.text}\n \n \n \n \n \n );\n};\n\nSmsRow.propTypes = {\n message: PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: PropTypes.oneOf(['INCOMING', 'OUTGOING']),\n lead: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }),\n receivedFrom: PropTypes.string,\n from: PropTypes.shape({\n number: PropTypes.shape({\n code: PropTypes.string,\n number: PropTypes.string,\n }),\n }),\n user: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n }),\n to: PropTypes.string,\n text: PropTypes.string.isRequired,\n createdAt: PropTypes.string.isRequired,\n }).isRequired,\n columns: PropTypes.string.isRequired,\n};\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport { Table, Paper, Pagination } from '@8base/boost';\r\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\r\nimport { fetchSMSMessages } from '../../leads/leads-actions';\r\nimport { SMS_FILTER_DATA, SMS_FILTER_CATEGORIES, SMS_SORT_OPTIONS } from '../../leads/leads-model';\r\nimport { fetchManagerAndAgents } from '../../users/user-actions';\r\nimport { ItemFilter } from 'shared/components';\r\nimport styled from 'styled-components';\r\nimport { onErrorMixinFC } from 'shared/mixins';\r\nimport { useAgency } from 'shared/hooks/useAgency';\r\nimport LogFilter from '../email-logs/components/LogFilter';\r\nimport * as toast from 'shared/components/toast/Toast';\r\nimport * as R from 'ramda';\r\nimport { SmsRow } from './SmsRow';\r\nimport { OnFetchSmsListEvent, OnLeadsError } from 'modules/leads/leads-events';\r\nimport {\r\n OnFetchManagerAndAgentUsersError,\r\n OnFetchManagerAndAgentUsersEvent,\r\n} from 'modules/users/user-events';\r\n\r\nconst TableHeader = styled(Table.Header)``;\r\n\r\nconst TableBody = styled(Table.Body)``;\r\n\r\nconst CardHeader = styled.div`\r\n display: grid;\r\n grid-template-columns: repeat(2, 1fr);\r\n height: 64px;\r\n border-bottom: 1px solid #e8eff5;\r\n padding: 0 24px;\r\n position: relative;\r\n`;\r\n\r\nconst HeaderLeftSide = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\n\r\nconst HeaderRightSide = styled.div`\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\r\n > div {\r\n margin-left: 15px;\r\n max-width: 200px;\r\n }\r\n`;\r\n\r\nconst CardBody = styled.div`\r\n overflow: auto;\r\n padding: 0;\r\n`;\r\n\r\nconst PaginationContainer = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n font-size: 1.2rem;\r\n padding: 0 1rem;\r\n\r\n & > div > div > *::before {\r\n background-color: var(--color-primary);\r\n transition: all 0.2s;\r\n }\r\n\r\n & > div > span {\r\n display: inline-block;\r\n padding: 0.5rem 1.5rem;\r\n border: solid 1px #d0d7dd;\r\n border-radius: 5px;\r\n }\r\n`;\r\n\r\n/**\r\n * Component to fetch the Logs of the Lead SMS Messages\r\n *\r\n * @returns {React.Component} Return the Component.\r\n */\r\n\r\nconst SmsLogs = () => {\r\n const agency = useAgency();\r\n\r\n const [smsMessages, setSmsMessages] = useState([]);\r\n const [page, setPage] = useState(1);\r\n const [filter, setFilter] = useState(R.clone(SMS_FILTER_DATA));\r\n const [currentFilter, setCurrentFilter] = useState(R.clone(SMS_FILTER_DATA));\r\n const [showFilter, setShowFilter] = useState(false);\r\n const [filterCategories, setFilterCategories] = useState(R.clone(SMS_FILTER_CATEGORIES));\r\n const [loading, setLoading] = useState(true);\r\n\r\n useSimpleSubscription(OnFetchSmsListEvent, ({ sMSMessagesList }) => {\r\n setSmsMessages(sMSMessagesList);\r\n setLoading(false);\r\n });\r\n\r\n useSimpleSubscription(OnLeadsError, (err) => {\r\n console.log(err);\r\n onErrorMixinFC(err);\r\n });\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) => {\r\n const categoriesClone = R.clone(filterCategories);\r\n\r\n categoriesClone.assignedTo.options = usersList.items.map((user) => ({\r\n label: `${user.firstName} ${user.lastName}`,\r\n value: user.id,\r\n }));\r\n\r\n setFilterCategories(categoriesClone);\r\n });\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersError, () => {\r\n toast.error('Users Managment', 'There was an error fetching the users, please try again.');\r\n });\r\n\r\n const filterHandler = useCallback(\r\n (identifier, value) => {\r\n //console.log('filterHandlre called');\r\n const newFilter = { ...filter };\r\n newFilter[identifier] = value;\r\n if (identifier === 'dateStart') {\r\n if (newFilter.dateStart > newFilter.dateEnd) {\r\n newFilter.dateEnd = '';\r\n }\r\n }\r\n //console.log('newFilter', newFilter);\r\n setFilter(newFilter);\r\n },\r\n [filter],\r\n );\r\n\r\n const confirmFilterHandler = useCallback(() => {\r\n setShowFilter(false);\r\n setCurrentFilter(filter);\r\n setLoading(true);\r\n }, [filter]);\r\n\r\n const sortHandler = (value) => {\r\n const newState = R.clone(currentFilter);\r\n newState.sort = value;\r\n setCurrentFilter(newState);\r\n setLoading(true);\r\n };\r\n\r\n const filterClickHandler = () => {\r\n setShowFilter(true);\r\n };\r\n\r\n const handlePageChanger = (page) => {\r\n console.log(page);\r\n setPage(page);\r\n setLoading(true);\r\n };\r\n\r\n const getSmsMessages = () => {\r\n fetchSMSMessages(page, { ...currentFilter, agency: agency.id });\r\n };\r\n\r\n const getAgents = () => {\r\n fetchManagerAndAgents(agency.id);\r\n };\r\n\r\n useEffect(() => {\r\n if (loading) {\r\n getSmsMessages();\r\n getAgents();\r\n }\r\n // eslint-disable-next-line\r\n }, [loading]);\r\n\r\n const columnsSize = 'minmax(150px, 250px) minmax(150px, 250px) 150px minmax(150px, 1fr) 150px';\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {\r\n setFilter(currentFilter);\r\n }}\r\n />\r\n {\r\n sortHandler(value);\r\n }}\r\n value={currentFilter.sort}\r\n options={SMS_SORT_OPTIONS}\r\n placeholder=\"Sort SMS Logs by Date (Newest/Oldest)\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n From\r\n To\r\n Type\r\n Text\r\n Date\r\n \r\n \r\n {(smsMessage) => }\r\n \r\n \r\n \r\n {\r\n handlePageChanger(page);\r\n }}\r\n defaultPage={1}\r\n total={smsMessages.count}\r\n page={page}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default SmsLogs;\r\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport { Table, Paper, Dialog, Pagination } from '@8base/boost';\r\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\r\nimport { fetchPhoneCalls } from '../../phone-calls/phone-calls-actions';\r\nimport {\r\n FILTER_DATA,\r\n FILTER_CATEGORIES_OUTBOUND,\r\n SORT_OPTIONS,\r\n} from '../../phone-calls/phone-calls-model';\r\nimport { fetchManagerAndAgents } from '../../users/user-actions';\r\nimport { ItemFilter } from 'shared/components';\r\nimport FormValues from '../../../shared/components/forms/FormValues';\r\nimport { onErrorMixinFC } from 'shared/mixins';\r\nimport { DateBox } from 'shared/components';\r\nimport { useAgency } from 'shared/hooks/useAgency';\r\nimport LogFilter from '../email-logs/components/LogFilter';\r\nimport styled from 'styled-components';\r\nimport * as toast from 'shared/components/toast/Toast';\r\nimport * as R from 'ramda';\r\nimport { IconInfo } from '../../../shared/components/ui/Icons';\r\nimport { getPhoneNumberStr } from '../../my-account/phone-numbers/phone-numbers-utils';\r\nimport { formatPhoneNumber } from '../../phone-calls/phone-calls-utils';\r\nimport moment from 'moment';\r\nimport {\r\n OnFetchOutboundCallsError,\r\n OnFetchOutboundCallsEvent,\r\n} from 'modules/phone-calls/phone-calls-events';\r\nimport {\r\n OnFetchManagerAndAgentUsersError,\r\n OnFetchManagerAndAgentUsersEvent,\r\n} from 'modules/users/user-events';\r\n\r\nconst TableHeader = styled(Table.Header)``;\r\n\r\nconst TableBody = styled(Table.Body)``;\r\n\r\nconst TableBodyRow = styled(Table.BodyRow)``;\r\n\r\nconst CardHeader = styled.div`\r\n display: grid;\r\n grid-template-columns: repeat(2, 1fr);\r\n height: 64px;\r\n border-bottom: 1px solid #e8eff5;\r\n padding: 0 24px;\r\n position: relative;\r\n`;\r\n\r\nconst HeaderLeftSide = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\n\r\nconst HeaderRightSide = styled.div`\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\r\n > div {\r\n margin-left: 15px;\r\n max-width: 200px;\r\n }\r\n`;\r\n\r\nconst CardBody = styled.div`\r\n overflow: auto;\r\n padding: 0;\r\n`;\r\n\r\nconst PaginationContainer = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n font-size: 1.2rem;\r\n padding: 0 1rem;\r\n\r\n & > div > div > *::before {\r\n background-color: var(--color-primary);\r\n transition: all 0.2s;\r\n }\r\n\r\n & > div > span {\r\n display: inline-block;\r\n padding: 0.5rem 1.5rem;\r\n border: solid 1px #d0d7dd;\r\n border-radius: 5px;\r\n }\r\n`;\r\n\r\nconst columnsSize =\r\n 'minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) 150px';\r\n\r\n/**\r\n * Component to fetch the Logs of the Lead SMS Messages\r\n *\r\n * @returns {React.Component} Return the Component.\r\n */\r\n\r\nconst PhoneCallsLogs = () => {\r\n const agency = useAgency();\r\n\r\n const [phoneCalls, setPhoneCalls] = useState([]);\r\n const [page, setPage] = useState(1);\r\n const [filter, setFilter] = useState(R.clone(FILTER_DATA));\r\n const [currentFilter, setCurrentFilter] = useState(R.clone(FILTER_DATA));\r\n const [showFilter, setShowFilter] = useState(false);\r\n const [filterCategories, setFilterCategories] = useState(R.clone(FILTER_CATEGORIES_OUTBOUND));\r\n const [loading, setLoading] = useState(true);\r\n const [disposition, setDisposition] = useState({ open: false, data: {} });\r\n\r\n useSimpleSubscription(OnFetchOutboundCallsEvent, ({ phoneCallsList }) => {\r\n setPhoneCalls(phoneCallsList);\r\n setLoading(false);\r\n });\r\n\r\n useSimpleSubscription(OnFetchOutboundCallsError, (err) => {\r\n onErrorMixinFC(err);\r\n });\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) => {\r\n const categoriesClone = R.clone(filterCategories);\r\n const defaultOption = {\r\n label: `None`,\r\n value: '',\r\n };\r\n categoriesClone.assignedTo.options = usersList.items.map((user) => ({\r\n label: `${user.firstName} ${user.lastName}`,\r\n value: user.id,\r\n }));\r\n categoriesClone.assignedTo.options.unshift(defaultOption);\r\n setFilterCategories(categoriesClone);\r\n });\r\n\r\n useSimpleSubscription(OnFetchManagerAndAgentUsersError, () => {\r\n toast.error('Users Managment', 'There was an error fetching the users, please try again.');\r\n });\r\n\r\n const filterHandler = useCallback(\r\n (identifier, value) => {\r\n const newFilter = { ...filter };\r\n newFilter[identifier] = value;\r\n if (identifier === 'dateStart') {\r\n if (newFilter.dateStart > newFilter.dateEnd) {\r\n newFilter.dateEnd = '';\r\n }\r\n }\r\n setFilter(newFilter);\r\n },\r\n [filter],\r\n );\r\n\r\n const onDispositionClick = useCallback((data) => {\r\n setDisposition((state) => ({\r\n ...state,\r\n data: {\r\n carrier: data.carrier,\r\n currentPremium: data.currentPremium,\r\n quotedPremium: data.quotedPremium,\r\n status: data?.status?.name,\r\n expirationDate: data?.expirationDate\r\n ? moment(data?.expirationDate).format('MM/DD/YYYY')\r\n : '',\r\n insurance: data?.insurance,\r\n notes: data.notes,\r\n ifsScore: '',\r\n createdAt: moment(data.createdAt).format('MM/DD/YYYY'),\r\n createdBy: `${data.createdBy.firstName} ${data.createdBy.lastName} (${data.createdBy.email})`,\r\n },\r\n open: true,\r\n }));\r\n }, []);\r\n\r\n const confirmFilterHandler = useCallback(() => {\r\n setShowFilter(false);\r\n setCurrentFilter(filter);\r\n setLoading(true);\r\n }, [filter]);\r\n\r\n const sortHandler = (value) => {\r\n const newState = R.clone(currentFilter);\r\n newState.sort = value;\r\n setCurrentFilter(newState);\r\n setLoading(true);\r\n };\r\n\r\n const filterClickHandler = () => {\r\n setShowFilter(true);\r\n };\r\n\r\n const handlePageChanger = (page) => {\r\n setPage(page);\r\n setLoading(true);\r\n };\r\n\r\n const getSmsMessages = () => {\r\n fetchPhoneCalls(page, { ...currentFilter, agency: agency.id });\r\n };\r\n\r\n const getAgents = () => {\r\n fetchManagerAndAgents(agency.id);\r\n };\r\n\r\n useEffect(() => {\r\n if (loading) {\r\n getSmsMessages();\r\n getAgents();\r\n }\r\n // eslint-disable-next-line\r\n }, [loading]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {\r\n setFilter(currentFilter);\r\n }}\r\n />\r\n {\r\n sortHandler(value);\r\n }}\r\n value={currentFilter.sort}\r\n options={SORT_OPTIONS}\r\n placeholder=\"Sort Call Logs by Date (Newest/Oldest)\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n Leads\r\n From\r\n To\r\n Agents\r\n Dates\r\n Disposition\r\n \r\n \r\n {(phoneCall) => (\r\n \r\n \r\n {phoneCall.lead\r\n ? `${phoneCall.lead.firstName} ${phoneCall.lead.lastName}`\r\n : 'Without Lead'}\r\n \r\n \r\n {phoneCall.from && formatPhoneNumber(getPhoneNumberStr(phoneCall.from))}\r\n \r\n {phoneCall.to}\r\n \r\n {phoneCall.createdBy.firstName} {phoneCall.createdBy.lastName}\r\n \r\n \r\n \r\n \r\n \r\n {phoneCall.phoneCallDispositionRelation && (\r\n onDispositionClick(phoneCall.phoneCallDispositionRelation)}\r\n />\r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n handlePageChanger(page);\r\n }}\r\n defaultPage={1}\r\n total={phoneCalls.count}\r\n page={page}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n {disposition.open && (\r\n \r\n setDisposition((state) => ({ ...state, open: false, data: {} }))}\r\n />\r\n \r\n \r\n \r\n \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nconst rows = [\r\n [\r\n {\r\n key: 'carrier',\r\n label: 'Carrier',\r\n type: 'text',\r\n },\r\n {\r\n key: 'currentPremium',\r\n label: 'Current Premium',\r\n type: 'text',\r\n },\r\n {\r\n key: 'quotedPremium',\r\n label: 'Quoted Premium',\r\n type: 'text',\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n type: 'text',\r\n },\r\n ],\r\n [\r\n {\r\n key: 'insurance',\r\n label: 'Insurance',\r\n type: 'text',\r\n },\r\n {\r\n key: 'expirationDate',\r\n label: 'Expiration Date',\r\n type: 'text',\r\n },\r\n ],\r\n [\r\n {\r\n key: 'score',\r\n label: 'Score',\r\n type: 'text',\r\n },\r\n {\r\n key: 'createdAt',\r\n label: 'Dispositon created at',\r\n type: 'text',\r\n },\r\n ],\r\n [\r\n {\r\n key: 'createdBy',\r\n label: 'Created By',\r\n type: 'text',\r\n },\r\n ],\r\n];\r\n\r\nexport default PhoneCallsLogs;\r\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Row, Dropdown, Text, Grid, DateInputField } from '@8base/boost';\nimport { FilterButtonWithFocus as Button, Padding } from '../../../../shared/components';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport * as moment from 'moment';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Container = styled(Padding)`\n border-bottom: solid 1px #d0d7dd;\n`;\n\n/**\n * Agents info filter component\n *\n * @param {object} props - The component's prop object\n * @param {Function} props.onFilter - The function to submit changes\n *\n * @returns {React.FC} The component to render\n */\nfunction AgentsInfoFilter({ onFilter }) {\n const [isOpen, setOpen] = useState(false);\n const [form, setForm] = useState({});\n\n useEffect(() => {\n setForm((state) => ({\n ...state,\n from: moment()\n .startOf('month')\n .format('YYYY-MM-DD'),\n to: moment()\n .endOf('month')\n .format('YYYY-MM-DD'),\n }));\n }, []);\n\n const handleToggle = useCallback(() => {\n setOpen((state) => !state);\n }, []);\n\n const handleDropdownClose = useCallback(() => {\n setOpen(false);\n }, []);\n\n const handleChange = useCallback((name, value) => {\n setForm((state) => ({\n ...state,\n [name]: value,\n }));\n }, []);\n\n const handleApply = useCallback(() => {\n if (!form.from || !form.to) return Toast.error('Both dates are needed');\n\n onFilter(form);\n\n setOpen(false);\n }, [form, onFilter]);\n\n const handleCancel = useCallback(() => {\n setOpen(false);\n }, []);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {categories === 3 && (\n <>\n \n handleChange('from', value),\n }}\n />\n \n \n handleChange('to', value),\n }}\n />\n \n \n )}\n \n \n \n \n \n Apply Filters\n \n \n Cancel\n \n \n \n \n \n );\n}\n\nAgentsInfoFilter.propTypes = {\n onFilter: PropTypes.func.isRequired,\n};\n\nexport default AgentsInfoFilter;\n","import React, { useCallback, useState } from 'react';\nimport { Row, Grid } from '@8base/boost';\nimport AgentsInfoFilter from './AgentsCallsFilter';\nimport { SearchInput } from '../../../../shared/components';\nimport PropTypes from 'prop-types';\nimport moment from 'moment';\n\n/**\n * Agents info header component\n *\n * @param {object} props - The props object\n * @param {Function} props.onFilter - The set filter function\n *\n * @returns {React.FC} The component to render\n */\nfunction AgentsCallsHeader({ onFilter }) {\n const [search, setSearch] = useState('');\n\n const handleFilter = useCallback(\n (filter) => {\n const from = moment(filter.from).toISOString();\n const to = moment(filter.to).toISOString();\n\n onFilter((state) => ({\n ...state,\n from,\n to,\n }));\n },\n [onFilter],\n );\n\n const handleSearch = useCallback(() => {\n onFilter((state) => ({\n ...state,\n search,\n }));\n }, [search, onFilter]);\n\n return (\n \n \n \n \n \n \n \n \n \n \n );\n}\n\nAgentsCallsHeader.propTypes = {\n onFilter: PropTypes.func.isRequired,\n};\n\nexport default AgentsCallsHeader;\n","import moment from 'moment';\n/**\n * @param {number|string}time - Time to add cero.\n * @returns {string} - string with left cero.\n */\nexport function addLeftCero(time) {\n return `0${parseInt(time)}`.slice(-2);\n}\n/**\n * @param {number} duration - Duaration as seconds by default\n * @param {string} unit - To define the unit in which the duration has to be calculated.\n * @returns {string} - Formated duration string\n */\nexport function formatDuration(duration, unit = 'seconds') {\n const momentDuration = moment.duration(duration, unit);\n\n const hours = addLeftCero(momentDuration.hours());\n const minutes = addLeftCero(momentDuration.minutes());\n const seconds = addLeftCero(momentDuration.seconds());\n\n return `${hours}:${minutes}:${seconds}`;\n}\n","import React from 'react';\nimport { Table } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport StyledBadge from '../../../../shared/components/ui/StyledBadge';\nimport { AGENTS_CALL_PERFORMANCE_STATUSES as STATUSES } from '@cobuildlab/lead-volt-share';\nimport { formatDuration } from '../../../../shared/utils/moment-utils';\n\n/**\n * Agents info row component\n *\n * @param {object} props - The component's prop object\n * @param {object} props.agent - The user object\n * @param {string} props.columns - The columns layout\n * @param {object} props.filters - The filters object\n * @param {string} props.agencyId - The agency id\n *\n * @returns {React.FC} The component to render\n */\nfunction AgentsInfoRow({ agent, columns }) {\n let priority = 1;\n if (agent.status === STATUSES.BAD) {\n priority = 4;\n } else if (agent.status === STATUSES.REGULAR) {\n priority = 2;\n }\n const totalTalkTime = formatDuration(Number(agent.totalTalkTime));\n const talkTimeAverage = `${formatDuration(Number(agent.talkTimeAverage))}/h`;\n const callsPerHours = Number(agent.callsPerHours).toFixed(2);\n\n return (\n \n \n \n {agent.firstName} {agent.lastName}\n \n \n {callsPerHours}\n {agent.outboundDialsCount}\n {agent.totalDialsCount}\n {agent.contacts}\n {agent.dialPerContact}\n {totalTalkTime}\n {talkTimeAverage}\n {agent.quotesPerClose}\n \n );\n}\n\nAgentsInfoRow.propTypes = {\n agent: PropTypes.shape({\n id: PropTypes.string.isRequired,\n firstName: PropTypes.string.isRequired,\n lastName: PropTypes.string.isRequired,\n status: PropTypes.string.isRequired,\n totalTalkTime: PropTypes.number,\n talkTimeAverage: PropTypes.number,\n outboundDialsCount: PropTypes.number,\n totalDialsCount: PropTypes.number,\n contacts: PropTypes.number,\n dialPerContact: PropTypes.number,\n callsPerHours: PropTypes.number,\n quotesPerClose: PropTypes.number,\n }).isRequired,\n columns: PropTypes.string.isRequired,\n filters: PropTypes.shape({\n from: PropTypes.string.isRequired,\n to: PropTypes.string.isRequired,\n }).isRequired,\n // agencyId: PropTypes.string.isRequired,\n};\n\nexport default AgentsInfoRow;\n","import gql from 'graphql-tag';\n\nexport const FETCH_AGENT_CALL_REPORT_QUERY = gql`\n query FetchAgentCalls(\n $agency: ID!\n $search: String\n $startDate: DateTime!\n $endDate: DateTime!\n $first: Int\n $skip: Int\n ) {\n agentsCalls(\n agency: $agency\n search: $search\n startDate: $startDate\n endDate: $endDate\n first: $first\n skip: $skip\n ) {\n items {\n firstName\n lastName\n outboundDialsCount\n totalDialsCount\n contacts\n callsPerHours\n status\n totalTalkTime\n dialPerContact\n talkTimePerHour\n talkTimeAverage\n quotesPerClose\n }\n count\n }\n }\n`;\n","import { OnApolloClient } from '../../../shared/session/session-events';\nimport { FETCH_AGENT_CALL_REPORT_QUERY } from './agent-calls-querys';\nimport { log } from '@cobuildlab/pure-logger';\n\n/**\n * @param {string} agency - Agency id\n * @param {string} search - The search param\n * @param {string} startDate - Bottom date\n * @param {string} endDate - Top date\n * @param {number} page - page number\n *\n * @returns {{items:[],count:number}} - Data\n */\nexport async function fetchAgentCallsReport(agency, search, startDate, endDate, page = 1) {\n const client = OnApolloClient.get();\n\n const first = 10;\n const skip = (page - 1) * first;\n const variables = {\n agency,\n search,\n startDate,\n endDate,\n first,\n skip,\n };\n\n const response = await client.query({\n query: FETCH_AGENT_CALL_REPORT_QUERY,\n fetchPolicy: 'network-only',\n variables,\n });\n\n log('fetchAgentCallsReport', response.data);\n\n return response.data.agentsCalls;\n}\n","import React, { useState } from 'react';\nimport { Card, Table as BoostTable, Row, Pagination } from '@8base/boost';\nimport AgentsCallsHeader from './components/AgentsCallsHeader';\nimport AgentsInfoRow from './components/AgentsCallsRow';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport styled from 'styled-components';\nimport { useAgentCallsReport } from './agent-calls-hooks';\nimport { getDates } from './agent-calls-utils';\n\nconst Table = styled(BoostTable)`\n & div[role='loader'] > div[role='loader'] div {\n border-color: #3db4aa !important;\n }\n`;\n\nconst Body = styled(BoostTable.Body)`\n min-height: 400px;\n`;\n\nconst columns = 'minmax(200px, 1fr) 140px 140px 140px 140px 140px 140px 140px 140px';\n\n/**\n * Agency Info Component\n *\n * @returns {React.FC} The component to render\n */\nfunction AgentCalls() {\n const [page, setPage] = useState(1);\n const [filters, setFilters] = useState(() => ({\n from: getDates('day-start'),\n to: getDates('now'),\n search: '',\n }));\n const agency = useAgency();\n\n const [users, count, loading] = useAgentCallsReport(agency.id, page, filters);\n\n return (\n \n \n \n \n \n \n \n Agent\n Dials/hours\n Outboud dials\n Total dials\n Contacts\n Dials/contacts\n TalkTime\n TalkTime(%)\n Quotes/Close\n \n \n {(agent) => (\n \n )}\n \n \n \n \n \n \n
    \n
    \n
    \n );\n}\n\nexport default AgentCalls;\n","import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe = T;\nexport type Exact = { [K in keyof T]: T[K] };\nexport type MakeOptional = Omit & { [SubKey in K]?: Maybe };\nexport type MakeMaybe = Omit & { [SubKey in K]: Maybe };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: string;\n String: string;\n Boolean: boolean;\n Int: number;\n Float: number;\n /** A date-time string at UTC, such as `2007-12-25T16:15:30Z`, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */\n DateTime: any;\n /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */\n JSON: any;\n /** The `BigInt` scalar type represents whole numeric values. */\n BigInt: any;\n /** A date string, such as `2007-12-25`, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */\n Date: any;\n /** A time string at UTC, such as `16:15:30Z`, compliant with the `full-time` format outlined in section 5.6 of the RFC 3339profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */\n Time: any;\n};\nexport type Admin = {\n __typename?: 'Admin';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n company: Maybe;\n _description: Maybe;\n};\n\nexport type Admin_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Admin_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Company create input from adminCompanyRelation */\nexport type AdminCompanyRelation_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from adminCompanyRelation */\nexport type AdminCompanyRelation_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Admin create input */\nexport type AdminCreateInput = {\n user: AdminUserRelationInput;\n company: AdminCompanyRelationInput;\n};\n\n/** Admin create many input */\nexport type AdminCreateManyInput = {\n user: AdminUserManyRelationInput;\n company: AdminCompanyManyRelationInput;\n};\n\n/** Admin delete input */\nexport type AdminDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AdminFieldsPermissions create input */\nexport type AdminFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n};\n\nexport type AdminFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AdminGroupBy = {\n query: AdminGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AdminGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n company?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AdminKeyFilter = {\n id?: Maybe;\n};\n\n/** AdminListResponse output */\nexport type AdminListResponse = {\n __typename?: 'AdminListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AdminManyResponse output */\nexport type AdminManyResponse = {\n __typename?: 'AdminManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AdminOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n\n/** Admin subscription payload */\nexport type AdminPayload = {\n __typename?: 'AdminPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AdminRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type AdminSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n company?: Maybe;\n};\n\n/** Admin subscription filter */\nexport type AdminSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Admin update input */\nexport type AdminUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n company?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Admin relation input */\nexport type AdminUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type Agency = {\n __typename?: 'Agency';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n quoteOfDay: Maybe;\n agencyAgentRelation: Maybe;\n agencyManagerRelation: Maybe;\n agencyInvitationAgencyRelation: Maybe;\n company: Maybe;\n agencyCampaignRelation: Maybe;\n phoneNumbersRelation: Maybe;\n agencyOutboundServiceRelation: Maybe;\n mailThreadAgencyRelation: Maybe;\n agencyInboundServiceRelation: Maybe;\n automaticCallConfigRelation: Maybe;\n shouldRecordCalls: Maybe;\n phoneCalls: Maybe;\n phoneCallSettings: Maybe;\n voiceMailMessages: Maybe;\n ifsScores: Maybe;\n agencyAgencyUserRelation: Maybe;\n notificationRelation: Maybe;\n marketingSmsTemplates: Maybe;\n ifsScore: Maybe>>;\n marketingCampaigns: Maybe;\n marketingEmailTemplates: Maybe;\n workflowEmailTemplates: Maybe;\n workflowSmsTemplates: Maybe;\n workflowAutomations: Maybe;\n userSelectedAgencyRelation: Maybe;\n chatChannelRelation: Maybe;\n agencySMSMessageRelation: Maybe;\n inboundPhoneCallAgencyRelation: Maybe;\n agencyLeadTaskRelation: Maybe;\n agencyVendorRelation: Maybe;\n gmailConfigurations: Maybe;\n outlookServices: Maybe;\n emailService: Maybe;\n emails: Maybe;\n _description: Maybe;\n};\nexport type AgencyAgencyAgentRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyManagerRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyInvitationAgencyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyCampaignRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyPhoneNumbersRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type AgencyAgencyOutboundServiceRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyMailThreadAgencyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyInboundServiceRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyPhoneCallsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyVoiceMailMessagesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyAgencyUserRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyNotificationRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyMarketingSmsTemplatesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyMarketingCampaignsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyMarketingEmailTemplatesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyWorkflowEmailTemplatesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyWorkflowSmsTemplatesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyWorkflowAutomationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type AgencyUserSelectedAgencyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyChatChannelRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencySmsMessageRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyInboundPhoneCallAgencyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyLeadTaskRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyAgencyVendorRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyGmailConfigurationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyOutlookServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgencyEmailsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** AgencyEmailService create input from agency */\nexport type Agency_AgencyEmailServiceCreateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** AgencyEmailService update input from agency */\nexport type Agency_AgencyEmailServiceUpdateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n/** AgencyInvitation create input from agency */\nexport type Agency_AgencyInvitationCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\n\n/** AgencyInvitation update input from agency */\nexport type Agency_AgencyInvitationUpdateInput = {\n filter?: Maybe;\n data: AgencyInvitationUpdateInput;\n};\n\n/** AgencyUser create input from agency */\nexport type Agency_AgencyUserCreateInput = {\n agency?: Maybe;\n user?: Maybe;\n roles?: Maybe>>;\n};\n\n/** AgencyUser update input from agency */\nexport type Agency_AgencyUserUpdateInput = {\n filter?: Maybe;\n data: AgencyUserUpdateInput;\n};\n\n/** Agent create input from agency */\nexport type Agency_AgentCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent update input from agency */\nexport type Agency_AgentUpdateInput = {\n filter?: Maybe;\n data: AgentUpdateInput;\n};\n\n/** Announcement create input from agency */\nexport type Agency_AnnouncementCreateInput = {\n agency?: Maybe;\n title: Scalars['String'];\n content: Scalars['String'];\n type?: Maybe;\n author?: Maybe;\n};\n\n/** Announcement update input from agency */\nexport type Agency_AnnouncementUpdateInput = {\n agency?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n};\n\n/** Campaign create input from agency */\nexport type Agency_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from agency */\nexport type Agency_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\n/** Channel create input from agency */\nexport type Agency_ChannelCreateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name: Scalars['String'];\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel update input from agency */\nexport type Agency_ChannelUpdateInput = {\n filter?: Maybe;\n data: ChannelUpdateInput;\n};\n\n/** EmailInboundServices create input from agency */\nexport type Agency_EmailInboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n server: Scalars['String'];\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n lastChecked?: Maybe;\n};\n\n/** EmailInboundServices update input from agency */\nexport type Agency_EmailInboundServiceUpdateInput = {\n filter?: Maybe;\n data: EmailInboundServiceUpdateInput;\n};\n\n/** EmailOutboundService create input from agency */\nexport type Agency_EmailOutboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server: Scalars['String'];\n port: Scalars['Int'];\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService update input from agency */\nexport type Agency_EmailOutboundServiceUpdateInput = {\n filter?: Maybe;\n data: EmailOutboundServiceUpdateInput;\n};\n\n/** GmailService create input from agency */\nexport type Agency_GmailServiceCreateInput = {\n user: GmailServiceUserRelationInput;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService update input from agency */\nexport type Agency_GmailServiceUpdateInput = {\n filter?: Maybe;\n data: GmailServiceUpdateInput;\n};\n\n/** InboundPhoneCall create input from agency */\nexport type Agency_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to: InboundPhoneCallToRelationInput;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall update input from agency */\nexport type Agency_InboundPhoneCallUpdateInput = {\n filter?: Maybe;\n data: InboundPhoneCallUpdateInput;\n};\n\n/** LeadTask create input from agency */\nexport type Agency_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type?: Maybe;\n status?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n};\n\n/** LeadTask update input from agency */\nexport type Agency_LeadTaskUpdateInput = {\n filter?: Maybe;\n data: LeadTaskUpdateInput;\n};\n\n/** Mail create input from agency */\nexport type Agency_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** MailThread create input from agency */\nexport type Agency_MailThreadCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\n/** MailThread update input from agency */\nexport type Agency_MailThreadUpdateInput = {\n filter?: Maybe;\n data: MailThreadUpdateInput;\n};\n\n/** Mail update input from agency */\nexport type Agency_MailUpdateInput = {\n filter?: Maybe;\n data: MailUpdateInput;\n};\n\n/** Manager create input from agency */\nexport type Agency_ManagerCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n};\n\n/** Manager update input from agency */\nexport type Agency_ManagerUpdateInput = {\n filter?: Maybe;\n data: ManagerUpdateInput;\n};\n\n/** MarketingCampaign create input from agency */\nexport type Agency_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign update input from agency */\nexport type Agency_MarketingCampaignUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignUpdateInput;\n};\n\n/** MarketingEmailTemplate create input from agency */\nexport type Agency_MarketingEmailTemplateCreateInput = {\n name: Scalars['String'];\n template?: Maybe;\n json: Scalars['JSON'];\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsRelationInput\n >;\n agency?: Maybe;\n};\n\n/** MarketingEmailTemplate update input from agency */\nexport type Agency_MarketingEmailTemplateUpdateInput = {\n filter?: Maybe;\n data: MarketingEmailTemplateUpdateInput;\n};\n\n/** MarketingSmsTemplate create input from agency */\nexport type Agency_MarketingSmsTemplateCreateInput = {\n name?: Maybe;\n text: Scalars['String'];\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingSmsTemplate update input from agency */\nexport type Agency_MarketingSmsTemplateUpdateInput = {\n filter?: Maybe;\n data: MarketingSmsTemplateUpdateInput;\n};\n\n/** Notification create input from agency */\nexport type Agency_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from agency */\nexport type Agency_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\n/** OutlookService create input from agency */\nexport type Agency_OutlookServiceCreateInput = {\n user: OutlookServiceUserRelationInput;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** OutlookService update input from agency */\nexport type Agency_OutlookServiceUpdateInput = {\n filter?: Maybe;\n data: OutlookServiceUpdateInput;\n};\n\nexport type Agency_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n shouldRecordCalls?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Agency_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneCall create input from agency */\nexport type Agency_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallSetting create input from agency */\nexport type Agency_PhoneCallSettingCreateInput = {\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n agency?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\n/** PhoneCallSetting update input from agency */\nexport type Agency_PhoneCallSettingUpdateInput = {\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n agency?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\n/** PhoneCall update input from agency */\nexport type Agency_PhoneCallUpdateInput = {\n filter?: Maybe;\n data: PhoneCallUpdateInput;\n};\n\n/** PhoneNumber create input from agency */\nexport type Agency_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from agency */\nexport type Agency_PhoneNumberUpdateInput = {\n filter?: Maybe;\n data: PhoneNumberUpdateInput;\n};\n\n/** SMSMessage create input from agency */\nexport type Agency_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from agency */\nexport type Agency_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** Vendor create input from agency */\nexport type Agency_VendorCreateInput = {\n name: Scalars['String'];\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n};\n\n/** Vendor update input from agency */\nexport type Agency_VendorUpdateInput = {\n filter?: Maybe;\n data: VendorUpdateInput;\n};\n\n/** VoiceMailMessage create input from agency */\nexport type Agency_VoiceMailMessageCreateInput = {\n name: Scalars['String'];\n agency?: Maybe;\n active?: Maybe;\n audio: VoiceMailMessageAudioRelationInput;\n type?: Maybe;\n};\n\n/** VoiceMailMessage update input from agency */\nexport type Agency_VoiceMailMessageUpdateInput = {\n filter?: Maybe;\n data: VoiceMailMessageUpdateInput;\n};\n\n/** WorkflowAutomation create input from agency */\nexport type Agency_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation update input from agency */\nexport type Agency_WorkflowAutomationUpdateInput = {\n filter?: Maybe;\n data: WorkflowAutomationUpdateInput;\n};\n\n/** WorkflowEmailTemplate create input from agency */\nexport type Agency_WorkflowEmailTemplateCreateInput = {\n name: Scalars['String'];\n subject: Scalars['String'];\n template: Scalars['String'];\n json: Scalars['JSON'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowEmailTemplate update input from agency */\nexport type Agency_WorkflowEmailTemplateUpdateInput = {\n filter?: Maybe;\n data: WorkflowEmailTemplateUpdateInput;\n};\n\n/** WorkflowSmsTemplate create input from agency */\nexport type Agency_WorkflowSmsTemplateCreateInput = {\n name: Scalars['String'];\n text: Scalars['String'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate update input from agency */\nexport type Agency_WorkflowSmsTemplateUpdateInput = {\n filter?: Maybe;\n data: WorkflowSmsTemplateUpdateInput;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgencyUserRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgencyUserRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgencyUserRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgentRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgentRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyAgentRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyCampaignRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyCampaignRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyCampaignRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInboundServiceRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInboundServiceRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInboundServiceRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInvitationAgencyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInvitationAgencyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyInvitationAgencyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyLeadTaskRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyLeadTaskRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyLeadTaskRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyManagerRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyManagerRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyManagerRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyOutboundServiceRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyOutboundServiceRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyOutboundServiceRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencySmsMessageRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencySmsMessageRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencySmsMessageRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency create input from agencyAgencyUserRelation */\nexport type AgencyAgencyUserRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyAgencyUserRelation */\nexport type AgencyAgencyUserRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyVendorRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyVendorRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyAgencyVendorRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency create input from agencyAgentRelation */\nexport type AgencyAgentRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyAgentRelation */\nexport type AgencyAgentRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyAutomaticCallConfigRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyAutomaticCallConfigRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyAutomaticCallConfigRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency create input from agencyCampaignRelation */\nexport type AgencyCampaignRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyCampaignRelation */\nexport type AgencyCampaignRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyChatChannelRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyChatChannelRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyChatChannelRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Company create input from agencyCompanyRelation */\nexport type AgencyCompanyRelation_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from agencyCompanyRelation */\nexport type AgencyCompanyRelation_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency create input */\nexport type AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency create many input */\nexport type AgencyCreateManyInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company: AgencyCompanyManyRelationInput;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency delete input */\nexport type AgencyDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\nexport type AgencyEmailService = {\n __typename?: 'AgencyEmailService';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n agency: Maybe;\n outbound: Maybe;\n gmail: Maybe;\n outlook: Maybe;\n _description: Maybe;\n};\n\n/** EmailOutboundService create input from agencyEmailService */\nexport type AgencyEmailService_EmailOutboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server: Scalars['String'];\n port: Scalars['Int'];\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService update input from agencyEmailService */\nexport type AgencyEmailService_EmailOutboundServiceUpdateInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService create input from agencyEmailService */\nexport type AgencyEmailService_GmailServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService update input from agencyEmailService */\nexport type AgencyEmailService_GmailServiceUpdateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** OutlookService create input from agencyEmailService */\nexport type AgencyEmailService_OutlookServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** OutlookService update input from agencyEmailService */\nexport type AgencyEmailService_OutlookServiceUpdateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\nexport type AgencyEmailService_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AgencyEmailService create input */\nexport type AgencyEmailServiceCreateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** AgencyEmailService create many input */\nexport type AgencyEmailServiceCreateManyInput = {\n agency: AgencyEmailServiceAgencyManyRelationInput;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** AgencyEmailService delete input */\nexport type AgencyEmailServiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AgencyEmailServiceFieldsPermissions create input */\nexport type AgencyEmailServiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n};\n\nexport type AgencyEmailServiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceGmailManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceGmailRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceGmailUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type AgencyEmailServiceGroupBy = {\n query: AgencyEmailServiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AgencyEmailServiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AgencyEmailServiceKeyFilter = {\n id?: Maybe;\n};\n\n/** AgencyEmailServiceListResponse output */\nexport type AgencyEmailServiceListResponse = {\n __typename?: 'AgencyEmailServiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Agency relation input */\nexport type AgencyEmailServiceManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyEmailServiceManyResponse output */\nexport type AgencyEmailServiceManyResponse = {\n __typename?: 'AgencyEmailServiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AgencyEmailServiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutboundManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutboundRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutboundUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutlookManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutlookRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyEmailService relation input */\nexport type AgencyEmailServiceOutlookUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AgencyEmailService subscription payload */\nexport type AgencyEmailServicePayload = {\n __typename?: 'AgencyEmailServicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyEmailServiceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type AgencyEmailServiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** AgencyEmailService subscription filter */\nexport type AgencyEmailServiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AgencyEmailService update input */\nexport type AgencyEmailServiceUpdateInput = {\n id?: Maybe;\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyEmailServiceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyEmailsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyEmailsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyEmailsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** AgencyFieldsPermissions create input */\nexport type AgencyFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n shouldRecordCalls?: Maybe;\n ifsScores?: Maybe;\n ifsScore?: Maybe;\n};\n\nexport type AgencyFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n shouldRecordCalls?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyGmailConfigurationsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyGmailConfigurationsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyGmailConfigurationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type AgencyGroupBy = {\n query: AgencyGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AgencyGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n shouldRecordCalls?: Maybe>;\n ifsScores?: Maybe>;\n ifsScore?: Maybe>;\n createdBy?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n _group?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyInboundPhoneCallAgencyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyInboundPhoneCallAgencyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyInboundPhoneCallAgencyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency create input from agencyInboundServiceRelation */\nexport type AgencyInboundServiceRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyInboundServiceRelation */\nexport type AgencyInboundServiceRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type AgencyInvitation = {\n __typename?: 'AgencyInvitation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n email: Maybe;\n status: Maybe;\n type: Maybe;\n agency: Maybe;\n /** deprecated */\n resendInvitation: Maybe;\n resended: Maybe;\n _description: Maybe;\n};\n\nexport type AgencyInvitationResendedArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type AgencyInvitation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n resendInvitation?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n resended?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type AgencyInvitation_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency create input from agencyInvitationAgencyRelation */\nexport type AgencyInvitationAgencyRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyInvitationAgencyRelation */\nexport type AgencyInvitationAgencyRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AgencyInvitation create input */\nexport type AgencyInvitationCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\n\n/** AgencyInvitation create many input */\nexport type AgencyInvitationCreateManyInput = {\n email: Scalars['String'];\n status?: Maybe;\n type?: Maybe;\n agency: AgencyInvitationAgencyManyRelationInput;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\n\n/** AgencyInvitation delete input */\nexport type AgencyInvitationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AgencyInvitationFieldsPermissions create input */\nexport type AgencyInvitationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n resendInvitation?: Maybe;\n};\n\nexport type AgencyInvitationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n resendInvitation?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n resended?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AgencyInvitationGroupBy = {\n query: AgencyInvitationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AgencyInvitationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n email?: Maybe>;\n status?: Maybe>;\n type?: Maybe>;\n resendInvitation?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n resended?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AgencyInvitationKeyFilter = {\n id?: Maybe;\n};\n\n/** AgencyInvitationListResponse output */\nexport type AgencyInvitationListResponse = {\n __typename?: 'AgencyInvitationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AgencyInvitationManyResponse output */\nexport type AgencyInvitationManyResponse = {\n __typename?: 'AgencyInvitationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AgencyInvitationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n ResendInvitationAsc = 'resendInvitation_ASC',\n ResendInvitationDesc = 'resendInvitation_DESC',\n}\n\n/** AgencyInvitation subscription payload */\nexport type AgencyInvitationPayload = {\n __typename?: 'AgencyInvitationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AgencyInvitationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationResendedManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationResendedRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** AgencyInvitation relation input */\nexport type AgencyInvitationResendedUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type AgencyInvitationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n resendInvitation?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** AgencyInvitation subscription filter */\nexport type AgencyInvitationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AgencyInvitation update input */\nexport type AgencyInvitationUpdateByFilterInput = {\n email?: Maybe>>;\n status?: Maybe>>;\n type?: Maybe>>;\n resendInvitation?: Maybe>>;\n};\n\n/** AgencyInvitation update input */\nexport type AgencyInvitationUpdateInput = {\n id?: Maybe;\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\n\nexport type AgencyKeyFilter = {\n id?: Maybe;\n};\n\n/** Agency create input from agencyLeadTaskRelation */\nexport type AgencyLeadTaskRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyLeadTaskRelation */\nexport type AgencyLeadTaskRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** AgencyListResponse output */\nexport type AgencyListResponse = {\n __typename?: 'AgencyListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Agency relation input */\nexport type AgencyMailThreadAgencyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyMailThreadAgencyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMailThreadAgencyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency create input from agencyManagerRelation */\nexport type AgencyManagerRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyManagerRelation */\nexport type AgencyManagerRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** AgencyManyResponse output */\nexport type AgencyManyResponse = {\n __typename?: 'AgencyManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Agency relation input */\nexport type AgencyMarketingCampaignsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingCampaignsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingCampaignsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingEmailTemplatesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingEmailTemplatesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingEmailTemplatesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingSmsTemplatesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingSmsTemplatesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyMarketingSmsTemplatesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyNotificationRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyNotificationRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyNotificationRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AgencyOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n ShouldRecordCallsAsc = 'shouldRecordCalls_ASC',\n ShouldRecordCallsDesc = 'shouldRecordCalls_DESC',\n IfsScoresAsc = 'ifsScores_ASC',\n IfsScoresDesc = 'ifsScores_DESC',\n}\n\n/** Agency create input from agencyOutboundServiceRelation */\nexport type AgencyOutboundServiceRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyOutboundServiceRelation */\nexport type AgencyOutboundServiceRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyOutlookServicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyOutlookServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyOutlookServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency subscription payload */\nexport type AgencyPayload = {\n __typename?: 'AgencyPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallSettingsManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallSettingsRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallSettingsUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneCallsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneNumbersRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneNumbersRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyPhoneNumbersRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyQuoteOfDayManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyQuoteOfDayRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyQuoteOfDayUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AutomaticCallConfig create input from agencyRelation */\nexport type AgencyRelation_AutomaticCallConfigCreateInput = {\n status?: Maybe;\n agencyRelation?: Maybe;\n};\n\n/** AutomaticCallConfig update input from agencyRelation */\nexport type AgencyRelation_AutomaticCallConfigUpdateInput = {\n status?: Maybe;\n agencyRelation?: Maybe;\n};\n\nexport type AgencyRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from agencySMSMessageRelation */\nexport type AgencySmsMessageRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencySMSMessageRelation */\nexport type AgencySmsMessageRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type AgencySort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n shouldRecordCalls?: Maybe;\n createdBy?: Maybe;\n quoteOfDay?: Maybe;\n company?: Maybe;\n automaticCallConfigRelation?: Maybe;\n phoneCallSettings?: Maybe;\n emailService?: Maybe;\n};\n\n/** Agency subscription filter */\nexport type AgencySubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Agency update input */\nexport type AgencyUpdateByFilterInput = {\n name?: Maybe>>;\n shouldRecordCalls?: Maybe>>;\n ifsScores?: Maybe>>;\n ifsScore?: Maybe>>;\n};\n\n/** Agency update input */\nexport type AgencyUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type AgencyUser = {\n __typename?: 'AgencyUser';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n agency: Maybe;\n user: Maybe;\n roles: Maybe>>;\n _description: Maybe;\n};\n\nexport type AgencyUser_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AgencyUser_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AgencyUser create input */\nexport type AgencyUserCreateInput = {\n agency?: Maybe;\n user?: Maybe;\n roles?: Maybe>>;\n};\n\n/** AgencyUser create many input */\nexport type AgencyUserCreateManyInput = {\n agency: AgencyUserAgencyManyRelationInput;\n user: AgencyUserUserManyRelationInput;\n roles?: Maybe>>;\n};\n\n/** AgencyUser delete input */\nexport type AgencyUserDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AgencyUserFieldsPermissions create input */\nexport type AgencyUserFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n roles?: Maybe;\n};\n\nexport type AgencyUserFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AgencyUserGroupBy = {\n query: AgencyUserGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AgencyUserGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n roles?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AgencyUserKeyFilter = {\n id?: Maybe;\n};\n\n/** AgencyUserListResponse output */\nexport type AgencyUserListResponse = {\n __typename?: 'AgencyUserListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AgencyUserManyResponse output */\nexport type AgencyUserManyResponse = {\n __typename?: 'AgencyUserManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AgencyUserOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n\n/** AgencyUser subscription payload */\nexport type AgencyUserPayload = {\n __typename?: 'AgencyUserPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AgencyUserRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyUserSelectedAgencyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyUserSelectedAgencyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyUserSelectedAgencyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type AgencyUserSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n};\n\n/** AgencyUser subscription filter */\nexport type AgencyUserSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AgencyUser update input */\nexport type AgencyUserUpdateByFilterInput = {\n roles?: Maybe>>;\n};\n\n/** AgencyUser update input */\nexport type AgencyUserUpdateInput = {\n id?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n roles?: Maybe>>;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AgencyUser relation input */\nexport type AgencyUserUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency create input from agencyVendorRelation */\nexport type AgencyVendorRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from agencyVendorRelation */\nexport type AgencyVendorRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency relation input */\nexport type AgencyVoiceMailMessagesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyVoiceMailMessagesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyVoiceMailMessagesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowAutomationsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowAutomationsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowAutomationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowEmailTemplatesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowEmailTemplatesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowEmailTemplatesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowSmsTemplatesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowSmsTemplatesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agency relation input */\nexport type AgencyWorkflowSmsTemplatesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type Agent = {\n __typename?: 'Agent';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n agency: Maybe;\n name: Maybe;\n active: Maybe;\n campaignAgentsRelation: Maybe;\n agentsLeadRelation: Maybe;\n taskAgentRelation: Maybe;\n _description: Maybe;\n};\n\nexport type AgentCampaignAgentsRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type AgentAgentsLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type AgentTaskAgentRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type Agent_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type Agent_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SMSMessage create input from agent */\nexport type Agent_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency: SmsMessageAgencyRelationInput;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from agent */\nexport type Agent_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** Agent relation input */\nexport type AgentAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentAgentsLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agent relation input */\nexport type AgentAgentsLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agent relation input */\nexport type AgentAgentsLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agent relation input */\nexport type AgentCampaignAgentsRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agent relation input */\nexport type AgentCampaignAgentsRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agent relation input */\nexport type AgentCampaignAgentsRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agent create input */\nexport type AgentCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent create many input */\nexport type AgentCreateManyInput = {\n user: AgentUserManyRelationInput;\n agency: AgentAgencyManyRelationInput;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent delete input */\nexport type AgentDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AgentFieldsPermissions create input */\nexport type AgentFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n};\n\nexport type AgentFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AgentGroupBy = {\n query: AgentGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AgentGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n active?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AgentKeyFilter = {\n id?: Maybe;\n};\n\n/** AgentListResponse output */\nexport type AgentListResponse = {\n __typename?: 'AgentListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AgentManyResponse output */\nexport type AgentManyResponse = {\n __typename?: 'AgentManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AgentOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n}\n\n/** Agent subscription payload */\nexport type AgentPayload = {\n __typename?: 'AgentPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AgentRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Campaign create input from agents */\nexport type Agents_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from agents */\nexport type Agents_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\n/** Lead create input from agents */\nexport type Agents_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign: LeadCampaignRelationInput;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadTask create input from agents */\nexport type Agents_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type: LeadTaskTypeRelationInput;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyRelationInput;\n};\n\n/** LeadTask update input from agents */\nexport type Agents_LeadTaskUpdateInput = {\n filter?: Maybe;\n data: LeadTaskUpdateInput;\n};\n\n/** Lead update input from agents */\nexport type Agents_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n\nexport type AgentsCallsData = {\n __typename?: 'AgentsCallsData';\n firstName: Scalars['String'];\n lastName: Scalars['String'];\n outboundDialsCount: Maybe;\n totalDialsCount: Maybe;\n contacts: Maybe;\n dialPerContact: Maybe;\n totalTalkTime: Maybe;\n talkTimeAverage: Maybe;\n callsPerHours: Maybe;\n talkTimePerHour: Maybe;\n quotesPerClose: Maybe;\n status: AgentStatus;\n};\n\nexport type AgentsCallsResult = {\n __typename?: 'AgentsCallsResult';\n items: Array;\n count: Scalars['Int'];\n};\n\n/** Agent create input from agentsLeadRelation */\nexport type AgentsLeadRelation_AgentCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent update input from agentsLeadRelation */\nexport type AgentsLeadRelation_AgentUpdateInput = {\n filter?: Maybe;\n data: AgentUpdateInput;\n};\n\n/** Users create input from agentSMSMessageRelation */\nexport type AgentSmsMessageRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from agentSMSMessageRelation */\nexport type AgentSmsMessageRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport type AgentSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n};\n\nexport enum AgentStatus {\n Good = 'GOOD',\n Regular = 'REGULAR',\n Bad = 'BAD',\n}\n\n/** Agent subscription filter */\nexport type AgentSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentTaskAgentRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agent relation input */\nexport type AgentTaskAgentRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Agent relation input */\nexport type AgentTaskAgentRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Agent update input */\nexport type AgentUpdateByFilterInput = {\n name?: Maybe>>;\n active?: Maybe>>;\n};\n\n/** Agent update input */\nexport type AgentUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Agent relation input */\nexport type AgentUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport enum AggregationFunctionType {\n Avg = 'AVG',\n Sum = 'SUM',\n Count = 'COUNT',\n Min = 'MIN',\n Max = 'MAX',\n GroupConcat = 'GROUP_CONCAT',\n AnyValue = 'ANY_VALUE',\n StddevPop = 'STDDEV_POP',\n StddevSamp = 'STDDEV_SAMP',\n VarPop = 'VAR_POP',\n VarSamp = 'VAR_SAMP',\n}\n\nexport type Announcement = {\n __typename?: 'Announcement';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n agency: Maybe;\n title: Maybe;\n content: Maybe;\n type: Maybe;\n author: Maybe;\n _description: Maybe;\n};\n\nexport type Announcement_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** Announcement relation input */\nexport type AnnouncementAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Announcement relation input */\nexport type AnnouncementAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Announcement relation input */\nexport type AnnouncementAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Announcement create input */\nexport type AnnouncementCreateInput = {\n agency?: Maybe;\n title: Scalars['String'];\n content: Scalars['String'];\n type?: Maybe;\n author?: Maybe;\n};\n\n/** Announcement create many input */\nexport type AnnouncementCreateManyInput = {\n agency: AnnouncementAgencyManyRelationInput;\n title: Scalars['String'];\n content: Scalars['String'];\n type?: Maybe;\n author?: Maybe;\n};\n\n/** Announcement delete input */\nexport type AnnouncementDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AnnouncementFieldsPermissions create input */\nexport type AnnouncementFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n};\n\nexport type AnnouncementFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AnnouncementGroupBy = {\n query: AnnouncementGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AnnouncementGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n title?: Maybe>;\n content?: Maybe>;\n type?: Maybe>;\n author?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AnnouncementKeyFilter = {\n id?: Maybe;\n};\n\n/** AnnouncementListResponse output */\nexport type AnnouncementListResponse = {\n __typename?: 'AnnouncementListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AnnouncementManyResponse output */\nexport type AnnouncementManyResponse = {\n __typename?: 'AnnouncementManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AnnouncementOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TitleAsc = 'title_ASC',\n TitleDesc = 'title_DESC',\n ContentAsc = 'content_ASC',\n ContentDesc = 'content_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n AuthorAsc = 'author_ASC',\n AuthorDesc = 'author_DESC',\n}\n\n/** Announcement subscription payload */\nexport type AnnouncementPayload = {\n __typename?: 'AnnouncementPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AnnouncementSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** Announcement subscription filter */\nexport type AnnouncementSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Announcement update input */\nexport type AnnouncementUpdateByFilterInput = {\n title?: Maybe>>;\n content?: Maybe>>;\n type?: Maybe>>;\n author?: Maybe>>;\n};\n\n/** Announcement update input */\nexport type AnnouncementUpdateInput = {\n id?: Maybe;\n agency?: Maybe;\n title?: Maybe;\n content?: Maybe;\n type?: Maybe;\n author?: Maybe;\n};\n\nexport type ApiToken = {\n __typename?: 'ApiToken';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n roles: Maybe;\n _description: Maybe;\n};\n\nexport type ApiTokenRolesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type ApiToken_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n token?: Maybe;\n createdBy?: Maybe;\n roles?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ApiToken_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** ApiTokens create input */\nexport type ApiTokenCreateInput = {\n name: Scalars['String'];\n roles?: Maybe;\n};\n\n/** ApiTokens delete input */\nexport type ApiTokenDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\nexport type ApiTokenFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n token?: Maybe;\n createdBy?: Maybe;\n roles?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ApiTokenGroupBy = {\n query: ApiTokenGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type ApiTokenGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n roles?: Maybe;\n _group?: Maybe>;\n};\n\nexport type ApiTokenKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** ApiTokenListResponse output */\nexport type ApiTokenListResponse = {\n __typename?: 'ApiTokenListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** ApiTokenManyResponse output */\nexport type ApiTokenManyResponse = {\n __typename?: 'ApiTokenManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum ApiTokenOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TokenAsc = 'token_ASC',\n TokenDesc = 'token_DESC',\n}\n\n/** ApiTokens subscription payload */\nexport type ApiTokenPayload = {\n __typename?: 'ApiTokenPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type ApiTokenRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** API Token Response */\nexport type ApiTokenResponse = {\n __typename?: 'ApiTokenResponse';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n roles: Maybe;\n token: Scalars['String'];\n};\n\n/** API Token Response */\nexport type ApiTokenResponseRolesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Roles create input from apiTokens */\nexport type ApiTokens_RoleCreateInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n\n/** Roles update input from apiTokens */\nexport type ApiTokens_RoleUpdateInput = {\n filter?: Maybe;\n data: RoleUpdateInput;\n};\nexport type ApiTokenSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n};\n\n/** ApiTokens relation input */\nexport type ApiTokensRolesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** ApiTokens relation input */\nexport type ApiTokensRolesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** ApiTokens subscription filter */\nexport type ApiTokenSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** ApiTokens update input */\nexport type ApiTokenUpdateByFilterInput = {\n name?: Maybe>>;\n token?: Maybe>>;\n};\n\n/** ApiTokens update input */\nexport type ApiTokenUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n roles?: Maybe;\n};\n\n/** Application */\nexport type Application = {\n __typename?: 'Application';\n id: Scalars['ID'];\n name: Scalars['String'];\n displayName: Maybe;\n description: Maybe;\n createdAt: Scalars['DateTime'];\n appType: Scalars['String'];\n status: ApplicationStatusEnum;\n};\n\n/** ApplicationDeleteMutationInput */\nexport type ApplicationDeleteMutationInput = {\n id: Scalars['String'];\n force?: Maybe;\n};\n\n/** Application install input */\nexport type ApplicationInstallInput = {\n appType: Scalars['String'];\n name: Scalars['String'];\n status?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n};\n\n/** ApplicationListResponse output */\nexport type ApplicationListResponse = {\n __typename?: 'ApplicationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Application Status Enum */\nexport enum ApplicationStatusEnum {\n Active = 'ACTIVE',\n Inactive = 'INACTIVE',\n}\n\n/** Application update input */\nexport type ApplicationUpdateInput = {\n id: Scalars['String'];\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n status?: Maybe;\n};\n\n/** Campaign create input from assignees */\nexport type Assignees_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from assignees */\nexport type Assignees_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\n/** Lead create input from assignees */\nexport type Assignees_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign: LeadCampaignRelationInput;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from assignees */\nexport type Assignees_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n\n/** Users create input from assigneesCampaignRelation */\nexport type AssigneesCampaignRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from assigneesCampaignRelation */\nexport type AssigneesCampaignRelation_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n\n/** Users create input from assigneesLeadRelation */\nexport type AssigneesLeadRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from assigneesLeadRelation */\nexport type AssigneesLeadRelation_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n\n/** Async Session */\nexport type AsyncSession = {\n __typename?: 'AsyncSession';\n sessionId: Scalars['String'];\n};\n\nexport type AsyncSessionStatusResponse = {\n __typename?: 'AsyncSessionStatusResponse';\n status: Scalars['String'];\n message: Maybe;\n};\n\n/** Mail create input from attachments */\nexport type Attachments_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail update input from attachments */\nexport type Attachments_MailUpdateInput = {\n filter?: Maybe;\n data: MailUpdateInput;\n};\n\n/** Message create input from attachments */\nexport type Attachments_MessageCreateInput = {\n channel?: Maybe;\n text: Scalars['String'];\n attachments?: Maybe;\n isDeleted?: Maybe;\n};\n\n/** Message update input from attachments */\nexport type Attachments_MessageUpdateInput = {\n filter?: Maybe;\n data: MessageUpdateInput;\n};\n\n/** VoiceMailMessage create input from audio */\nexport type Audio_VoiceMailMessageCreateInput = {\n name: Scalars['String'];\n agency?: Maybe;\n active?: Maybe;\n audio?: Maybe;\n type?: Maybe;\n};\n\n/** VoiceMailMessage update input from audio */\nexport type Audio_VoiceMailMessageUpdateInput = {\n filter?: Maybe;\n data: VoiceMailMessageUpdateInput;\n};\n\n/** Auth response */\nexport type Auth = {\n __typename?: 'Auth';\n refreshToken: Maybe;\n idToken: Maybe;\n};\n\nexport type AuthenticationProfile = {\n __typename?: 'AuthenticationProfile';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n type: Maybe;\n secret: Maybe;\n managementDomain: Maybe;\n clientId: Maybe;\n databaseName: Maybe;\n domain: Maybe;\n selfSignUpEnabled: Maybe;\n selfSignUpEmailDomains: Maybe>>;\n roles: Maybe;\n audiences: Maybe>>;\n attributes: Maybe;\n _description: Maybe;\n};\n\nexport type AuthenticationProfileRolesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type AuthenticationProfile_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n roles?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type AuthenticationProfile_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Authentication Profile Attributes */\nexport type AuthenticationProfileAttributes = CognitoAuthProfileAttributes;\n\n/** Authentication profile connection options */\nexport type AuthenticationProfileConnectionOptions = {\n __typename?: 'AuthenticationProfileConnectionOptions';\n google: Maybe;\n facebook: Maybe;\n github: Maybe;\n};\n\n/** Authentication profile connection options input */\nexport type AuthenticationProfileConnectionsOptionsInput = {\n google?: Maybe;\n facebook?: Maybe;\n github?: Maybe;\n};\n\n/** AuthenticationProfiles create input */\nexport type AuthenticationProfileCreateInput = {\n name: Scalars['String'];\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n selfSignUpEmailDomains?: Maybe>>;\n roles?: Maybe;\n audiences?: Maybe>>;\n};\n\n/** AuthenticationProfiles create many input */\nexport type AuthenticationProfileCreateManyInput = {\n name: Scalars['String'];\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n selfSignUpEmailDomains?: Maybe>>;\n roles?: Maybe;\n audiences?: Maybe>>;\n};\n\n/** AuthenticationProfiles delete input */\nexport type AuthenticationProfileDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\nexport type AuthenticationProfileFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n roles?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AuthenticationProfileGroupBy = {\n query: AuthenticationProfileGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AuthenticationProfileGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n type?: Maybe>;\n secret?: Maybe>;\n managementDomain?: Maybe>;\n clientId?: Maybe>;\n databaseName?: Maybe>;\n domain?: Maybe>;\n selfSignUpEnabled?: Maybe>;\n selfSignUpEmailDomains?: Maybe>;\n audiences?: Maybe>;\n createdBy?: Maybe;\n roles?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AuthenticationProfileKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** AuthenticationProfileListResponse output */\nexport type AuthenticationProfileListResponse = {\n __typename?: 'AuthenticationProfileListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AuthenticationProfileManyResponse output */\nexport type AuthenticationProfileManyResponse = {\n __typename?: 'AuthenticationProfileManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AuthenticationProfileOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n SecretAsc = 'secret_ASC',\n SecretDesc = 'secret_DESC',\n ManagementDomainAsc = 'managementDomain_ASC',\n ManagementDomainDesc = 'managementDomain_DESC',\n ClientIdAsc = 'clientId_ASC',\n ClientIdDesc = 'clientId_DESC',\n DatabaseNameAsc = 'databaseName_ASC',\n DatabaseNameDesc = 'databaseName_DESC',\n DomainAsc = 'domain_ASC',\n DomainDesc = 'domain_DESC',\n SelfSignUpEnabledAsc = 'selfSignUpEnabled_ASC',\n SelfSignUpEnabledDesc = 'selfSignUpEnabled_DESC',\n}\n\n/** AuthenticationProfiles subscription payload */\nexport type AuthenticationProfilePayload = {\n __typename?: 'AuthenticationProfilePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type AuthenticationProfileRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Roles create input from authenticationProfiles */\nexport type AuthenticationProfiles_RoleCreateInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n\n/** Roles update input from authenticationProfiles */\nexport type AuthenticationProfiles_RoleUpdateInput = {\n filter?: Maybe;\n data: RoleUpdateInput;\n};\n\nexport type AuthenticationProfileSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n createdBy?: Maybe;\n};\n\n/** AuthenticationProfiles relation input */\nexport type AuthenticationProfilesRolesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** AuthenticationProfiles relation input */\nexport type AuthenticationProfilesRolesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** AuthenticationProfiles relation input */\nexport type AuthenticationProfilesRolesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** AuthenticationProfiles subscription filter */\nexport type AuthenticationProfileSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AuthenticationProfiles update input */\nexport type AuthenticationProfileUpdateByFilterInput = {\n name?: Maybe>>;\n type?: Maybe>>;\n secret?: Maybe>>;\n managementDomain?: Maybe>>;\n clientId?: Maybe>>;\n databaseName?: Maybe>>;\n domain?: Maybe>>;\n selfSignUpEnabled?: Maybe>>;\n selfSignUpEmailDomains?: Maybe>>;\n audiences?: Maybe>>;\n};\n\n/** AuthenticationProfiles update input */\nexport type AuthenticationProfileUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n selfSignUpEmailDomains?: Maybe>>;\n roles?: Maybe;\n audiences?: Maybe>>;\n};\n\nexport type AuthenticationSetting = {\n __typename?: 'AuthenticationSetting';\n createdAt: Maybe;\n updatedAt: Maybe;\n createdBy: Maybe;\n allowedCallbacks: Maybe>>;\n allowedWebOrigins: Maybe>>;\n allowedLogouts: Maybe>>;\n connections: Maybe;\n _description: Maybe;\n};\n\nexport type AuthenticationSettingFilter = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** AuthenticationSettings subscription payload */\nexport type AuthenticationSettingPayload = {\n __typename?: 'AuthenticationSettingPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** AuthenticationSettings subscription filter */\nexport type AuthenticationSettingSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AuthenticationSettings update input */\nexport type AuthenticationSettingUpdateInput = {\n allowedCallbacks?: Maybe>>;\n allowedWebOrigins?: Maybe>>;\n allowedLogouts?: Maybe>>;\n connections?: Maybe;\n};\n\nexport enum AuthFrom {\n Inbound = 'inbound',\n Outbound = 'outbound',\n}\n\nexport type AutomaticCallConfig = {\n __typename?: 'AutomaticCallConfig';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n status: Maybe;\n agencyRelation: Maybe;\n _description: Maybe;\n};\n\nexport type AutomaticCallConfig_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agencyRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** AutomaticCallConfig relation input */\nexport type AutomaticCallConfigAgencyRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** AutomaticCallConfig relation input */\nexport type AutomaticCallConfigAgencyRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** AutomaticCallConfig relation input */\nexport type AutomaticCallConfigAgencyRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** AutomaticCallConfig create input */\nexport type AutomaticCallConfigCreateInput = {\n status?: Maybe;\n agencyRelation?: Maybe;\n};\n\n/** AutomaticCallConfig create many input */\nexport type AutomaticCallConfigCreateManyInput = {\n status?: Maybe;\n agencyRelation: AutomaticCallConfigAgencyRelationManyRelationInput;\n};\n\n/** AutomaticCallConfig delete input */\nexport type AutomaticCallConfigDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** AutomaticCallConfigFieldsPermissions create input */\nexport type AutomaticCallConfigFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n status?: Maybe;\n};\n\nexport type AutomaticCallConfigFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agencyRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type AutomaticCallConfigGroupBy = {\n query: AutomaticCallConfigGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type AutomaticCallConfigGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n status?: Maybe>;\n createdBy?: Maybe;\n agencyRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type AutomaticCallConfigKeyFilter = {\n id?: Maybe;\n};\n\n/** AutomaticCallConfigListResponse output */\nexport type AutomaticCallConfigListResponse = {\n __typename?: 'AutomaticCallConfigListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** AutomaticCallConfigManyResponse output */\nexport type AutomaticCallConfigManyResponse = {\n __typename?: 'AutomaticCallConfigManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum AutomaticCallConfigOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n}\n\n/** AutomaticCallConfig subscription payload */\nexport type AutomaticCallConfigPayload = {\n __typename?: 'AutomaticCallConfigPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Agency create input from automaticCallConfigRelation */\nexport type AutomaticCallConfigRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from automaticCallConfigRelation */\nexport type AutomaticCallConfigRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type AutomaticCallConfigSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n createdBy?: Maybe;\n agencyRelation?: Maybe;\n};\n\n/** AutomaticCallConfig subscription filter */\nexport type AutomaticCallConfigSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** AutomaticCallConfig update input */\nexport type AutomaticCallConfigUpdateByFilterInput = {\n status?: Maybe>>;\n};\n\n/** AutomaticCallConfig update input */\nexport type AutomaticCallConfigUpdateInput = {\n id?: Maybe;\n status?: Maybe;\n agencyRelation?: Maybe;\n};\n\n/** TeamMembers update input from avatar */\nexport type Avatar_TeamMemberUpdateInput = {\n filter?: Maybe;\n data: TeamMemberUpdateInput;\n};\n\n/** Users create input from avatar */\nexport type Avatar_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from avatar */\nexport type Avatar_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n\nexport type AzureAuthUrlResult = {\n __typename?: 'AzureAuthUrlResult';\n url: Scalars['String'];\n};\n\nexport type BigIntPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type BigIntPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type BillingCurrentPlanResponse = {\n __typename?: 'BillingCurrentPlanResponse';\n id: Maybe;\n name: Maybe;\n price: Maybe;\n displayName: Maybe;\n trialEnd: Maybe;\n status: Maybe;\n nextPlan: Maybe;\n};\nexport type BillingDetailsResponse = {\n __typename?: 'BillingDetailsResponse';\n last4: Maybe;\n expMonth: Maybe;\n expYear: Maybe;\n brand: Maybe;\n};\n\n/** BillingDetailsUpdateMutationInput */\nexport type BillingDetailsUpdateMutationInput = {\n cardToken: Scalars['String'];\n};\n\nexport type BillingInvoiceItem = {\n __typename?: 'BillingInvoiceItem';\n id: Scalars['ID'];\n periodStart: Maybe;\n periodEnd: Maybe;\n paid: Maybe;\n invoicePdf: Maybe;\n amountDue: Maybe;\n amountPaid: Maybe;\n amountRemaining: Maybe;\n endingBalance: Maybe;\n number: Maybe;\n status: Maybe;\n total: Maybe;\n description: Maybe;\n plan: Maybe;\n workspace: Maybe;\n};\n\nexport type BillingInvoiceItemPlanInfo = {\n __typename?: 'BillingInvoiceItemPlanInfo';\n id: Maybe;\n name: Maybe;\n displayName: Maybe;\n};\n\nexport type BillingInvoiceItemWorkspaceInfo = {\n __typename?: 'BillingInvoiceItemWorkspaceInfo';\n id: Maybe;\n name: Maybe;\n};\n\nexport enum BillingInvoicesListFilterType {\n Workspace = 'WORKSPACE',\n Customer = 'CUSTOMER',\n}\n\n/** BillingInvoicesListResponse output */\nexport type BillingInvoicesListResponse = {\n __typename?: 'BillingInvoicesListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type BillingLimitMetricItem = {\n __typename?: 'BillingLimitMetricItem';\n name: Maybe;\n displayName: Maybe;\n showPriority: Maybe;\n unit: Maybe;\n};\n\nexport type BillingMetricUsageItem = {\n __typename?: 'BillingMetricUsageItem';\n limitMetric: Maybe;\n value: Maybe;\n};\n\nexport type BillingMetricUsageQuotaItem = {\n __typename?: 'BillingMetricUsageQuotaItem';\n limitMetric: Maybe;\n value: Maybe;\n};\n\n/** BillingMetricUsageQuotasListResponse output */\nexport type BillingMetricUsageQuotasListResponse = {\n __typename?: 'BillingMetricUsageQuotasListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type BillingMetricUsagesListFilter = {\n entryDate: DateTimePredicate;\n};\n\n/** BillingMetricUsagesListResponse output */\nexport type BillingMetricUsagesListResponse = {\n __typename?: 'BillingMetricUsagesListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type BillingNextPlanResponse = {\n __typename?: 'BillingNextPlanResponse';\n id: Maybe;\n name: Maybe;\n price: Maybe;\n displayName: Maybe;\n};\n\nexport type BillingPlanBaseInfo = {\n __typename?: 'BillingPlanBaseInfo';\n id: Maybe;\n name: Maybe;\n description: Maybe;\n displayName: Maybe;\n price: Maybe;\n isCustom: Maybe;\n isLegacy: Maybe;\n limitMetrics: Maybe>>;\n};\n\nexport type BillingPlanLimitMetricItem = {\n __typename?: 'BillingPlanLimitMetricItem';\n name: Maybe;\n displayName: Maybe;\n overagePrice: Maybe;\n softLimit: Maybe;\n hardLimit: Maybe;\n};\n\n/** BillingPlanUpdateMutationInput */\nexport type BillingPlanUpdateMutationInput = {\n planId: Scalars['ID'];\n};\n\nexport type BoolPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type BoolPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadHistory create input from call */\nexport type Call_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead: LeadHistoryLeadRelationInput;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory update input from call */\nexport type Call_LeadHistoryUpdateInput = {\n /** Entity related to the lead that was mutated */\n entity?: Maybe;\n /** The operation executed on the entity */\n operation?: Maybe;\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** PhoneCallRecording create input from call */\nexport type Call_PhoneCallRecordingCreateInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl: Scalars['String'];\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** PhoneCallRecording update input from call */\nexport type Call_PhoneCallRecordingUpdateInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** Lead create input from callCadence */\nexport type CallCadence_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from callCadence */\nexport type CallCadence_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** InboundPhoneCall create input from callDisposition */\nexport type CallDisposition_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall update input from callDisposition */\nexport type CallDisposition_InboundPhoneCallUpdateInput = {\n agency?: Maybe;\n to?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** PhoneNumber create input from callFromRelation */\nexport type CallFromRelation_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from callFromRelation */\nexport type CallFromRelation_PhoneNumberUpdateInput = {\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput\n >;\n};\n\n/** Users create input from calls */\nexport type Calls_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from calls */\nexport type Calls_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport enum CallType {\n Inbound = 'INBOUND',\n Outbound = 'OUTBOUND',\n}\n\nexport type Campaign = {\n __typename?: 'Campaign';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n /** DEPRECATED */\n agents: Maybe;\n /** DEPRECATED */\n users: Maybe;\n /** DEPRECATED */\n type: Maybe;\n priority: Maybe;\n /** DEPRECATED */\n code: Maybe;\n vendor: Maybe;\n campaignLeadRelation: Maybe;\n status: Maybe;\n /** PENDING TO BE MANDATORY */\n agency: Maybe;\n assignees: Maybe;\n automaticCalls: Maybe;\n /** DEPRECATED */\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n notificationRelation: Maybe;\n emailCampaign: Maybe;\n marketingCampaignOpenings: Maybe;\n workflows: Maybe;\n workflowEmailOpenings: Maybe;\n phoneNumber: Maybe;\n _description: Maybe;\n};\n\nexport type CampaignAgentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CampaignUsersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CampaignCampaignLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignAssigneesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignNotificationRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignEmailCampaignArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignMarketingCampaignOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignWorkflowsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CampaignWorkflowEmailOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** Lead create input from campaign */\nexport type Campaign_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Lead update input from campaign */\nexport type Campaign_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n/** MarketingCampaignOpening create input from campaign */\nexport type Campaign_MarketingCampaignOpeningCreateInput = {\n marketingCampaign: MarketingCampaignOpeningMarketingCampaignRelationInput;\n campaign?: Maybe;\n lead: MarketingCampaignOpeningLeadRelationInput;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** MarketingCampaignOpening update input from campaign */\nexport type Campaign_MarketingCampaignOpeningUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignOpeningUpdateInput;\n};\n\n/** Notification create input from campaign */\nexport type Campaign_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from campaign */\nexport type Campaign_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\nexport type Campaign_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n code?: Maybe;\n status?: Maybe;\n automaticCalls?: Maybe;\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Campaign_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneNumber create input from campaign */\nexport type Campaign_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from campaign */\nexport type Campaign_PhoneNumberUpdateInput = {\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput\n >;\n};\n\n/** WorkflowEmailOpening create input from campaign */\nexport type Campaign_WorkflowEmailOpeningCreateInput = {\n workflowAutomation: WorkflowEmailOpeningWorkflowAutomationRelationInput;\n campaign?: Maybe;\n lead: WorkflowEmailOpeningLeadRelationInput;\n condition: Scalars['String'];\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening update input from campaign */\nexport type Campaign_WorkflowEmailOpeningUpdateInput = {\n filter?: Maybe;\n data: WorkflowEmailOpeningUpdateInput;\n};\n\n/** Campaign relation input */\nexport type CampaignAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignAgentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Agent create input from campaignAgentsRelation */\nexport type CampaignAgentsRelation_AgentCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent update input from campaignAgentsRelation */\nexport type CampaignAgentsRelation_AgentUpdateInput = {\n filter?: Maybe;\n data: AgentUpdateInput;\n};\n\n/** Campaign relation input */\nexport type CampaignAgentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignAgentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignAssigneesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignAssigneesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignAssigneesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignCampaignLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignCampaignLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignCampaignLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign create input */\nexport type CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign create many input */\nexport type CampaignCreateManyInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign delete input */\nexport type CampaignDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignEmailCampaignManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignEmailCampaignRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignEmailCampaignUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** CampaignFieldsPermissions create input */\nexport type CampaignFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n code?: Maybe;\n status?: Maybe;\n automaticCalls?: Maybe;\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n};\n\nexport type CampaignFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n code?: Maybe;\n status?: Maybe;\n automaticCalls?: Maybe;\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CampaignGroupBy = {\n query: CampaignGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CampaignGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n type?: Maybe>;\n priority?: Maybe>;\n code?: Maybe>;\n status?: Maybe>;\n automaticCalls?: Maybe>;\n amount?: Maybe>;\n startsAt?: Maybe>;\n endsAt?: Maybe>;\n createdBy?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CampaignKeyFilter = {\n id?: Maybe;\n};\n\n/** Campaign create input from campaignLeadRelation */\nexport type CampaignLeadRelation_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from campaignLeadRelation */\nexport type CampaignLeadRelation_CampaignUpdateInput = {\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** CampaignListResponse output */\nexport type CampaignListResponse = {\n __typename?: 'CampaignListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CampaignManyResponse output */\nexport type CampaignManyResponse = {\n __typename?: 'CampaignManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Campaign relation input */\nexport type CampaignMarketingCampaignOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignMarketingCampaignOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignMarketingCampaignOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignNotificationRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignNotificationRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignNotificationRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CampaignOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n PriorityAsc = 'priority_ASC',\n PriorityDesc = 'priority_DESC',\n CodeAsc = 'code_ASC',\n CodeDesc = 'code_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n AutomaticCallsAsc = 'automaticCalls_ASC',\n AutomaticCallsDesc = 'automaticCalls_DESC',\n AmountAsc = 'amount_ASC',\n AmountDesc = 'amount_DESC',\n StartsAtAsc = 'startsAt_ASC',\n StartsAtDesc = 'startsAt_DESC',\n EndsAtAsc = 'endsAt_ASC',\n EndsAtDesc = 'endsAt_DESC',\n}\n\n/** Campaign subscription payload */\nexport type CampaignPayload = {\n __typename?: 'CampaignPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignPhoneNumberManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignPhoneNumberRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignPhoneNumberUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type CampaignRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingCampaign create input from campaigns */\nexport type Campaigns_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign update input from campaigns */\nexport type Campaigns_MarketingCampaignUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignUpdateInput;\n};\n\n/** WorkflowAutomation create input from campaigns */\nexport type Campaigns_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation update input from campaigns */\nexport type Campaigns_WorkflowAutomationUpdateInput = {\n filter?: Maybe;\n data: WorkflowAutomationUpdateInput;\n};\n\nexport type CampaignSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n code?: Maybe;\n status?: Maybe;\n automaticCalls?: Maybe;\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n createdBy?: Maybe;\n vendor?: Maybe;\n agency?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign subscription filter */\nexport type CampaignSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Campaign update input */\nexport type CampaignUpdateByFilterInput = {\n name?: Maybe>>;\n type?: Maybe>>;\n priority?: Maybe>>;\n code?: Maybe>>;\n status?: Maybe>>;\n automaticCalls?: Maybe>>;\n amount?: Maybe>>;\n startsAt?: Maybe>>;\n endsAt?: Maybe>>;\n};\n\n/** Campaign update input */\nexport type CampaignUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignUsersManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users create input from campaignUsersRelation */\nexport type CampaignUsersRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from campaignUsersRelation */\nexport type CampaignUsersRelation_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n\n/** Campaign relation input */\nexport type CampaignUsersRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignUsersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignVendorManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignVendorRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignVendorUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowEmailOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowEmailOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowEmailOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Campaign relation input */\nexport type CampaignWorkflowsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** ChangePasswordInput */\nexport type ChangePasswordInput = {\n refreshToken: Scalars['String'];\n email: Scalars['String'];\n oldPassword: Scalars['String'];\n newPassword: Scalars['String'];\n authProfileId: Scalars['ID'];\n};\n\nexport type Channel = {\n __typename?: 'Channel';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n purpose: Maybe;\n public: Maybe;\n name: Maybe;\n type: Maybe;\n members: Maybe;\n messages: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type ChannelMembersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type ChannelMessagesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** ChannelMember create input from channel */\nexport type Channel_ChannelMemberCreateInput = {\n channel?: Maybe;\n user?: Maybe;\n lastReadTS?: Maybe;\n};\n\n/** ChannelMember update input from channel */\nexport type Channel_ChannelMemberUpdateInput = {\n filter?: Maybe;\n data: ChannelMemberUpdateInput;\n};\n\n/** Message create input from channel */\nexport type Channel_MessageCreateInput = {\n channel?: Maybe;\n text: Scalars['String'];\n attachments?: Maybe;\n isDeleted?: Maybe;\n};\n/** Message update input from channel */\nexport type Channel_MessageUpdateInput = {\n filter?: Maybe;\n data: MessageUpdateInput;\n};\nexport type Channel_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Channel_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Channel create input */\nexport type ChannelCreateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name: Scalars['String'];\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel create many input */\nexport type ChannelCreateManyInput = {\n purpose?: Maybe;\n public?: Maybe;\n name: Scalars['String'];\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel delete input */\nexport type ChannelDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** ChannelFieldsPermissions create input */\nexport type ChannelFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n};\n\nexport type ChannelFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ChannelGroupBy = {\n query: ChannelGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type ChannelGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n purpose?: Maybe>;\n public?: Maybe>;\n name?: Maybe>;\n type?: Maybe>;\n createdBy?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\n/** Users create input from channelIdentities */\nexport type ChannelIdentities_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from channelIdentities */\nexport type ChannelIdentities_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport type ChannelKeyFilter = {\n id?: Maybe;\n};\n\n/** ChannelListResponse output */\nexport type ChannelListResponse = {\n __typename?: 'ChannelListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** ChannelManyResponse output */\nexport type ChannelManyResponse = {\n __typename?: 'ChannelManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type ChannelMember = {\n __typename?: 'ChannelMember';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n channel: Maybe;\n user: Maybe;\n lastReadTS: Maybe;\n _description: Maybe;\n};\n\nexport type ChannelMember_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lastReadTS?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ChannelMember_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberChannelManyRelationInput = {\n connect?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberChannelRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberChannelUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** ChannelMember create input */\nexport type ChannelMemberCreateInput = {\n channel?: Maybe;\n user?: Maybe;\n lastReadTS?: Maybe;\n};\n\n/** ChannelMember create many input */\nexport type ChannelMemberCreateManyInput = {\n channel: ChannelMemberChannelManyRelationInput;\n user: ChannelMemberUserManyRelationInput;\n lastReadTS?: Maybe;\n};\n\n/** ChannelMember delete input */\nexport type ChannelMemberDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** ChannelMemberFieldsPermissions create input */\nexport type ChannelMemberFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n lastReadTS?: Maybe;\n};\n\nexport type ChannelMemberFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lastReadTS?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ChannelMemberGroupBy = {\n query: ChannelMemberGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type ChannelMemberGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n lastReadTS?: Maybe>;\n createdBy?: Maybe;\n channel?: Maybe;\n user?: Maybe;\n _group?: Maybe>;\n};\n\nexport type ChannelMemberKeyFilter = {\n id?: Maybe;\n};\n\n/** ChannelMemberListResponse output */\nexport type ChannelMemberListResponse = {\n __typename?: 'ChannelMemberListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** ChannelMemberManyResponse output */\nexport type ChannelMemberManyResponse = {\n __typename?: 'ChannelMemberManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum ChannelMemberOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n LastReadTsAsc = 'lastReadTS_ASC',\n LastReadTsDesc = 'lastReadTS_DESC',\n}\n\n/** ChannelMember subscription payload */\nexport type ChannelMemberPayload = {\n __typename?: 'ChannelMemberPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type ChannelMemberRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelMembersManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type ChannelMemberSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lastReadTS?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n user?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelMembersRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** ChannelMember subscription filter */\nexport type ChannelMemberSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelMembersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** ChannelMember update input */\nexport type ChannelMemberUpdateByFilterInput = {\n lastReadTS?: Maybe>>;\n};\n\n/** ChannelMember update input */\nexport type ChannelMemberUpdateInput = {\n id?: Maybe;\n channel?: Maybe;\n user?: Maybe;\n lastReadTS?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** ChannelMember relation input */\nexport type ChannelMemberUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Channel relation input */\nexport type ChannelMessagesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Channel relation input */\nexport type ChannelMessagesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Channel relation input */\nexport type ChannelMessagesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum ChannelOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n PurposeAsc = 'purpose_ASC',\n PurposeDesc = 'purpose_DESC',\n PublicAsc = 'public_ASC',\n PublicDesc = 'public_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n}\n\n/** Channel subscription payload */\nexport type ChannelPayload = {\n __typename?: 'ChannelPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type ChannelRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type ChannelSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel subscription filter */\nexport type ChannelSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Channel update input */\nexport type ChannelUpdateByFilterInput = {\n purpose?: Maybe>>;\n public?: Maybe>>;\n name?: Maybe>>;\n type?: Maybe>>;\n};\n\n/** Channel update input */\nexport type ChannelUpdateInput = {\n id?: Maybe;\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Agency create input from chatChannelRelation */\nexport type ChatChannelRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from chatChannelRelation */\nexport type ChatChannelRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type CiCdMigration = {\n __typename?: 'CiCdMigration';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n code: Maybe;\n _description: Maybe;\n};\n\nexport type CiCdMigration_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n code?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** CiCdMigrations create input */\nexport type CiCdMigrationCreateInput = {\n name: Scalars['String'];\n code: Scalars['String'];\n};\n\n/** CiCdMigrations create many input */\nexport type CiCdMigrationCreateManyInput = {\n name: Scalars['String'];\n code: Scalars['String'];\n};\n\n/** CiCdMigrations delete input */\nexport type CiCdMigrationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CiCdMigrationFieldsPermissions create input */\nexport type CiCdMigrationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n code?: Maybe;\n};\n\nexport type CiCdMigrationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n code?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CiCdMigrationGroupBy = {\n query: CiCdMigrationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CiCdMigrationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n code?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CiCdMigrationKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** CiCdMigrationListResponse output */\nexport type CiCdMigrationListResponse = {\n __typename?: 'CiCdMigrationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CiCdMigrationManyResponse output */\nexport type CiCdMigrationManyResponse = {\n __typename?: 'CiCdMigrationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CiCdMigrationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n CodeAsc = 'code_ASC',\n CodeDesc = 'code_DESC',\n}\n\n/** CiCdMigrations subscription payload */\nexport type CiCdMigrationPayload = {\n __typename?: 'CiCdMigrationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CiCdMigrationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n code?: Maybe;\n createdBy?: Maybe;\n};\n\n/** CiCdMigrations subscription filter */\nexport type CiCdMigrationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CiCdMigrations update input */\nexport type CiCdMigrationUpdateByFilterInput = {\n name?: Maybe>>;\n code?: Maybe>>;\n};\n\n/** CiCdMigrations update input */\nexport type CiCdMigrationUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n code?: Maybe;\n};\n\n/** MarketingCampaign create input from clicks */\nexport type Clicks_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign update input from clicks */\nexport type Clicks_MarketingCampaignUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** WorkflowAutomation create input from clicks */\nexport type Clicks_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation update input from clicks */\nexport type Clicks_WorkflowAutomationUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** Authentication Profile Attributes for Cognito */\nexport type CognitoAuthProfileAttributes = {\n __typename?: 'CognitoAuthProfileAttributes';\n clientAuthDomain: Maybe;\n};\n\nexport type Company = {\n __typename?: 'Company';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n taxId: Maybe;\n adminCompanyRelation: Maybe;\n agencyCompanyRelation: Maybe;\n companyInvitationCompanyRelation: Maybe;\n paymentMethodCompanyRelation: Maybe;\n subscriptions: Maybe;\n /** DEPRECATED */\n cardExpireDate: Maybe;\n /** DEPRECATED */\n last4: Maybe;\n /** DEPRECATED */\n addressLine1: Maybe;\n /** DEPRECATED */\n addressLine2: Maybe;\n /** DEPRECATED */\n city: Maybe;\n /** DEPRECATED */\n state: Maybe;\n /** DEPRECATED */\n country: Maybe;\n companyInvoices: Maybe;\n companyPaymentMethods: Maybe;\n status: Maybe;\n _description: Maybe;\n};\n\nexport type CompanyAdminCompanyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CompanyAgencyCompanyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CompanyCompanyInvitationCompanyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CompanyPaymentMethodCompanyRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CompanySubscriptionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CompanyCompanyInvoicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type CompanyCompanyPaymentMethodsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** Admin create input from company */\nexport type Company_AdminCreateInput = {\n user?: Maybe;\n company?: Maybe;\n};\n/** Admin update input from company */\nexport type Company_AdminUpdateInput = {\n filter?: Maybe;\n data: AdminUpdateInput;\n};\n/** Agency create input from company */\nexport type Company_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Agency update input from company */\nexport type Company_AgencyUpdateInput = {\n filter?: Maybe;\n data: AgencyUpdateInput;\n};\n\n/** CompanyInvitation create input from company */\nexport type Company_CompanyInvitationCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n company?: Maybe;\n};\n\n/** CompanyInvitation update input from company */\nexport type Company_CompanyInvitationUpdateInput = {\n filter?: Maybe;\n data: CompanyInvitationUpdateInput;\n};\n\n/** CompanyInvoice create input from company */\nexport type Company_CompanyInvoiceCreateInput = {\n invoiceId: Scalars['String'];\n total: Scalars['Float'];\n status: Scalars['String'];\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n};\n\n/** CompanyInvoice update input from company */\nexport type Company_CompanyInvoiceUpdateInput = {\n filter?: Maybe;\n data: CompanyInvoiceUpdateInput;\n};\n\n/** CompanyPaymentMethod create input from company */\nexport type Company_CompanyPaymentMethodCreateInput = {\n nameOnCard: Scalars['String'];\n expireDate: Scalars['String'];\n last4: Scalars['String'];\n addressLine1: Scalars['String'];\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId: Scalars['String'];\n company?: Maybe;\n};\n\n/** CompanyPaymentMethod update input from company */\nexport type Company_CompanyPaymentMethodUpdateInput = {\n filter?: Maybe;\n data: CompanyPaymentMethodUpdateInput;\n};\n\n/** CompanySub create input from company */\nexport type Company_CompanySubCreateInput = {\n subscriptionPlan: CompanySubSubscriptionPlanRelationInput;\n company?: Maybe;\n expireDate?: Maybe;\n status: Scalars['String'];\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\n/** CompanySub update input from company */\nexport type Company_CompanySubUpdateInput = {\n filter?: Maybe;\n data: CompanySubUpdateInput;\n};\n\n/** PaymentMethod create input from company */\nexport type Company_PaymentMethodCreateInput = {\n tokenId: Scalars['String'];\n cardHolderName: Scalars['String'];\n last4: Scalars['String'];\n company?: Maybe;\n};\n\n/** PaymentMethod update input from company */\nexport type Company_PaymentMethodUpdateInput = {\n filter?: Maybe;\n data: PaymentMethodUpdateInput;\n};\n\nexport type Company_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n taxId?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyAdminCompanyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyAdminCompanyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyAdminCompanyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyAgencyCompanyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyAgencyCompanyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyAgencyCompanyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvitationCompanyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvitationCompanyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvitationCompanyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvoicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvoicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyInvoicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyPaymentMethodsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyPaymentMethodsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyCompanyPaymentMethodsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Company create input */\nexport type CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company create many input */\nexport type CompanyCreateManyInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationManyRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company delete input */\nexport type CompanyDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CompanyFieldsPermissions create input */\nexport type CompanyFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n taxId?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n status?: Maybe;\n};\n\nexport type CompanyFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n taxId?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyGroupBy = {\n query: CompanyGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanyGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n taxId?: Maybe>;\n cardExpireDate?: Maybe>;\n last4?: Maybe>;\n addressLine1?: Maybe>;\n addressLine2?: Maybe>;\n city?: Maybe>;\n state?: Maybe>;\n country?: Maybe>;\n status?: Maybe>;\n createdBy?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CompanyInvitation = {\n __typename?: 'CompanyInvitation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n email: Maybe;\n status: Maybe;\n company: Maybe;\n _description: Maybe;\n};\n\nexport type CompanyInvitation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyInvitation_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** CompanyInvitation relation input */\nexport type CompanyInvitationCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Company create input from companyInvitationCompanyRelation */\nexport type CompanyInvitationCompanyRelation_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from companyInvitationCompanyRelation */\nexport type CompanyInvitationCompanyRelation_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** CompanyInvitation relation input */\nexport type CompanyInvitationCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** CompanyInvitation relation input */\nexport type CompanyInvitationCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** CompanyInvitation create input */\nexport type CompanyInvitationCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n company?: Maybe;\n};\n\n/** CompanyInvitation create many input */\nexport type CompanyInvitationCreateManyInput = {\n email: Scalars['String'];\n status?: Maybe;\n company: CompanyInvitationCompanyManyRelationInput;\n};\n\n/** CompanyInvitation delete input */\nexport type CompanyInvitationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CompanyInvitationFieldsPermissions create input */\nexport type CompanyInvitationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n};\n\nexport type CompanyInvitationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyInvitationGroupBy = {\n query: CompanyInvitationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanyInvitationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n email?: Maybe>;\n status?: Maybe>;\n createdBy?: Maybe;\n company?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CompanyInvitationKeyFilter = {\n id?: Maybe;\n};\n\n/** CompanyInvitationListResponse output */\nexport type CompanyInvitationListResponse = {\n __typename?: 'CompanyInvitationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanyInvitationManyResponse output */\nexport type CompanyInvitationManyResponse = {\n __typename?: 'CompanyInvitationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanyInvitationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n}\n\n/** CompanyInvitation subscription payload */\nexport type CompanyInvitationPayload = {\n __typename?: 'CompanyInvitationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanyInvitationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type CompanyInvitationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n};\n\n/** CompanyInvitation subscription filter */\nexport type CompanyInvitationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CompanyInvitation update input */\nexport type CompanyInvitationUpdateByFilterInput = {\n email?: Maybe>>;\n status?: Maybe>>;\n};\n\n/** CompanyInvitation update input */\nexport type CompanyInvitationUpdateInput = {\n id?: Maybe;\n email?: Maybe;\n status?: Maybe;\n company?: Maybe;\n};\n\nexport type CompanyInvoice = {\n __typename?: 'CompanyInvoice';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n invoiceId: Maybe;\n total: Maybe;\n status: Maybe;\n paymentIntentStatus: Maybe;\n paymentMethodId: Maybe;\n company: Maybe;\n coupon: Maybe;\n _description: Maybe;\n};\n\nexport type CompanyInvoice_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n invoiceId?: Maybe;\n total?: Maybe;\n status?: Maybe;\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyInvoice_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCouponManyRelationInput = {\n connect?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCouponRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** CompanyInvoice relation input */\nexport type CompanyInvoiceCouponUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** CompanyInvoice create input */\nexport type CompanyInvoiceCreateInput = {\n invoiceId: Scalars['String'];\n total: Scalars['Float'];\n status: Scalars['String'];\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n};\n\n/** CompanyInvoice create many input */\nexport type CompanyInvoiceCreateManyInput = {\n invoiceId: Scalars['String'];\n total: Scalars['Float'];\n status: Scalars['String'];\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n company: CompanyInvoiceCompanyManyRelationInput;\n coupon?: Maybe;\n};\n\n/** CompanyInvoice delete input */\nexport type CompanyInvoiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CompanyInvoiceFieldsPermissions create input */\nexport type CompanyInvoiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n invoiceId?: Maybe;\n total?: Maybe;\n status?: Maybe;\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n};\n\nexport type CompanyInvoiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n invoiceId?: Maybe;\n total?: Maybe;\n status?: Maybe;\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyInvoiceGroupBy = {\n query: CompanyInvoiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanyInvoiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n invoiceId?: Maybe>;\n total?: Maybe>;\n status?: Maybe>;\n paymentIntentStatus?: Maybe>;\n paymentMethodId?: Maybe>;\n createdBy?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CompanyInvoiceKeyFilter = {\n id?: Maybe;\n};\n\n/** CompanyInvoiceListResponse output */\nexport type CompanyInvoiceListResponse = {\n __typename?: 'CompanyInvoiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanyInvoiceManyResponse output */\nexport type CompanyInvoiceManyResponse = {\n __typename?: 'CompanyInvoiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanyInvoiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n InvoiceIdAsc = 'invoiceId_ASC',\n InvoiceIdDesc = 'invoiceId_DESC',\n TotalAsc = 'total_ASC',\n TotalDesc = 'total_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n PaymentIntentStatusAsc = 'paymentIntentStatus_ASC',\n PaymentIntentStatusDesc = 'paymentIntentStatus_DESC',\n PaymentMethodIdAsc = 'paymentMethodId_ASC',\n PaymentMethodIdDesc = 'paymentMethodId_DESC',\n}\n\n/** CompanyInvoice subscription payload */\nexport type CompanyInvoicePayload = {\n __typename?: 'CompanyInvoicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanyInvoiceRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Company create input from companyInvoices */\nexport type CompanyInvoices_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from companyInvoices */\nexport type CompanyInvoices_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\nexport type CompanyInvoiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n invoiceId?: Maybe;\n total?: Maybe;\n status?: Maybe;\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n};\n\n/** CompanyInvoice subscription filter */\nexport type CompanyInvoiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CompanyInvoice update input */\nexport type CompanyInvoiceUpdateByFilterInput = {\n invoiceId?: Maybe>>;\n total?: Maybe>>;\n status?: Maybe>>;\n paymentIntentStatus?: Maybe>>;\n paymentMethodId?: Maybe>>;\n};\n\n/** CompanyInvoice update input */\nexport type CompanyInvoiceUpdateInput = {\n id?: Maybe;\n invoiceId?: Maybe;\n total?: Maybe;\n status?: Maybe;\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n};\n\nexport type CompanyKeyFilter = {\n id?: Maybe;\n};\n\n/** CompanyListResponse output */\nexport type CompanyListResponse = {\n __typename?: 'CompanyListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanyManyResponse output */\nexport type CompanyManyResponse = {\n __typename?: 'CompanyManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanyOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TaxIdAsc = 'taxId_ASC',\n TaxIdDesc = 'taxId_DESC',\n CardExpireDateAsc = 'cardExpireDate_ASC',\n CardExpireDateDesc = 'cardExpireDate_DESC',\n Last4Asc = 'last4_ASC',\n Last4Desc = 'last4_DESC',\n AddressLine1Asc = 'addressLine1_ASC',\n AddressLine1Desc = 'addressLine1_DESC',\n AddressLine2Asc = 'addressLine2_ASC',\n AddressLine2Desc = 'addressLine2_DESC',\n CityAsc = 'city_ASC',\n CityDesc = 'city_DESC',\n StateAsc = 'state_ASC',\n StateDesc = 'state_DESC',\n CountryAsc = 'country_ASC',\n CountryDesc = 'country_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n}\n\n/** Company subscription payload */\nexport type CompanyPayload = {\n __typename?: 'CompanyPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanyPaymentMethod = {\n __typename?: 'CompanyPaymentMethod';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n nameOnCard: Maybe;\n expireDate: Maybe;\n last4: Maybe;\n addressLine1: Maybe;\n addressLine2: Maybe;\n city: Maybe;\n state: Maybe;\n country: Maybe;\n paymentMethodId: Maybe;\n company: Maybe;\n _description: Maybe;\n};\n\nexport type CompanyPaymentMethod_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n nameOnCard?: Maybe;\n expireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyPaymentMethod_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** CompanyPaymentMethod relation input */\nexport type CompanyPaymentMethodCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** CompanyPaymentMethod relation input */\nexport type CompanyPaymentMethodCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Company relation input */\nexport type CompanyPaymentMethodCompanyRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanyPaymentMethodCompanyRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanyPaymentMethodCompanyRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** CompanyPaymentMethod relation input */\nexport type CompanyPaymentMethodCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** CompanyPaymentMethod create input */\nexport type CompanyPaymentMethodCreateInput = {\n nameOnCard: Scalars['String'];\n expireDate: Scalars['String'];\n last4: Scalars['String'];\n addressLine1: Scalars['String'];\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId: Scalars['String'];\n company?: Maybe;\n};\n\n/** CompanyPaymentMethod create many input */\nexport type CompanyPaymentMethodCreateManyInput = {\n nameOnCard: Scalars['String'];\n expireDate: Scalars['String'];\n last4: Scalars['String'];\n addressLine1: Scalars['String'];\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId: Scalars['String'];\n company: CompanyPaymentMethodCompanyManyRelationInput;\n};\n\n/** CompanyPaymentMethod delete input */\nexport type CompanyPaymentMethodDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CompanyPaymentMethodFieldsPermissions create input */\nexport type CompanyPaymentMethodFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n nameOnCard?: Maybe;\n expireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId?: Maybe;\n};\n\nexport type CompanyPaymentMethodFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n nameOnCard?: Maybe;\n expireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanyPaymentMethodGroupBy = {\n query: CompanyPaymentMethodGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanyPaymentMethodGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n nameOnCard?: Maybe>;\n expireDate?: Maybe>;\n last4?: Maybe>;\n addressLine1?: Maybe>;\n addressLine2?: Maybe>;\n city?: Maybe>;\n state?: Maybe>;\n country?: Maybe>;\n paymentMethodId?: Maybe>;\n createdBy?: Maybe;\n company?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CompanyPaymentMethodKeyFilter = {\n id?: Maybe;\n};\n\n/** CompanyPaymentMethodListResponse output */\nexport type CompanyPaymentMethodListResponse = {\n __typename?: 'CompanyPaymentMethodListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanyPaymentMethodManyResponse output */\nexport type CompanyPaymentMethodManyResponse = {\n __typename?: 'CompanyPaymentMethodManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanyPaymentMethodOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameOnCardAsc = 'nameOnCard_ASC',\n NameOnCardDesc = 'nameOnCard_DESC',\n ExpireDateAsc = 'expireDate_ASC',\n ExpireDateDesc = 'expireDate_DESC',\n Last4Asc = 'last4_ASC',\n Last4Desc = 'last4_DESC',\n AddressLine1Asc = 'addressLine1_ASC',\n AddressLine1Desc = 'addressLine1_DESC',\n AddressLine2Asc = 'addressLine2_ASC',\n AddressLine2Desc = 'addressLine2_DESC',\n CityAsc = 'city_ASC',\n CityDesc = 'city_DESC',\n StateAsc = 'state_ASC',\n StateDesc = 'state_DESC',\n CountryAsc = 'country_ASC',\n CountryDesc = 'country_DESC',\n PaymentMethodIdAsc = 'paymentMethodId_ASC',\n PaymentMethodIdDesc = 'paymentMethodId_DESC',\n}\n\n/** CompanyPaymentMethod subscription payload */\nexport type CompanyPaymentMethodPayload = {\n __typename?: 'CompanyPaymentMethodPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanyPaymentMethodRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Company create input from companyPaymentMethods */\nexport type CompanyPaymentMethods_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from companyPaymentMethods */\nexport type CompanyPaymentMethods_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\nexport type CompanyPaymentMethodSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n nameOnCard?: Maybe;\n expireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n};\n\n/** CompanyPaymentMethod subscription filter */\nexport type CompanyPaymentMethodSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CompanyPaymentMethod update input */\nexport type CompanyPaymentMethodUpdateByFilterInput = {\n nameOnCard?: Maybe>>;\n expireDate?: Maybe>>;\n last4?: Maybe>>;\n addressLine1?: Maybe>>;\n addressLine2?: Maybe>>;\n city?: Maybe>>;\n state?: Maybe>>;\n country?: Maybe>>;\n paymentMethodId?: Maybe>>;\n};\n\n/** CompanyPaymentMethod update input */\nexport type CompanyPaymentMethodUpdateInput = {\n id?: Maybe;\n nameOnCard?: Maybe;\n expireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n paymentMethodId?: Maybe;\n company?: Maybe;\n};\n\nexport type CompanySort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n taxId?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n status?: Maybe;\n createdBy?: Maybe;\n};\n\nexport type CompanySub = {\n __typename?: 'CompanySub';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n subscriptionPlan: Maybe;\n company: Maybe;\n expireDate: Maybe;\n status: Maybe;\n numberOfSeats: Maybe;\n stripeSubscriptionId: Maybe;\n stripeCustomerId: Maybe;\n stripePaymentMethodId: Maybe;\n cardHolderName: Maybe;\n cardExpireDate: Maybe;\n last4: Maybe;\n addressLine1: Maybe;\n addressLine2: Maybe;\n city: Maybe;\n state: Maybe;\n country: Maybe;\n pendingUpdate: Maybe;\n _description: Maybe;\n};\n\nexport type CompanySub_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n expireDate?: Maybe;\n status?: Maybe;\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptionPlan?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanySub_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubCompanyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type CompanySubCoupon = {\n __typename?: 'CompanySubCoupon';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n valid: Maybe;\n percentage: Maybe;\n months: Maybe;\n invoices: Maybe;\n stripeCouponId: Maybe;\n _description: Maybe;\n};\n\nexport type CompanySubCouponInvoicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type CompanySubCoupon_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n stripeCouponId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invoices?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** CompanySubCoupon create input */\nexport type CompanySubCouponCreateInput = {\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n invoices?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** CompanySubCoupon create many input */\nexport type CompanySubCouponCreateManyInput = {\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n invoices?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** CompanySubCoupon delete input */\nexport type CompanySubCouponDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** CompanySubCouponFieldsPermissions create input */\nexport type CompanySubCouponFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n stripeCouponId?: Maybe;\n};\n\nexport type CompanySubCouponFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n stripeCouponId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invoices?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanySubCouponGroupBy = {\n query: CompanySubCouponGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanySubCouponGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n valid?: Maybe>;\n percentage?: Maybe>;\n months?: Maybe>;\n stripeCouponId?: Maybe>;\n createdBy?: Maybe;\n invoices?: Maybe;\n _group?: Maybe>;\n};\n\n/** CompanySubCoupon relation input */\nexport type CompanySubCouponInvoicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** CompanySubCoupon relation input */\nexport type CompanySubCouponInvoicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** CompanySubCoupon relation input */\nexport type CompanySubCouponInvoicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type CompanySubCouponKeyFilter = {\n id?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** CompanySubCouponListResponse output */\nexport type CompanySubCouponListResponse = {\n __typename?: 'CompanySubCouponListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanySubCouponManyResponse output */\nexport type CompanySubCouponManyResponse = {\n __typename?: 'CompanySubCouponManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanySubCouponOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ValidAsc = 'valid_ASC',\n ValidDesc = 'valid_DESC',\n PercentageAsc = 'percentage_ASC',\n PercentageDesc = 'percentage_DESC',\n MonthsAsc = 'months_ASC',\n MonthsDesc = 'months_DESC',\n StripeCouponIdAsc = 'stripeCouponId_ASC',\n StripeCouponIdDesc = 'stripeCouponId_DESC',\n}\n\n/** CompanySubCoupon subscription payload */\nexport type CompanySubCouponPayload = {\n __typename?: 'CompanySubCouponPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanySubCouponSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n stripeCouponId?: Maybe;\n createdBy?: Maybe;\n};\n\n/** CompanySubCoupon subscription filter */\nexport type CompanySubCouponSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CompanySubCoupon update input */\nexport type CompanySubCouponUpdateByFilterInput = {\n valid?: Maybe>>;\n percentage?: Maybe>>;\n months?: Maybe>>;\n stripeCouponId?: Maybe>>;\n};\n\n/** CompanySubCoupon update input */\nexport type CompanySubCouponUpdateInput = {\n id?: Maybe;\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n invoices?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** CompanySub create input */\nexport type CompanySubCreateInput = {\n subscriptionPlan?: Maybe;\n company?: Maybe;\n expireDate?: Maybe;\n status: Scalars['String'];\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\n/** CompanySub create many input */\nexport type CompanySubCreateManyInput = {\n subscriptionPlan: CompanySubSubscriptionPlanManyRelationInput;\n company: CompanySubCompanyManyRelationInput;\n expireDate?: Maybe;\n status: Scalars['String'];\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\n/** CompanySub delete input */\nexport type CompanySubDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** CompanySubFieldsPermissions create input */\nexport type CompanySubFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n expireDate?: Maybe;\n status?: Maybe;\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\nexport type CompanySubFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n expireDate?: Maybe;\n status?: Maybe;\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptionPlan?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type CompanySubGroupBy = {\n query: CompanySubGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type CompanySubGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n expireDate?: Maybe>;\n status?: Maybe>;\n numberOfSeats?: Maybe>;\n stripeSubscriptionId?: Maybe>;\n stripeCustomerId?: Maybe>;\n stripePaymentMethodId?: Maybe>;\n cardHolderName?: Maybe>;\n cardExpireDate?: Maybe>;\n last4?: Maybe>;\n addressLine1?: Maybe>;\n addressLine2?: Maybe>;\n city?: Maybe>;\n state?: Maybe>;\n country?: Maybe>;\n pendingUpdate?: Maybe>;\n createdBy?: Maybe;\n subscriptionPlan?: Maybe;\n company?: Maybe;\n _group?: Maybe>;\n};\n\nexport type CompanySubKeyFilter = {\n id?: Maybe;\n};\n\n/** CompanySubListResponse output */\nexport type CompanySubListResponse = {\n __typename?: 'CompanySubListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** CompanySubManyResponse output */\nexport type CompanySubManyResponse = {\n __typename?: 'CompanySubManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum CompanySubOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ExpireDateAsc = 'expireDate_ASC',\n ExpireDateDesc = 'expireDate_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n NumberOfSeatsAsc = 'numberOfSeats_ASC',\n NumberOfSeatsDesc = 'numberOfSeats_DESC',\n StripeSubscriptionIdAsc = 'stripeSubscriptionId_ASC',\n StripeSubscriptionIdDesc = 'stripeSubscriptionId_DESC',\n StripeCustomerIdAsc = 'stripeCustomerId_ASC',\n StripeCustomerIdDesc = 'stripeCustomerId_DESC',\n StripePaymentMethodIdAsc = 'stripePaymentMethodId_ASC',\n StripePaymentMethodIdDesc = 'stripePaymentMethodId_DESC',\n CardHolderNameAsc = 'cardHolderName_ASC',\n CardHolderNameDesc = 'cardHolderName_DESC',\n CardExpireDateAsc = 'cardExpireDate_ASC',\n CardExpireDateDesc = 'cardExpireDate_DESC',\n Last4Asc = 'last4_ASC',\n Last4Desc = 'last4_DESC',\n AddressLine1Asc = 'addressLine1_ASC',\n AddressLine1Desc = 'addressLine1_DESC',\n AddressLine2Asc = 'addressLine2_ASC',\n AddressLine2Desc = 'addressLine2_DESC',\n CityAsc = 'city_ASC',\n CityDesc = 'city_DESC',\n StateAsc = 'state_ASC',\n StateDesc = 'state_DESC',\n CountryAsc = 'country_ASC',\n CountryDesc = 'country_DESC',\n PendingUpdateAsc = 'pendingUpdate_ASC',\n PendingUpdateDesc = 'pendingUpdate_DESC',\n}\n\n/** CompanySub subscription payload */\nexport type CompanySubPayload = {\n __typename?: 'CompanySubPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type CompanySubRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Company subscription filter */\nexport type CompanySubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Company relation input */\nexport type CompanySubscriptionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Company relation input */\nexport type CompanySubscriptionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Company relation input */\nexport type CompanySubscriptionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type CompanySubSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n expireDate?: Maybe;\n status?: Maybe;\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n createdBy?: Maybe;\n subscriptionPlan?: Maybe;\n company?: Maybe;\n};\n\n/** CompanySub subscription filter */\nexport type CompanySubSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubSubscriptionPlanManyRelationInput = {\n connect?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubSubscriptionPlanRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** CompanySub relation input */\nexport type CompanySubSubscriptionPlanUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** CompanySub update input */\nexport type CompanySubUpdateByFilterInput = {\n expireDate?: Maybe>>;\n status?: Maybe>>;\n numberOfSeats?: Maybe>>;\n stripeSubscriptionId?: Maybe>>;\n stripeCustomerId?: Maybe>>;\n stripePaymentMethodId?: Maybe>>;\n cardHolderName?: Maybe>>;\n cardExpireDate?: Maybe>>;\n last4?: Maybe>>;\n addressLine1?: Maybe>>;\n addressLine2?: Maybe>>;\n city?: Maybe>>;\n state?: Maybe>>;\n country?: Maybe>>;\n pendingUpdate?: Maybe>>;\n};\n\n/** CompanySub update input */\nexport type CompanySubUpdateInput = {\n id?: Maybe;\n subscriptionPlan?: Maybe;\n company?: Maybe;\n expireDate?: Maybe;\n status?: Maybe;\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\n/** Company update input */\nexport type CompanyUpdateByFilterInput = {\n name?: Maybe>>;\n taxId?: Maybe>>;\n cardExpireDate?: Maybe>>;\n last4?: Maybe>>;\n addressLine1?: Maybe>>;\n addressLine2?: Maybe>>;\n city?: Maybe>>;\n state?: Maybe>>;\n country?: Maybe>>;\n status?: Maybe>>;\n};\n\n/** Company update input */\nexport type CompanyUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Computed field mode */\nexport enum ComputedFieldMode {\n Virtual = 'VIRTUAL',\n Stored = 'STORED',\n}\n\n/** MarketingCampaign create input from conditions */\nexport type Conditions_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency: MarketingCampaignAgencyRelationInput;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign update input from conditions */\nexport type Conditions_MarketingCampaignUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** WorkflowAutomation create input from conditions */\nexport type Conditions_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation update input from conditions */\nexport type Conditions_WorkflowAutomationUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** Lead create input from contacts */\nexport type Contacts_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from contacts */\nexport type Contacts_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadContact create input from contactsLeadRelation */\nexport type ContactsLeadRelation_LeadContactCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n contactsLeadRelation?: Maybe;\n};\n\n/** LeadContact update input from contactsLeadRelation */\nexport type ContactsLeadRelation_LeadContactUpdateInput = {\n filter?: Maybe;\n data: LeadContactUpdateInput;\n};\n\n/** CompanyInvoice create input from coupon */\nexport type Coupon_CompanyInvoiceCreateInput = {\n invoiceId: Scalars['String'];\n total: Scalars['Float'];\n status: Scalars['String'];\n paymentIntentStatus?: Maybe;\n paymentMethodId?: Maybe;\n company?: Maybe;\n coupon?: Maybe;\n};\n\n/** CompanyInvoice update input from coupon */\nexport type Coupon_CompanyInvoiceUpdateInput = {\n filter?: Maybe;\n data: CompanyInvoiceUpdateInput;\n};\n\nexport type CreateStripeCustomerInput = {\n line1: Scalars['String'];\n line2?: Maybe;\n city: Scalars['String'];\n state: Scalars['String'];\n country: Scalars['String'];\n};\n\nexport type CreateStripePaymentMethodInput = {\n customerId: Scalars['String'];\n paymentMethodId: Scalars['String'];\n};\n\nexport type CreateStripeSubscriptionInput = {\n companyId: Scalars['ID'];\n customerId: Scalars['String'];\n subscriptionPlanId: Scalars['ID'];\n quantity: Scalars['Int'];\n couponId?: Maybe;\n};\n\n/** UserStatus create input from current */\nexport type Current_UserStatusCreateInput = {\n user?: Maybe;\n current?: Maybe;\n status?: Maybe;\n};\n\n/** UserStatus update input from current */\nexport type Current_UserStatusUpdateInput = {\n user?: Maybe;\n current?: Maybe;\n status?: Maybe;\n};\n\n/** Users create input from currentStatus */\nexport type CurrentStatus_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from currentStatus */\nexport type CurrentStatus_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Custom Table Field Type */\nexport type CustomTableField = {\n __typename?: 'CustomTableField';\n name: Maybe;\n displayName: Maybe;\n description: Maybe;\n fieldType: Maybe;\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique: Maybe;\n defaultValue: Maybe;\n computedMode: Maybe;\n expression: Maybe;\n fieldTypeAttributes: Maybe;\n};\n\n/** Date Field Attributes */\nexport type DateFieldTypeAttributes = {\n __typename?: 'DateFieldTypeAttributes';\n format: Scalars['String'];\n};\n\nexport enum DatePartFunctionType {\n Date = 'DATE',\n Time = 'TIME',\n Week = 'WEEK',\n WeekDay = 'WEEK_DAY',\n WeekOfYear = 'WEEK_OF_YEAR',\n Year = 'YEAR',\n YearWeek = 'YEAR_WEEK',\n DayName = 'DAY_NAME',\n DayOfMonth = 'DAY_OF_MONTH',\n DayOfWeek = 'DAY_OF_WEEK',\n DayOfYear = 'DAY_OF_YEAR',\n Quarter = 'QUARTER',\n Day = 'DAY',\n Month = 'MONTH',\n MonthName = 'MONTH_NAME',\n Hour = 'HOUR',\n Minute = 'MINUTE',\n Second = 'SECOND',\n Microsecond = 'MICROSECOND',\n LastDay = 'LAST_DAY',\n}\n\nexport type DatePredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n relative?: Maybe;\n};\n\nexport type DatePredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type DateRelativePredicates = {\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n};\n\nexport type DateRelativePredicateType = {\n op?: Maybe;\n unit?: Maybe;\n value: Scalars['String'];\n};\n\nexport type DateTimePredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n relative?: Maybe;\n};\n\nexport type DateTimePredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** Date Type Format Enum */\nexport enum DateTypeFormatEnum {\n Date = 'DATE',\n Datetime = 'DATETIME',\n}\n\n/** DeployDataResponse */\nexport type DeployDataResponse = {\n __typename?: 'DeployDataResponse';\n uploadBuildUrl: Scalars['String'];\n uploadMetaDataUrl: Scalars['String'];\n buildName: Scalars['String'];\n};\n\n/** DeployingBuildInput */\nexport type DeployingBuildInput = {\n buildName: Scalars['String'];\n options?: Maybe;\n};\n\nexport enum DeployModeEnum {\n Full = 'FULL',\n OnlyPlugins = 'ONLY_PLUGINS',\n OnlyProject = 'ONLY_PROJECT',\n Functions = 'FUNCTIONS',\n Migrations = 'MIGRATIONS',\n}\n/** DeployOptions */\nexport type DeployOptions = {\n mode?: Maybe;\n pluginNames?: Maybe>>;\n extensionNames?: Maybe>>;\n};\n\nexport enum DeployStatusEnum {\n Deploying = 'deploying',\n CompleteError = 'complete_error',\n CompleteSuccess = 'complete_success',\n Compiling = 'compiling',\n Preparing = 'preparing',\n Initialize = 'initialize',\n}\n\n/** DeployStatusResult */\nexport type DeployStatusResult = {\n __typename?: 'DeployStatusResult';\n status: DeployStatusEnum;\n message: Maybe;\n};\n\n/** Notification create input from disposition */\nexport type Disposition_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user: NotificationUserRelationInput;\n agency: NotificationAgencyRelationInput;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from disposition */\nexport type Disposition_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\nexport type DriverIncident = {\n __typename?: 'DriverIncident';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n type: Maybe;\n date: Maybe;\n damages: Maybe;\n atFault: Maybe;\n insurancePaidAmount: Maybe;\n incidentsLeadDriverRelation: Maybe;\n _description: Maybe;\n};\n\nexport type DriverIncident_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type DriverIncident_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** DriverIncident create input */\nexport type DriverIncidentCreateInput = {\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n};\n\n/** DriverIncident create many input */\nexport type DriverIncidentCreateManyInput = {\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n};\n\n/** DriverIncident delete input */\nexport type DriverIncidentDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** DriverIncidentFieldsPermissions create input */\nexport type DriverIncidentFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n};\n\nexport type DriverIncidentFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type DriverIncidentGroupBy = {\n query: DriverIncidentGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type DriverIncidentGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n type?: Maybe>;\n date?: Maybe>;\n damages?: Maybe>;\n atFault?: Maybe>;\n insurancePaidAmount?: Maybe>;\n createdBy?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n _group?: Maybe>;\n};\n\n/** DriverIncident relation input */\nexport type DriverIncidentIncidentsLeadDriverRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** DriverIncident relation input */\nexport type DriverIncidentIncidentsLeadDriverRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** DriverIncident relation input */\nexport type DriverIncidentIncidentsLeadDriverRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type DriverIncidentKeyFilter = {\n id?: Maybe;\n};\n\n/** DriverIncidentListResponse output */\nexport type DriverIncidentListResponse = {\n __typename?: 'DriverIncidentListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** DriverIncidentManyResponse output */\nexport type DriverIncidentManyResponse = {\n __typename?: 'DriverIncidentManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum DriverIncidentOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n DateAsc = 'date_ASC',\n DateDesc = 'date_DESC',\n DamagesAsc = 'damages_ASC',\n DamagesDesc = 'damages_DESC',\n AtFaultAsc = 'atFault_ASC',\n AtFaultDesc = 'atFault_DESC',\n InsurancePaidAmountAsc = 'insurancePaidAmount_ASC',\n InsurancePaidAmountDesc = 'insurancePaidAmount_DESC',\n}\n\n/** DriverIncident subscription payload */\nexport type DriverIncidentPayload = {\n __typename?: 'DriverIncidentPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type DriverIncidentRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type DriverIncidentSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n createdBy?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n};\n\n/** DriverIncident subscription filter */\nexport type DriverIncidentSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** DriverIncident update input */\nexport type DriverIncidentUpdateByFilterInput = {\n type?: Maybe>>;\n date?: Maybe>>;\n damages?: Maybe>>;\n atFault?: Maybe>>;\n insurancePaidAmount?: Maybe>>;\n};\n\n/** DriverIncident update input */\nexport type DriverIncidentUpdateInput = {\n id?: Maybe;\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n};\n\n/** Lead create input from drivers */\nexport type Drivers_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from drivers */\nexport type Drivers_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadDriver create input from driversLeadRelation */\nexport type DriversLeadRelation_LeadDriverCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\n/** LeadDriver update input from driversLeadRelation */\nexport type DriversLeadRelation_LeadDriverUpdateInput = {\n filter?: Maybe;\n data: LeadDriverUpdateInput;\n};\n\n/** LeadHistory create input from email */\nexport type Email_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory update input from email */\nexport type Email_LeadHistoryUpdateInput = {\n /** Entity related to the lead that was mutated */\n entity?: Maybe;\n /** The operation executed on the entity */\n operation?: Maybe;\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification create input from email */\nexport type Email_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from email */\nexport type Email_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\n/** Campaign create input from emailCampaign */\nexport type EmailCampaign_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from emailCampaign */\nexport type EmailCampaign_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\nexport type EmailInboundService = {\n __typename?: 'EmailInboundService';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n active: Maybe;\n description: Maybe;\n server: Maybe;\n protocol: Maybe;\n port: Maybe;\n connection: Maybe;\n username: Maybe;\n password: Maybe;\n agency: Maybe;\n user: Maybe;\n lastChecked: Maybe;\n _description: Maybe;\n};\n\nexport type EmailInboundService_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n server?: Maybe;\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n lastChecked?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type EmailInboundService_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** EmailInboundServices create input */\nexport type EmailInboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n server: Scalars['String'];\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n lastChecked?: Maybe;\n};\n\n/** EmailInboundServices create many input */\nexport type EmailInboundServiceCreateManyInput = {\n active?: Maybe;\n description?: Maybe;\n server: Scalars['String'];\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency: EmailInboundServicesAgencyManyRelationInput;\n user?: Maybe;\n lastChecked?: Maybe;\n};\n\n/** EmailInboundServices delete input */\nexport type EmailInboundServiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** EmailInboundServiceFieldsPermissions create input */\nexport type EmailInboundServiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n server?: Maybe;\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n lastChecked?: Maybe;\n};\n\nexport type EmailInboundServiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n server?: Maybe;\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n lastChecked?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type EmailInboundServiceGroupBy = {\n query: EmailInboundServiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type EmailInboundServiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n active?: Maybe>;\n description?: Maybe>;\n server?: Maybe>;\n protocol?: Maybe>;\n port?: Maybe>;\n connection?: Maybe>;\n username?: Maybe>;\n password?: Maybe>;\n lastChecked?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n _group?: Maybe>;\n};\n\nexport type EmailInboundServiceKeyFilter = {\n id?: Maybe;\n};\n\n/** EmailInboundServiceListResponse output */\nexport type EmailInboundServiceListResponse = {\n __typename?: 'EmailInboundServiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** EmailInboundServiceManyResponse output */\nexport type EmailInboundServiceManyResponse = {\n __typename?: 'EmailInboundServiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum EmailInboundServiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n ServerAsc = 'server_ASC',\n ServerDesc = 'server_DESC',\n ProtocolAsc = 'protocol_ASC',\n ProtocolDesc = 'protocol_DESC',\n PortAsc = 'port_ASC',\n PortDesc = 'port_DESC',\n ConnectionAsc = 'connection_ASC',\n ConnectionDesc = 'connection_DESC',\n UsernameAsc = 'username_ASC',\n UsernameDesc = 'username_DESC',\n PasswordAsc = 'password_ASC',\n PasswordDesc = 'password_DESC',\n LastCheckedAsc = 'lastChecked_ASC',\n LastCheckedDesc = 'lastChecked_DESC',\n}\n\n/** EmailInboundServices subscription payload */\nexport type EmailInboundServicePayload = {\n __typename?: 'EmailInboundServicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type EmailInboundServiceRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type EmailInboundServiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n server?: Maybe;\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n lastChecked?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n};\n\n/** EmailInboundServices subscription filter */\nexport type EmailInboundServiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** EmailInboundServices relation input */\nexport type EmailInboundServicesUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** EmailInboundServices update input */\nexport type EmailInboundServiceUpdateByFilterInput = {\n active?: Maybe>>;\n description?: Maybe>>;\n server?: Maybe>>;\n protocol?: Maybe>>;\n port?: Maybe>>;\n connection?: Maybe>>;\n username?: Maybe>>;\n password?: Maybe>>;\n lastChecked?: Maybe>>;\n};\n\n/** EmailInboundServices update input */\nexport type EmailInboundServiceUpdateInput = {\n id?: Maybe;\n active?: Maybe;\n description?: Maybe;\n server?: Maybe;\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n lastChecked?: Maybe;\n};\n\nexport type EmailOutboundService = {\n __typename?: 'EmailOutboundService';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n active: Maybe;\n description: Maybe;\n priority: Maybe;\n server: Maybe;\n port: Maybe;\n connection: Maybe;\n username: Maybe;\n password: Maybe;\n agency: Maybe;\n user: Maybe;\n fallback: Maybe;\n agencyEmailService: Maybe;\n _description: Maybe;\n};\n\nexport type EmailOutboundService_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n fallback?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type EmailOutboundService_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyEmailServiceManyRelationInput = {\n connect?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyEmailServiceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyEmailServiceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** EmailOutboundService create input */\nexport type EmailOutboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server: Scalars['String'];\n port: Scalars['Int'];\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService create many input */\nexport type EmailOutboundServiceCreateManyInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server: Scalars['String'];\n port: Scalars['Int'];\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency: EmailOutboundServiceAgencyManyRelationInput;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService delete input */\nexport type EmailOutboundServiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** EmailOutboundServiceFieldsPermissions create input */\nexport type EmailOutboundServiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n fallback?: Maybe;\n};\n\nexport type EmailOutboundServiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n fallback?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type EmailOutboundServiceGroupBy = {\n query: EmailOutboundServiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type EmailOutboundServiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n active?: Maybe>;\n description?: Maybe>;\n priority?: Maybe>;\n server?: Maybe>;\n port?: Maybe>;\n connection?: Maybe>;\n username?: Maybe>;\n password?: Maybe>;\n fallback?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n agencyEmailService?: Maybe;\n _group?: Maybe>;\n};\n\nexport type EmailOutboundServiceKeyFilter = {\n id?: Maybe;\n};\n\n/** EmailOutboundServiceListResponse output */\nexport type EmailOutboundServiceListResponse = {\n __typename?: 'EmailOutboundServiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** EmailOutboundServiceManyResponse output */\nexport type EmailOutboundServiceManyResponse = {\n __typename?: 'EmailOutboundServiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum EmailOutboundServiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n PriorityAsc = 'priority_ASC',\n PriorityDesc = 'priority_DESC',\n ServerAsc = 'server_ASC',\n ServerDesc = 'server_DESC',\n PortAsc = 'port_ASC',\n PortDesc = 'port_DESC',\n ConnectionAsc = 'connection_ASC',\n ConnectionDesc = 'connection_DESC',\n UsernameAsc = 'username_ASC',\n UsernameDesc = 'username_DESC',\n PasswordAsc = 'password_ASC',\n PasswordDesc = 'password_DESC',\n FallbackAsc = 'fallback_ASC',\n FallbackDesc = 'fallback_DESC',\n}\n\n/** EmailOutboundService subscription payload */\nexport type EmailOutboundServicePayload = {\n __typename?: 'EmailOutboundServicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type EmailOutboundServiceRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type EmailOutboundServiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n fallback?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService subscription filter */\nexport type EmailOutboundServiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** EmailOutboundService update input */\nexport type EmailOutboundServiceUpdateByFilterInput = {\n active?: Maybe>>;\n description?: Maybe>>;\n priority?: Maybe>>;\n server?: Maybe>>;\n port?: Maybe>>;\n connection?: Maybe>>;\n username?: Maybe>>;\n password?: Maybe>>;\n fallback?: Maybe>>;\n};\n\n/** EmailOutboundService update input */\nexport type EmailOutboundServiceUpdateInput = {\n id?: Maybe;\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** EmailOutboundService relation input */\nexport type EmailOutboundServiceUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency create input from emails */\nexport type Emails_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from emails */\nexport type Emails_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from emails */\nexport type Emails_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from emails */\nexport type Emails_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from emails */\nexport type Emails_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from emails */\nexport type Emails_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency create input from emailService */\nexport type EmailService_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from emailService */\nexport type EmailService_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** MarketingCampaignCondition create input from emailTemplate */\nexport type EmailTemplate_MarketingCampaignConditionCreateInput = {\n name: Scalars['String'];\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaignCondition update input from emailTemplate */\nexport type EmailTemplate_MarketingCampaignConditionUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignConditionUpdateInput;\n};\n\n/** WorkflowConditions create input from emailTemplate */\nexport type EmailTemplate_WorkflowConditionCreateInput = {\n name: Scalars['String'];\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions update input from emailTemplate */\nexport type EmailTemplate_WorkflowConditionUpdateInput = {\n filter?: Maybe;\n data: WorkflowConditionUpdateInput;\n};\n\nexport type EnvironmentBackupItem = {\n __typename?: 'EnvironmentBackupItem';\n name: Scalars['String'];\n size: Scalars['Float'];\n};\n\nexport type EnvironmentItem = {\n __typename?: 'EnvironmentItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n};\n\n/** EnvironmentSetupInput */\nexport type EnvironmentSetupInput = {\n deleteLock?: Maybe;\n};\n\nexport type EnvironmentVariable = {\n __typename?: 'EnvironmentVariable';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n value: Maybe;\n _description: Maybe;\n};\n\n/** EnvironmentVariables create input */\nexport type EnvironmentVariableCreateInput = {\n name: Scalars['String'];\n value: Scalars['String'];\n};\n\n/** EnvironmentVariables create many input */\nexport type EnvironmentVariableCreateManyInput = {\n name: Scalars['String'];\n value: Scalars['String'];\n};\n\n/** EnvironmentVariables delete input */\nexport type EnvironmentVariableDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\nexport type EnvironmentVariableFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type EnvironmentVariableGroupBy = {\n query: EnvironmentVariableGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type EnvironmentVariableGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n value?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type EnvironmentVariableKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** EnvironmentVariableListResponse output */\nexport type EnvironmentVariableListResponse = {\n __typename?: 'EnvironmentVariableListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** EnvironmentVariableManyResponse output */\nexport type EnvironmentVariableManyResponse = {\n __typename?: 'EnvironmentVariableManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum EnvironmentVariableOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n ValueAsc = 'value_ASC',\n ValueDesc = 'value_DESC',\n}\n\n/** EnvironmentVariables subscription payload */\nexport type EnvironmentVariablePayload = {\n __typename?: 'EnvironmentVariablePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type EnvironmentVariableSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n createdBy?: Maybe;\n};\n\n/** EnvironmentVariables subscription filter */\nexport type EnvironmentVariableSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** EnvironmentVariables update input */\nexport type EnvironmentVariableUpdateByFilterInput = {\n name?: Maybe>>;\n value?: Maybe>>;\n};\n\n/** EnvironmentVariables update input */\nexport type EnvironmentVariableUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n value?: Maybe;\n};\n\n/** Facebook connection params */\nexport type FacebookOptions = {\n __typename?: 'FacebookOptions';\n enabled: Scalars['Boolean'];\n app_id: Scalars['String'];\n app_secret: Scalars['String'];\n};\n\n/** Facebook connection params input */\nexport type FacebookOptionsInput = {\n enabled: Scalars['Boolean'];\n app_id: Scalars['String'];\n app_secret: Scalars['String'];\n};\n\n/** Field Data Features */\nexport type FieldDataFeatures = {\n __typename?: 'FieldDataFeatures';\n create: Scalars['Boolean'];\n update: Scalars['Boolean'];\n sort: Scalars['Boolean'];\n};\n\n/** Field Schema Features */\nexport type FieldSchemaFeatures = {\n __typename?: 'FieldSchemaFeatures';\n update: Scalars['Boolean'];\n delete: Scalars['Boolean'];\n};\n\n/** Field types */\nexport enum FieldType {\n Id = 'ID',\n Uuid = 'UUID',\n Json = 'JSON',\n Number = 'NUMBER',\n Text = 'TEXT',\n Date = 'DATE',\n Switch = 'SWITCH',\n Relation = 'RELATION',\n File = 'FILE',\n Smart = 'SMART',\n Geo = 'GEO',\n OneWayRelation = 'ONE_WAY_RELATION',\n MissingRelation = 'MISSING_RELATION',\n}\n\n/** Field Type Attributes */\nexport type FieldTypeAttributes =\n | DateFieldTypeAttributes\n | FileFieldTypeAttributes\n | MissingRelationFieldTypeAttributes\n | NumberFieldTypeAttributes\n | SmartFieldTypeAttributes\n | SwitchFieldTypeAttributes\n | TextFieldTypeAttributes\n | UuidFieldTypeAttributes\n | GeoFieldTypeAttributes;\n\n/** Field Type Attributes Input */\nexport type FieldTypeAttributesInput = {\n format?: Maybe;\n precision?: Maybe;\n currency?: Maybe;\n minValue?: Maybe;\n maxValue?: Maybe;\n isBigInt?: Maybe;\n autoIncrement?: Maybe;\n fieldSize?: Maybe;\n expiration?: Maybe;\n listOptions?: Maybe>;\n maxSize?: Maybe;\n typeRestrictions?: Maybe>;\n srid?: Maybe;\n};\n\nexport type File = {\n __typename?: 'File';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n fileId: Maybe;\n downloadUrl: Maybe;\n shareUrl: Maybe;\n provider: Maybe;\n public: Maybe;\n uploaded: Maybe;\n filename: Maybe;\n uploadUrl: Maybe;\n fields: Maybe;\n meta: Maybe;\n mods: Maybe;\n settings_menuBarLogo: Maybe;\n settings_landingPageImage: Maybe;\n users_avatar: Maybe;\n teamMembers_avatar: Maybe;\n sMSMessage_files: Maybe;\n mail_attachments: Maybe;\n voiceMailMessage_audio: Maybe;\n message_attachments: Maybe;\n systemSetting_file: Maybe;\n previewUrl: Maybe;\n downloadStorageUrl: Maybe;\n _description: Maybe;\n};\n\nexport type FileSettings_MenuBarLogoArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type FileSettings_LandingPageImageArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type FileUsers_AvatarArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type FileTeamMembers_AvatarArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type FileSMsMessage_FilesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type FileMail_AttachmentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type FileVoiceMailMessage_AudioArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type FileMessage_AttachmentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type FileSystemSetting_FileArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type File_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n fileId?: Maybe;\n downloadUrl?: Maybe;\n shareUrl?: Maybe;\n provider?: Maybe;\n public?: Maybe;\n uploaded?: Maybe;\n filename?: Maybe;\n uploadUrl?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n settings_menuBarLogo?: Maybe;\n settings_landingPageImage?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type File_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** SystemSetting create input from file */\nexport type File_SystemSettingCreateInput = {\n name?: Maybe;\n isEnabled?: Maybe;\n file?: Maybe;\n value?: Maybe;\n};\n/** SystemSetting update input from file */\nexport type File_SystemSettingUpdateInput = {\n filter?: Maybe;\n data: SystemSettingUpdateInput;\n};\n/** Files create input */\nexport type FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files create many input */\nexport type FileCreateManyInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files delete input */\nexport type FileDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** FileFieldsPermissions create input */\nexport type FileFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n fileId?: Maybe;\n downloadUrl?: Maybe;\n shareUrl?: Maybe;\n provider?: Maybe;\n public?: Maybe;\n uploaded?: Maybe;\n filename?: Maybe;\n uploadUrl?: Maybe;\n fields?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n};\n\n/** File Field Attributes */\nexport type FileFieldTypeAttributes = {\n __typename?: 'FileFieldTypeAttributes';\n format: Scalars['String'];\n maxSize: Maybe;\n /** @deprecated Field is deprecated */\n showTitle: Maybe;\n /** @deprecated Field is deprecated */\n showUrl: Maybe;\n typeRestrictions: Maybe>;\n expiration: Maybe;\n};\n\nexport type FileFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n fileId?: Maybe;\n downloadUrl?: Maybe;\n shareUrl?: Maybe;\n provider?: Maybe;\n public?: Maybe;\n uploaded?: Maybe;\n filename?: Maybe;\n uploadUrl?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n settings_menuBarLogo?: Maybe;\n settings_landingPageImage?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type FileGroupBy = {\n query: FileGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type FileGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n fileId?: Maybe>;\n downloadUrl?: Maybe>;\n shareUrl?: Maybe>;\n provider?: Maybe>;\n public?: Maybe>;\n uploaded?: Maybe>;\n filename?: Maybe>;\n uploadUrl?: Maybe>;\n fields?: Maybe>;\n meta?: Maybe>;\n mods?: Maybe>;\n createdBy?: Maybe;\n settings_menuBarLogo?: Maybe;\n settings_landingPageImage?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n _group?: Maybe>;\n};\n\nexport type FileKeyFilter = {\n id?: Maybe;\n fileId?: Maybe;\n};\n\n/** FileListResponse output */\nexport type FileListResponse = {\n __typename?: 'FileListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** FileManyResponse output */\nexport type FileManyResponse = {\n __typename?: 'FileManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum FileOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n FileIdAsc = 'fileId_ASC',\n FileIdDesc = 'fileId_DESC',\n DownloadUrlAsc = 'downloadUrl_ASC',\n DownloadUrlDesc = 'downloadUrl_DESC',\n ShareUrlAsc = 'shareUrl_ASC',\n ShareUrlDesc = 'shareUrl_DESC',\n ProviderAsc = 'provider_ASC',\n ProviderDesc = 'provider_DESC',\n PublicAsc = 'public_ASC',\n PublicDesc = 'public_DESC',\n UploadedAsc = 'uploaded_ASC',\n UploadedDesc = 'uploaded_DESC',\n FilenameAsc = 'filename_ASC',\n FilenameDesc = 'filename_DESC',\n UploadUrlAsc = 'uploadUrl_ASC',\n UploadUrlDesc = 'uploadUrl_DESC',\n FieldsAsc = 'fields_ASC',\n FieldsDesc = 'fields_DESC',\n MetaAsc = 'meta_ASC',\n MetaDesc = 'meta_DESC',\n ModsAsc = 'mods_ASC',\n ModsDesc = 'mods_DESC',\n}\n\n/** Files subscription payload */\nexport type FilePayload = {\n __typename?: 'FilePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type FileRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SMSMessage create input from files */\nexport type Files_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency: SmsMessageAgencyRelationInput;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from files */\nexport type Files_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** Files relation input */\nexport type FilesMail_AttachmentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesMail_AttachmentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesMail_AttachmentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesMessage_AttachmentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesMessage_AttachmentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesMessage_AttachmentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type FileSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n fileId?: Maybe;\n downloadUrl?: Maybe;\n shareUrl?: Maybe;\n provider?: Maybe;\n public?: Maybe;\n uploaded?: Maybe;\n filename?: Maybe;\n uploadUrl?: Maybe;\n createdBy?: Maybe;\n};\n\n/** Files relation input */\nexport type FilesSmsMessage_FilesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesSmsMessage_FilesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesSmsMessage_FilesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesSystemSetting_FileManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesSystemSetting_FileRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesSystemSetting_FileUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesTeamMembers_AvatarManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesTeamMembers_AvatarRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesTeamMembers_AvatarUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n update?: Maybe>>;\n};\n\n/** Files subscription filter */\nexport type FileSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Files relation input */\nexport type FilesUsers_AvatarManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesUsers_AvatarRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesUsers_AvatarUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesVoiceMailMessage_AudioManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Files relation input */\nexport type FilesVoiceMailMessage_AudioRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Files relation input */\nexport type FilesVoiceMailMessage_AudioUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** File Type Format Enum */\nexport enum FileTypeFormatEnum {\n File = 'FILE',\n Image = 'IMAGE',\n}\n\n/** Files update input */\nexport type FileUpdateByFilterInput = {\n downloadUrl?: Maybe>>;\n shareUrl?: Maybe>>;\n provider?: Maybe>>;\n public?: Maybe>>;\n uploaded?: Maybe>>;\n filename?: Maybe>>;\n uploadUrl?: Maybe>>;\n fields?: Maybe>>;\n meta?: Maybe>>;\n mods?: Maybe>>;\n};\n\n/** Files update input */\nexport type FileUpdateInput = {\n id?: Maybe;\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\nexport type FileUploadInfoResponse = {\n __typename?: 'FileUploadInfoResponse';\n policy: Scalars['String'];\n signature: Scalars['String'];\n apiKey: Scalars['String'];\n path: Scalars['String'];\n};\n\nexport type FindOrCreateDmInput = {\n usersIds: Array;\n};\n\nexport type FindOrCreateDmMember = {\n __typename?: 'FindOrCreateDMMember';\n id: Scalars['ID'];\n user: FindOrCreateDmUser;\n};\n\nexport type FindOrCreateDmMemberList = {\n __typename?: 'FindOrCreateDMMemberList';\n count: Scalars['Int'];\n items: Array;\n};\n\nexport type FindOrCreateDmResponse = {\n __typename?: 'FindOrCreateDMResponse';\n id: Scalars['ID'];\n name: Scalars['String'];\n members: FindOrCreateDmMemberList;\n};\n\nexport type FindOrCreateDmUser = {\n __typename?: 'FindOrCreateDMUser';\n id: Scalars['ID'];\n};\n\nexport type FloatPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type FloatPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type FreePhoneNumber = {\n __typename?: 'FreePhoneNumber';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n number: Maybe;\n _description: Maybe;\n};\n\nexport type FreePhoneNumber_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** FreePhoneNumber create input */\nexport type FreePhoneNumberCreateInput = {\n number?: Maybe;\n};\n\n/** FreePhoneNumber create many input */\nexport type FreePhoneNumberCreateManyInput = {\n number?: Maybe;\n};\n\n/** FreePhoneNumber delete input */\nexport type FreePhoneNumberDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** FreePhoneNumberFieldsPermissions create input */\nexport type FreePhoneNumberFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n number?: Maybe;\n};\n\nexport type FreePhoneNumberFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type FreePhoneNumberGroupBy = {\n query: FreePhoneNumberGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type FreePhoneNumberGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n number?: Maybe;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type FreePhoneNumberKeyFilter = {\n id?: Maybe;\n};\n\n/** FreePhoneNumberListResponse output */\nexport type FreePhoneNumberListResponse = {\n __typename?: 'FreePhoneNumberListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** FreePhoneNumberManyResponse output */\nexport type FreePhoneNumberManyResponse = {\n __typename?: 'FreePhoneNumberManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum FreePhoneNumberOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NumberCodeAsc = 'number_code_ASC',\n NumberCodeDesc = 'number_code_DESC',\n NumberNumberAsc = 'number_number_ASC',\n NumberNumberDesc = 'number_number_DESC',\n}\n\n/** FreePhoneNumber subscription payload */\nexport type FreePhoneNumberPayload = {\n __typename?: 'FreePhoneNumberPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type FreePhoneNumberSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n createdBy?: Maybe;\n};\n\n/** FreePhoneNumber subscription filter */\nexport type FreePhoneNumberSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** FreePhoneNumber update input */\nexport type FreePhoneNumberUpdateInput = {\n id?: Maybe;\n number?: Maybe;\n};\n\n/** PhoneCall create input from from */\nexport type From_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall update input from from */\nexport type From_PhoneCallUpdateInput = {\n filter?: Maybe;\n data: PhoneCallUpdateInput;\n};\n\n/** SMSMessage create input from from */\nexport type From_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from from */\nexport type From_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** FunctionInfo */\nexport type FunctionInfo = {\n name: Scalars['String'];\n functionType: FunctionType;\n description: Maybe;\n application: Maybe;\n};\n\n/** FunctionInfoFilter */\nexport type FunctionInfoFilter = {\n name?: Maybe;\n functionType?: Maybe;\n description?: Maybe;\n};\n\n/** FunctionInfoOrderBy */\nexport enum FunctionInfoOrderBy {\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n FunctionTypeAsc = 'functionType_ASC',\n FunctionTypeDesc = 'functionType_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n}\n\n/** FunctionListResponse output */\nexport type FunctionListResponse = {\n __typename?: 'FunctionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** FunctionResolverInfo */\nexport type FunctionResolverInfo = FunctionInfo & {\n __typename?: 'FunctionResolverInfo';\n name: Scalars['String'];\n functionType: FunctionType;\n description: Maybe;\n gqlType: Scalars['String'];\n application: Maybe;\n};\n\n/** FunctionTaskInfo */\nexport type FunctionTaskInfo = FunctionInfo & {\n __typename?: 'FunctionTaskInfo';\n name: Scalars['String'];\n functionType: FunctionType;\n description: Maybe;\n scheduleExpression: Maybe;\n application: Maybe;\n};\n\n/** FunctionTriggerInfo */\nexport type FunctionTriggerInfo = FunctionInfo & {\n __typename?: 'FunctionTriggerInfo';\n name: Scalars['String'];\n functionType: FunctionType;\n description: Maybe;\n operation: Scalars['String'];\n tableName: Scalars['String'];\n type: Scalars['String'];\n application: Maybe;\n};\n\n/** FunctionType */\nexport enum FunctionType {\n Resolver = 'resolver',\n Trigger = 'trigger',\n Webhook = 'webhook',\n Task = 'task',\n Schedule = 'schedule',\n}\n\n/** FunctionWebhookInfo */\nexport type FunctionWebhookInfo = FunctionInfo & {\n __typename?: 'FunctionWebhookInfo';\n name: Scalars['String'];\n functionType: FunctionType;\n description: Maybe;\n httpMethod: Scalars['String'];\n workspaceRelativePath: Scalars['String'];\n workspaceFullPath: Scalars['String'];\n application: Maybe;\n};\n\n/** Geo Field Attributes */\nexport type GeoFieldTypeAttributes = {\n __typename?: 'GeoFieldTypeAttributes';\n format: Scalars['String'];\n srid: Maybe;\n};\n\n/** Github connection params */\nexport type GithubOptions = {\n __typename?: 'GithubOptions';\n enabled: Scalars['Boolean'];\n client_id: Scalars['String'];\n client_secret: Scalars['String'];\n};\n\n/** Github connection params input */\nexport type GithubOptionsInput = {\n enabled: Scalars['Boolean'];\n client_id: Scalars['String'];\n client_secret: Scalars['String'];\n};\n\n/** AgencyEmailService create input from gmail */\nexport type Gmail_AgencyEmailServiceCreateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** AgencyEmailService update input from gmail */\nexport type Gmail_AgencyEmailServiceUpdateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n\n/** Agency create input from gmailConfigurations */\nexport type GmailConfigurations_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from gmailConfigurations */\nexport type GmailConfigurations_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from gmailConfigurations */\nexport type GmailConfigurations_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from gmailConfigurations */\nexport type GmailConfigurations_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport type GmailProfile = {\n __typename?: 'GmailProfile';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n googleId: Maybe;\n name: Maybe;\n email: Maybe;\n avatar: Maybe;\n accessToken: Maybe;\n refreshToken: Maybe;\n services: Maybe;\n _description: Maybe;\n};\n\nexport type GmailProfileServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GmailProfile_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n services?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** GmailProfile create input */\nexport type GmailProfileCreateInput = {\n googleId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n\n/** GmailProfile create many input */\nexport type GmailProfileCreateManyInput = {\n googleId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n\n/** GmailProfile delete input */\nexport type GmailProfileDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** GmailProfileFieldsPermissions create input */\nexport type GmailProfileFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n};\nexport type GmailProfileFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n services?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type GmailProfileGroupBy = {\n query: GmailProfileGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type GmailProfileGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n googleId?: Maybe>;\n name?: Maybe>;\n email?: Maybe>;\n avatar?: Maybe>;\n accessToken?: Maybe>;\n refreshToken?: Maybe>;\n createdBy?: Maybe;\n services?: Maybe;\n _group?: Maybe>;\n};\n\nexport type GmailProfileKeyFilter = {\n id?: Maybe;\n googleId?: Maybe;\n};\n\n/** GmailProfileListResponse output */\nexport type GmailProfileListResponse = {\n __typename?: 'GmailProfileListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** GmailProfileManyResponse output */\nexport type GmailProfileManyResponse = {\n __typename?: 'GmailProfileManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum GmailProfileOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n GoogleIdAsc = 'googleId_ASC',\n GoogleIdDesc = 'googleId_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n AvatarAsc = 'avatar_ASC',\n AvatarDesc = 'avatar_DESC',\n AccessTokenAsc = 'accessToken_ASC',\n AccessTokenDesc = 'accessToken_DESC',\n RefreshTokenAsc = 'refreshToken_ASC',\n RefreshTokenDesc = 'refreshToken_DESC',\n}\n\n/** GmailProfile subscription payload */\nexport type GmailProfilePayload = {\n __typename?: 'GmailProfilePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** GmailProfile relation input */\nexport type GmailProfileServicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** GmailProfile relation input */\nexport type GmailProfileServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** GmailProfile relation input */\nexport type GmailProfileServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type GmailProfileSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n createdBy?: Maybe;\n};\n\n/** GmailProfile subscription filter */\nexport type GmailProfileSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** GmailProfile update input */\nexport type GmailProfileUpdateByFilterInput = {\n googleId?: Maybe>>;\n name?: Maybe>>;\n email?: Maybe>>;\n avatar?: Maybe>>;\n accessToken?: Maybe>>;\n refreshToken?: Maybe>>;\n};\n\n/** GmailProfile update input */\nexport type GmailProfileUpdateInput = {\n id?: Maybe;\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n\nexport type GmailService = {\n __typename?: 'GmailService';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n agency: Maybe;\n active: Maybe;\n name: Maybe;\n email: Maybe;\n avatar: Maybe;\n refreshToken: Maybe;\n accessToken: Maybe;\n profile: Maybe;\n agencyEmailService: Maybe;\n _description: Maybe;\n};\n\nexport type GmailService_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type GmailService_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyEmailServiceManyRelationInput = {\n connect?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyEmailServiceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyEmailServiceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** GmailService create input */\nexport type GmailServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService create many input */\nexport type GmailServiceCreateManyInput = {\n user: GmailServiceUserManyRelationInput;\n agency: GmailServiceAgencyManyRelationInput;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService delete input */\nexport type GmailServiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** GmailServiceFieldsPermissions create input */\nexport type GmailServiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n};\n\nexport type GmailServiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type GmailServiceGroupBy = {\n query: GmailServiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type GmailServiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n active?: Maybe>;\n name?: Maybe>;\n email?: Maybe>;\n avatar?: Maybe>;\n refreshToken?: Maybe>;\n accessToken?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n _group?: Maybe>;\n};\n\nexport type GmailServiceKeyFilter = {\n id?: Maybe;\n};\n\n/** GmailServiceListResponse output */\nexport type GmailServiceListResponse = {\n __typename?: 'GmailServiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** GmailServiceManyResponse output */\nexport type GmailServiceManyResponse = {\n __typename?: 'GmailServiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum GmailServiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n AvatarAsc = 'avatar_ASC',\n AvatarDesc = 'avatar_DESC',\n RefreshTokenAsc = 'refreshToken_ASC',\n RefreshTokenDesc = 'refreshToken_DESC',\n AccessTokenAsc = 'accessToken_ASC',\n AccessTokenDesc = 'accessToken_DESC',\n}\n\n/** GmailService subscription payload */\nexport type GmailServicePayload = {\n __typename?: 'GmailServicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceProfileManyRelationInput = {\n connect?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceProfileRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceProfileUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type GmailServiceRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type GmailServiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService subscription filter */\nexport type GmailServiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** GmailService update input */\nexport type GmailServiceUpdateByFilterInput = {\n active?: Maybe>>;\n name?: Maybe>>;\n email?: Maybe>>;\n avatar?: Maybe>>;\n refreshToken?: Maybe>>;\n accessToken?: Maybe>>;\n};\n\n/** GmailService update input */\nexport type GmailServiceUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** GmailService relation input */\nexport type GmailServiceUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type GoogleAuthUrlResult = {\n __typename?: 'GoogleAuthUrlResult';\n url: Scalars['String'];\n};\n\nexport type GoogleEmail = {\n __typename?: 'GoogleEmail';\n id: Maybe;\n threadId: Maybe;\n labelIds: Maybe>>;\n payload: Maybe;\n internalDate: Maybe;\n};\n\nexport type GoogleEmailCreateInput = {\n to: Scalars['String'];\n cc?: Maybe;\n subject: Scalars['String'];\n content: Scalars['String'];\n agency: Scalars['ID'];\n threadId?: Maybe;\n};\n\nexport type GoogleEmailHeader = {\n __typename?: 'GoogleEmailHeader';\n name: Maybe;\n value: Maybe;\n};\n\nexport type GoogleEmailPayload = {\n __typename?: 'GoogleEmailPayload';\n partId: Maybe;\n headers: Maybe>>;\n body: Maybe;\n};\n\nexport type GoogleEmailsFilter = {\n agency: Scalars['ID'];\n labels?: Maybe>>;\n search?: Maybe;\n};\n\nexport type GoogleEmailsListResponse = {\n __typename?: 'GoogleEmailsListResponse';\n count: Maybe;\n items: Maybe>>;\n next: Maybe;\n};\n\n/** Google connection params */\nexport type GoogleOptions = {\n __typename?: 'GoogleOptions';\n enabled: Scalars['Boolean'];\n client_id: Scalars['String'];\n client_secret: Scalars['String'];\n};\n\n/** Google connection params input */\nexport type GoogleOptionsInput = {\n enabled: Scalars['Boolean'];\n client_id: Scalars['String'];\n client_secret: Scalars['String'];\n};\n\n/** GraphQLCreateFileCustomInput */\nexport type GraphQlCreateFileCustomInput = {\n fileId?: Maybe;\n filename?: Maybe;\n public?: Maybe;\n};\n\n/** GraphQLCreateFileItemInput */\nexport type GraphQlCreateFileItemInput = {\n create?: Maybe;\n};\n\n/** GraphQLFileItemResponse */\nexport type GraphQlFileItemResponse = {\n __typename?: 'GraphQLFileItemResponse';\n id: Maybe;\n downloadUrl: Maybe;\n};\n\nexport type GroupByField = {\n as?: Maybe;\n fn?: Maybe>>;\n};\n\nexport type GroupByFieldFunction = {\n aggregate?: Maybe;\n distinct?: Maybe;\n datePart?: Maybe;\n abs?: Maybe;\n ceil?: Maybe;\n crc32?: Maybe;\n floor?: Maybe;\n mod?: Maybe;\n round?: Maybe;\n sign?: Maybe;\n truncate?: Maybe;\n left?: Maybe;\n right?: Maybe;\n locate?: Maybe;\n substring?: Maybe;\n replace?: Maybe;\n reverse?: Maybe;\n trim?: Maybe;\n ltrim?: Maybe;\n rtrim?: Maybe;\n lower?: Maybe;\n upper?: Maybe;\n ascii?: Maybe;\n hex?: Maybe;\n bitLength?: Maybe;\n charLength?: Maybe;\n length?: Maybe;\n like?: Maybe;\n notLike?: Maybe;\n lpad?: Maybe;\n rpad?: Maybe;\n ifNull?: Maybe;\n isNull?: Maybe;\n nullIf?: Maybe;\n};\n\nexport type GroupByResponse = {\n __typename?: 'GroupByResponse';\n ID: Maybe;\n String: Maybe;\n Int: Maybe;\n BigInt: Maybe;\n Float: Maybe;\n DateTime: Maybe;\n Date: Maybe;\n Boolean: Maybe;\n JSON: Maybe;\n GroupIds: Maybe>;\n UserGroup: UserListResponse;\n FileGroup: FileListResponse;\n RoleGroup: RoleListResponse;\n ApiTokenGroup: ApiTokenListResponse;\n EnvironmentVariableGroup: EnvironmentVariableListResponse;\n AuthenticationProfileGroup: AuthenticationProfileListResponse;\n TeamMemberGroup: TeamMemberListResponse;\n CiCdMigrationGroup: CiCdMigrationListResponse;\n AgencyGroup: AgencyListResponse;\n AnnouncementGroup: AnnouncementListResponse;\n LeadGroup: LeadListResponse;\n LeadSourceGroup: LeadSourceListResponse;\n LifeInsuranceGroup: LifeInsuranceListResponse;\n CampaignGroup: CampaignListResponse;\n MarketingCampaignGroup: MarketingCampaignListResponse;\n AgentGroup: AgentListResponse;\n ManagerGroup: ManagerListResponse;\n LeadActionGroup: LeadActionListResponse;\n LeadNoteGroup: LeadNoteListResponse;\n LeadTaskGroup: LeadTaskListResponse;\n AdminGroup: AdminListResponse;\n CompanyGroup: CompanyListResponse;\n LeadContactGroup: LeadContactListResponse;\n VendorGroup: VendorListResponse;\n MetaGroup: MetaListResponse;\n SubscriptionPlanGroup: SubscriptionPlanListResponse;\n AgencyInvitationGroup: AgencyInvitationListResponse;\n LeadTaskTypeGroup: LeadTaskTypeListResponse;\n CompanyInvitationGroup: CompanyInvitationListResponse;\n PaymentMethodGroup: PaymentMethodListResponse;\n SMSMessageGroup: SmsMessageListResponse;\n LeadTypeAutoGroup: LeadTypeAutoListResponse;\n LeadTypeCommercialAutoGroup: LeadTypeCommercialAutoListResponse;\n UserStatusGroup: UserStatusListResponse;\n LeadDriverGroup: LeadDriverListResponse;\n DriverIncidentGroup: DriverIncidentListResponse;\n ResendedAngencyInvitationGroup: ResendedAngencyInvitationListResponse;\n LeadStageGroup: LeadStageListResponse;\n LeadStageHistoryGroup: LeadStageHistoryListResponse;\n LeadTypeGeneralLiabilityGroup: LeadTypeGeneralLiabilityListResponse;\n MailGroup: MailListResponse;\n LeadTypeLifeGroup: LeadTypeLifeListResponse;\n MailThreadGroup: MailThreadListResponse;\n PhoneCallGroup: PhoneCallListResponse;\n LeadTypeHomeGroup: LeadTypeHomeListResponse;\n LeadTypeWorkersCompensationGroup: LeadTypeWorkersCompensationListResponse;\n LeadTypeEmployeeBenefitGroup: LeadTypeEmployeeBenefitListResponse;\n PhoneNumberGroup: PhoneNumberListResponse;\n EmailOutboundServiceGroup: EmailOutboundServiceListResponse;\n EmailInboundServiceGroup: EmailInboundServiceListResponse;\n LeadHistoryGroup: LeadHistoryListResponse;\n LeadDispositionGroup: LeadDispositionListResponse;\n IfsScoreGroup: IfsScoreListResponse;\n AutomaticCallConfigGroup: AutomaticCallConfigListResponse;\n UrlGroup: UrlListResponse;\n PhoneCallRecordingGroup: PhoneCallRecordingListResponse;\n PhoneCallSettingGroup: PhoneCallSettingListResponse;\n VoiceMailMessageGroup: VoiceMailMessageListResponse;\n AgencyUserGroup: AgencyUserListResponse;\n NotificationGroup: NotificationListResponse;\n MarketingEmailTemplateGroup: MarketingEmailTemplateListResponse;\n MarketingSmsTemplateGroup: MarketingSmsTemplateListResponse;\n ShortUrlGroup: ShortUrlListResponse;\n MarketingCampaignConditionGroup: MarketingCampaignConditionListResponse;\n ChannelGroup: ChannelListResponse;\n ChannelMemberGroup: ChannelMemberListResponse;\n MessageGroup: MessageListResponse;\n MarketingCampaignOpeningGroup: MarketingCampaignOpeningListResponse;\n MarketingCampaignClickGroup: MarketingCampaignClickListResponse;\n WorkflowAutomationGroup: WorkflowAutomationListResponse;\n WorkflowEmailTemplateGroup: WorkflowEmailTemplateListResponse;\n WorkflowSmsTemplateGroup: WorkflowSmsTemplateListResponse;\n WorkflowConditionGroup: WorkflowConditionListResponse;\n WorkflowClickGroup: WorkflowClickListResponse;\n WorkflowEmailOpeningGroup: WorkflowEmailOpeningListResponse;\n XTableGroup: XTableListResponse;\n CompanySubGroup: CompanySubListResponse;\n CompanyInvoiceGroup: CompanyInvoiceListResponse;\n CompanyPaymentMethodGroup: CompanyPaymentMethodListResponse;\n FreePhoneNumberGroup: FreePhoneNumberListResponse;\n SubscriptionPlanItemGroup: SubscriptionPlanItemListResponse;\n InboundPhoneCallGroup: InboundPhoneCallListResponse;\n LeadPhoneNumberGroup: LeadPhoneNumberListResponse;\n SystemSettingGroup: SystemSettingListResponse;\n PhoneCallParticipantGroup: PhoneCallParticipantListResponse;\n CompanySubCouponGroup: CompanySubCouponListResponse;\n GmailServiceGroup: GmailServiceListResponse;\n GmailProfileGroup: GmailProfileListResponse;\n LeadCallCadenceGroup: LeadCallCadenceListResponse;\n OutlookServiceGroup: OutlookServiceListResponse;\n OutlookProfileGroup: OutlookProfileListResponse;\n AgencyEmailServiceGroup: AgencyEmailServiceListResponse;\n PhoneNumberWarningGroup: PhoneNumberWarningListResponse;\n VoiceMailGroup: VoiceMailListResponse;\n};\n\nexport type GroupByResponseUserGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseFileGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseRoleGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseApiTokenGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseEnvironmentVariableGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseAuthenticationProfileGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseTeamMemberGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCiCdMigrationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAgencyGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAnnouncementGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadSourceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLifeInsuranceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCampaignGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingCampaignGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAgentGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseManagerGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseLeadActionGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadNoteGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTaskGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAdminGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanyGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadContactGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseVendorGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMetaGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseSubscriptionPlanGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAgencyInvitationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTaskTypeGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanyInvitationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponsePaymentMethodGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseSmsMessageGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeAutoGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeCommercialAutoGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseUserStatusGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadDriverGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseDriverIncidentGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseResendedAngencyInvitationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadStageGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadStageHistoryGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeGeneralLiabilityGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMailGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeLifeGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMailThreadGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponsePhoneCallGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeHomeGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeWorkersCompensationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadTypeEmployeeBenefitGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponsePhoneNumberGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseEmailOutboundServiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseEmailInboundServiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadHistoryGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadDispositionGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseIfsScoreGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAutomaticCallConfigGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseUrlGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponsePhoneCallRecordingGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponsePhoneCallSettingGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseVoiceMailMessageGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAgencyUserGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseNotificationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingEmailTemplateGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingSmsTemplateGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseShortUrlGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingCampaignConditionGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseChannelGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseChannelMemberGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMessageGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingCampaignOpeningGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseMarketingCampaignClickGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseWorkflowAutomationGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseWorkflowEmailTemplateGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseWorkflowSmsTemplateGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseWorkflowConditionGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseWorkflowClickGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseWorkflowEmailOpeningGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseXTableGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanySubGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanyInvoiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanyPaymentMethodGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseFreePhoneNumberGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseSubscriptionPlanItemGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseInboundPhoneCallGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type GroupByResponseLeadPhoneNumberGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseSystemSettingGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponsePhoneCallParticipantGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseCompanySubCouponGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseGmailServiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseGmailProfileGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseLeadCallCadenceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseOutlookServiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseOutlookProfileGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseAgencyEmailServiceGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponsePhoneNumberWarningGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupByResponseVoiceMailGroupArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type GroupBySort = {\n alias: Scalars['String'];\n direction: SortOrder;\n};\nexport type GroupIdentifiersGroupByField = {\n as: Scalars['String'];\n};\nexport type Having = {\n alias?: Maybe;\n id?: Maybe;\n string?: Maybe;\n int?: Maybe;\n bigint?: Maybe;\n float?: Maybe;\n bool?: Maybe;\n date?: Maybe;\n datetime?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n/** Lead create input from history */\nexport type History_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** LeadNote create input from history */\nexport type History_LeadNoteCreateInput = {\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n/** LeadNote update input from history */\nexport type History_LeadNoteUpdateInput = {\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n/** LeadStage create input from history */\nexport type History_LeadStageCreateInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n/** LeadStage update input from history */\nexport type History_LeadStageUpdateInput = {\n name?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n/** LeadTask create input from history */\nexport type History_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type: LeadTaskTypeRelationInput;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyRelationInput;\n};\n/** LeadTask update input from history */\nexport type History_LeadTaskUpdateInput = {\n title?: Maybe;\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type?: Maybe;\n status?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n};\n/** Lead update input from history */\nexport type History_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Mail create input from history */\nexport type History_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail update input from history */\nexport type History_MailUpdateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** PhoneCall create input from history */\nexport type History_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall update input from history */\nexport type History_PhoneCallUpdateInput = {\n user?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** SMSMessage create input from history */\nexport type History_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from history */\nexport type History_SmsMessageUpdateInput = {\n text?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\nexport type IdPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n contains?: Maybe;\n not_contains?: Maybe;\n starts_with?: Maybe;\n not_starts_with?: Maybe;\n ends_with?: Maybe;\n not_ends_with?: Maybe;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type IdPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n contains?: Maybe;\n not_contains?: Maybe;\n starts_with?: Maybe;\n not_starts_with?: Maybe;\n ends_with?: Maybe;\n not_ends_with?: Maybe;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** DEPRECATED */\nexport type IfsScore = {\n __typename?: 'IfsScore';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n leadDispositionRelation: Maybe;\n _description: Maybe;\n};\n\n/** DEPRECATED */\nexport type IfsScoreLeadDispositionRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type IfsScore_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n leadDispositionRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** IfsScore create input */\nexport type IfsScoreCreateInput = {\n name?: Maybe;\n leadDispositionRelation?: Maybe;\n};\n\n/** IfsScore create many input */\nexport type IfsScoreCreateManyInput = {\n name?: Maybe;\n leadDispositionRelation?: Maybe;\n};\n\n/** IfsScore delete input */\nexport type IfsScoreDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** IfsScoreFieldsPermissions create input */\nexport type IfsScoreFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type IfsScoreFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n leadDispositionRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type IfsScoreGroupBy = {\n query: IfsScoreGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type IfsScoreGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n leadDispositionRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type IfsScoreKeyFilter = {\n id?: Maybe;\n};\n\n/** IfsScore relation input */\nexport type IfsScoreLeadDispositionRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** IfsScore relation input */\nexport type IfsScoreLeadDispositionRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** IfsScore relation input */\nexport type IfsScoreLeadDispositionRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** IfsScoreListResponse output */\nexport type IfsScoreListResponse = {\n __typename?: 'IfsScoreListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** IfsScoreManyResponse output */\nexport type IfsScoreManyResponse = {\n __typename?: 'IfsScoreManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum IfsScoreOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** IfsScore subscription payload */\nexport type IfsScorePayload = {\n __typename?: 'IfsScorePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type IfsScoreSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n};\n/** IfsScore subscription filter */\nexport type IfsScoreSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** IfsScore update input */\nexport type IfsScoreUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** IfsScore update input */\nexport type IfsScoreUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n leadDispositionRelation?: Maybe;\n};\n\n/** ImportedTable */\nexport type ImportedTable = {\n __typename?: 'ImportedTable';\n id: Scalars['ID'];\n name: Scalars['String'];\n};\n\n/** PhoneCallParticipant create input from inboundCall */\nexport type InboundCall_PhoneCallParticipantCreateInput = {\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant update input from inboundCall */\nexport type InboundCall_PhoneCallParticipantUpdateInput = {\n filter?: Maybe;\n data: PhoneCallParticipantUpdateInput;\n};\n\n/** PhoneCallRecording create input from inboundCall */\nexport type InboundCall_PhoneCallRecordingCreateInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl: Scalars['String'];\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** PhoneCallRecording update input from inboundCall */\nexport type InboundCall_PhoneCallRecordingUpdateInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** Lead create input from inboundCalls */\nexport type InboundCalls_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from inboundCalls */\nexport type InboundCalls_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\nexport type InboundPhoneCall = {\n __typename?: 'InboundPhoneCall';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n agency: Maybe;\n to: Maybe;\n from: Maybe;\n status: Maybe;\n dialCallSid: Maybe;\n recording: Maybe;\n rejectedBy: Maybe;\n user: Maybe;\n duration: Maybe;\n callSid: Maybe;\n participants: Maybe;\n lead: Maybe;\n conferenceSid: Maybe;\n price: Maybe;\n priceUnit: Maybe;\n callDisposition: Maybe;\n voicemail: Maybe;\n _description: Maybe;\n};\n\nexport type InboundPhoneCallParticipantsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** LeadDisposition create input from inboundPhoneCall */\nexport type InboundPhoneCall_LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\n/** LeadDisposition update input from inboundPhoneCall */\nexport type InboundPhoneCall_LeadDispositionUpdateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\nexport type InboundPhoneCall_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n to?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type InboundPhoneCall_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Users create input from inboundPhoneCallAceptedRelation */\nexport type InboundPhoneCallAceptedRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from inboundPhoneCallAceptedRelation */\nexport type InboundPhoneCallAceptedRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency create input from inboundPhoneCallAgencyRelation */\nexport type InboundPhoneCallAgencyRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from inboundPhoneCallAgencyRelation */\nexport type InboundPhoneCallAgencyRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallCallDispositionManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallCallDispositionRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallCallDispositionUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCall create input */\nexport type InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall create many input */\nexport type InboundPhoneCallCreateManyInput = {\n agency?: Maybe;\n to: InboundPhoneCallToManyRelationInput;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall delete input */\nexport type InboundPhoneCallDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** InboundPhoneCallFieldsPermissions create input */\nexport type InboundPhoneCallFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\nexport type InboundPhoneCallFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n to?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type InboundPhoneCallGroupBy = {\n query: InboundPhoneCallGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type InboundPhoneCallGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n from?: Maybe>;\n status?: Maybe>;\n dialCallSid?: Maybe>;\n duration?: Maybe>;\n callSid?: Maybe>;\n conferenceSid?: Maybe>;\n price?: Maybe>;\n priceUnit?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n to?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n _group?: Maybe>;\n};\n\nexport type InboundPhoneCallKeyFilter = {\n id?: Maybe;\n callSid?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCallListResponse output */\nexport type InboundPhoneCallListResponse = {\n __typename?: 'InboundPhoneCallListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** InboundPhoneCallManyResponse output */\nexport type InboundPhoneCallManyResponse = {\n __typename?: 'InboundPhoneCallManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum InboundPhoneCallOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n FromAsc = 'from_ASC',\n FromDesc = 'from_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n DialCallSidAsc = 'dialCallSid_ASC',\n DialCallSidDesc = 'dialCallSid_DESC',\n DurationAsc = 'duration_ASC',\n DurationDesc = 'duration_DESC',\n CallSidAsc = 'callSid_ASC',\n CallSidDesc = 'callSid_DESC',\n ConferenceSidAsc = 'conferenceSid_ASC',\n ConferenceSidDesc = 'conferenceSid_DESC',\n PriceAsc = 'price_ASC',\n PriceDesc = 'price_DESC',\n PriceUnitAsc = 'priceUnit_ASC',\n PriceUnitDesc = 'priceUnit_DESC',\n}\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallParticipantsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallParticipantsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallParticipantsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** InboundPhoneCall subscription payload */\nexport type InboundPhoneCallPayload = {\n __typename?: 'InboundPhoneCallPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** PhoneNumber create input from inboundPhoneCallPhoneNumberRelation */\nexport type InboundPhoneCallPhoneNumberRelation_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from inboundPhoneCallPhoneNumberRelation */\nexport type InboundPhoneCallPhoneNumberRelation_PhoneNumberUpdateInput = {\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput\n >;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRecordingManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRecordingRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRecordingUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRejectedByManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRejectedByRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallRejectedByUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type InboundPhoneCallRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type InboundPhoneCallSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n to?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n lead?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall subscription filter */\nexport type InboundPhoneCallSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallToManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallToRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallToUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCall update input */\nexport type InboundPhoneCallUpdateByFilterInput = {\n from?: Maybe>>;\n status?: Maybe>>;\n dialCallSid?: Maybe>>;\n duration?: Maybe>>;\n callSid?: Maybe>>;\n conferenceSid?: Maybe>>;\n price?: Maybe>>;\n priceUnit?: Maybe>>;\n};\n\n/** InboundPhoneCall update input */\nexport type InboundPhoneCallUpdateInput = {\n id?: Maybe;\n agency?: Maybe;\n to?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallVoicemailManyRelationInput = {\n connect?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallVoicemailRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** InboundPhoneCall relation input */\nexport type InboundPhoneCallVoicemailUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Users create input from inboundServices */\nexport type InboundServices_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from inboundServices */\nexport type InboundServices_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from inbounPhoneCallRejectedRelation */\nexport type InbounPhoneCallRejectedRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from inbounPhoneCallRejectedRelation */\nexport type InbounPhoneCallRejectedRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Inbox Events List Filter */\nexport type InboxEventsListFilter = {\n isCompleted?: Maybe;\n};\n\n/** LeadDriver create input from incidents */\nexport type Incidents_LeadDriverCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\n/** LeadDriver update input from incidents */\nexport type Incidents_LeadDriverUpdateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\n/** DriverIncident create input from incidentsLeadDriverRelation */\nexport type IncidentsLeadDriverRelation_DriverIncidentCreateInput = {\n type?: Maybe;\n date?: Maybe;\n damages?: Maybe;\n atFault?: Maybe;\n insurancePaidAmount?: Maybe;\n incidentsLeadDriverRelation?: Maybe;\n};\n\n/** DriverIncident update input from incidentsLeadDriverRelation */\nexport type IncidentsLeadDriverRelation_DriverIncidentUpdateInput = {\n filter?: Maybe;\n data: DriverIncidentUpdateInput;\n};\n\n/** Table Create Index Input */\nexport type IndexCreateInput = {\n tableId: Scalars['ID'];\n type: TableIndexType;\n columns: Array;\n force?: Maybe;\n name?: Maybe;\n};\n\n/** Table Delete Index Input */\nexport type IndexDeleteInput = {\n id: Scalars['ID'];\n};\n\n/** Table Update Index Input */\nexport type IndexUpdateInput = {\n id: Scalars['ID'];\n type?: Maybe;\n columns?: Maybe>;\n force?: Maybe;\n name?: Maybe;\n};\n\nexport type IntPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type IntPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n lt?: Maybe;\n lte?: Maybe;\n gt?: Maybe;\n gte?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type IntrospectionQueryResponse = {\n __typename?: 'IntrospectionQueryResponse';\n url: Scalars['String'];\n};\n\n/** ResendedAngencyInvitation create input from invitation */\nexport type Invitation_ResendedAngencyInvitationCreateInput = {\n invitation?: Maybe;\n};\n\n/** ResendedAngencyInvitation update input from invitation */\nexport type Invitation_ResendedAngencyInvitationUpdateInput = {\n filter?: Maybe;\n data: ResendedAngencyInvitationUpdateInput;\n};\n\n/** Invited By Name */\nexport type InvitedByName = {\n __typename?: 'InvitedByName';\n firstName: Maybe;\n lastName: Maybe;\n workspaceName: Maybe;\n email: Maybe;\n};\n\n/** InviteMembersInput */\nexport type InviteMembersInput = {\n recipients: Array;\n};\n\n/** InviteRecipientInput */\nexport type InviteRecipientInput = {\n email: Scalars['String'];\n firstName?: Maybe;\n lastName?: Maybe;\n roles?: Maybe>;\n};\n\n/** CompanySubCoupon create input from invoices */\nexport type Invoices_CompanySubCouponCreateInput = {\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n invoices?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** CompanySubCoupon update input from invoices */\nexport type Invoices_CompanySubCouponUpdateInput = {\n valid?: Maybe;\n percentage?: Maybe;\n months?: Maybe;\n invoices?: Maybe;\n stripeCouponId?: Maybe;\n};\n\n/** InvokeData */\nexport type InvokeData = {\n functionName: Scalars['String'];\n inputArgs?: Maybe;\n};\n\n/** InvokeFunctionResponse */\nexport type InvokeFunctionResponse = {\n __typename?: 'InvokeFunctionResponse';\n responseData: Scalars['String'];\n};\n\nexport type Lead = {\n __typename?: 'Lead';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n firstName: Maybe;\n middleName: Maybe;\n lastName: Maybe;\n address: Maybe>>;\n /** DEPRECATED */\n phone: Maybe;\n /** user instead of users relation */\n assignees: Maybe;\n gender: Maybe;\n /** DEPRECATED */\n code: Maybe;\n phones: Maybe>>;\n leadSource: Maybe;\n /** DEPRECATED */\n status: Maybe;\n /** DEPRECATED */\n agents: Maybe;\n /** DEPRECATED */\n users: Maybe;\n /** @DEPRECATED */\n type: Maybe;\n notesLeadRelation: Maybe;\n priority: Maybe;\n tasksLeadRelation: Maybe;\n contacts: Maybe;\n email: Maybe;\n birthMonth: Maybe;\n birthDay: Maybe;\n birthYear: Maybe;\n creditScore: Maybe;\n campaign: Maybe;\n ifsScore: Maybe;\n leadSMSMessage: Maybe;\n leadLeadActionRelation: Maybe;\n leadLeadTypeAutoRelation: Maybe;\n leadLeadTypeCommercialAutoRelation: Maybe;\n leadLeadTypeGeneralLiabilityRelation: Maybe;\n leadLeadTypeLifeRelation: Maybe;\n leadLeadTypeHomeRelation: Maybe;\n leadLeadTypeWorkersCompensationRelation: Maybe;\n leadLeadTypeEmployeeBenefitRelation: Maybe;\n drivers: Maybe;\n leadLeadStageHistoryRelation: Maybe;\n stages: Maybe;\n leadPhoneCallRelation: Maybe;\n amount: Maybe;\n leadMailThreadRelation: Maybe;\n history: Maybe;\n leadLeadDispositionRelation: Maybe;\n callingDelay: Maybe;\n stage: Maybe;\n notificationRelation: Maybe;\n marketingCampaignOpenings: Maybe;\n workflowEmailOpenings: Maybe;\n creationDate: Maybe;\n importedLeadId: Maybe;\n imported: Maybe;\n leadLeadPhoneNumberRelation: Maybe;\n lastHistoryActionData: Maybe;\n lastHistoryActionType: Maybe;\n inboundCalls: Maybe;\n callCadence: Maybe;\n emails: Maybe;\n _description: Maybe;\n};\n\nexport type LeadAssigneesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadAgentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadUsersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadNotesLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadTasksLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadContactsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadSmsMessageArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadLeadActionRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadDriversArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadLeadStageHistoryRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadPhoneCallRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadMailThreadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadHistoryArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadLeadLeadDispositionRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadNotificationRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadMarketingCampaignOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadWorkflowEmailOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadLeadLeadPhoneNumberRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadInboundCallsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type LeadEmailsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** InboundPhoneCall create input from lead */\nexport type Lead_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** InboundPhoneCall update input from lead */\nexport type Lead_InboundPhoneCallUpdateInput = {\n filter?: Maybe;\n data: InboundPhoneCallUpdateInput;\n};\n/** LeadAction create input from lead */\nexport type Lead_LeadActionCreateInput = {\n type: Scalars['String'];\n lead?: Maybe;\n};\n\n/** LeadAction update input from lead */\nexport type Lead_LeadActionUpdateInput = {\n filter?: Maybe;\n data: LeadActionUpdateInput;\n};\n/** LeadCallCadence create input from lead */\nexport type Lead_LeadCallCadenceCreateInput = {\n lead?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n\n/** LeadCallCadence update input from lead */\nexport type Lead_LeadCallCadenceUpdateInput = {\n lead?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n/** LeadDisposition create input from lead */\nexport type Lead_LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status: LeadDispositionStatusRelationInput;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** LeadDisposition update input from lead */\nexport type Lead_LeadDispositionUpdateInput = {\n filter?: Maybe;\n data: LeadDispositionUpdateInput;\n};\n/** LeadHistory create input from lead */\nexport type Lead_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n/** LeadHistory update input from lead */\nexport type Lead_LeadHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadHistoryUpdateInput;\n};\n/** LeadPhoneNumber create input from lead */\nexport type Lead_LeadPhoneNumberCreateInput = {\n phone: SmartPhoneInput;\n lead?: Maybe;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\n/** LeadPhoneNumber update input from lead */\nexport type Lead_LeadPhoneNumberUpdateInput = {\n filter?: Maybe;\n data: LeadPhoneNumberUpdateInput;\n};\n/** LeadStageHistory create input from lead */\nexport type Lead_LeadStageHistoryCreateInput = {\n lead?: Maybe;\n stage: LeadStageHistoryStageRelationInput;\n};\n\n/** LeadStageHistory update input from lead */\nexport type Lead_LeadStageHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadStageHistoryUpdateInput;\n};\n/** LeadTask create input from lead */\nexport type Lead_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type: LeadTaskTypeRelationInput;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyRelationInput;\n};\n/** LeadTask update input from lead */\nexport type Lead_LeadTaskUpdateInput = {\n filter?: Maybe;\n data: LeadTaskUpdateInput;\n};\n\n/** LeadTypeAuto create input from lead */\nexport type Lead_LeadTypeAutoCreateInput = {\n lead?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n/** LeadTypeAuto update input from lead */\nexport type Lead_LeadTypeAutoUpdateInput = {\n lead?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n/** LeadTypeCommercialAuto create input from lead */\nexport type Lead_LeadTypeCommercialAutoCreateInput = {\n lead?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\n/** LeadTypeCommercialAuto update input from lead */\nexport type Lead_LeadTypeCommercialAutoUpdateInput = {\n lead?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit create input from lead */\nexport type Lead_LeadTypeEmployeeBenefitCreateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit update input from lead */\nexport type Lead_LeadTypeEmployeeBenefitUpdateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\n/** LeadTypeGeneralLiability create input from lead */\nexport type Lead_LeadTypeGeneralLiabilityCreateInput = {\n lead?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeGeneralLiability update input from lead */\nexport type Lead_LeadTypeGeneralLiabilityUpdateInput = {\n lead?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeHome create input from lead */\nexport type Lead_LeadTypeHomeCreateInput = {\n lead?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\n/** LeadTypeHome update input from lead */\nexport type Lead_LeadTypeHomeUpdateInput = {\n lead?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\n/** LeadTypeLife create input from lead */\nexport type Lead_LeadTypeLifeCreateInput = {\n lead?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\n/** LeadTypeLife update input from lead */\nexport type Lead_LeadTypeLifeUpdateInput = {\n lead?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation create input from lead */\nexport type Lead_LeadTypeWorkersCompensationCreateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation update input from lead */\nexport type Lead_LeadTypeWorkersCompensationUpdateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** Mail create input from lead */\nexport type Lead_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** MailThread create input from lead */\nexport type Lead_MailThreadCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\n/** MailThread update input from lead */\nexport type Lead_MailThreadUpdateInput = {\n filter?: Maybe;\n data: MailThreadUpdateInput;\n};\n\n/** Mail update input from lead */\nexport type Lead_MailUpdateInput = {\n filter?: Maybe;\n data: MailUpdateInput;\n};\n\n/** MarketingCampaignOpening create input from lead */\nexport type Lead_MarketingCampaignOpeningCreateInput = {\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** MarketingCampaignOpening update input from lead */\nexport type Lead_MarketingCampaignOpeningUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignOpeningUpdateInput;\n};\n\n/** Notification create input from lead */\nexport type Lead_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from lead */\nexport type Lead_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\nexport type Lead_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n phone?: Maybe;\n gender?: Maybe;\n code?: Maybe;\n status?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n ifsScore?: Maybe;\n stages?: Maybe;\n amount?: Maybe;\n callingDelay?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n lastHistoryActionType?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n assignees?: Maybe;\n leadSource?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n notesLeadRelation?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n campaign?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n leadPhoneCallRelation?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Lead_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneCall create input from lead */\nexport type Lead_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall update input from lead */\nexport type Lead_PhoneCallUpdateInput = {\n filter?: Maybe;\n data: PhoneCallUpdateInput;\n};\n\n/** SMSMessage create input from lead */\nexport type Lead_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency: SmsMessageAgencyRelationInput;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from lead */\nexport type Lead_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** WorkflowEmailOpening create input from lead */\nexport type Lead_WorkflowEmailOpeningCreateInput = {\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition: Scalars['String'];\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening update input from lead */\nexport type Lead_WorkflowEmailOpeningUpdateInput = {\n filter?: Maybe;\n data: WorkflowEmailOpeningUpdateInput;\n};\n\nexport type LeadAction = {\n __typename?: 'LeadAction';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n type: Maybe;\n lead: Maybe;\n _description: Maybe;\n};\n\nexport type LeadAction_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadAction_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadAction create input */\nexport type LeadActionCreateInput = {\n type: Scalars['String'];\n lead?: Maybe;\n};\n\n/** LeadAction create many input */\nexport type LeadActionCreateManyInput = {\n type: Scalars['String'];\n lead: LeadActionLeadManyRelationInput;\n};\n\n/** LeadAction delete input */\nexport type LeadActionDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadActionFieldsPermissions create input */\nexport type LeadActionFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n type?: Maybe;\n};\n\nexport type LeadActionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadActionGroupBy = {\n query: LeadActionGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadActionGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n type?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadActionKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadAction relation input */\nexport type LeadActionLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadAction relation input */\nexport type LeadActionLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadAction relation input */\nexport type LeadActionLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadActionListResponse output */\nexport type LeadActionListResponse = {\n __typename?: 'LeadActionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadActionManyResponse output */\nexport type LeadActionManyResponse = {\n __typename?: 'LeadActionManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadActionOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n}\n\n/** LeadAction subscription payload */\nexport type LeadActionPayload = {\n __typename?: 'LeadActionPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadActionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type LeadActionSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n type?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadAction subscription filter */\nexport type LeadActionSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadAction update input */\nexport type LeadActionUpdateByFilterInput = {\n type?: Maybe>>;\n};\n\n/** LeadAction update input */\nexport type LeadActionUpdateInput = {\n id?: Maybe;\n type?: Maybe;\n lead?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadAgentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadAgentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadAgentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadAssigneesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadAssigneesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadAssigneesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadCallCadence = {\n __typename?: 'LeadCallCadence';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n day1: Maybe;\n day2To7: Maybe;\n day8To30: Maybe;\n day31To89: Maybe;\n lastCalled: Maybe;\n _description: Maybe;\n};\n\nexport type LeadCallCadence_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadCallCadence create input */\nexport type LeadCallCadenceCreateInput = {\n lead?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n\n/** LeadCallCadence create many input */\nexport type LeadCallCadenceCreateManyInput = {\n lead: LeadCallCadenceLeadManyRelationInput;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n\n/** LeadCallCadence delete input */\nexport type LeadCallCadenceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadCallCadenceFieldsPermissions create input */\nexport type LeadCallCadenceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n\nexport type LeadCallCadenceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadCallCadenceGroupBy = {\n query: LeadCallCadenceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadCallCadenceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n day1?: Maybe>;\n day2To7?: Maybe>;\n day8To30?: Maybe>;\n day31To89?: Maybe>;\n lastCalled?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadCallCadenceKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadCallCadence relation input */\nexport type LeadCallCadenceLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadCallCadence relation input */\nexport type LeadCallCadenceLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadCallCadence relation input */\nexport type LeadCallCadenceLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadCallCadenceListResponse output */\nexport type LeadCallCadenceListResponse = {\n __typename?: 'LeadCallCadenceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Lead relation input */\nexport type LeadCallCadenceManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadCallCadenceManyResponse output */\nexport type LeadCallCadenceManyResponse = {\n __typename?: 'LeadCallCadenceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadCallCadenceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n Day1Asc = 'day1_ASC',\n Day1Desc = 'day1_DESC',\n Day2To7Asc = 'day2To7_ASC',\n Day2To7Desc = 'day2To7_DESC',\n Day8To30Asc = 'day8To30_ASC',\n Day8To30Desc = 'day8To30_DESC',\n Day31To89Asc = 'day31To89_ASC',\n Day31To89Desc = 'day31To89_DESC',\n LastCalledAsc = 'lastCalled_ASC',\n LastCalledDesc = 'lastCalled_DESC',\n}\n\n/** LeadCallCadence subscription payload */\nexport type LeadCallCadencePayload = {\n __typename?: 'LeadCallCadencePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadCallCadenceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type LeadCallCadenceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadCallCadence subscription filter */\nexport type LeadCallCadenceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadCallCadence update input */\nexport type LeadCallCadenceUpdateByFilterInput = {\n day1?: Maybe>>;\n day2To7?: Maybe>>;\n day8To30?: Maybe>>;\n day31To89?: Maybe>>;\n lastCalled?: Maybe>>;\n};\n\n/** LeadCallCadence update input */\nexport type LeadCallCadenceUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n day1?: Maybe;\n day2To7?: Maybe;\n day8To30?: Maybe;\n day31To89?: Maybe;\n lastCalled?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadCallCadenceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type LeadContact = {\n __typename?: 'LeadContact';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n phoneNumber: Maybe;\n contactsLeadRelation: Maybe;\n _description: Maybe;\n};\n\nexport type LeadContact_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n contactsLeadRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadContact_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadContact relation input */\nexport type LeadContactContactsLeadRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadContact relation input */\nexport type LeadContactContactsLeadRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadContact relation input */\nexport type LeadContactContactsLeadRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadContact create input */\nexport type LeadContactCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n contactsLeadRelation?: Maybe;\n};\n\n/** LeadContact create many input */\nexport type LeadContactCreateManyInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n contactsLeadRelation?: Maybe;\n};\n\n/** LeadContact delete input */\nexport type LeadContactDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadContactFieldsPermissions create input */\nexport type LeadContactFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n};\n\nexport type LeadContactFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n contactsLeadRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadContactGroupBy = {\n query: LeadContactGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadContactGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n firstName?: Maybe>;\n lastName?: Maybe>;\n phoneNumber?: Maybe>;\n createdBy?: Maybe;\n contactsLeadRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadContactKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadContactListResponse output */\nexport type LeadContactListResponse = {\n __typename?: 'LeadContactListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadContactManyResponse output */\nexport type LeadContactManyResponse = {\n __typename?: 'LeadContactManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadContactOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n PhoneNumberAsc = 'phoneNumber_ASC',\n PhoneNumberDesc = 'phoneNumber_DESC',\n}\n\n/** LeadContact subscription payload */\nexport type LeadContactPayload = {\n __typename?: 'LeadContactPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadContactRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadContactsManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type LeadContactSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n createdBy?: Maybe;\n contactsLeadRelation?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadContactsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadContact subscription filter */\nexport type LeadContactSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadContactsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadContact update input */\nexport type LeadContactUpdateByFilterInput = {\n firstName?: Maybe>>;\n lastName?: Maybe>>;\n phoneNumber?: Maybe>>;\n};\n\n/** LeadContact update input */\nexport type LeadContactUpdateInput = {\n id?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n phoneNumber?: Maybe;\n contactsLeadRelation?: Maybe;\n};\n\n/** Lead create input */\nexport type LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create many input */\nexport type LeadCreateManyInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign: LeadCampaignManyRelationInput;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationManyRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationManyRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationManyRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationManyRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead delete input */\nexport type LeadDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\nexport type LeadDisposition = {\n __typename?: 'LeadDisposition';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n carrier: Maybe;\n status: Maybe;\n expirationDate: Maybe;\n insurance: Maybe;\n notes: Maybe;\n /** DEPRECATED */\n score: Maybe;\n ifsScore: Maybe;\n notifications: Maybe;\n currentPremium: Maybe;\n quotedPremium: Maybe;\n outboundPhoneCall: Maybe;\n inboundPhoneCall: Maybe;\n _description: Maybe;\n};\n\nexport type LeadDispositionNotificationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadDisposition_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n carrier?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n ifsScore?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n score?: Maybe;\n notifications?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadDisposition_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadDisposition create input */\nexport type LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\n/** LeadDisposition create many input */\nexport type LeadDispositionCreateManyInput = {\n lead: LeadDispositionLeadManyRelationInput;\n carrier?: Maybe;\n status: LeadDispositionStatusManyRelationInput;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\n/** LeadDisposition delete input */\nexport type LeadDispositionDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadDispositionFieldsPermissions create input */\nexport type LeadDispositionFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n carrier?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n ifsScore?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n};\n\nexport type LeadDispositionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n carrier?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n ifsScore?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n score?: Maybe;\n notifications?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadDispositionGroupBy = {\n query: LeadDispositionGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadDispositionGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n carrier?: Maybe>;\n expirationDate?: Maybe>;\n insurance?: Maybe>;\n notes?: Maybe>;\n ifsScore?: Maybe>;\n currentPremium?: Maybe>;\n quotedPremium?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n score?: Maybe;\n notifications?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n _group?: Maybe>;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionInboundPhoneCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionInboundPhoneCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionInboundPhoneCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type LeadDispositionKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** LeadDisposition relation input */\nexport type LeadDispositionLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadDispositionListResponse output */\nexport type LeadDispositionListResponse = {\n __typename?: 'LeadDispositionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadDispositionManyResponse output */\nexport type LeadDispositionManyResponse = {\n __typename?: 'LeadDispositionManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionNotificationsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionNotificationsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionNotificationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadDispositionOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n CarrierAsc = 'carrier_ASC',\n CarrierDesc = 'carrier_DESC',\n ExpirationDateAsc = 'expirationDate_ASC',\n ExpirationDateDesc = 'expirationDate_DESC',\n InsuranceAsc = 'insurance_ASC',\n InsuranceDesc = 'insurance_DESC',\n NotesAsc = 'notes_ASC',\n NotesDesc = 'notes_DESC',\n IfsScoreAsc = 'ifsScore_ASC',\n IfsScoreDesc = 'ifsScore_DESC',\n CurrentPremiumAsc = 'currentPremium_ASC',\n CurrentPremiumDesc = 'currentPremium_DESC',\n QuotedPremiumAsc = 'quotedPremium_ASC',\n QuotedPremiumDesc = 'quotedPremium_DESC',\n}\n\n/** LeadDisposition relation input */\nexport type LeadDispositionOutboundPhoneCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionOutboundPhoneCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionOutboundPhoneCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadDisposition subscription payload */\nexport type LeadDispositionPayload = {\n __typename?: 'LeadDispositionPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** IfsScore create input from leadDispositionRelation */\nexport type LeadDispositionRelation_IfsScoreCreateInput = {\n name?: Maybe;\n leadDispositionRelation?: Maybe;\n};\n\n/** IfsScore update input from leadDispositionRelation */\nexport type LeadDispositionRelation_IfsScoreUpdateInput = {\n name?: Maybe;\n leadDispositionRelation?: Maybe;\n};\n\n/** LeadStage create input from leadDispositionRelation */\nexport type LeadDispositionRelation_LeadStageCreateInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadStage update input from leadDispositionRelation */\nexport type LeadDispositionRelation_LeadStageUpdateInput = {\n name?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\nexport type LeadDispositionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionScoreManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionScoreRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionScoreUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type LeadDispositionSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n carrier?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n ifsScore?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n score?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionStatusManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionStatusRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadDisposition relation input */\nexport type LeadDispositionStatusUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadDisposition subscription filter */\nexport type LeadDispositionSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadDisposition update input */\nexport type LeadDispositionUpdateByFilterInput = {\n carrier?: Maybe>>;\n expirationDate?: Maybe>>;\n insurance?: Maybe>>;\n notes?: Maybe>>;\n ifsScore?: Maybe>>;\n currentPremium?: Maybe>>;\n quotedPremium?: Maybe>>;\n};\n\n/** LeadDisposition update input */\nexport type LeadDispositionUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\nexport type LeadDriver = {\n __typename?: 'LeadDriver';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n address: Maybe;\n daytimePhone: Maybe;\n eveningPhone: Maybe;\n cellPhone: Maybe;\n email: Maybe;\n birthDate: Maybe;\n ageFirstLicensed: Maybe;\n licensedState: Maybe;\n gender: Maybe;\n maritalStatus: Maybe;\n creditRating: Maybe;\n licenseStatus: Maybe;\n education: Maybe;\n occupation: Maybe;\n currentResidence: Maybe;\n monthsInCurrentResidence: Maybe;\n incidentsPast5Years: Maybe;\n violationsPast5Years: Maybe;\n driversLeadRelation: Maybe;\n activityPast5Years: Maybe;\n vin: Maybe;\n yearOfVehicle: Maybe;\n makeOfVehicle: Maybe;\n modelOfVehicle: Maybe;\n trim: Maybe;\n style: Maybe;\n ownership: Maybe;\n primaryUse: Maybe;\n averageOneWayMileage: Maybe;\n annualMileage: Maybe;\n vehicleParking: Maybe;\n antiLockBreaks: Maybe;\n securitySystem: Maybe;\n salvagedVehicle: Maybe;\n currentBodilyInjuryCoverages: Maybe;\n currentPropertyDamageCoverages: Maybe;\n currentCoverageLevel: Maybe;\n coverageLevel: Maybe;\n currentComprehensiveDeductible: Maybe;\n currentCollisionDeductible: Maybe;\n fillingRequired: Maybe;\n fullTimeStudent: Maybe;\n ticketsAccidentsClaimsPast3Years: Maybe;\n insuredPast30Days: Maybe;\n policyExpirationDate: Maybe;\n continuouslyInsuredYears: Maybe;\n continuouslyInsuredMonths: Maybe;\n currentInsuranceCompanyYears: Maybe;\n currentInsuranceCompanyMonths: Maybe;\n insuranceCompany: Maybe;\n completedBehindTheWheel: Maybe;\n bankruptcyInPast5Years: Maybe;\n additionalDrivers: Maybe;\n additionalVehicles: Maybe;\n multiplePolicyDiscount: Maybe;\n eNewsletter: Maybe;\n preferredContactTime: Maybe;\n preferredContactNumber: Maybe;\n yearsAtCurrentResidence: Maybe;\n relationshipToApplicant: Maybe;\n yearsInField: Maybe;\n suspendedOrRevokedInThePast5Years: Maybe;\n dUIDWIInThePast5Years: Maybe;\n dateOfDUIDWI: Maybe;\n howManyIncidentsInThePast5Years: Maybe;\n desiredCollisionCoverage: Maybe;\n desiredComprehensiveCoverage: Maybe;\n averageDaysPerWeekUsed: Maybe;\n primaryDriver: Maybe;\n incidents: Maybe;\n creditRating_2: Maybe;\n dUIDWIInThePast5Years_2: Maybe;\n preferredContactTime_2: Maybe;\n eNewsletter_2: Maybe;\n _description: Maybe;\n};\n\nexport type LeadDriverIncidentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadDriver_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n driversLeadRelation?: Maybe;\n incidents?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadDriver_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadDriver create input */\nexport type LeadDriverCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n/** LeadDriver create many input */\nexport type LeadDriverCreateManyInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\n/** LeadDriver delete input */\nexport type LeadDriverDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverDriversLeadRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverDriversLeadRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverDriversLeadRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadDriverFieldsPermissions create input */\nexport type LeadDriverFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\nexport type LeadDriverFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n driversLeadRelation?: Maybe;\n incidents?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadDriverGroupBy = {\n query: LeadDriverGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadDriverGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n firstName?: Maybe>;\n lastName?: Maybe>;\n address?: Maybe;\n daytimePhone?: Maybe>;\n eveningPhone?: Maybe>;\n cellPhone?: Maybe>;\n email?: Maybe>;\n birthDate?: Maybe>;\n ageFirstLicensed?: Maybe>;\n licensedState?: Maybe>;\n gender?: Maybe>;\n maritalStatus?: Maybe>;\n creditRating?: Maybe>;\n licenseStatus?: Maybe>;\n education?: Maybe>;\n occupation?: Maybe>;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe>;\n incidentsPast5Years?: Maybe>;\n violationsPast5Years?: Maybe>;\n activityPast5Years?: Maybe>;\n vin?: Maybe>;\n yearOfVehicle?: Maybe>;\n makeOfVehicle?: Maybe>;\n modelOfVehicle?: Maybe>;\n trim?: Maybe>;\n style?: Maybe>;\n ownership?: Maybe>;\n primaryUse?: Maybe>;\n averageOneWayMileage?: Maybe>;\n annualMileage?: Maybe>;\n vehicleParking?: Maybe>;\n antiLockBreaks?: Maybe>;\n securitySystem?: Maybe>;\n salvagedVehicle?: Maybe>;\n currentBodilyInjuryCoverages?: Maybe>;\n currentPropertyDamageCoverages?: Maybe>;\n currentCoverageLevel?: Maybe>;\n coverageLevel?: Maybe>;\n currentComprehensiveDeductible?: Maybe>;\n currentCollisionDeductible?: Maybe>;\n fillingRequired?: Maybe>;\n fullTimeStudent?: Maybe>;\n ticketsAccidentsClaimsPast3Years?: Maybe>;\n insuredPast30Days?: Maybe>;\n policyExpirationDate?: Maybe>;\n continuouslyInsuredYears?: Maybe>;\n continuouslyInsuredMonths?: Maybe>;\n currentInsuranceCompanyYears?: Maybe>;\n currentInsuranceCompanyMonths?: Maybe>;\n insuranceCompany?: Maybe>;\n completedBehindTheWheel?: Maybe>;\n bankruptcyInPast5Years?: Maybe>;\n additionalDrivers?: Maybe>;\n additionalVehicles?: Maybe>;\n multiplePolicyDiscount?: Maybe>;\n eNewsletter?: Maybe>;\n preferredContactTime?: Maybe>;\n preferredContactNumber?: Maybe>;\n yearsAtCurrentResidence?: Maybe>;\n relationshipToApplicant?: Maybe>;\n yearsInField?: Maybe>;\n suspendedOrRevokedInThePast5Years?: Maybe>;\n dUIDWIInThePast5Years?: Maybe>;\n dateOfDUIDWI?: Maybe>;\n howManyIncidentsInThePast5Years?: Maybe>;\n desiredCollisionCoverage?: Maybe>;\n desiredComprehensiveCoverage?: Maybe>;\n averageDaysPerWeekUsed?: Maybe>;\n primaryDriver?: Maybe>;\n creditRating_2?: Maybe>;\n dUIDWIInThePast5Years_2?: Maybe>;\n preferredContactTime_2?: Maybe>;\n eNewsletter_2?: Maybe>;\n createdBy?: Maybe;\n driversLeadRelation?: Maybe;\n incidents?: Maybe;\n _group?: Maybe>;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverIncidentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverIncidentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadDriver relation input */\nexport type LeadDriverIncidentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadDriverKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadDriverListResponse output */\nexport type LeadDriverListResponse = {\n __typename?: 'LeadDriverListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadDriverManyResponse output */\nexport type LeadDriverManyResponse = {\n __typename?: 'LeadDriverManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadDriverOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n AddressCountryAsc = 'address_country_ASC',\n AddressCountryDesc = 'address_country_DESC',\n AddressStreet1Asc = 'address_street1_ASC',\n AddressStreet1Desc = 'address_street1_DESC',\n AddressStreet2Asc = 'address_street2_ASC',\n AddressStreet2Desc = 'address_street2_DESC',\n AddressZipAsc = 'address_zip_ASC',\n AddressZipDesc = 'address_zip_DESC',\n AddressCityAsc = 'address_city_ASC',\n AddressCityDesc = 'address_city_DESC',\n AddressStateAsc = 'address_state_ASC',\n AddressStateDesc = 'address_state_DESC',\n DaytimePhoneAsc = 'daytimePhone_ASC',\n DaytimePhoneDesc = 'daytimePhone_DESC',\n EveningPhoneAsc = 'eveningPhone_ASC',\n EveningPhoneDesc = 'eveningPhone_DESC',\n CellPhoneAsc = 'cellPhone_ASC',\n CellPhoneDesc = 'cellPhone_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n BirthDateAsc = 'birthDate_ASC',\n BirthDateDesc = 'birthDate_DESC',\n AgeFirstLicensedAsc = 'ageFirstLicensed_ASC',\n AgeFirstLicensedDesc = 'ageFirstLicensed_DESC',\n LicensedStateAsc = 'licensedState_ASC',\n LicensedStateDesc = 'licensedState_DESC',\n GenderAsc = 'gender_ASC',\n GenderDesc = 'gender_DESC',\n MaritalStatusAsc = 'maritalStatus_ASC',\n MaritalStatusDesc = 'maritalStatus_DESC',\n CreditRatingAsc = 'creditRating_ASC',\n CreditRatingDesc = 'creditRating_DESC',\n LicenseStatusAsc = 'licenseStatus_ASC',\n LicenseStatusDesc = 'licenseStatus_DESC',\n EducationAsc = 'education_ASC',\n EducationDesc = 'education_DESC',\n OccupationAsc = 'occupation_ASC',\n OccupationDesc = 'occupation_DESC',\n CurrentResidenceCountryAsc = 'currentResidence_country_ASC',\n CurrentResidenceCountryDesc = 'currentResidence_country_DESC',\n CurrentResidenceStreet1Asc = 'currentResidence_street1_ASC',\n CurrentResidenceStreet1Desc = 'currentResidence_street1_DESC',\n CurrentResidenceStreet2Asc = 'currentResidence_street2_ASC',\n CurrentResidenceStreet2Desc = 'currentResidence_street2_DESC',\n CurrentResidenceZipAsc = 'currentResidence_zip_ASC',\n CurrentResidenceZipDesc = 'currentResidence_zip_DESC',\n CurrentResidenceCityAsc = 'currentResidence_city_ASC',\n CurrentResidenceCityDesc = 'currentResidence_city_DESC',\n CurrentResidenceStateAsc = 'currentResidence_state_ASC',\n CurrentResidenceStateDesc = 'currentResidence_state_DESC',\n MonthsInCurrentResidenceAsc = 'monthsInCurrentResidence_ASC',\n MonthsInCurrentResidenceDesc = 'monthsInCurrentResidence_DESC',\n IncidentsPast5YearsAsc = 'incidentsPast5Years_ASC',\n IncidentsPast5YearsDesc = 'incidentsPast5Years_DESC',\n ViolationsPast5YearsAsc = 'violationsPast5Years_ASC',\n ViolationsPast5YearsDesc = 'violationsPast5Years_DESC',\n ActivityPast5YearsAsc = 'activityPast5Years_ASC',\n ActivityPast5YearsDesc = 'activityPast5Years_DESC',\n VinAsc = 'vin_ASC',\n VinDesc = 'vin_DESC',\n YearOfVehicleAsc = 'yearOfVehicle_ASC',\n YearOfVehicleDesc = 'yearOfVehicle_DESC',\n MakeOfVehicleAsc = 'makeOfVehicle_ASC',\n MakeOfVehicleDesc = 'makeOfVehicle_DESC',\n ModelOfVehicleAsc = 'modelOfVehicle_ASC',\n ModelOfVehicleDesc = 'modelOfVehicle_DESC',\n TrimAsc = 'trim_ASC',\n TrimDesc = 'trim_DESC',\n StyleAsc = 'style_ASC',\n StyleDesc = 'style_DESC',\n OwnershipAsc = 'ownership_ASC',\n OwnershipDesc = 'ownership_DESC',\n PrimaryUseAsc = 'primaryUse_ASC',\n PrimaryUseDesc = 'primaryUse_DESC',\n AverageOneWayMileageAsc = 'averageOneWayMileage_ASC',\n AverageOneWayMileageDesc = 'averageOneWayMileage_DESC',\n AnnualMileageAsc = 'annualMileage_ASC',\n AnnualMileageDesc = 'annualMileage_DESC',\n VehicleParkingAsc = 'vehicleParking_ASC',\n VehicleParkingDesc = 'vehicleParking_DESC',\n AntiLockBreaksAsc = 'antiLockBreaks_ASC',\n AntiLockBreaksDesc = 'antiLockBreaks_DESC',\n SecuritySystemAsc = 'securitySystem_ASC',\n SecuritySystemDesc = 'securitySystem_DESC',\n SalvagedVehicleAsc = 'salvagedVehicle_ASC',\n SalvagedVehicleDesc = 'salvagedVehicle_DESC',\n CurrentBodilyInjuryCoveragesAsc = 'currentBodilyInjuryCoverages_ASC',\n CurrentBodilyInjuryCoveragesDesc = 'currentBodilyInjuryCoverages_DESC',\n CurrentPropertyDamageCoveragesAsc = 'currentPropertyDamageCoverages_ASC',\n CurrentPropertyDamageCoveragesDesc = 'currentPropertyDamageCoverages_DESC',\n CurrentCoverageLevelAsc = 'currentCoverageLevel_ASC',\n CurrentCoverageLevelDesc = 'currentCoverageLevel_DESC',\n CoverageLevelAsc = 'coverageLevel_ASC',\n CoverageLevelDesc = 'coverageLevel_DESC',\n CurrentComprehensiveDeductibleAsc = 'currentComprehensiveDeductible_ASC',\n CurrentComprehensiveDeductibleDesc = 'currentComprehensiveDeductible_DESC',\n CurrentCollisionDeductibleAsc = 'currentCollisionDeductible_ASC',\n CurrentCollisionDeductibleDesc = 'currentCollisionDeductible_DESC',\n FillingRequiredAsc = 'fillingRequired_ASC',\n FillingRequiredDesc = 'fillingRequired_DESC',\n FullTimeStudentAsc = 'fullTimeStudent_ASC',\n FullTimeStudentDesc = 'fullTimeStudent_DESC',\n TicketsAccidentsClaimsPast3YearsAsc = 'ticketsAccidentsClaimsPast3Years_ASC',\n TicketsAccidentsClaimsPast3YearsDesc = 'ticketsAccidentsClaimsPast3Years_DESC',\n InsuredPast30DaysAsc = 'insuredPast30Days_ASC',\n InsuredPast30DaysDesc = 'insuredPast30Days_DESC',\n PolicyExpirationDateAsc = 'policyExpirationDate_ASC',\n PolicyExpirationDateDesc = 'policyExpirationDate_DESC',\n ContinuouslyInsuredYearsAsc = 'continuouslyInsuredYears_ASC',\n ContinuouslyInsuredYearsDesc = 'continuouslyInsuredYears_DESC',\n ContinuouslyInsuredMonthsAsc = 'continuouslyInsuredMonths_ASC',\n ContinuouslyInsuredMonthsDesc = 'continuouslyInsuredMonths_DESC',\n CurrentInsuranceCompanyYearsAsc = 'currentInsuranceCompanyYears_ASC',\n CurrentInsuranceCompanyYearsDesc = 'currentInsuranceCompanyYears_DESC',\n CurrentInsuranceCompanyMonthsAsc = 'currentInsuranceCompanyMonths_ASC',\n CurrentInsuranceCompanyMonthsDesc = 'currentInsuranceCompanyMonths_DESC',\n InsuranceCompanyAsc = 'insuranceCompany_ASC',\n InsuranceCompanyDesc = 'insuranceCompany_DESC',\n CompletedBehindTheWheelAsc = 'completedBehindTheWheel_ASC',\n CompletedBehindTheWheelDesc = 'completedBehindTheWheel_DESC',\n BankruptcyInPast5YearsAsc = 'bankruptcyInPast5Years_ASC',\n BankruptcyInPast5YearsDesc = 'bankruptcyInPast5Years_DESC',\n AdditionalDriversAsc = 'additionalDrivers_ASC',\n AdditionalDriversDesc = 'additionalDrivers_DESC',\n AdditionalVehiclesAsc = 'additionalVehicles_ASC',\n AdditionalVehiclesDesc = 'additionalVehicles_DESC',\n MultiplePolicyDiscountAsc = 'multiplePolicyDiscount_ASC',\n MultiplePolicyDiscountDesc = 'multiplePolicyDiscount_DESC',\n ENewsletterAsc = 'eNewsletter_ASC',\n ENewsletterDesc = 'eNewsletter_DESC',\n PreferredContactTimeAsc = 'preferredContactTime_ASC',\n PreferredContactTimeDesc = 'preferredContactTime_DESC',\n PreferredContactNumberAsc = 'preferredContactNumber_ASC',\n PreferredContactNumberDesc = 'preferredContactNumber_DESC',\n YearsAtCurrentResidenceAsc = 'yearsAtCurrentResidence_ASC',\n YearsAtCurrentResidenceDesc = 'yearsAtCurrentResidence_DESC',\n RelationshipToApplicantAsc = 'relationshipToApplicant_ASC',\n RelationshipToApplicantDesc = 'relationshipToApplicant_DESC',\n YearsInFieldAsc = 'yearsInField_ASC',\n YearsInFieldDesc = 'yearsInField_DESC',\n SuspendedOrRevokedInThePast5YearsAsc = 'suspendedOrRevokedInThePast5Years_ASC',\n SuspendedOrRevokedInThePast5YearsDesc = 'suspendedOrRevokedInThePast5Years_DESC',\n DUidwiInThePast5YearsAsc = 'dUIDWIInThePast5Years_ASC',\n DUidwiInThePast5YearsDesc = 'dUIDWIInThePast5Years_DESC',\n DateOfDuidwiAsc = 'dateOfDUIDWI_ASC',\n DateOfDuidwiDesc = 'dateOfDUIDWI_DESC',\n HowManyIncidentsInThePast5YearsAsc = 'howManyIncidentsInThePast5Years_ASC',\n HowManyIncidentsInThePast5YearsDesc = 'howManyIncidentsInThePast5Years_DESC',\n DesiredCollisionCoverageAsc = 'desiredCollisionCoverage_ASC',\n DesiredCollisionCoverageDesc = 'desiredCollisionCoverage_DESC',\n DesiredComprehensiveCoverageAsc = 'desiredComprehensiveCoverage_ASC',\n DesiredComprehensiveCoverageDesc = 'desiredComprehensiveCoverage_DESC',\n AverageDaysPerWeekUsedAsc = 'averageDaysPerWeekUsed_ASC',\n AverageDaysPerWeekUsedDesc = 'averageDaysPerWeekUsed_DESC',\n PrimaryDriverAsc = 'primaryDriver_ASC',\n PrimaryDriverDesc = 'primaryDriver_DESC',\n CreditRating_2Asc = 'creditRating_2_ASC',\n CreditRating_2Desc = 'creditRating_2_DESC',\n DUidwiInThePast5Years_2Asc = 'dUIDWIInThePast5Years_2_ASC',\n DUidwiInThePast5Years_2Desc = 'dUIDWIInThePast5Years_2_DESC',\n PreferredContactTime_2Asc = 'preferredContactTime_2_ASC',\n PreferredContactTime_2Desc = 'preferredContactTime_2_DESC',\n ENewsletter_2Asc = 'eNewsletter_2_ASC',\n ENewsletter_2Desc = 'eNewsletter_2_DESC',\n}\n\n/** LeadDriver subscription payload */\nexport type LeadDriverPayload = {\n __typename?: 'LeadDriverPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadDriverRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadDriversManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type LeadDriverSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n createdBy?: Maybe;\n driversLeadRelation?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadDriversRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadDriver subscription filter */\nexport type LeadDriverSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadDriversUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadDriver update input */\nexport type LeadDriverUpdateByFilterInput = {\n firstName?: Maybe>>;\n lastName?: Maybe>>;\n daytimePhone?: Maybe>>;\n eveningPhone?: Maybe>>;\n cellPhone?: Maybe>>;\n email?: Maybe>>;\n birthDate?: Maybe>>;\n ageFirstLicensed?: Maybe>>;\n licensedState?: Maybe>>;\n gender?: Maybe>>;\n maritalStatus?: Maybe>>;\n creditRating?: Maybe>>;\n licenseStatus?: Maybe>>;\n education?: Maybe>>;\n occupation?: Maybe>>;\n monthsInCurrentResidence?: Maybe>>;\n incidentsPast5Years?: Maybe>>;\n violationsPast5Years?: Maybe>>;\n activityPast5Years?: Maybe>>;\n vin?: Maybe>>;\n yearOfVehicle?: Maybe>>;\n makeOfVehicle?: Maybe>>;\n modelOfVehicle?: Maybe>>;\n trim?: Maybe>>;\n style?: Maybe>>;\n ownership?: Maybe>>;\n primaryUse?: Maybe>>;\n averageOneWayMileage?: Maybe>>;\n annualMileage?: Maybe>>;\n vehicleParking?: Maybe>>;\n antiLockBreaks?: Maybe>>;\n securitySystem?: Maybe>>;\n salvagedVehicle?: Maybe>>;\n currentBodilyInjuryCoverages?: Maybe>>;\n currentPropertyDamageCoverages?: Maybe>>;\n currentCoverageLevel?: Maybe>>;\n coverageLevel?: Maybe>>;\n currentComprehensiveDeductible?: Maybe>>;\n currentCollisionDeductible?: Maybe>>;\n fillingRequired?: Maybe>>;\n fullTimeStudent?: Maybe>>;\n ticketsAccidentsClaimsPast3Years?: Maybe>>;\n insuredPast30Days?: Maybe>>;\n policyExpirationDate?: Maybe>>;\n continuouslyInsuredYears?: Maybe>>;\n continuouslyInsuredMonths?: Maybe>>;\n currentInsuranceCompanyYears?: Maybe>>;\n currentInsuranceCompanyMonths?: Maybe>>;\n insuranceCompany?: Maybe>>;\n completedBehindTheWheel?: Maybe>>;\n bankruptcyInPast5Years?: Maybe>>;\n additionalDrivers?: Maybe>>;\n additionalVehicles?: Maybe>>;\n multiplePolicyDiscount?: Maybe>>;\n eNewsletter?: Maybe>>;\n preferredContactTime?: Maybe>>;\n preferredContactNumber?: Maybe>>;\n yearsAtCurrentResidence?: Maybe>>;\n relationshipToApplicant?: Maybe>>;\n yearsInField?: Maybe>>;\n suspendedOrRevokedInThePast5Years?: Maybe>>;\n dUIDWIInThePast5Years?: Maybe>>;\n dateOfDUIDWI?: Maybe>>;\n howManyIncidentsInThePast5Years?: Maybe>>;\n desiredCollisionCoverage?: Maybe>>;\n desiredComprehensiveCoverage?: Maybe>>;\n averageDaysPerWeekUsed?: Maybe>>;\n primaryDriver?: Maybe>>;\n creditRating_2?: Maybe>>;\n dUIDWIInThePast5Years_2?: Maybe>>;\n preferredContactTime_2?: Maybe>>;\n eNewsletter_2?: Maybe>>;\n};\n\n/** LeadDriver update input */\nexport type LeadDriverUpdateInput = {\n id?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n daytimePhone?: Maybe;\n eveningPhone?: Maybe;\n cellPhone?: Maybe;\n email?: Maybe;\n birthDate?: Maybe;\n ageFirstLicensed?: Maybe;\n licensedState?: Maybe;\n gender?: Maybe;\n maritalStatus?: Maybe;\n creditRating?: Maybe;\n licenseStatus?: Maybe;\n education?: Maybe;\n occupation?: Maybe;\n currentResidence?: Maybe;\n monthsInCurrentResidence?: Maybe;\n incidentsPast5Years?: Maybe;\n violationsPast5Years?: Maybe;\n driversLeadRelation?: Maybe;\n activityPast5Years?: Maybe;\n vin?: Maybe;\n yearOfVehicle?: Maybe;\n makeOfVehicle?: Maybe;\n modelOfVehicle?: Maybe;\n trim?: Maybe;\n style?: Maybe;\n ownership?: Maybe;\n primaryUse?: Maybe;\n averageOneWayMileage?: Maybe;\n annualMileage?: Maybe;\n vehicleParking?: Maybe;\n antiLockBreaks?: Maybe;\n securitySystem?: Maybe;\n salvagedVehicle?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n currentCoverageLevel?: Maybe;\n coverageLevel?: Maybe;\n currentComprehensiveDeductible?: Maybe;\n currentCollisionDeductible?: Maybe;\n fillingRequired?: Maybe;\n fullTimeStudent?: Maybe;\n ticketsAccidentsClaimsPast3Years?: Maybe;\n insuredPast30Days?: Maybe;\n policyExpirationDate?: Maybe;\n continuouslyInsuredYears?: Maybe;\n continuouslyInsuredMonths?: Maybe;\n currentInsuranceCompanyYears?: Maybe;\n currentInsuranceCompanyMonths?: Maybe;\n insuranceCompany?: Maybe;\n completedBehindTheWheel?: Maybe;\n bankruptcyInPast5Years?: Maybe;\n additionalDrivers?: Maybe;\n additionalVehicles?: Maybe;\n multiplePolicyDiscount?: Maybe;\n eNewsletter?: Maybe;\n preferredContactTime?: Maybe;\n preferredContactNumber?: Maybe;\n yearsAtCurrentResidence?: Maybe;\n relationshipToApplicant?: Maybe;\n yearsInField?: Maybe;\n suspendedOrRevokedInThePast5Years?: Maybe;\n dUIDWIInThePast5Years?: Maybe;\n dateOfDUIDWI?: Maybe;\n howManyIncidentsInThePast5Years?: Maybe;\n desiredCollisionCoverage?: Maybe;\n desiredComprehensiveCoverage?: Maybe;\n averageDaysPerWeekUsed?: Maybe;\n primaryDriver?: Maybe;\n incidents?: Maybe;\n creditRating_2?: Maybe;\n dUIDWIInThePast5Years_2?: Maybe;\n preferredContactTime_2?: Maybe;\n eNewsletter_2?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadEmailsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadEmailsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadEmailsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadFieldsPermissions create input */\nexport type LeadFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe;\n phone?: Maybe;\n gender?: Maybe;\n code?: Maybe;\n phones?: Maybe;\n status?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n ifsScore?: Maybe;\n stages?: Maybe;\n amount?: Maybe;\n callingDelay?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n};\n\nexport type LeadFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n phone?: Maybe;\n gender?: Maybe;\n code?: Maybe;\n status?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n ifsScore?: Maybe;\n stages?: Maybe;\n amount?: Maybe;\n callingDelay?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n lastHistoryActionType?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n assignees?: Maybe;\n leadSource?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n notesLeadRelation?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n campaign?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n leadPhoneCallRelation?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadGroupBy = {\n query: LeadGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n firstName?: Maybe>;\n middleName?: Maybe>;\n lastName?: Maybe>;\n address?: Maybe>;\n phone?: Maybe;\n gender?: Maybe>;\n code?: Maybe>;\n phones?: Maybe>;\n status?: Maybe>;\n type?: Maybe>;\n priority?: Maybe>;\n email?: Maybe>;\n birthMonth?: Maybe>;\n birthDay?: Maybe>;\n birthYear?: Maybe>;\n creditScore?: Maybe>;\n ifsScore?: Maybe>;\n stages?: Maybe>;\n amount?: Maybe>;\n callingDelay?: Maybe>;\n creationDate?: Maybe>;\n importedLeadId?: Maybe>;\n imported?: Maybe>;\n lastHistoryActionData?: Maybe>;\n lastHistoryActionType?: Maybe>;\n createdBy?: Maybe;\n assignees?: Maybe;\n leadSource?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n notesLeadRelation?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n campaign?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n leadPhoneCallRelation?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadHistory = {\n __typename?: 'LeadHistory';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n /** Entity related to the lead that was mutated */\n entity: Maybe;\n /** The operation executed on the entity */\n operation: Maybe;\n difference: Maybe;\n lead: Maybe;\n note: Maybe;\n task: Maybe;\n email: Maybe;\n stage: Maybe;\n call: Maybe;\n sms: Maybe;\n _description: Maybe;\n};\n\nexport type LeadHistory_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n entity?: Maybe;\n operation?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadHistory_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadHistory create input */\nexport type LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory create many input */\nexport type LeadHistoryCreateManyInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead: LeadHistoryLeadManyRelationInput;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory delete input */\nexport type LeadHistoryDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryEmailManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryEmailRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryEmailUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadHistoryFieldsPermissions create input */\nexport type LeadHistoryFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n entity?: Maybe;\n operation?: Maybe;\n difference?: Maybe;\n};\n\nexport type LeadHistoryFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n entity?: Maybe;\n operation?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadHistoryGroupBy = {\n query: LeadHistoryGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadHistoryGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n entity?: Maybe>;\n operation?: Maybe>;\n difference?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadHistoryKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadHistoryListResponse output */\nexport type LeadHistoryListResponse = {\n __typename?: 'LeadHistoryListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Lead relation input */\nexport type LeadHistoryManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadHistoryManyResponse output */\nexport type LeadHistoryManyResponse = {\n __typename?: 'LeadHistoryManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryNoteManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryNoteRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryNoteUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadHistoryOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n EntityAsc = 'entity_ASC',\n EntityDesc = 'entity_DESC',\n OperationAsc = 'operation_ASC',\n OperationDesc = 'operation_DESC',\n DifferenceAsc = 'difference_ASC',\n DifferenceDesc = 'difference_DESC',\n}\n\n/** LeadHistory subscription payload */\nexport type LeadHistoryPayload = {\n __typename?: 'LeadHistoryPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadHistoryRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadHistoryRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistorySmsManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistorySmsRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistorySmsUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type LeadHistorySort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n entity?: Maybe;\n operation?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryStageManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryStageRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryStageUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadHistory subscription filter */\nexport type LeadHistorySubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryTaskManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryTaskRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadHistory relation input */\nexport type LeadHistoryTaskUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadHistory update input */\nexport type LeadHistoryUpdateByFilterInput = {\n entity?: Maybe>>;\n operation?: Maybe>>;\n difference?: Maybe>>;\n};\n\n/** LeadHistory update input */\nexport type LeadHistoryUpdateInput = {\n id?: Maybe;\n /** Entity related to the lead that was mutated */\n entity?: Maybe;\n /** The operation executed on the entity */\n operation?: Maybe;\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadHistoryUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadInboundCallsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadInboundCallsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadInboundCallsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadKeyFilter = {\n id?: Maybe;\n};\n\n/** Lead create input from leadLeadActionRelation */\nexport type LeadLeadActionRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadActionRelation */\nexport type LeadLeadActionRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadDispositionRelation */\nexport type LeadLeadDispositionRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadDispositionRelation */\nexport type LeadLeadDispositionRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadActionRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadActionRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadActionRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadDispositionRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadDispositionRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadDispositionRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadPhoneNumberRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadPhoneNumberRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadPhoneNumberRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadStageHistoryRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadStageHistoryRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadStageHistoryRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeAutoRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeAutoRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeAutoRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeCommercialAutoRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeCommercialAutoRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeEmployeeBenefitRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeEmployeeBenefitRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeGeneralLiabilityRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeGeneralLiabilityRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeHomeRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeHomeRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeHomeRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeLifeRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeLifeRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeLifeRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeWorkersCompensationRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeWorkersCompensationRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadMailThreadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadMailThreadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadMailThreadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadPhoneCallRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadPhoneCallRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadPhoneCallRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead create input from leadLeadPhoneNumberRelation */\nexport type LeadLeadPhoneNumberRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadPhoneNumberRelation */\nexport type LeadLeadPhoneNumberRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadSmsMessageManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadLeadSmsMessageRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadSmsMessageUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadLeadSourceManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadSourceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadLeadSourceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead create input from leadLeadStageHistoryRelation */\nexport type LeadLeadStageHistoryRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadStageHistoryRelation */\nexport type LeadLeadStageHistoryRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeAutoRelation */\nexport type LeadLeadTypeAutoRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeAutoRelation */\nexport type LeadLeadTypeAutoRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeCommercialAutoRelation */\nexport type LeadLeadTypeCommercialAutoRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeCommercialAutoRelation */\nexport type LeadLeadTypeCommercialAutoRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeEmployeeBenefitRelation */\nexport type LeadLeadTypeEmployeeBenefitRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeEmployeeBenefitRelation */\nexport type LeadLeadTypeEmployeeBenefitRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeGeneralLiabilityRelation */\nexport type LeadLeadTypeGeneralLiabilityRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeGeneralLiabilityRelation */\nexport type LeadLeadTypeGeneralLiabilityRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeHomeRelation */\nexport type LeadLeadTypeHomeRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeHomeRelation */\nexport type LeadLeadTypeHomeRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeLifeRelation */\nexport type LeadLeadTypeLifeRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeLifeRelation */\nexport type LeadLeadTypeLifeRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead create input from leadLeadTypeWorkersCompensationRelation */\nexport type LeadLeadTypeWorkersCompensationRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadLeadTypeWorkersCompensationRelation */\nexport type LeadLeadTypeWorkersCompensationRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadListResponse output */\nexport type LeadListResponse = {\n __typename?: 'LeadListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Lead create input from leadMailThreadRelation */\nexport type LeadMailThreadRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadMailThreadRelation */\nexport type LeadMailThreadRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadManyResponse output */\nexport type LeadManyResponse = {\n __typename?: 'LeadManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Lead relation input */\nexport type LeadMarketingCampaignOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadMarketingCampaignOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadMarketingCampaignOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadNote = {\n __typename?: 'LeadNote';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n notesLeadRelation: Maybe;\n text: Maybe;\n title: Maybe;\n history: Maybe;\n _description: Maybe;\n};\n\nexport type LeadNoteHistoryArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadNote_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n title?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n notesLeadRelation?: Maybe;\n history?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadNote_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadNote create input */\nexport type LeadNoteCreateInput = {\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n\n/** LeadNote create many input */\nexport type LeadNoteCreateManyInput = {\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n\n/** LeadNote delete input */\nexport type LeadNoteDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadNoteFieldsPermissions create input */\nexport type LeadNoteFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n text?: Maybe;\n title?: Maybe;\n};\n\nexport type LeadNoteFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n title?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n notesLeadRelation?: Maybe;\n history?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadNoteGroupBy = {\n query: LeadNoteGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadNoteGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n text?: Maybe>;\n title?: Maybe>;\n createdBy?: Maybe;\n notesLeadRelation?: Maybe;\n history?: Maybe;\n _group?: Maybe>;\n};\n\n/** LeadNote relation input */\nexport type LeadNoteHistoryManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadNote relation input */\nexport type LeadNoteHistoryRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadNote relation input */\nexport type LeadNoteHistoryUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadNoteKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadNoteListResponse output */\nexport type LeadNoteListResponse = {\n __typename?: 'LeadNoteListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadNoteManyResponse output */\nexport type LeadNoteManyResponse = {\n __typename?: 'LeadNoteManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** LeadNote relation input */\nexport type LeadNoteNotesLeadRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadNote relation input */\nexport type LeadNoteNotesLeadRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadNote relation input */\nexport type LeadNoteNotesLeadRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadNoteOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TextAsc = 'text_ASC',\n TextDesc = 'text_DESC',\n TitleAsc = 'title_ASC',\n TitleDesc = 'title_DESC',\n}\n\n/** LeadNote subscription payload */\nexport type LeadNotePayload = {\n __typename?: 'LeadNotePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type LeadNoteRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadNotesLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadNotesLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadNotesLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadNoteSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n title?: Maybe;\n createdBy?: Maybe;\n notesLeadRelation?: Maybe;\n};\n\n/** LeadNote subscription filter */\nexport type LeadNoteSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadNote update input */\nexport type LeadNoteUpdateByFilterInput = {\n text?: Maybe>>;\n title?: Maybe>>;\n};\n\n/** LeadNote update input */\nexport type LeadNoteUpdateInput = {\n id?: Maybe;\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadNotificationRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadNotificationRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadNotificationRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n MiddleNameAsc = 'middleName_ASC',\n MiddleNameDesc = 'middleName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n PhoneCodeAsc = 'phone_code_ASC',\n PhoneCodeDesc = 'phone_code_DESC',\n PhoneNumberAsc = 'phone_number_ASC',\n PhoneNumberDesc = 'phone_number_DESC',\n GenderAsc = 'gender_ASC',\n GenderDesc = 'gender_DESC',\n CodeAsc = 'code_ASC',\n CodeDesc = 'code_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n PriorityAsc = 'priority_ASC',\n PriorityDesc = 'priority_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n BirthMonthAsc = 'birthMonth_ASC',\n BirthMonthDesc = 'birthMonth_DESC',\n BirthDayAsc = 'birthDay_ASC',\n BirthDayDesc = 'birthDay_DESC',\n BirthYearAsc = 'birthYear_ASC',\n BirthYearDesc = 'birthYear_DESC',\n CreditScoreAsc = 'creditScore_ASC',\n CreditScoreDesc = 'creditScore_DESC',\n IfsScoreAsc = 'ifsScore_ASC',\n IfsScoreDesc = 'ifsScore_DESC',\n StagesAsc = 'stages_ASC',\n StagesDesc = 'stages_DESC',\n AmountAsc = 'amount_ASC',\n AmountDesc = 'amount_DESC',\n CallingDelayAsc = 'callingDelay_ASC',\n CallingDelayDesc = 'callingDelay_DESC',\n CreationDateAsc = 'creationDate_ASC',\n CreationDateDesc = 'creationDate_DESC',\n ImportedLeadIdAsc = 'importedLeadId_ASC',\n ImportedLeadIdDesc = 'importedLeadId_DESC',\n ImportedAsc = 'imported_ASC',\n ImportedDesc = 'imported_DESC',\n LastHistoryActionDataAsc = 'lastHistoryActionData_ASC',\n LastHistoryActionDataDesc = 'lastHistoryActionData_DESC',\n LastHistoryActionTypeAsc = 'lastHistoryActionType_ASC',\n LastHistoryActionTypeDesc = 'lastHistoryActionType_DESC',\n}\n\n/** Lead subscription payload */\nexport type LeadPayload = {\n __typename?: 'LeadPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Lead create input from leadPhoneCallRelation */\nexport type LeadPhoneCallRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadPhoneCallRelation */\nexport type LeadPhoneCallRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\nexport type LeadPhoneNumber = {\n __typename?: 'LeadPhoneNumber';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n phone: Maybe;\n lead: Maybe;\n parsedPhone: Maybe;\n messages: Maybe;\n type: Maybe;\n data: Maybe;\n _description: Maybe;\n};\n\nexport type LeadPhoneNumberMessagesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadPhoneNumber_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n parsedPhone?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n messages?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadPhoneNumber_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SMSMessage create input from leadPhoneNumber */\nexport type LeadPhoneNumber_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from leadPhoneNumber */\nexport type LeadPhoneNumber_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n\n/** LeadPhoneNumber create input */\nexport type LeadPhoneNumberCreateInput = {\n phone: SmartPhoneInput;\n lead?: Maybe;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\n/** LeadPhoneNumber create many input */\nexport type LeadPhoneNumberCreateManyInput = {\n phone: SmartPhoneInput;\n lead: LeadPhoneNumberLeadManyRelationInput;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\n/** LeadPhoneNumber delete input */\nexport type LeadPhoneNumberDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadPhoneNumberFieldsPermissions create input */\nexport type LeadPhoneNumberFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n phone?: Maybe;\n parsedPhone?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\nexport type LeadPhoneNumberFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n parsedPhone?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n messages?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadPhoneNumberGroupBy = {\n query: LeadPhoneNumberGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadPhoneNumberGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n phone?: Maybe;\n parsedPhone?: Maybe;\n type?: Maybe>;\n data?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n messages?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadPhoneNumberKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadPhoneNumberListResponse output */\nexport type LeadPhoneNumberListResponse = {\n __typename?: 'LeadPhoneNumberListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadPhoneNumberManyResponse output */\nexport type LeadPhoneNumberManyResponse = {\n __typename?: 'LeadPhoneNumberManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberMessagesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberMessagesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** LeadPhoneNumber relation input */\nexport type LeadPhoneNumberMessagesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadPhoneNumberOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n PhoneCodeAsc = 'phone_code_ASC',\n PhoneCodeDesc = 'phone_code_DESC',\n PhoneNumberAsc = 'phone_number_ASC',\n PhoneNumberDesc = 'phone_number_DESC',\n ParsedPhoneCodeAsc = 'parsedPhone_code_ASC',\n ParsedPhoneCodeDesc = 'parsedPhone_code_DESC',\n ParsedPhoneNumberAsc = 'parsedPhone_number_ASC',\n ParsedPhoneNumberDesc = 'parsedPhone_number_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n DataAsc = 'data_ASC',\n DataDesc = 'data_DESC',\n}\n\n/** LeadPhoneNumber subscription payload */\nexport type LeadPhoneNumberPayload = {\n __typename?: 'LeadPhoneNumberPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadPhoneNumberRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type LeadPhoneNumberSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n parsedPhone?: Maybe;\n type?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadPhoneNumber subscription filter */\nexport type LeadPhoneNumberSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadPhoneNumber update input */\nexport type LeadPhoneNumberUpdateByFilterInput = {\n type?: Maybe>>;\n data?: Maybe>>;\n};\n\n/** LeadPhoneNumber update input */\nexport type LeadPhoneNumberUpdateInput = {\n id?: Maybe;\n phone?: Maybe;\n lead?: Maybe;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\n/** LeadStage create input from leadRealtion */\nexport type LeadRealtion_LeadStageCreateInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadStage update input from leadRealtion */\nexport type LeadRealtion_LeadStageUpdateInput = {\n name?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\nexport type LeadRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead create input from leadSMSMessage */\nexport type LeadSmsMessage_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign: LeadCampaignRelationInput;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadSMSMessage */\nexport type LeadSmsMessage_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\nexport type LeadSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n phone?: Maybe;\n gender?: Maybe;\n code?: Maybe;\n status?: Maybe;\n type?: Maybe;\n priority?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n ifsScore?: Maybe;\n stages?: Maybe;\n amount?: Maybe;\n callingDelay?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n lastHistoryActionType?: Maybe;\n createdBy?: Maybe;\n leadSource?: Maybe;\n campaign?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n stage?: Maybe;\n callCadence?: Maybe;\n};\n\nexport type LeadSource = {\n __typename?: 'LeadSource';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n leadSourceLeadRelation: Maybe;\n _description: Maybe;\n};\n\nexport type LeadSourceLeadSourceLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Lead create input from leadSource */\nexport type LeadSource_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign: LeadCampaignRelationInput;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from leadSource */\nexport type LeadSource_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n\nexport type LeadSource_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n leadSourceLeadRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadSource create input */\nexport type LeadSourceCreateInput = {\n name: Scalars['String'];\n leadSourceLeadRelation?: Maybe;\n};\n\n/** LeadSource create many input */\nexport type LeadSourceCreateManyInput = {\n name: Scalars['String'];\n leadSourceLeadRelation?: Maybe;\n};\n\n/** LeadSource delete input */\nexport type LeadSourceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadSourceFieldsPermissions create input */\nexport type LeadSourceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type LeadSourceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n leadSourceLeadRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadSourceGroupBy = {\n query: LeadSourceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadSourceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n leadSourceLeadRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadSourceKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** LeadSource create input from leadSourceLeadRelation */\nexport type LeadSourceLeadRelation_LeadSourceCreateInput = {\n name: Scalars['String'];\n leadSourceLeadRelation?: Maybe;\n};\n\n/** LeadSource update input from leadSourceLeadRelation */\nexport type LeadSourceLeadRelation_LeadSourceUpdateInput = {\n name?: Maybe;\n leadSourceLeadRelation?: Maybe;\n};\n\n/** LeadSource relation input */\nexport type LeadSourceLeadSourceLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadSource relation input */\nexport type LeadSourceLeadSourceLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** LeadSource relation input */\nexport type LeadSourceLeadSourceLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadSourceListResponse output */\nexport type LeadSourceListResponse = {\n __typename?: 'LeadSourceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadSourceManyResponse output */\nexport type LeadSourceManyResponse = {\n __typename?: 'LeadSourceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadSourceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** LeadSource subscription payload */\nexport type LeadSourcePayload = {\n __typename?: 'LeadSourcePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadSourceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n};\n\n/** LeadSource subscription filter */\nexport type LeadSourceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadSource update input */\nexport type LeadSourceUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** LeadSource update input */\nexport type LeadSourceUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n leadSourceLeadRelation?: Maybe;\n};\n\nexport type LeadStage = {\n __typename?: 'LeadStage';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n stageLeadStageHistory: Maybe;\n history: Maybe;\n leadDispositionRelation: Maybe;\n leadRealtion: Maybe;\n _description: Maybe;\n};\n\nexport type LeadStageStageLeadStageHistoryArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadStageHistoryArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadStageLeadDispositionRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadStageLeadRealtionArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadStage_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadStage create input */\nexport type LeadStageCreateInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadStage create many input */\nexport type LeadStageCreateManyInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadStage delete input */\nexport type LeadStageDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadStageFieldsPermissions create input */\nexport type LeadStageFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type LeadStageFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadStageGroupBy = {\n query: LeadStageGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadStageGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadStageHistory = {\n __typename?: 'LeadStageHistory';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n stage: Maybe;\n _description: Maybe;\n};\n\nexport type LeadStageHistory_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n stage?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadStageHistory_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadStageHistory create input */\nexport type LeadStageHistoryCreateInput = {\n lead?: Maybe;\n stage?: Maybe;\n};\n\n/** LeadStageHistory create many input */\nexport type LeadStageHistoryCreateManyInput = {\n lead: LeadStageHistoryLeadManyRelationInput;\n stage: LeadStageHistoryStageManyRelationInput;\n};\n\n/** LeadStageHistory delete input */\nexport type LeadStageHistoryDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadStageHistoryFieldsPermissions create input */\nexport type LeadStageHistoryFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n};\nexport type LeadStageHistoryFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n stage?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type LeadStageHistoryGroupBy = {\n query: LeadStageHistoryGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadStageHistoryGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n stage?: Maybe;\n _group?: Maybe>;\n};\nexport type LeadStageHistoryKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryLeadManyRelationInput = {\n connect?: Maybe;\n};\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadStageHistoryListResponse output */\nexport type LeadStageHistoryListResponse = {\n __typename?: 'LeadStageHistoryListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadStage relation input */\nexport type LeadStageHistoryManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadStageHistoryManyResponse output */\nexport type LeadStageHistoryManyResponse = {\n __typename?: 'LeadStageHistoryManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadStageHistoryOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n\n/** LeadStageHistory subscription payload */\nexport type LeadStageHistoryPayload = {\n __typename?: 'LeadStageHistoryPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadStageHistoryRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadStage relation input */\nexport type LeadStageHistoryRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\nexport type LeadStageHistorySort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n stage?: Maybe;\n};\n\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryStageManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryStageRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadStageHistory relation input */\nexport type LeadStageHistoryStageUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadStageHistory subscription filter */\nexport type LeadStageHistorySubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadStageHistory update input */\nexport type LeadStageHistoryUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n stage?: Maybe;\n};\n\n/** LeadStage relation input */\nexport type LeadStageHistoryUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadStageKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadDispositionRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadDispositionRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadDispositionRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadRealtionManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadRealtionRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageLeadRealtionUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadStageListResponse output */\nexport type LeadStageListResponse = {\n __typename?: 'LeadStageListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Lead relation input */\nexport type LeadStageManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadStageManyResponse output */\nexport type LeadStageManyResponse = {\n __typename?: 'LeadStageManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadStageOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** LeadStage subscription payload */\nexport type LeadStagePayload = {\n __typename?: 'LeadStagePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadStageRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type LeadStageSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n};\n\n/** LeadStage relation input */\nexport type LeadStageStageLeadStageHistoryManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageStageLeadStageHistoryRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadStage relation input */\nexport type LeadStageStageLeadStageHistoryUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadStage subscription filter */\nexport type LeadStageSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadStage update input */\nexport type LeadStageUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** LeadStage update input */\nexport type LeadStageUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadStageUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Lead subscription filter */\nexport type LeadSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\nexport type LeadTask = {\n __typename?: 'LeadTask';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n title: Maybe;\n lead: Maybe;\n date: Maybe;\n users: Maybe;\n /** DEPRECATED */\n agents: Maybe;\n priority: Maybe;\n description: Maybe;\n type: Maybe;\n status: Maybe;\n history: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTaskUsersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadTaskAgentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadTaskHistoryArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadTask_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n date?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n type?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTask_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskAgentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadTask create input */\nexport type LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type?: Maybe;\n status?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n};\n\n/** LeadTask create many input */\nexport type LeadTaskCreateManyInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type: LeadTaskTypeManyRelationInput;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyManyRelationInput;\n};\n\n/** LeadTask delete input */\nexport type LeadTaskDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTaskFieldsPermissions create input */\nexport type LeadTaskFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n title?: Maybe;\n date?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n status?: Maybe;\n};\n\nexport type LeadTaskFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n date?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n type?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTaskGroupBy = {\n query: LeadTaskGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTaskGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n title?: Maybe>;\n date?: Maybe>;\n priority?: Maybe>;\n description?: Maybe>;\n status?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n type?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n/** LeadTask relation input */\nexport type LeadTaskHistoryManyRelationInput = {\n connect?: Maybe>;\n};\n/** LeadTask relation input */\nexport type LeadTaskHistoryRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskHistoryUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\nexport type LeadTaskKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTaskListResponse output */\nexport type LeadTaskListResponse = {\n __typename?: 'LeadTaskListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTaskManyResponse output */\nexport type LeadTaskManyResponse = {\n __typename?: 'LeadTaskManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTaskOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TitleAsc = 'title_ASC',\n TitleDesc = 'title_DESC',\n DateAsc = 'date_ASC',\n DateDesc = 'date_DESC',\n PriorityAsc = 'priority_ASC',\n PriorityDesc = 'priority_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n}\n\n/** LeadTask subscription payload */\nexport type LeadTaskPayload = {\n __typename?: 'LeadTaskPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTaskRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadTasksLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadTasksLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadTasksLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadTaskSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n title?: Maybe;\n date?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n status?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n};\n\n/** LeadTask subscription filter */\nexport type LeadTaskSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\nexport type LeadTaskType = {\n __typename?: 'LeadTaskType';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n typeLeadTaskRelation: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTaskTypeTypeLeadTaskRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type LeadTaskType_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n typeLeadTaskRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTaskType create input */\nexport type LeadTaskTypeCreateInput = {\n name: Scalars['String'];\n typeLeadTaskRelation?: Maybe;\n};\n\n/** LeadTaskType create many input */\nexport type LeadTaskTypeCreateManyInput = {\n name: Scalars['String'];\n typeLeadTaskRelation?: Maybe;\n};\n\n/** LeadTaskType delete input */\nexport type LeadTaskTypeDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTaskTypeFieldsPermissions create input */\nexport type LeadTaskTypeFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type LeadTaskTypeFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n typeLeadTaskRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTaskTypeGroupBy = {\n query: LeadTaskTypeGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTaskTypeGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n typeLeadTaskRelation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTaskTypeKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTaskTypeListResponse output */\nexport type LeadTaskTypeListResponse = {\n __typename?: 'LeadTaskTypeListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskTypeManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTaskTypeManyResponse output */\nexport type LeadTaskTypeManyResponse = {\n __typename?: 'LeadTaskTypeManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTaskTypeOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** LeadTaskType subscription payload */\nexport type LeadTaskTypePayload = {\n __typename?: 'LeadTaskTypePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskTypeRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type LeadTaskTypeSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n};\n\n/** LeadTaskType subscription filter */\nexport type LeadTaskTypeSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTaskType relation input */\nexport type LeadTaskTypeTypeLeadTaskRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadTaskType relation input */\nexport type LeadTaskTypeTypeLeadTaskRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadTaskType relation input */\nexport type LeadTaskTypeTypeLeadTaskRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** LeadTaskType update input */\nexport type LeadTaskTypeUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** LeadTaskType update input */\nexport type LeadTaskTypeUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n typeLeadTaskRelation?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskTypeUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** LeadTask update input */\nexport type LeadTaskUpdateByFilterInput = {\n title?: Maybe>>;\n date?: Maybe>>;\n priority?: Maybe>>;\n description?: Maybe>>;\n status?: Maybe>>;\n};\n\n/** LeadTask update input */\nexport type LeadTaskUpdateInput = {\n id?: Maybe;\n title?: Maybe;\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type?: Maybe;\n status?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskUsersManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskUsersRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** LeadTask relation input */\nexport type LeadTaskUsersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LeadTypeAuto = {\n __typename?: 'LeadTypeAuto';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n alternate: Maybe;\n otherInfo: Maybe;\n currentBodilyInjuryCoverages: Maybe;\n currentPropertyDamageCoverages: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeAuto_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeAuto create input */\nexport type LeadTypeAutoCreateInput = {\n lead?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n\n/** LeadTypeAuto create many input */\nexport type LeadTypeAutoCreateManyInput = {\n lead: LeadTypeAutoLeadManyRelationInput;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n\n/** LeadTypeAuto delete input */\nexport type LeadTypeAutoDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeAutoFieldsPermissions create input */\nexport type LeadTypeAutoFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n\nexport type LeadTypeAutoFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeAutoGroupBy = {\n query: LeadTypeAutoGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeAutoGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n alternate?: Maybe>;\n otherInfo?: Maybe>;\n currentBodilyInjuryCoverages?: Maybe>;\n currentPropertyDamageCoverages?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeAutoKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeAuto relation input */\nexport type LeadTypeAutoLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeAuto relation input */\nexport type LeadTypeAutoLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeAuto relation input */\nexport type LeadTypeAutoLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeAutoListResponse output */\nexport type LeadTypeAutoListResponse = {\n __typename?: 'LeadTypeAutoListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeAutoManyResponse output */\nexport type LeadTypeAutoManyResponse = {\n __typename?: 'LeadTypeAutoManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeAutoOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n AlternateAsc = 'alternate_ASC',\n AlternateDesc = 'alternate_DESC',\n OtherInfoAsc = 'otherInfo_ASC',\n OtherInfoDesc = 'otherInfo_DESC',\n CurrentBodilyInjuryCoveragesAsc = 'currentBodilyInjuryCoverages_ASC',\n CurrentBodilyInjuryCoveragesDesc = 'currentBodilyInjuryCoverages_DESC',\n CurrentPropertyDamageCoveragesAsc = 'currentPropertyDamageCoverages_ASC',\n CurrentPropertyDamageCoveragesDesc = 'currentPropertyDamageCoverages_DESC',\n}\n\n/** LeadTypeAuto subscription payload */\nexport type LeadTypeAutoPayload = {\n __typename?: 'LeadTypeAutoPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeAutoSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeAuto subscription filter */\nexport type LeadTypeAutoSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeAuto update input */\nexport type LeadTypeAutoUpdateByFilterInput = {\n alternate?: Maybe>>;\n otherInfo?: Maybe>>;\n currentBodilyInjuryCoverages?: Maybe>>;\n currentPropertyDamageCoverages?: Maybe>>;\n};\n\n/** LeadTypeAuto update input */\nexport type LeadTypeAutoUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n alternate?: Maybe;\n otherInfo?: Maybe;\n currentBodilyInjuryCoverages?: Maybe;\n currentPropertyDamageCoverages?: Maybe;\n};\n\nexport type LeadTypeCommercialAuto = {\n __typename?: 'LeadTypeCommercialAuto';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n businessName: Maybe;\n name: Maybe;\n yearsInBusiness: Maybe;\n numberOfEmployees: Maybe;\n businessType: Maybe;\n coverageAmount: Maybe;\n payroll: Maybe;\n sales: Maybe;\n numberOfVehicles: Maybe;\n numberOfDrivers: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeCommercialAuto_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeCommercialAuto create input */\nexport type LeadTypeCommercialAutoCreateInput = {\n lead?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\n/** LeadTypeCommercialAuto create many input */\nexport type LeadTypeCommercialAutoCreateManyInput = {\n lead: LeadTypeCommercialAutoLeadManyRelationInput;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\n/** LeadTypeCommercialAuto delete input */\nexport type LeadTypeCommercialAutoDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeCommercialAutoFieldsPermissions create input */\nexport type LeadTypeCommercialAutoFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\nexport type LeadTypeCommercialAutoFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeCommercialAutoGroupBy = {\n query: LeadTypeCommercialAutoGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeCommercialAutoGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n businessName?: Maybe>;\n name?: Maybe>;\n yearsInBusiness?: Maybe>;\n numberOfEmployees?: Maybe>;\n businessType?: Maybe>;\n coverageAmount?: Maybe>;\n payroll?: Maybe>;\n sales?: Maybe>;\n numberOfVehicles?: Maybe>;\n numberOfDrivers?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeCommercialAutoKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeCommercialAuto relation input */\nexport type LeadTypeCommercialAutoLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeCommercialAuto relation input */\nexport type LeadTypeCommercialAutoLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeCommercialAuto relation input */\nexport type LeadTypeCommercialAutoLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeCommercialAutoListResponse output */\nexport type LeadTypeCommercialAutoListResponse = {\n __typename?: 'LeadTypeCommercialAutoListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeCommercialAutoManyResponse output */\nexport type LeadTypeCommercialAutoManyResponse = {\n __typename?: 'LeadTypeCommercialAutoManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeCommercialAutoOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n BusinessNameAsc = 'businessName_ASC',\n BusinessNameDesc = 'businessName_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n YearsInBusinessAsc = 'yearsInBusiness_ASC',\n YearsInBusinessDesc = 'yearsInBusiness_DESC',\n NumberOfEmployeesAsc = 'numberOfEmployees_ASC',\n NumberOfEmployeesDesc = 'numberOfEmployees_DESC',\n BusinessTypeAsc = 'businessType_ASC',\n BusinessTypeDesc = 'businessType_DESC',\n CoverageAmountAsc = 'coverageAmount_ASC',\n CoverageAmountDesc = 'coverageAmount_DESC',\n PayrollAsc = 'payroll_ASC',\n PayrollDesc = 'payroll_DESC',\n SalesAsc = 'sales_ASC',\n SalesDesc = 'sales_DESC',\n NumberOfVehiclesAsc = 'numberOfVehicles_ASC',\n NumberOfVehiclesDesc = 'numberOfVehicles_DESC',\n NumberOfDriversAsc = 'numberOfDrivers_ASC',\n NumberOfDriversDesc = 'numberOfDrivers_DESC',\n}\n\n/** LeadTypeCommercialAuto subscription payload */\nexport type LeadTypeCommercialAutoPayload = {\n __typename?: 'LeadTypeCommercialAutoPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeCommercialAutoSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeCommercialAuto subscription filter */\nexport type LeadTypeCommercialAutoSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeCommercialAuto update input */\nexport type LeadTypeCommercialAutoUpdateByFilterInput = {\n businessName?: Maybe>>;\n name?: Maybe>>;\n yearsInBusiness?: Maybe>>;\n numberOfEmployees?: Maybe>>;\n businessType?: Maybe>>;\n coverageAmount?: Maybe>>;\n payroll?: Maybe>>;\n sales?: Maybe>>;\n numberOfVehicles?: Maybe>>;\n numberOfDrivers?: Maybe>>;\n};\n\n/** LeadTypeCommercialAuto update input */\nexport type LeadTypeCommercialAutoUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n businessName?: Maybe;\n name?: Maybe;\n yearsInBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n businessType?: Maybe;\n coverageAmount?: Maybe;\n payroll?: Maybe;\n sales?: Maybe;\n numberOfVehicles?: Maybe;\n numberOfDrivers?: Maybe;\n};\n\nexport type LeadTypeEmployeeBenefit = {\n __typename?: 'LeadTypeEmployeeBenefit';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n annualPayroll: Maybe;\n natureOfBusiness: Maybe;\n numberOfEmployees: Maybe;\n companyName: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeEmployeeBenefit_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeEmployeeBenefit create input */\nexport type LeadTypeEmployeeBenefitCreateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit create many input */\nexport type LeadTypeEmployeeBenefitCreateManyInput = {\n lead: LeadTypeEmployeeBenefitLeadManyRelationInput;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit delete input */\nexport type LeadTypeEmployeeBenefitDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefitFieldsPermissions create input */\nexport type LeadTypeEmployeeBenefitFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\nexport type LeadTypeEmployeeBenefitFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeEmployeeBenefitGroupBy = {\n query: LeadTypeEmployeeBenefitGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeEmployeeBenefitGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n annualPayroll?: Maybe>;\n natureOfBusiness?: Maybe>;\n numberOfEmployees?: Maybe>;\n companyName?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeEmployeeBenefitKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit relation input */\nexport type LeadTypeEmployeeBenefitLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit relation input */\nexport type LeadTypeEmployeeBenefitLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit relation input */\nexport type LeadTypeEmployeeBenefitLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefitListResponse output */\nexport type LeadTypeEmployeeBenefitListResponse = {\n __typename?: 'LeadTypeEmployeeBenefitListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeEmployeeBenefitManyResponse output */\nexport type LeadTypeEmployeeBenefitManyResponse = {\n __typename?: 'LeadTypeEmployeeBenefitManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeEmployeeBenefitOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n AnnualPayrollAsc = 'annualPayroll_ASC',\n AnnualPayrollDesc = 'annualPayroll_DESC',\n NatureOfBusinessAsc = 'natureOfBusiness_ASC',\n NatureOfBusinessDesc = 'natureOfBusiness_DESC',\n NumberOfEmployeesAsc = 'numberOfEmployees_ASC',\n NumberOfEmployeesDesc = 'numberOfEmployees_DESC',\n CompanyNameAsc = 'companyName_ASC',\n CompanyNameDesc = 'companyName_DESC',\n}\n\n/** LeadTypeEmployeeBenefit subscription payload */\nexport type LeadTypeEmployeeBenefitPayload = {\n __typename?: 'LeadTypeEmployeeBenefitPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeEmployeeBenefitSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit subscription filter */\nexport type LeadTypeEmployeeBenefitSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeEmployeeBenefit update input */\nexport type LeadTypeEmployeeBenefitUpdateByFilterInput = {\n annualPayroll?: Maybe>>;\n natureOfBusiness?: Maybe>>;\n numberOfEmployees?: Maybe>>;\n companyName?: Maybe>>;\n};\n\n/** LeadTypeEmployeeBenefit update input */\nexport type LeadTypeEmployeeBenefitUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n};\n\nexport type LeadTypeGeneralLiability = {\n __typename?: 'LeadTypeGeneralLiability';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n natureOfBusiness: Maybe;\n companyName: Maybe;\n grossSales: Maybe;\n numberOfEmployees: Maybe;\n payroll: Maybe;\n policyExpirationDate: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeGeneralLiability_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeGeneralLiability create input */\nexport type LeadTypeGeneralLiabilityCreateInput = {\n lead?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeGeneralLiability create many input */\nexport type LeadTypeGeneralLiabilityCreateManyInput = {\n lead: LeadTypeGeneralLiabilityLeadManyRelationInput;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeGeneralLiability delete input */\nexport type LeadTypeGeneralLiabilityDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeGeneralLiabilityFieldsPermissions create input */\nexport type LeadTypeGeneralLiabilityFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\nexport type LeadTypeGeneralLiabilityFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeGeneralLiabilityGroupBy = {\n query: LeadTypeGeneralLiabilityGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeGeneralLiabilityGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n natureOfBusiness?: Maybe>;\n companyName?: Maybe>;\n grossSales?: Maybe>;\n numberOfEmployees?: Maybe>;\n payroll?: Maybe>;\n policyExpirationDate?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeGeneralLiabilityKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeGeneralLiability relation input */\nexport type LeadTypeGeneralLiabilityLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeGeneralLiability relation input */\nexport type LeadTypeGeneralLiabilityLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeGeneralLiability relation input */\nexport type LeadTypeGeneralLiabilityLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeGeneralLiabilityListResponse output */\nexport type LeadTypeGeneralLiabilityListResponse = {\n __typename?: 'LeadTypeGeneralLiabilityListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeGeneralLiabilityManyResponse output */\nexport type LeadTypeGeneralLiabilityManyResponse = {\n __typename?: 'LeadTypeGeneralLiabilityManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeGeneralLiabilityOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NatureOfBusinessAsc = 'natureOfBusiness_ASC',\n NatureOfBusinessDesc = 'natureOfBusiness_DESC',\n CompanyNameAsc = 'companyName_ASC',\n CompanyNameDesc = 'companyName_DESC',\n GrossSalesAsc = 'grossSales_ASC',\n GrossSalesDesc = 'grossSales_DESC',\n NumberOfEmployeesAsc = 'numberOfEmployees_ASC',\n NumberOfEmployeesDesc = 'numberOfEmployees_DESC',\n PayrollAsc = 'payroll_ASC',\n PayrollDesc = 'payroll_DESC',\n PolicyExpirationDateAsc = 'policyExpirationDate_ASC',\n PolicyExpirationDateDesc = 'policyExpirationDate_DESC',\n}\n\n/** LeadTypeGeneralLiability subscription payload */\nexport type LeadTypeGeneralLiabilityPayload = {\n __typename?: 'LeadTypeGeneralLiabilityPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeGeneralLiabilitySort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeGeneralLiability subscription filter */\nexport type LeadTypeGeneralLiabilitySubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeGeneralLiability update input */\nexport type LeadTypeGeneralLiabilityUpdateByFilterInput = {\n natureOfBusiness?: Maybe>>;\n companyName?: Maybe>>;\n grossSales?: Maybe>>;\n numberOfEmployees?: Maybe>>;\n payroll?: Maybe>>;\n policyExpirationDate?: Maybe>>;\n};\n\n/** LeadTypeGeneralLiability update input */\nexport type LeadTypeGeneralLiabilityUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n natureOfBusiness?: Maybe;\n companyName?: Maybe;\n grossSales?: Maybe;\n numberOfEmployees?: Maybe;\n payroll?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\nexport type LeadTypeHome = {\n __typename?: 'LeadTypeHome';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n bestTimeToContact: Maybe;\n dob: Maybe;\n newPurchase: Maybe;\n homeValue: Maybe;\n coverageNeededOnHouse: Maybe;\n coverageNeededOnContents: Maybe;\n requestedLiability: Maybe;\n requestedDeductible: Maybe;\n credit: Maybe;\n numberOfClaims: Maybe;\n currentlyInsured: Maybe;\n currentInsuranceCompany: Maybe;\n servicePanelType: Maybe;\n wiringType: Maybe;\n floodPain: Maybe;\n ageOfRoof: Maybe;\n businessConductedOnPremises: Maybe;\n heatType: Maybe;\n fireplaces: Maybe;\n garageType: Maybe;\n porches: Maybe;\n constructionType: Maybe;\n foundationType: Maybe;\n fireStationProximity: Maybe;\n fireHydrantProximity: Maybe;\n homeUpgrades: Maybe;\n homeUpgradesDescribed: Maybe;\n dwellingType: Maybe;\n occupancyStatus: Maybe;\n dogType: Maybe;\n squareFootage: Maybe;\n stories: Maybe;\n bedrooms: Maybe;\n bathrooms: Maybe;\n yearBuilt: Maybe;\n timeAtCurrentResidence: Maybe;\n timeAtPreviousResidence: Maybe;\n otherInfo: Maybe;\n sauna: Maybe;\n woodBurningStove: Maybe;\n smokerInHousehold: Maybe;\n sumpPump: Maybe;\n copperWaterPipes: Maybe;\n brushHazardWithin500Feet: Maybe;\n comments: Maybe;\n burglarAlarm: Maybe;\n deadBolts: Maybe;\n fireAlarm: Maybe;\n fireExtinguishers: Maybe;\n mannedSecurityStation: Maybe;\n monitoredBurglarAlarm: Maybe;\n smokeDetectors: Maybe;\n tennisCourts: Maybe;\n centralHeatingAir: Maybe;\n cathedralVaultedCeilings: Maybe;\n hardwoodFloors: Maybe;\n enclosedPorchPatio: Maybe;\n swimmingPool: Maybe;\n fencedInPool: Maybe;\n hotTub: Maybe;\n indoorSprinklers: Maybe;\n claims: Maybe;\n frequencyOfPayment: Maybe;\n premium: Maybe;\n insuredSince: Maybe;\n policyExpiration: Maybe;\n continuouslyInsured: Maybe;\n timeWithCurrentCompany: Maybe;\n addressToBeInsured: Maybe;\n previousAddress: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeHome_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeHome create input */\nexport type LeadTypeHomeCreateInput = {\n lead?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\n/** LeadTypeHome create many input */\nexport type LeadTypeHomeCreateManyInput = {\n lead: LeadTypeHomeLeadManyRelationInput;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\n/** LeadTypeHome delete input */\nexport type LeadTypeHomeDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeHomeFieldsPermissions create input */\nexport type LeadTypeHomeFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\nexport type LeadTypeHomeFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeHomeGroupBy = {\n query: LeadTypeHomeGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeHomeGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n bestTimeToContact?: Maybe>;\n dob?: Maybe>;\n newPurchase?: Maybe>;\n homeValue?: Maybe>;\n coverageNeededOnHouse?: Maybe>;\n coverageNeededOnContents?: Maybe>;\n requestedLiability?: Maybe>;\n requestedDeductible?: Maybe>;\n credit?: Maybe>;\n numberOfClaims?: Maybe>;\n currentlyInsured?: Maybe>;\n currentInsuranceCompany?: Maybe>;\n servicePanelType?: Maybe>;\n wiringType?: Maybe>;\n floodPain?: Maybe>;\n ageOfRoof?: Maybe>;\n businessConductedOnPremises?: Maybe>;\n heatType?: Maybe>;\n fireplaces?: Maybe>;\n garageType?: Maybe>;\n porches?: Maybe>;\n constructionType?: Maybe>;\n foundationType?: Maybe>;\n fireStationProximity?: Maybe>;\n fireHydrantProximity?: Maybe>;\n homeUpgrades?: Maybe>;\n homeUpgradesDescribed?: Maybe>;\n dwellingType?: Maybe>;\n occupancyStatus?: Maybe>;\n dogType?: Maybe>;\n squareFootage?: Maybe>;\n stories?: Maybe>;\n bedrooms?: Maybe>;\n bathrooms?: Maybe>;\n yearBuilt?: Maybe>;\n timeAtCurrentResidence?: Maybe>;\n timeAtPreviousResidence?: Maybe>;\n otherInfo?: Maybe>;\n sauna?: Maybe>;\n woodBurningStove?: Maybe>;\n smokerInHousehold?: Maybe>;\n sumpPump?: Maybe>;\n copperWaterPipes?: Maybe>;\n brushHazardWithin500Feet?: Maybe>;\n comments?: Maybe>;\n burglarAlarm?: Maybe>;\n deadBolts?: Maybe>;\n fireAlarm?: Maybe>;\n fireExtinguishers?: Maybe>;\n mannedSecurityStation?: Maybe>;\n monitoredBurglarAlarm?: Maybe>;\n smokeDetectors?: Maybe>;\n tennisCourts?: Maybe>;\n centralHeatingAir?: Maybe>;\n cathedralVaultedCeilings?: Maybe>;\n hardwoodFloors?: Maybe>;\n enclosedPorchPatio?: Maybe>;\n swimmingPool?: Maybe>;\n fencedInPool?: Maybe>;\n hotTub?: Maybe>;\n indoorSprinklers?: Maybe>;\n claims?: Maybe>;\n frequencyOfPayment?: Maybe>;\n premium?: Maybe>;\n insuredSince?: Maybe>;\n policyExpiration?: Maybe>;\n continuouslyInsured?: Maybe>;\n timeWithCurrentCompany?: Maybe>;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeHomeKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeHome relation input */\nexport type LeadTypeHomeLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeHome relation input */\nexport type LeadTypeHomeLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeHome relation input */\nexport type LeadTypeHomeLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeHomeListResponse output */\nexport type LeadTypeHomeListResponse = {\n __typename?: 'LeadTypeHomeListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeHomeManyResponse output */\nexport type LeadTypeHomeManyResponse = {\n __typename?: 'LeadTypeHomeManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeHomeOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n BestTimeToContactAsc = 'bestTimeToContact_ASC',\n BestTimeToContactDesc = 'bestTimeToContact_DESC',\n DobAsc = 'dob_ASC',\n DobDesc = 'dob_DESC',\n NewPurchaseAsc = 'newPurchase_ASC',\n NewPurchaseDesc = 'newPurchase_DESC',\n HomeValueAsc = 'homeValue_ASC',\n HomeValueDesc = 'homeValue_DESC',\n CoverageNeededOnHouseAsc = 'coverageNeededOnHouse_ASC',\n CoverageNeededOnHouseDesc = 'coverageNeededOnHouse_DESC',\n CoverageNeededOnContentsAsc = 'coverageNeededOnContents_ASC',\n CoverageNeededOnContentsDesc = 'coverageNeededOnContents_DESC',\n RequestedLiabilityAsc = 'requestedLiability_ASC',\n RequestedLiabilityDesc = 'requestedLiability_DESC',\n RequestedDeductibleAsc = 'requestedDeductible_ASC',\n RequestedDeductibleDesc = 'requestedDeductible_DESC',\n CreditAsc = 'credit_ASC',\n CreditDesc = 'credit_DESC',\n NumberOfClaimsAsc = 'numberOfClaims_ASC',\n NumberOfClaimsDesc = 'numberOfClaims_DESC',\n CurrentlyInsuredAsc = 'currentlyInsured_ASC',\n CurrentlyInsuredDesc = 'currentlyInsured_DESC',\n CurrentInsuranceCompanyAsc = 'currentInsuranceCompany_ASC',\n CurrentInsuranceCompanyDesc = 'currentInsuranceCompany_DESC',\n ServicePanelTypeAsc = 'servicePanelType_ASC',\n ServicePanelTypeDesc = 'servicePanelType_DESC',\n WiringTypeAsc = 'wiringType_ASC',\n WiringTypeDesc = 'wiringType_DESC',\n FloodPainAsc = 'floodPain_ASC',\n FloodPainDesc = 'floodPain_DESC',\n AgeOfRoofAsc = 'ageOfRoof_ASC',\n AgeOfRoofDesc = 'ageOfRoof_DESC',\n BusinessConductedOnPremisesAsc = 'businessConductedOnPremises_ASC',\n BusinessConductedOnPremisesDesc = 'businessConductedOnPremises_DESC',\n HeatTypeAsc = 'heatType_ASC',\n HeatTypeDesc = 'heatType_DESC',\n FireplacesAsc = 'fireplaces_ASC',\n FireplacesDesc = 'fireplaces_DESC',\n GarageTypeAsc = 'garageType_ASC',\n GarageTypeDesc = 'garageType_DESC',\n PorchesAsc = 'porches_ASC',\n PorchesDesc = 'porches_DESC',\n ConstructionTypeAsc = 'constructionType_ASC',\n ConstructionTypeDesc = 'constructionType_DESC',\n FoundationTypeAsc = 'foundationType_ASC',\n FoundationTypeDesc = 'foundationType_DESC',\n FireStationProximityAsc = 'fireStationProximity_ASC',\n FireStationProximityDesc = 'fireStationProximity_DESC',\n FireHydrantProximityAsc = 'fireHydrantProximity_ASC',\n FireHydrantProximityDesc = 'fireHydrantProximity_DESC',\n HomeUpgradesAsc = 'homeUpgrades_ASC',\n HomeUpgradesDesc = 'homeUpgrades_DESC',\n HomeUpgradesDescribedAsc = 'homeUpgradesDescribed_ASC',\n HomeUpgradesDescribedDesc = 'homeUpgradesDescribed_DESC',\n DwellingTypeAsc = 'dwellingType_ASC',\n DwellingTypeDesc = 'dwellingType_DESC',\n OccupancyStatusAsc = 'occupancyStatus_ASC',\n OccupancyStatusDesc = 'occupancyStatus_DESC',\n DogTypeAsc = 'dogType_ASC',\n DogTypeDesc = 'dogType_DESC',\n SquareFootageAsc = 'squareFootage_ASC',\n SquareFootageDesc = 'squareFootage_DESC',\n StoriesAsc = 'stories_ASC',\n StoriesDesc = 'stories_DESC',\n BedroomsAsc = 'bedrooms_ASC',\n BedroomsDesc = 'bedrooms_DESC',\n BathroomsAsc = 'bathrooms_ASC',\n BathroomsDesc = 'bathrooms_DESC',\n YearBuiltAsc = 'yearBuilt_ASC',\n YearBuiltDesc = 'yearBuilt_DESC',\n TimeAtCurrentResidenceAsc = 'timeAtCurrentResidence_ASC',\n TimeAtCurrentResidenceDesc = 'timeAtCurrentResidence_DESC',\n TimeAtPreviousResidenceAsc = 'timeAtPreviousResidence_ASC',\n TimeAtPreviousResidenceDesc = 'timeAtPreviousResidence_DESC',\n OtherInfoAsc = 'otherInfo_ASC',\n OtherInfoDesc = 'otherInfo_DESC',\n SaunaAsc = 'sauna_ASC',\n SaunaDesc = 'sauna_DESC',\n WoodBurningStoveAsc = 'woodBurningStove_ASC',\n WoodBurningStoveDesc = 'woodBurningStove_DESC',\n SmokerInHouseholdAsc = 'smokerInHousehold_ASC',\n SmokerInHouseholdDesc = 'smokerInHousehold_DESC',\n SumpPumpAsc = 'sumpPump_ASC',\n SumpPumpDesc = 'sumpPump_DESC',\n CopperWaterPipesAsc = 'copperWaterPipes_ASC',\n CopperWaterPipesDesc = 'copperWaterPipes_DESC',\n BrushHazardWithin500FeetAsc = 'brushHazardWithin500Feet_ASC',\n BrushHazardWithin500FeetDesc = 'brushHazardWithin500Feet_DESC',\n CommentsAsc = 'comments_ASC',\n CommentsDesc = 'comments_DESC',\n BurglarAlarmAsc = 'burglarAlarm_ASC',\n BurglarAlarmDesc = 'burglarAlarm_DESC',\n DeadBoltsAsc = 'deadBolts_ASC',\n DeadBoltsDesc = 'deadBolts_DESC',\n FireAlarmAsc = 'fireAlarm_ASC',\n FireAlarmDesc = 'fireAlarm_DESC',\n FireExtinguishersAsc = 'fireExtinguishers_ASC',\n FireExtinguishersDesc = 'fireExtinguishers_DESC',\n MannedSecurityStationAsc = 'mannedSecurityStation_ASC',\n MannedSecurityStationDesc = 'mannedSecurityStation_DESC',\n MonitoredBurglarAlarmAsc = 'monitoredBurglarAlarm_ASC',\n MonitoredBurglarAlarmDesc = 'monitoredBurglarAlarm_DESC',\n SmokeDetectorsAsc = 'smokeDetectors_ASC',\n SmokeDetectorsDesc = 'smokeDetectors_DESC',\n TennisCourtsAsc = 'tennisCourts_ASC',\n TennisCourtsDesc = 'tennisCourts_DESC',\n CentralHeatingAirAsc = 'centralHeatingAir_ASC',\n CentralHeatingAirDesc = 'centralHeatingAir_DESC',\n CathedralVaultedCeilingsAsc = 'cathedralVaultedCeilings_ASC',\n CathedralVaultedCeilingsDesc = 'cathedralVaultedCeilings_DESC',\n HardwoodFloorsAsc = 'hardwoodFloors_ASC',\n HardwoodFloorsDesc = 'hardwoodFloors_DESC',\n EnclosedPorchPatioAsc = 'enclosedPorchPatio_ASC',\n EnclosedPorchPatioDesc = 'enclosedPorchPatio_DESC',\n SwimmingPoolAsc = 'swimmingPool_ASC',\n SwimmingPoolDesc = 'swimmingPool_DESC',\n FencedInPoolAsc = 'fencedInPool_ASC',\n FencedInPoolDesc = 'fencedInPool_DESC',\n HotTubAsc = 'hotTub_ASC',\n HotTubDesc = 'hotTub_DESC',\n IndoorSprinklersAsc = 'indoorSprinklers_ASC',\n IndoorSprinklersDesc = 'indoorSprinklers_DESC',\n ClaimsAsc = 'claims_ASC',\n ClaimsDesc = 'claims_DESC',\n FrequencyOfPaymentAsc = 'frequencyOfPayment_ASC',\n FrequencyOfPaymentDesc = 'frequencyOfPayment_DESC',\n PremiumAsc = 'premium_ASC',\n PremiumDesc = 'premium_DESC',\n InsuredSinceAsc = 'insuredSince_ASC',\n InsuredSinceDesc = 'insuredSince_DESC',\n PolicyExpirationAsc = 'policyExpiration_ASC',\n PolicyExpirationDesc = 'policyExpiration_DESC',\n ContinuouslyInsuredAsc = 'continuouslyInsured_ASC',\n ContinuouslyInsuredDesc = 'continuouslyInsured_DESC',\n TimeWithCurrentCompanyAsc = 'timeWithCurrentCompany_ASC',\n TimeWithCurrentCompanyDesc = 'timeWithCurrentCompany_DESC',\n AddressToBeInsuredCountryAsc = 'addressToBeInsured_country_ASC',\n AddressToBeInsuredCountryDesc = 'addressToBeInsured_country_DESC',\n AddressToBeInsuredStreet1Asc = 'addressToBeInsured_street1_ASC',\n AddressToBeInsuredStreet1Desc = 'addressToBeInsured_street1_DESC',\n AddressToBeInsuredStreet2Asc = 'addressToBeInsured_street2_ASC',\n AddressToBeInsuredStreet2Desc = 'addressToBeInsured_street2_DESC',\n AddressToBeInsuredZipAsc = 'addressToBeInsured_zip_ASC',\n AddressToBeInsuredZipDesc = 'addressToBeInsured_zip_DESC',\n AddressToBeInsuredCityAsc = 'addressToBeInsured_city_ASC',\n AddressToBeInsuredCityDesc = 'addressToBeInsured_city_DESC',\n AddressToBeInsuredStateAsc = 'addressToBeInsured_state_ASC',\n AddressToBeInsuredStateDesc = 'addressToBeInsured_state_DESC',\n PreviousAddressCountryAsc = 'previousAddress_country_ASC',\n PreviousAddressCountryDesc = 'previousAddress_country_DESC',\n PreviousAddressStreet1Asc = 'previousAddress_street1_ASC',\n PreviousAddressStreet1Desc = 'previousAddress_street1_DESC',\n PreviousAddressStreet2Asc = 'previousAddress_street2_ASC',\n PreviousAddressStreet2Desc = 'previousAddress_street2_DESC',\n PreviousAddressZipAsc = 'previousAddress_zip_ASC',\n PreviousAddressZipDesc = 'previousAddress_zip_DESC',\n PreviousAddressCityAsc = 'previousAddress_city_ASC',\n PreviousAddressCityDesc = 'previousAddress_city_DESC',\n PreviousAddressStateAsc = 'previousAddress_state_ASC',\n PreviousAddressStateDesc = 'previousAddress_state_DESC',\n}\n\n/** LeadTypeHome subscription payload */\nexport type LeadTypeHomePayload = {\n __typename?: 'LeadTypeHomePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeHomeSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeHome subscription filter */\nexport type LeadTypeHomeSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeHome update input */\nexport type LeadTypeHomeUpdateByFilterInput = {\n bestTimeToContact?: Maybe>>;\n dob?: Maybe>>;\n newPurchase?: Maybe>>;\n homeValue?: Maybe>>;\n coverageNeededOnHouse?: Maybe>>;\n coverageNeededOnContents?: Maybe>>;\n requestedLiability?: Maybe>>;\n requestedDeductible?: Maybe>>;\n credit?: Maybe>>;\n numberOfClaims?: Maybe>>;\n currentlyInsured?: Maybe>>;\n currentInsuranceCompany?: Maybe>>;\n servicePanelType?: Maybe>>;\n wiringType?: Maybe>>;\n floodPain?: Maybe>>;\n ageOfRoof?: Maybe>>;\n businessConductedOnPremises?: Maybe>>;\n heatType?: Maybe>>;\n fireplaces?: Maybe>>;\n garageType?: Maybe>>;\n porches?: Maybe>>;\n constructionType?: Maybe>>;\n foundationType?: Maybe>>;\n fireStationProximity?: Maybe>>;\n fireHydrantProximity?: Maybe>>;\n homeUpgrades?: Maybe>>;\n homeUpgradesDescribed?: Maybe>>;\n dwellingType?: Maybe>>;\n occupancyStatus?: Maybe>>;\n dogType?: Maybe>>;\n squareFootage?: Maybe>>;\n stories?: Maybe>>;\n bedrooms?: Maybe>>;\n bathrooms?: Maybe>>;\n yearBuilt?: Maybe>>;\n timeAtCurrentResidence?: Maybe>>;\n timeAtPreviousResidence?: Maybe>>;\n otherInfo?: Maybe>>;\n sauna?: Maybe>>;\n woodBurningStove?: Maybe>>;\n smokerInHousehold?: Maybe>>;\n sumpPump?: Maybe>>;\n copperWaterPipes?: Maybe>>;\n brushHazardWithin500Feet?: Maybe>>;\n comments?: Maybe>>;\n burglarAlarm?: Maybe>>;\n deadBolts?: Maybe>>;\n fireAlarm?: Maybe>>;\n fireExtinguishers?: Maybe>>;\n mannedSecurityStation?: Maybe>>;\n monitoredBurglarAlarm?: Maybe>>;\n smokeDetectors?: Maybe>>;\n tennisCourts?: Maybe>>;\n centralHeatingAir?: Maybe>>;\n cathedralVaultedCeilings?: Maybe>>;\n hardwoodFloors?: Maybe>>;\n enclosedPorchPatio?: Maybe>>;\n swimmingPool?: Maybe>>;\n fencedInPool?: Maybe>>;\n hotTub?: Maybe>>;\n indoorSprinklers?: Maybe>>;\n claims?: Maybe>>;\n frequencyOfPayment?: Maybe>>;\n premium?: Maybe>>;\n insuredSince?: Maybe>>;\n policyExpiration?: Maybe>>;\n continuouslyInsured?: Maybe>>;\n timeWithCurrentCompany?: Maybe>>;\n};\n\n/** LeadTypeHome update input */\nexport type LeadTypeHomeUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n bestTimeToContact?: Maybe;\n dob?: Maybe;\n newPurchase?: Maybe;\n homeValue?: Maybe;\n coverageNeededOnHouse?: Maybe;\n coverageNeededOnContents?: Maybe;\n requestedLiability?: Maybe;\n requestedDeductible?: Maybe;\n credit?: Maybe;\n numberOfClaims?: Maybe;\n currentlyInsured?: Maybe;\n currentInsuranceCompany?: Maybe;\n servicePanelType?: Maybe;\n wiringType?: Maybe;\n floodPain?: Maybe;\n ageOfRoof?: Maybe;\n businessConductedOnPremises?: Maybe;\n heatType?: Maybe;\n fireplaces?: Maybe;\n garageType?: Maybe;\n porches?: Maybe;\n constructionType?: Maybe;\n foundationType?: Maybe;\n fireStationProximity?: Maybe;\n fireHydrantProximity?: Maybe;\n homeUpgrades?: Maybe;\n homeUpgradesDescribed?: Maybe;\n dwellingType?: Maybe;\n occupancyStatus?: Maybe;\n dogType?: Maybe;\n squareFootage?: Maybe;\n stories?: Maybe;\n bedrooms?: Maybe;\n bathrooms?: Maybe;\n yearBuilt?: Maybe;\n timeAtCurrentResidence?: Maybe;\n timeAtPreviousResidence?: Maybe;\n otherInfo?: Maybe;\n sauna?: Maybe;\n woodBurningStove?: Maybe;\n smokerInHousehold?: Maybe;\n sumpPump?: Maybe;\n copperWaterPipes?: Maybe;\n brushHazardWithin500Feet?: Maybe;\n comments?: Maybe;\n burglarAlarm?: Maybe;\n deadBolts?: Maybe;\n fireAlarm?: Maybe;\n fireExtinguishers?: Maybe;\n mannedSecurityStation?: Maybe;\n monitoredBurglarAlarm?: Maybe;\n smokeDetectors?: Maybe;\n tennisCourts?: Maybe;\n centralHeatingAir?: Maybe;\n cathedralVaultedCeilings?: Maybe;\n hardwoodFloors?: Maybe;\n enclosedPorchPatio?: Maybe;\n swimmingPool?: Maybe;\n fencedInPool?: Maybe;\n hotTub?: Maybe;\n indoorSprinklers?: Maybe;\n claims?: Maybe;\n frequencyOfPayment?: Maybe;\n premium?: Maybe;\n insuredSince?: Maybe;\n policyExpiration?: Maybe;\n continuouslyInsured?: Maybe;\n timeWithCurrentCompany?: Maybe;\n addressToBeInsured?: Maybe;\n previousAddress?: Maybe;\n};\n\nexport type LeadTypeLife = {\n __typename?: 'LeadTypeLife';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n lifeInsuranceInformation: Maybe;\n birthMonth: Maybe;\n birthDay: Maybe;\n birthYear: Maybe;\n age: Maybe;\n heightFeet: Maybe;\n heightInches: Maybe;\n weight: Maybe;\n faceAmount: Maybe;\n policyType: Maybe;\n term: Maybe;\n smoke: Maybe;\n knownMedicalCondition: Maybe;\n telemarketerName: Maybe;\n callbackTime: Maybe;\n beneficiary: Maybe;\n spouse: Maybe;\n spouseAge: Maybe;\n bankAccount: Maybe;\n code: Maybe;\n driveRecording: Maybe;\n dateGenerated: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeLife_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeLife create input */\nexport type LeadTypeLifeCreateInput = {\n lead?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\n/** LeadTypeLife create many input */\nexport type LeadTypeLifeCreateManyInput = {\n lead: LeadTypeLifeLeadManyRelationInput;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\n/** LeadTypeLife delete input */\nexport type LeadTypeLifeDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeLifeFieldsPermissions create input */\nexport type LeadTypeLifeFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\nexport type LeadTypeLifeFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeLifeGroupBy = {\n query: LeadTypeLifeGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeLifeGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n lifeInsuranceInformation?: Maybe>;\n birthMonth?: Maybe>;\n birthDay?: Maybe>;\n birthYear?: Maybe>;\n age?: Maybe>;\n heightFeet?: Maybe>;\n heightInches?: Maybe>;\n weight?: Maybe>;\n faceAmount?: Maybe>;\n policyType?: Maybe>;\n term?: Maybe>;\n smoke?: Maybe>;\n knownMedicalCondition?: Maybe>;\n telemarketerName?: Maybe>;\n callbackTime?: Maybe>;\n beneficiary?: Maybe>;\n spouse?: Maybe>;\n spouseAge?: Maybe>;\n bankAccount?: Maybe>;\n code?: Maybe>;\n driveRecording?: Maybe>;\n dateGenerated?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeLifeKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeLife relation input */\nexport type LeadTypeLifeLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeLife relation input */\nexport type LeadTypeLifeLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeLife relation input */\nexport type LeadTypeLifeLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeLifeListResponse output */\nexport type LeadTypeLifeListResponse = {\n __typename?: 'LeadTypeLifeListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeLifeManyResponse output */\nexport type LeadTypeLifeManyResponse = {\n __typename?: 'LeadTypeLifeManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeLifeOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n LifeInsuranceInformationAsc = 'lifeInsuranceInformation_ASC',\n LifeInsuranceInformationDesc = 'lifeInsuranceInformation_DESC',\n BirthMonthAsc = 'birthMonth_ASC',\n BirthMonthDesc = 'birthMonth_DESC',\n BirthDayAsc = 'birthDay_ASC',\n BirthDayDesc = 'birthDay_DESC',\n BirthYearAsc = 'birthYear_ASC',\n BirthYearDesc = 'birthYear_DESC',\n AgeAsc = 'age_ASC',\n AgeDesc = 'age_DESC',\n HeightFeetAsc = 'heightFeet_ASC',\n HeightFeetDesc = 'heightFeet_DESC',\n HeightInchesAsc = 'heightInches_ASC',\n HeightInchesDesc = 'heightInches_DESC',\n WeightAsc = 'weight_ASC',\n WeightDesc = 'weight_DESC',\n FaceAmountAsc = 'faceAmount_ASC',\n FaceAmountDesc = 'faceAmount_DESC',\n PolicyTypeAsc = 'policyType_ASC',\n PolicyTypeDesc = 'policyType_DESC',\n TermAsc = 'term_ASC',\n TermDesc = 'term_DESC',\n SmokeAsc = 'smoke_ASC',\n SmokeDesc = 'smoke_DESC',\n KnownMedicalConditionAsc = 'knownMedicalCondition_ASC',\n KnownMedicalConditionDesc = 'knownMedicalCondition_DESC',\n TelemarketerNameAsc = 'telemarketerName_ASC',\n TelemarketerNameDesc = 'telemarketerName_DESC',\n CallbackTimeAsc = 'callbackTime_ASC',\n CallbackTimeDesc = 'callbackTime_DESC',\n BeneficiaryAsc = 'beneficiary_ASC',\n BeneficiaryDesc = 'beneficiary_DESC',\n SpouseAsc = 'spouse_ASC',\n SpouseDesc = 'spouse_DESC',\n SpouseAgeAsc = 'spouseAge_ASC',\n SpouseAgeDesc = 'spouseAge_DESC',\n BankAccountAsc = 'bankAccount_ASC',\n BankAccountDesc = 'bankAccount_DESC',\n CodeAsc = 'code_ASC',\n CodeDesc = 'code_DESC',\n DriveRecordingAsc = 'driveRecording_ASC',\n DriveRecordingDesc = 'driveRecording_DESC',\n DateGeneratedAsc = 'dateGenerated_ASC',\n DateGeneratedDesc = 'dateGenerated_DESC',\n}\n\n/** LeadTypeLife subscription payload */\nexport type LeadTypeLifePayload = {\n __typename?: 'LeadTypeLifePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeLifeSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeLife subscription filter */\nexport type LeadTypeLifeSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeLife update input */\nexport type LeadTypeLifeUpdateByFilterInput = {\n lifeInsuranceInformation?: Maybe>>;\n birthMonth?: Maybe>>;\n birthDay?: Maybe>>;\n birthYear?: Maybe>>;\n age?: Maybe>>;\n heightFeet?: Maybe>>;\n heightInches?: Maybe>>;\n weight?: Maybe>>;\n faceAmount?: Maybe>>;\n policyType?: Maybe>>;\n term?: Maybe>>;\n smoke?: Maybe>>;\n knownMedicalCondition?: Maybe>>;\n telemarketerName?: Maybe>>;\n callbackTime?: Maybe>>;\n beneficiary?: Maybe>>;\n spouse?: Maybe>>;\n spouseAge?: Maybe>>;\n bankAccount?: Maybe>>;\n code?: Maybe>>;\n driveRecording?: Maybe>>;\n dateGenerated?: Maybe>>;\n};\n\n/** LeadTypeLife update input */\nexport type LeadTypeLifeUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n lifeInsuranceInformation?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n telemarketerName?: Maybe;\n callbackTime?: Maybe;\n beneficiary?: Maybe;\n spouse?: Maybe;\n spouseAge?: Maybe;\n bankAccount?: Maybe;\n code?: Maybe;\n driveRecording?: Maybe;\n dateGenerated?: Maybe;\n};\n\nexport type LeadTypeWorkersCompensation = {\n __typename?: 'LeadTypeWorkersCompensation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n lead: Maybe;\n annualPayroll: Maybe;\n natureOfBusiness: Maybe;\n numberOfEmployees: Maybe;\n companyName: Maybe;\n policyExpirationDate: Maybe;\n _description: Maybe;\n};\n\nexport type LeadTypeWorkersCompensation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LeadTypeWorkersCompensation create input */\nexport type LeadTypeWorkersCompensationCreateInput = {\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation create many input */\nexport type LeadTypeWorkersCompensationCreateManyInput = {\n lead: LeadTypeWorkersCompensationLeadManyRelationInput;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation delete input */\nexport type LeadTypeWorkersCompensationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LeadTypeWorkersCompensationFieldsPermissions create input */\nexport type LeadTypeWorkersCompensationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\nexport type LeadTypeWorkersCompensationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LeadTypeWorkersCompensationGroupBy = {\n query: LeadTypeWorkersCompensationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LeadTypeWorkersCompensationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n annualPayroll?: Maybe>;\n natureOfBusiness?: Maybe>;\n numberOfEmployees?: Maybe>;\n companyName?: Maybe>;\n policyExpirationDate?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LeadTypeWorkersCompensationKeyFilter = {\n id?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation relation input */\nexport type LeadTypeWorkersCompensationLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation relation input */\nexport type LeadTypeWorkersCompensationLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation relation input */\nexport type LeadTypeWorkersCompensationLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** LeadTypeWorkersCompensationListResponse output */\nexport type LeadTypeWorkersCompensationListResponse = {\n __typename?: 'LeadTypeWorkersCompensationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LeadTypeWorkersCompensationManyResponse output */\nexport type LeadTypeWorkersCompensationManyResponse = {\n __typename?: 'LeadTypeWorkersCompensationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LeadTypeWorkersCompensationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n AnnualPayrollAsc = 'annualPayroll_ASC',\n AnnualPayrollDesc = 'annualPayroll_DESC',\n NatureOfBusinessAsc = 'natureOfBusiness_ASC',\n NatureOfBusinessDesc = 'natureOfBusiness_DESC',\n NumberOfEmployeesAsc = 'numberOfEmployees_ASC',\n NumberOfEmployeesDesc = 'numberOfEmployees_DESC',\n CompanyNameAsc = 'companyName_ASC',\n CompanyNameDesc = 'companyName_DESC',\n PolicyExpirationDateAsc = 'policyExpirationDate_ASC',\n PolicyExpirationDateDesc = 'policyExpirationDate_DESC',\n}\n\n/** LeadTypeWorkersCompensation subscription payload */\nexport type LeadTypeWorkersCompensationPayload = {\n __typename?: 'LeadTypeWorkersCompensationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LeadTypeWorkersCompensationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation subscription filter */\nexport type LeadTypeWorkersCompensationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LeadTypeWorkersCompensation update input */\nexport type LeadTypeWorkersCompensationUpdateByFilterInput = {\n annualPayroll?: Maybe>>;\n natureOfBusiness?: Maybe>>;\n numberOfEmployees?: Maybe>>;\n companyName?: Maybe>>;\n policyExpirationDate?: Maybe>>;\n};\n\n/** LeadTypeWorkersCompensation update input */\nexport type LeadTypeWorkersCompensationUpdateInput = {\n id?: Maybe;\n lead?: Maybe;\n annualPayroll?: Maybe;\n natureOfBusiness?: Maybe;\n numberOfEmployees?: Maybe;\n companyName?: Maybe;\n policyExpirationDate?: Maybe;\n};\n\n/** Lead update input */\nexport type LeadUpdateByFilterInput = {\n firstName?: Maybe>>;\n middleName?: Maybe>>;\n lastName?: Maybe>>;\n address?: Maybe>>;\n gender?: Maybe>>;\n code?: Maybe>>;\n phones?: Maybe>>;\n status?: Maybe>>;\n type?: Maybe>>;\n priority?: Maybe>>;\n email?: Maybe>>;\n birthMonth?: Maybe>>;\n birthDay?: Maybe>>;\n birthYear?: Maybe>>;\n creditScore?: Maybe>>;\n ifsScore?: Maybe>>;\n stages?: Maybe>>;\n amount?: Maybe>>;\n callingDelay?: Maybe>>;\n creationDate?: Maybe>>;\n importedLeadId?: Maybe>>;\n imported?: Maybe>>;\n lastHistoryActionData?: Maybe>>;\n lastHistoryActionType?: Maybe>>;\n};\n\n/** Lead update input */\nexport type LeadUpdateInput = {\n id?: Maybe;\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead relation input */\nexport type LeadUsersManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadUsersRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadUsersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadWorkflowEmailOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Lead relation input */\nexport type LeadWorkflowEmailOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Lead relation input */\nexport type LeadWorkflowEmailOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type LifeInsurance = {\n __typename?: 'LifeInsurance';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n information: Maybe;\n birth: Maybe;\n age: Maybe;\n heightFeet: Maybe;\n heightInches: Maybe;\n weight: Maybe;\n faceAmount: Maybe;\n policyType: Maybe;\n term: Maybe;\n smoke: Maybe;\n knownMedicalCondition: Maybe;\n _description: Maybe;\n};\n\nexport type LifeInsurance_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n information?: Maybe;\n birth?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** LifeInsurance create input */\nexport type LifeInsuranceCreateInput = {\n information?: Maybe;\n birth: Scalars['Date'];\n age: Scalars['Int'];\n heightFeet: Scalars['Int'];\n heightInches: Scalars['Int'];\n weight: Scalars['Int'];\n faceAmount: Scalars['Int'];\n policyType: Scalars['String'];\n term: Scalars['Int'];\n smoke: Scalars['Boolean'];\n knownMedicalCondition: Scalars['Boolean'];\n};\n\n/** LifeInsurance create many input */\nexport type LifeInsuranceCreateManyInput = {\n information?: Maybe;\n birth: Scalars['Date'];\n age: Scalars['Int'];\n heightFeet: Scalars['Int'];\n heightInches: Scalars['Int'];\n weight: Scalars['Int'];\n faceAmount: Scalars['Int'];\n policyType: Scalars['String'];\n term: Scalars['Int'];\n smoke: Scalars['Boolean'];\n knownMedicalCondition: Scalars['Boolean'];\n};\n\n/** LifeInsurance delete input */\nexport type LifeInsuranceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** LifeInsuranceFieldsPermissions create input */\nexport type LifeInsuranceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n information?: Maybe;\n birth?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n};\n\nexport type LifeInsuranceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n information?: Maybe;\n birth?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type LifeInsuranceGroupBy = {\n query: LifeInsuranceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type LifeInsuranceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n information?: Maybe>;\n birth?: Maybe>;\n age?: Maybe>;\n heightFeet?: Maybe>;\n heightInches?: Maybe>;\n weight?: Maybe>;\n faceAmount?: Maybe>;\n policyType?: Maybe>;\n term?: Maybe>;\n smoke?: Maybe>;\n knownMedicalCondition?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type LifeInsuranceKeyFilter = {\n id?: Maybe;\n};\n\n/** LifeInsuranceListResponse output */\nexport type LifeInsuranceListResponse = {\n __typename?: 'LifeInsuranceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** LifeInsuranceManyResponse output */\nexport type LifeInsuranceManyResponse = {\n __typename?: 'LifeInsuranceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum LifeInsuranceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n InformationAsc = 'information_ASC',\n InformationDesc = 'information_DESC',\n BirthAsc = 'birth_ASC',\n BirthDesc = 'birth_DESC',\n AgeAsc = 'age_ASC',\n AgeDesc = 'age_DESC',\n HeightFeetAsc = 'heightFeet_ASC',\n HeightFeetDesc = 'heightFeet_DESC',\n HeightInchesAsc = 'heightInches_ASC',\n HeightInchesDesc = 'heightInches_DESC',\n WeightAsc = 'weight_ASC',\n WeightDesc = 'weight_DESC',\n FaceAmountAsc = 'faceAmount_ASC',\n FaceAmountDesc = 'faceAmount_DESC',\n PolicyTypeAsc = 'policyType_ASC',\n PolicyTypeDesc = 'policyType_DESC',\n TermAsc = 'term_ASC',\n TermDesc = 'term_DESC',\n SmokeAsc = 'smoke_ASC',\n SmokeDesc = 'smoke_DESC',\n KnownMedicalConditionAsc = 'knownMedicalCondition_ASC',\n KnownMedicalConditionDesc = 'knownMedicalCondition_DESC',\n}\n\n/** LifeInsurance subscription payload */\nexport type LifeInsurancePayload = {\n __typename?: 'LifeInsurancePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type LifeInsuranceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n information?: Maybe;\n birth?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n createdBy?: Maybe;\n};\n\n/** LifeInsurance subscription filter */\nexport type LifeInsuranceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** LifeInsurance update input */\nexport type LifeInsuranceUpdateByFilterInput = {\n information?: Maybe>>;\n birth?: Maybe>>;\n age?: Maybe>>;\n heightFeet?: Maybe>>;\n heightInches?: Maybe>>;\n weight?: Maybe>>;\n faceAmount?: Maybe>>;\n policyType?: Maybe>>;\n term?: Maybe>>;\n smoke?: Maybe>>;\n knownMedicalCondition?: Maybe>>;\n};\n\n/** LifeInsurance update input */\nexport type LifeInsuranceUpdateInput = {\n id?: Maybe;\n information?: Maybe;\n birth?: Maybe;\n age?: Maybe;\n heightFeet?: Maybe;\n heightInches?: Maybe;\n weight?: Maybe;\n faceAmount?: Maybe;\n policyType?: Maybe;\n term?: Maybe;\n smoke?: Maybe;\n knownMedicalCondition?: Maybe;\n};\n\nexport type LocateFunctionArguments = {\n str: Scalars['String'];\n pos?: Maybe;\n};\n\n/** LoginResponse */\nexport type LoginResponse = {\n __typename?: 'LoginResponse';\n success: Maybe;\n auth: Maybe;\n workspaces: Maybe>;\n};\n\nexport type Mail = {\n __typename?: 'Mail';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n subject: Maybe;\n from: Maybe;\n to: Maybe;\n body: Maybe;\n thread: Maybe;\n archived: Maybe;\n deleted: Maybe;\n history: Maybe;\n attachments: Maybe;\n notificationRelation: Maybe;\n type: Maybe;\n user: Maybe;\n agency: Maybe;\n lead: Maybe;\n ccopy: Maybe;\n _description: Maybe;\n};\n\nexport type MailAttachmentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MailNotificationRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Files create input from mail_attachments */\nexport type Mail_Attachments_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files update input from mail_attachments */\nexport type Mail_Attachments_FileUpdateInput = {\n filter?: Maybe;\n data: FileUpdateInput;\n};\n\nexport type Mail_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n type?: Maybe;\n ccopy?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n thread?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Mail_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailAttachmentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Mail relation input */\nexport type MailAttachmentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Mail relation input */\nexport type MailAttachmentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Mail create input */\nexport type MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail create many input */\nexport type MailCreateManyInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail delete input */\nexport type MailDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MailFieldsPermissions create input */\nexport type MailFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n type?: Maybe;\n ccopy?: Maybe;\n};\n\nexport type MailFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n type?: Maybe;\n ccopy?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n thread?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type MailGroupBy = {\n query: MailGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type MailGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n subject?: Maybe>;\n from?: Maybe>;\n to?: Maybe>;\n body?: Maybe>;\n archived?: Maybe>;\n deleted?: Maybe>;\n type?: Maybe>;\n ccopy?: Maybe>;\n createdBy?: Maybe;\n thread?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\n/** Mail relation input */\nexport type MailHistoryManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailHistoryRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailHistoryUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type MailKeyFilter = {\n id?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MailListResponse output */\nexport type MailListResponse = {\n __typename?: 'MailListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MailManyResponse output */\nexport type MailManyResponse = {\n __typename?: 'MailManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Mail relation input */\nexport type MailNotificationRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Mail relation input */\nexport type MailNotificationRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Mail relation input */\nexport type MailNotificationRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MailOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n SubjectAsc = 'subject_ASC',\n SubjectDesc = 'subject_DESC',\n FromAsc = 'from_ASC',\n FromDesc = 'from_DESC',\n ToAsc = 'to_ASC',\n ToDesc = 'to_DESC',\n BodyAsc = 'body_ASC',\n BodyDesc = 'body_DESC',\n ArchivedAsc = 'archived_ASC',\n ArchivedDesc = 'archived_DESC',\n DeletedAsc = 'deleted_ASC',\n DeletedDesc = 'deleted_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n CcopyAsc = 'ccopy_ASC',\n CcopyDesc = 'ccopy_DESC',\n}\n\n/** Mail subscription payload */\nexport type MailPayload = {\n __typename?: 'MailPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MailRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MailThread create input from mails */\nexport type Mails_MailThreadCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\n/** MailThread update input from mails */\nexport type Mails_MailThreadUpdateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\nexport type MailSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n type?: Maybe;\n ccopy?: Maybe;\n createdBy?: Maybe;\n thread?: Maybe;\n history?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n};\n\n/** Mail subscription filter */\nexport type MailSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\nexport type MailThread = {\n __typename?: 'MailThread';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n identifier: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n email: Maybe;\n /** Lead is not Mandatory, because the user can send emails to emails that are not leads. */\n lead: Maybe;\n mails: Maybe;\n /** THIS SHOULD BE REMOVED */\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type MailThreadMailsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MailThread_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n identifier?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MailThread_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Agency create input from mailThreadAgencyRelation */\nexport type MailThreadAgencyRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from mailThreadAgencyRelation */\nexport type MailThreadAgencyRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MailThread create input */\nexport type MailThreadCreateInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\n/** MailThread create many input */\nexport type MailThreadCreateManyInput = {\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency: MailThreadAgencyManyRelationInput;\n};\n\n/** MailThread delete input */\nexport type MailThreadDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MailThreadFieldsPermissions create input */\nexport type MailThreadFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n identifier?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n};\n\nexport type MailThreadFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n identifier?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MailThreadGroupBy = {\n query: MailThreadGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type MailThreadGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n identifier?: Maybe>;\n firstName?: Maybe>;\n lastName?: Maybe>;\n email?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MailThreadKeyFilter = {\n id?: Maybe;\n identifier?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MailThread relation input */\nexport type MailThreadLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MailThreadListResponse output */\nexport type MailThreadListResponse = {\n __typename?: 'MailThreadListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MailThread relation input */\nexport type MailThreadMailsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MailThread relation input */\nexport type MailThreadMailsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MailThread relation input */\nexport type MailThreadMailsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Mail relation input */\nexport type MailThreadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MailThreadManyResponse output */\nexport type MailThreadManyResponse = {\n __typename?: 'MailThreadManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MailThreadOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n IdentifierAsc = 'identifier_ASC',\n IdentifierDesc = 'identifier_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n}\n\n/** MailThread subscription payload */\nexport type MailThreadPayload = {\n __typename?: 'MailThreadPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MailThreadRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailThreadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type MailThreadSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n identifier?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n agency?: Maybe;\n};\n\n/** MailThread subscription filter */\nexport type MailThreadSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MailThread update input */\nexport type MailThreadUpdateByFilterInput = {\n identifier?: Maybe>>;\n firstName?: Maybe>>;\n lastName?: Maybe>>;\n email?: Maybe>>;\n};\n\n/** MailThread update input */\nexport type MailThreadUpdateInput = {\n id?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n email?: Maybe;\n lead?: Maybe;\n mails?: Maybe;\n agency?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailThreadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Mail update input */\nexport type MailUpdateByFilterInput = {\n subject?: Maybe>>;\n from?: Maybe>>;\n to?: Maybe>>;\n body?: Maybe>>;\n archived?: Maybe>>;\n deleted?: Maybe>>;\n type?: Maybe>>;\n ccopy?: Maybe>>;\n};\n\n/** Mail update input */\nexport type MailUpdateInput = {\n id?: Maybe;\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Mail relation input */\nexport type MailUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type Manager = {\n __typename?: 'Manager';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type Manager_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Manager_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Manager create input */\nexport type ManagerCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n};\n\n/** Manager create many input */\nexport type ManagerCreateManyInput = {\n user: ManagerUserManyRelationInput;\n agency: ManagerAgencyManyRelationInput;\n};\n\n/** Manager delete input */\nexport type ManagerDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** ManagerFieldsPermissions create input */\nexport type ManagerFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n};\n\nexport type ManagerFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type ManagerGroupBy = {\n query: ManagerGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type ManagerGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type ManagerKeyFilter = {\n id?: Maybe;\n};\n\n/** ManagerListResponse output */\nexport type ManagerListResponse = {\n __typename?: 'ManagerListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** ManagerManyResponse output */\nexport type ManagerManyResponse = {\n __typename?: 'ManagerManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum ManagerOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n\n/** Manager subscription payload */\nexport type ManagerPayload = {\n __typename?: 'ManagerPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type ManagerRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type ManagerSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n};\n\n/** Manager subscription filter */\nexport type ManagerSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Manager update input */\nexport type ManagerUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Manager relation input */\nexport type ManagerUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type MarketingCampaign = {\n __typename?: 'MarketingCampaign';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n conditions: Maybe;\n campaigns: Maybe;\n agency: Maybe;\n openings: Maybe;\n shortUrls: Maybe;\n clicks: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingCampaignConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingCampaignCampaignsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingCampaignOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingCampaignShortUrlsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingCampaignClicksArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** MarketingCampaignClick create input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignClickCreateInput = {\n marketingCampaign?: Maybe;\n url: Scalars['String'];\n};\n\n/** MarketingCampaignClick update input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignClickUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignClickUpdateInput;\n};\n\n/** MarketingCampaignCondition create input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignConditionCreateInput = {\n name: Scalars['String'];\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaignCondition update input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignConditionUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignConditionUpdateInput;\n};\n\n/** MarketingCampaignOpening create input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignOpeningCreateInput = {\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead: MarketingCampaignOpeningLeadRelationInput;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** MarketingCampaignOpening update input from marketingCampaign */\nexport type MarketingCampaign_MarketingCampaignOpeningUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignOpeningUpdateInput;\n};\n\nexport type MarketingCampaign_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaign_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** ShortUrl create input from marketingCampaign */\nexport type MarketingCampaign_ShortUrlCreateInput = {\n url: Scalars['String'];\n path?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n\n/** ShortUrl update input from marketingCampaign */\nexport type MarketingCampaign_ShortUrlUpdateInput = {\n filter?: Maybe;\n data: ShortUrlUpdateInput;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignCampaignsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignCampaignsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignCampaignsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type MarketingCampaignClick = {\n __typename?: 'MarketingCampaignClick';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n marketingCampaign: Maybe;\n url: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingCampaignClick_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type MarketingCampaignClick_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingCampaignClick create input */\nexport type MarketingCampaignClickCreateInput = {\n marketingCampaign?: Maybe;\n url: Scalars['String'];\n};\n/** MarketingCampaignClick create many input */\nexport type MarketingCampaignClickCreateManyInput = {\n marketingCampaign: MarketingCampaignClickMarketingCampaignManyRelationInput;\n url: Scalars['String'];\n};\n\n/** MarketingCampaignClick delete input */\nexport type MarketingCampaignClickDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** MarketingCampaignClickFieldsPermissions create input */\nexport type MarketingCampaignClickFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n url?: Maybe;\n};\nexport type MarketingCampaignClickFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type MarketingCampaignClickGroupBy = {\n query: MarketingCampaignClickGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingCampaignClickGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n url?: Maybe>;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingCampaignClickKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingCampaignClickListResponse output */\nexport type MarketingCampaignClickListResponse = {\n __typename?: 'MarketingCampaignClickListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingCampaignClickManyResponse output */\nexport type MarketingCampaignClickManyResponse = {\n __typename?: 'MarketingCampaignClickManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** MarketingCampaignClick relation input */\nexport type MarketingCampaignClickMarketingCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignClick relation input */\nexport type MarketingCampaignClickMarketingCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignClick relation input */\nexport type MarketingCampaignClickMarketingCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingCampaignClickOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n UrlAsc = 'url_ASC',\n UrlDesc = 'url_DESC',\n}\n\n/** MarketingCampaignClick subscription payload */\nexport type MarketingCampaignClickPayload = {\n __typename?: 'MarketingCampaignClickPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingCampaignClickRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignClicksManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type MarketingCampaignClickSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignClicksRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingCampaignClick subscription filter */\nexport type MarketingCampaignClickSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignClicksUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** MarketingCampaignClick update input */\nexport type MarketingCampaignClickUpdateByFilterInput = {\n url?: Maybe>>;\n};\n\n/** MarketingCampaignClick update input */\nexport type MarketingCampaignClickUpdateInput = {\n id?: Maybe;\n marketingCampaign?: Maybe;\n url?: Maybe;\n};\n\nexport type MarketingCampaignCondition = {\n __typename?: 'MarketingCampaignCondition';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n marketingCampaign: Maybe;\n emailTemplate: Maybe;\n smsTemplate: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingCampaignCondition_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaignCondition_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingCampaignCondition create input */\nexport type MarketingCampaignConditionCreateInput = {\n name: Scalars['String'];\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaignCondition create many input */\nexport type MarketingCampaignConditionCreateManyInput = {\n name: Scalars['String'];\n marketingCampaign: MarketingCampaignConditionMarketingCampaignManyRelationInput;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaignCondition delete input */\nexport type MarketingCampaignConditionDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionEmailTemplateManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionEmailTemplateRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionEmailTemplateUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingCampaignConditionFieldsPermissions create input */\nexport type MarketingCampaignConditionFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type MarketingCampaignConditionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaignConditionGroupBy = {\n query: MarketingCampaignConditionGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingCampaignConditionGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingCampaignConditionKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingCampaignConditionListResponse output */\nexport type MarketingCampaignConditionListResponse = {\n __typename?: 'MarketingCampaignConditionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingCampaignConditionManyResponse output */\nexport type MarketingCampaignConditionManyResponse = {\n __typename?: 'MarketingCampaignConditionManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionMarketingCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionMarketingCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionMarketingCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingCampaignConditionOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** MarketingCampaignCondition subscription payload */\nexport type MarketingCampaignConditionPayload = {\n __typename?: 'MarketingCampaignConditionPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingCampaignConditionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingEmailTemplate create input from marketingCampaignConditions */\nexport type MarketingCampaignConditions_MarketingEmailTemplateCreateInput = {\n name: Scalars['String'];\n template?: Maybe;\n json: Scalars['JSON'];\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsRelationInput\n >;\n agency: MarketingEmailTemplateAgencyRelationInput;\n};\n\n/** MarketingEmailTemplate update input from marketingCampaignConditions */\nexport type MarketingCampaignConditions_MarketingEmailTemplateUpdateInput = {\n name?: Maybe;\n template?: Maybe;\n json?: Maybe;\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsUpdateRelationInput\n >;\n agency?: Maybe;\n};\n\n/** MarketingSmsTemplate create input from marketingCampaignConditions */\nexport type MarketingCampaignConditions_MarketingSmsTemplateCreateInput = {\n name?: Maybe;\n text: Scalars['String'];\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingSmsTemplate update input from marketingCampaignConditions */\nexport type MarketingCampaignConditions_MarketingSmsTemplateUpdateInput = {\n name?: Maybe;\n text?: Maybe;\n marketingCampaignConditions?: Maybe<\n MarketingSmsTemplateMarketingCampaignConditionsUpdateRelationInput\n >;\n agency?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionSmsTemplateManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionSmsTemplateRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignCondition relation input */\nexport type MarketingCampaignConditionSmsTemplateUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type MarketingCampaignConditionSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingCampaignCondition subscription filter */\nexport type MarketingCampaignConditionSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** MarketingCampaignCondition update input */\nexport type MarketingCampaignConditionUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** MarketingCampaignCondition update input */\nexport type MarketingCampaignConditionUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n marketingCampaign?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaign create input */\nexport type MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign create many input */\nexport type MarketingCampaignCreateManyInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency: MarketingCampaignAgencyManyRelationInput;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\n/** MarketingCampaign delete input */\nexport type MarketingCampaignDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MarketingCampaignFieldsPermissions create input */\nexport type MarketingCampaignFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type MarketingCampaignFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaignGroupBy = {\n query: MarketingCampaignGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingCampaignGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingCampaignKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingCampaignListResponse output */\nexport type MarketingCampaignListResponse = {\n __typename?: 'MarketingCampaignListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingCampaignManyResponse output */\nexport type MarketingCampaignManyResponse = {\n __typename?: 'MarketingCampaignManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type MarketingCampaignOpening = {\n __typename?: 'MarketingCampaignOpening';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n marketingCampaign: Maybe;\n campaign: Maybe;\n lead: Maybe;\n condition: Maybe;\n opened: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingCampaignOpening_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaignOpening_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingCampaignOpening create input */\nexport type MarketingCampaignOpeningCreateInput = {\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** MarketingCampaignOpening create many input */\nexport type MarketingCampaignOpeningCreateManyInput = {\n marketingCampaign: MarketingCampaignOpeningMarketingCampaignManyRelationInput;\n campaign: MarketingCampaignOpeningCampaignManyRelationInput;\n lead: MarketingCampaignOpeningLeadManyRelationInput;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** MarketingCampaignOpening delete input */\nexport type MarketingCampaignOpeningDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MarketingCampaignOpeningFieldsPermissions create input */\nexport type MarketingCampaignOpeningFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\nexport type MarketingCampaignOpeningFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingCampaignOpeningGroupBy = {\n query: MarketingCampaignOpeningGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingCampaignOpeningGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n condition?: Maybe>;\n opened?: Maybe>;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingCampaignOpeningKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingCampaignOpeningListResponse output */\nexport type MarketingCampaignOpeningListResponse = {\n __typename?: 'MarketingCampaignOpeningListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingCampaignOpeningManyResponse output */\nexport type MarketingCampaignOpeningManyResponse = {\n __typename?: 'MarketingCampaignOpeningManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningMarketingCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningMarketingCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingCampaignOpening relation input */\nexport type MarketingCampaignOpeningMarketingCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingCampaignOpeningOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ConditionAsc = 'condition_ASC',\n ConditionDesc = 'condition_DESC',\n OpenedAsc = 'opened_ASC',\n OpenedDesc = 'opened_DESC',\n}\n\n/** MarketingCampaignOpening subscription payload */\nexport type MarketingCampaignOpeningPayload = {\n __typename?: 'MarketingCampaignOpeningPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingCampaignOpeningRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Campaign create input from marketingCampaignOpenings */\nexport type MarketingCampaignOpenings_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from marketingCampaignOpenings */\nexport type MarketingCampaignOpenings_CampaignUpdateInput = {\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Lead create input from marketingCampaignOpenings */\nexport type MarketingCampaignOpenings_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from marketingCampaignOpenings */\nexport type MarketingCampaignOpenings_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type MarketingCampaignOpeningSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingCampaignOpening subscription filter */\nexport type MarketingCampaignOpeningSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** MarketingCampaignOpening update input */\nexport type MarketingCampaignOpeningUpdateByFilterInput = {\n condition?: Maybe>>;\n opened?: Maybe>>;\n};\n\n/** MarketingCampaignOpening update input */\nexport type MarketingCampaignOpeningUpdateInput = {\n id?: Maybe;\n marketingCampaign?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingCampaignOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** MarketingCampaign subscription payload */\nexport type MarketingCampaignPayload = {\n __typename?: 'MarketingCampaignPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingCampaignRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from marketingCampaigns */\nexport type MarketingCampaigns_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from marketingCampaigns */\nexport type MarketingCampaigns_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignShortUrlsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignShortUrlsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingCampaign relation input */\nexport type MarketingCampaignShortUrlsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type MarketingCampaignSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingCampaign subscription filter */\nexport type MarketingCampaignSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingCampaign update input */\nexport type MarketingCampaignUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** MarketingCampaign update input */\nexport type MarketingCampaignUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n\nexport type MarketingEmailTemplate = {\n __typename?: 'MarketingEmailTemplate';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n template: Maybe;\n json: Maybe;\n marketingCampaignConditions: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingEmailTemplateMarketingCampaignConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingEmailTemplate_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n template?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingEmailTemplate_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingEmailTemplate create input */\nexport type MarketingEmailTemplateCreateInput = {\n name: Scalars['String'];\n template?: Maybe;\n json: Scalars['JSON'];\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsRelationInput\n >;\n agency?: Maybe;\n};\n\n/** MarketingEmailTemplate create many input */\nexport type MarketingEmailTemplateCreateManyInput = {\n name: Scalars['String'];\n template?: Maybe;\n json: Scalars['JSON'];\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsManyRelationInput\n >;\n agency: MarketingEmailTemplateAgencyManyRelationInput;\n};\n\n/** MarketingEmailTemplate delete input */\nexport type MarketingEmailTemplateDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MarketingEmailTemplateFieldsPermissions create input */\nexport type MarketingEmailTemplateFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n template?: Maybe;\n json?: Maybe;\n};\n\nexport type MarketingEmailTemplateFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n template?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingEmailTemplateGroupBy = {\n query: MarketingEmailTemplateGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingEmailTemplateGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n template?: Maybe>;\n json?: Maybe>;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingEmailTemplateKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingEmailTemplateListResponse output */\nexport type MarketingEmailTemplateListResponse = {\n __typename?: 'MarketingEmailTemplateListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingEmailTemplateManyResponse output */\nexport type MarketingEmailTemplateManyResponse = {\n __typename?: 'MarketingEmailTemplateManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateMarketingCampaignConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateMarketingCampaignConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingEmailTemplate relation input */\nexport type MarketingEmailTemplateMarketingCampaignConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingEmailTemplateOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TemplateAsc = 'template_ASC',\n TemplateDesc = 'template_DESC',\n JsonAsc = 'json_ASC',\n JsonDesc = 'json_DESC',\n}\n\n/** MarketingEmailTemplate subscription payload */\nexport type MarketingEmailTemplatePayload = {\n __typename?: 'MarketingEmailTemplatePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingEmailTemplateRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Agency create input from marketingEmailTemplates */\nexport type MarketingEmailTemplates_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from marketingEmailTemplates */\nexport type MarketingEmailTemplates_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type MarketingEmailTemplateSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n template?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingEmailTemplate subscription filter */\nexport type MarketingEmailTemplateSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingEmailTemplate update input */\nexport type MarketingEmailTemplateUpdateByFilterInput = {\n name?: Maybe>>;\n template?: Maybe>>;\n json?: Maybe>>;\n};\n\n/** MarketingEmailTemplate update input */\nexport type MarketingEmailTemplateUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n template?: Maybe;\n json?: Maybe;\n marketingCampaignConditions?: Maybe<\n MarketingEmailTemplateMarketingCampaignConditionsUpdateRelationInput\n >;\n agency?: Maybe;\n};\n\nexport type MarketingSmsTemplate = {\n __typename?: 'MarketingSmsTemplate';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n text: Maybe;\n marketingCampaignConditions: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type MarketingSmsTemplateMarketingCampaignConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type MarketingSmsTemplate_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingSmsTemplate_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingSmsTemplate create input */\nexport type MarketingSmsTemplateCreateInput = {\n name?: Maybe;\n text: Scalars['String'];\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingSmsTemplate create many input */\nexport type MarketingSmsTemplateCreateManyInput = {\n name?: Maybe;\n text: Scalars['String'];\n marketingCampaignConditions?: Maybe<\n MarketingSmsTemplateMarketingCampaignConditionsManyRelationInput\n >;\n agency: MarketingSmsTemplateAgencyManyRelationInput;\n};\n\n/** MarketingSmsTemplate delete input */\nexport type MarketingSmsTemplateDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MarketingSmsTemplateFieldsPermissions create input */\nexport type MarketingSmsTemplateFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n};\n\nexport type MarketingSmsTemplateFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MarketingSmsTemplateGroupBy = {\n query: MarketingSmsTemplateGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MarketingSmsTemplateGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n text?: Maybe>;\n createdBy?: Maybe;\n marketingCampaignConditions?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MarketingSmsTemplateKeyFilter = {\n id?: Maybe;\n};\n\n/** MarketingSmsTemplateListResponse output */\nexport type MarketingSmsTemplateListResponse = {\n __typename?: 'MarketingSmsTemplateListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MarketingSmsTemplateManyResponse output */\nexport type MarketingSmsTemplateManyResponse = {\n __typename?: 'MarketingSmsTemplateManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateMarketingCampaignConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateMarketingCampaignConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** MarketingSmsTemplate relation input */\nexport type MarketingSmsTemplateMarketingCampaignConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MarketingSmsTemplateOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TextAsc = 'text_ASC',\n TextDesc = 'text_DESC',\n}\n\n/** MarketingSmsTemplate subscription payload */\nexport type MarketingSmsTemplatePayload = {\n __typename?: 'MarketingSmsTemplatePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MarketingSmsTemplateRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Agency create input from marketingSmsTemplates */\nexport type MarketingSmsTemplates_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from marketingSmsTemplates */\nexport type MarketingSmsTemplates_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type MarketingSmsTemplateSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** MarketingSmsTemplate subscription filter */\nexport type MarketingSmsTemplateSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** MarketingSmsTemplate update input */\nexport type MarketingSmsTemplateUpdateByFilterInput = {\n name?: Maybe>>;\n text?: Maybe>>;\n};\n\n/** MarketingSmsTemplate update input */\nexport type MarketingSmsTemplateUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n text?: Maybe;\n marketingCampaignConditions?: Maybe<\n MarketingSmsTemplateMarketingCampaignConditionsUpdateRelationInput\n >;\n agency?: Maybe;\n};\n\n/** Channel create input from members */\nexport type Members_ChannelCreateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name: Scalars['String'];\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel update input from members */\nexport type Members_ChannelUpdateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\nexport type Message = {\n __typename?: 'Message';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n channel: Maybe;\n text: Maybe;\n attachments: Maybe;\n isDeleted: Maybe;\n _description: Maybe;\n};\n\nexport type MessageAttachmentsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Files create input from message_attachments */\nexport type Message_Attachments_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files update input from message_attachments */\nexport type Message_Attachments_FileUpdateInput = {\n filter?: Maybe;\n data: FileUpdateInput;\n};\n\nexport type Message_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n isDeleted?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n attachments?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Message_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Message relation input */\nexport type MessageAttachmentsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Message relation input */\nexport type MessageAttachmentsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Message relation input */\nexport type MessageAttachmentsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Message relation input */\nexport type MessageChannelManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Message relation input */\nexport type MessageChannelRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Message relation input */\nexport type MessageChannelUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Message create input */\nexport type MessageCreateInput = {\n channel?: Maybe;\n text: Scalars['String'];\n attachments?: Maybe;\n isDeleted?: Maybe;\n};\n\n/** Message create many input */\nexport type MessageCreateManyInput = {\n channel: MessageChannelManyRelationInput;\n text: Scalars['String'];\n attachments?: Maybe;\n isDeleted?: Maybe;\n};\n\n/** Message delete input */\nexport type MessageDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MessageFieldsPermissions create input */\nexport type MessageFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n text?: Maybe;\n isDeleted?: Maybe;\n};\n\nexport type MessageFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n isDeleted?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n attachments?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MessageGroupBy = {\n query: MessageGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MessageGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n text?: Maybe>;\n isDeleted?: Maybe>;\n createdBy?: Maybe;\n channel?: Maybe;\n attachments?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MessageKeyFilter = {\n id?: Maybe;\n};\n\n/** MessageListResponse output */\nexport type MessageListResponse = {\n __typename?: 'MessageListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MessageManyResponse output */\nexport type MessageManyResponse = {\n __typename?: 'MessageManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MessageOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TextAsc = 'text_ASC',\n TextDesc = 'text_DESC',\n IsDeletedAsc = 'isDeleted_ASC',\n IsDeletedDesc = 'isDeleted_DESC',\n}\n\n/** Message subscription payload */\nexport type MessagePayload = {\n __typename?: 'MessagePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type MessageRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Channel create input from messages */\nexport type Messages_ChannelCreateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name: Scalars['String'];\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** Channel update input from messages */\nexport type Messages_ChannelUpdateInput = {\n purpose?: Maybe;\n public?: Maybe;\n name?: Maybe;\n type?: Maybe;\n members?: Maybe;\n messages?: Maybe;\n agency?: Maybe;\n};\n\n/** LeadPhoneNumber create input from messages */\nexport type Messages_LeadPhoneNumberCreateInput = {\n phone: SmartPhoneInput;\n lead?: Maybe;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\n/** LeadPhoneNumber update input from messages */\nexport type Messages_LeadPhoneNumberUpdateInput = {\n phone?: Maybe;\n lead?: Maybe;\n parsedPhone?: Maybe;\n messages?: Maybe;\n type?: Maybe;\n data?: Maybe;\n};\n\nexport type MessageSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n isDeleted?: Maybe;\n createdBy?: Maybe;\n channel?: Maybe;\n};\n\n/** Message subscription filter */\nexport type MessageSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Message update input */\nexport type MessageUpdateByFilterInput = {\n text?: Maybe>>;\n isDeleted?: Maybe>>;\n};\n\n/** Message update input */\nexport type MessageUpdateInput = {\n id?: Maybe;\n channel?: Maybe;\n text?: Maybe;\n attachments?: Maybe;\n isDeleted?: Maybe;\n};\n\nexport type Meta = {\n __typename?: 'Meta';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n /** Helper metadata for the user */\n name: Maybe;\n value: Maybe;\n user: Maybe;\n _description: Maybe;\n};\n\nexport type Meta_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Meta_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Meta create input */\nexport type MetaCreateInput = {\n /** Helper metadata for the user */\n name: Scalars['String'];\n value: Scalars['String'];\n user?: Maybe;\n};\n\n/** Meta create many input */\nexport type MetaCreateManyInput = {\n /** Helper metadata for the user */\n name: Scalars['String'];\n value: Scalars['String'];\n user: MetaUserManyRelationInput;\n};\n\n/** Meta delete input */\nexport type MetaDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** MetaFieldsPermissions create input */\nexport type MetaFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n};\n\nexport type MetaFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type MetaGroupBy = {\n query: MetaGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type MetaGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n value?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n _group?: Maybe>;\n};\n\nexport type MetaKeyFilter = {\n id?: Maybe;\n};\n\n/** MetaListResponse output */\nexport type MetaListResponse = {\n __typename?: 'MetaListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** MetaManyResponse output */\nexport type MetaManyResponse = {\n __typename?: 'MetaManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum MetaOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n ValueAsc = 'value_ASC',\n ValueDesc = 'value_DESC',\n}\n\n/** Meta subscription payload */\nexport type MetaPayload = {\n __typename?: 'MetaPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type MetaRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type MetaSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n value?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n};\n\n/** Meta subscription filter */\nexport type MetaSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Meta update input */\nexport type MetaUpdateByFilterInput = {\n name?: Maybe>>;\n value?: Maybe>>;\n};\n\n/** Meta update input */\nexport type MetaUpdateInput = {\n id?: Maybe;\n /** Helper metadata for the user */\n name?: Maybe;\n value?: Maybe;\n user?: Maybe;\n};\n\n/** Meta relation input */\nexport type MetaUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Users create input from metaUserRelation */\nexport type MetaUserRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from metaUserRelation */\nexport type MetaUserRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Meta relation input */\nexport type MetaUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Meta relation input */\nexport type MetaUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MissingRelation */\nexport type MissingRelation = {\n __typename?: 'MissingRelation';\n table: Scalars['String'];\n};\n\n/** MissingRelation Field Attributes */\nexport type MissingRelationFieldTypeAttributes = {\n __typename?: 'MissingRelationFieldTypeAttributes';\n missingTable: Scalars['String'];\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n adminCreate: Admin;\n adminCreateMany: AdminManyResponse;\n adminDelete: Maybe;\n adminDeleteByFilter: Maybe;\n adminDestroy: Maybe;\n adminDestroyByFilter: Maybe;\n adminRestore: Admin;\n adminUpdate: Admin;\n agencyCreate: Agency;\n agencyCreateMany: AgencyManyResponse;\n agencyDelete: Maybe;\n agencyDeleteByFilter: Maybe;\n agencyDestroy: Maybe;\n agencyDestroyByFilter: Maybe;\n agencyEmailServiceCreate: AgencyEmailService;\n agencyEmailServiceCreateMany: AgencyEmailServiceManyResponse;\n agencyEmailServiceDelete: Maybe;\n agencyEmailServiceDeleteByFilter: Maybe;\n agencyEmailServiceDestroy: Maybe;\n agencyEmailServiceDestroyByFilter: Maybe;\n agencyEmailServiceRestore: AgencyEmailService;\n agencyEmailServiceUpdate: AgencyEmailService;\n agencyInvitationCreate: AgencyInvitation;\n agencyInvitationCreateMany: AgencyInvitationManyResponse;\n agencyInvitationDelete: Maybe;\n agencyInvitationDeleteByFilter: Maybe;\n agencyInvitationDestroy: Maybe;\n agencyInvitationDestroyByFilter: Maybe;\n agencyInvitationRestore: AgencyInvitation;\n agencyInvitationUpdate: AgencyInvitation;\n agencyInvitationUpdateByFilter: AgencyInvitationManyResponse;\n agencyRestore: Agency;\n agencyUpdate: Agency;\n agencyUpdateByFilter: AgencyManyResponse;\n agencyUserCreate: AgencyUser;\n agencyUserCreateMany: AgencyUserManyResponse;\n agencyUserDelete: Maybe;\n agencyUserDeleteByFilter: Maybe;\n agencyUserDestroy: Maybe;\n agencyUserDestroyByFilter: Maybe;\n agencyUserRestore: AgencyUser;\n agencyUserUpdate: AgencyUser;\n agencyUserUpdateByFilter: AgencyUserManyResponse;\n agentCreate: Agent;\n agentCreateMany: AgentManyResponse;\n agentDelete: Maybe;\n agentDeleteByFilter: Maybe;\n agentDestroy: Maybe;\n agentDestroyByFilter: Maybe;\n agentRestore: Agent;\n agentUpdate: Agent;\n agentUpdateByFilter: AgentManyResponse;\n announcementCreate: Announcement;\n announcementCreateMany: AnnouncementManyResponse;\n announcementDelete: Maybe;\n announcementDeleteByFilter: Maybe;\n announcementDestroy: Maybe;\n announcementDestroyByFilter: Maybe;\n announcementRestore: Announcement;\n announcementUpdate: Announcement;\n announcementUpdateByFilter: AnnouncementManyResponse;\n apiTokenCreate: ApiTokenResponse;\n apiTokenDelete: Maybe;\n apiTokenDeleteByFilter: Maybe;\n apiTokenDestroy: Maybe;\n apiTokenDestroyByFilter: Maybe;\n apiTokenRestore: ApiToken;\n apiTokenUpdate: ApiToken;\n apiTokenUpdateByFilter: ApiTokenManyResponse;\n /** @deprecated No longer supported. Use `system.applicationDelete` instead. */\n applicationDelete: Maybe;\n /** @deprecated No longer supported. Use `system.applicationInstall` instead. */\n applicationInstall: Maybe;\n /** @deprecated No longer supported. Use `system.applicationUpdate` instead. */\n applicationUpdate: Maybe;\n authenticationProfileCreate: AuthenticationProfile;\n authenticationProfileCreateMany: AuthenticationProfileManyResponse;\n authenticationProfileDelete: Maybe;\n authenticationProfileDeleteByFilter: Maybe;\n authenticationProfileDestroy: Maybe;\n authenticationProfileDestroyByFilter: Maybe;\n authenticationProfileRestore: AuthenticationProfile;\n authenticationProfileUpdate: AuthenticationProfile;\n authenticationProfileUpdateByFilter: AuthenticationProfileManyResponse;\n authenticationSettingsUpdate: AuthenticationSetting;\n automaticCallConfigCreate: AutomaticCallConfig;\n automaticCallConfigCreateMany: AutomaticCallConfigManyResponse;\n automaticCallConfigDelete: Maybe;\n automaticCallConfigDeleteByFilter: Maybe;\n automaticCallConfigDestroy: Maybe;\n automaticCallConfigDestroyByFilter: Maybe;\n automaticCallConfigRestore: AutomaticCallConfig;\n automaticCallConfigUpdate: AutomaticCallConfig;\n automaticCallConfigUpdateByFilter: AutomaticCallConfigManyResponse;\n billingDetailsUpdate: Maybe;\n /** @deprecated No longer supported. Use `system.billingPlanUpdate` instead. */\n billingPlanUpdate: Maybe;\n campaignCreate: Campaign;\n campaignCreateMany: CampaignManyResponse;\n campaignDelete: Maybe;\n campaignDeleteByFilter: Maybe;\n campaignDestroy: Maybe;\n campaignDestroyByFilter: Maybe;\n campaignRestore: Campaign;\n campaignUpdate: Campaign;\n campaignUpdateByFilter: CampaignManyResponse;\n channelCreate: Channel;\n channelCreateMany: ChannelManyResponse;\n channelDelete: Maybe;\n channelDeleteByFilter: Maybe;\n channelDestroy: Maybe;\n channelDestroyByFilter: Maybe;\n channelMemberCreate: ChannelMember;\n channelMemberCreateMany: ChannelMemberManyResponse;\n channelMemberDelete: Maybe;\n channelMemberDeleteByFilter: Maybe;\n channelMemberDestroy: Maybe;\n channelMemberDestroyByFilter: Maybe;\n channelMemberRestore: ChannelMember;\n channelMemberUpdate: ChannelMember;\n channelMemberUpdateByFilter: ChannelMemberManyResponse;\n channelRestore: Channel;\n channelUpdate: Channel;\n channelUpdateByFilter: ChannelManyResponse;\n ciCdMigrationCreate: CiCdMigration;\n ciCdMigrationCreateMany: CiCdMigrationManyResponse;\n ciCdMigrationDelete: Maybe;\n ciCdMigrationDeleteByFilter: Maybe;\n ciCdMigrationDestroy: Maybe;\n ciCdMigrationDestroyByFilter: Maybe;\n ciCdMigrationRestore: CiCdMigration;\n ciCdMigrationUpdate: CiCdMigration;\n ciCdMigrationUpdateByFilter: CiCdMigrationManyResponse;\n companyCreate: Company;\n companyCreateMany: CompanyManyResponse;\n companyDelete: Maybe;\n companyDeleteByFilter: Maybe;\n companyDestroy: Maybe;\n companyDestroyByFilter: Maybe;\n companyInvitationCreate: CompanyInvitation;\n companyInvitationCreateMany: CompanyInvitationManyResponse;\n companyInvitationDelete: Maybe;\n companyInvitationDeleteByFilter: Maybe;\n companyInvitationDestroy: Maybe;\n companyInvitationDestroyByFilter: Maybe;\n companyInvitationRestore: CompanyInvitation;\n companyInvitationUpdate: CompanyInvitation;\n companyInvitationUpdateByFilter: CompanyInvitationManyResponse;\n companyInvoiceCreate: CompanyInvoice;\n companyInvoiceCreateMany: CompanyInvoiceManyResponse;\n companyInvoiceDelete: Maybe;\n companyInvoiceDeleteByFilter: Maybe;\n companyInvoiceDestroy: Maybe;\n companyInvoiceDestroyByFilter: Maybe;\n companyInvoiceRestore: CompanyInvoice;\n companyInvoiceUpdate: CompanyInvoice;\n companyInvoiceUpdateByFilter: CompanyInvoiceManyResponse;\n companyPaymentMethodCreate: CompanyPaymentMethod;\n companyPaymentMethodCreateMany: CompanyPaymentMethodManyResponse;\n companyPaymentMethodDelete: Maybe;\n companyPaymentMethodDeleteByFilter: Maybe;\n companyPaymentMethodDestroy: Maybe;\n companyPaymentMethodDestroyByFilter: Maybe;\n companyPaymentMethodRestore: CompanyPaymentMethod;\n companyPaymentMethodUpdate: CompanyPaymentMethod;\n companyPaymentMethodUpdateByFilter: CompanyPaymentMethodManyResponse;\n companyRestore: Company;\n companySubCouponCreate: CompanySubCoupon;\n companySubCouponCreateMany: CompanySubCouponManyResponse;\n companySubCouponDelete: Maybe;\n companySubCouponDeleteByFilter: Maybe;\n companySubCouponDestroy: Maybe;\n companySubCouponDestroyByFilter: Maybe;\n companySubCouponRestore: CompanySubCoupon;\n companySubCouponUpdate: CompanySubCoupon;\n companySubCouponUpdateByFilter: CompanySubCouponManyResponse;\n companySubCreate: CompanySub;\n companySubCreateMany: CompanySubManyResponse;\n companySubDelete: Maybe;\n companySubDeleteByFilter: Maybe;\n companySubDestroy: Maybe;\n companySubDestroyByFilter: Maybe;\n companySubRestore: CompanySub;\n companySubUpdate: CompanySub;\n companySubUpdateByFilter: CompanySubManyResponse;\n companyUpdate: Company;\n companyUpdateByFilter: CompanyManyResponse;\n /** @deprecated No longer supported. Use `system.deploy` instead. */\n deploy: Maybe;\n driverIncidentCreate: DriverIncident;\n driverIncidentCreateMany: DriverIncidentManyResponse;\n driverIncidentDelete: Maybe;\n driverIncidentDeleteByFilter: Maybe;\n driverIncidentDestroy: Maybe;\n driverIncidentDestroyByFilter: Maybe;\n driverIncidentRestore: DriverIncident;\n driverIncidentUpdate: DriverIncident;\n driverIncidentUpdateByFilter: DriverIncidentManyResponse;\n emailInboundServiceCreate: EmailInboundService;\n emailInboundServiceCreateMany: EmailInboundServiceManyResponse;\n emailInboundServiceDelete: Maybe;\n emailInboundServiceDeleteByFilter: Maybe;\n emailInboundServiceDestroy: Maybe;\n emailInboundServiceDestroyByFilter: Maybe;\n emailInboundServiceRestore: EmailInboundService;\n emailInboundServiceUpdate: EmailInboundService;\n emailInboundServiceUpdateByFilter: EmailInboundServiceManyResponse;\n emailOutboundServiceCreate: EmailOutboundService;\n emailOutboundServiceCreateMany: EmailOutboundServiceManyResponse;\n emailOutboundServiceDelete: Maybe;\n emailOutboundServiceDeleteByFilter: Maybe;\n emailOutboundServiceDestroy: Maybe;\n emailOutboundServiceDestroyByFilter: Maybe;\n emailOutboundServiceRestore: EmailOutboundService;\n emailOutboundServiceUpdate: EmailOutboundService;\n emailOutboundServiceUpdateByFilter: EmailOutboundServiceManyResponse;\n environmentVariableCreate: EnvironmentVariable;\n environmentVariableCreateMany: EnvironmentVariableManyResponse;\n environmentVariableDelete: Maybe;\n environmentVariableDeleteByFilter: Maybe;\n environmentVariableDestroy: Maybe;\n environmentVariableDestroyByFilter: Maybe;\n environmentVariableRestore: EnvironmentVariable;\n environmentVariableUpdate: EnvironmentVariable;\n environmentVariableUpdateByFilter: EnvironmentVariableManyResponse;\n /** @deprecated No longer supported. Use `system.fieldCreate` instead. */\n fieldCreate: TableField;\n /** @deprecated No longer supported. Use `system.fieldDelete` instead. */\n fieldDelete: SuccessResponse;\n /** @deprecated No longer supported. Use `system.fieldUpdate` instead. */\n fieldUpdate: TableField;\n /** @deprecated No longer supported. Use `system.fieldUpdatePosition` instead. */\n fieldUpdatePosition: SuccessResponse;\n fileCreate: File;\n fileCreateMany: FileManyResponse;\n fileDelete: Maybe;\n fileDeleteByFilter: Maybe;\n fileDestroy: Maybe;\n fileDestroyByFilter: Maybe;\n fileRestore: File;\n fileUpdate: File;\n fileUpdateByFilter: FileManyResponse;\n freePhoneNumberCreate: FreePhoneNumber;\n freePhoneNumberCreateMany: FreePhoneNumberManyResponse;\n freePhoneNumberDelete: Maybe;\n freePhoneNumberDeleteByFilter: Maybe;\n freePhoneNumberDestroy: Maybe;\n freePhoneNumberDestroyByFilter: Maybe;\n freePhoneNumberRestore: FreePhoneNumber;\n freePhoneNumberUpdate: FreePhoneNumber;\n gmailProfileCreate: GmailProfile;\n gmailProfileCreateMany: GmailProfileManyResponse;\n gmailProfileDelete: Maybe;\n gmailProfileDeleteByFilter: Maybe;\n gmailProfileDestroy: Maybe;\n gmailProfileDestroyByFilter: Maybe;\n gmailProfileRestore: GmailProfile;\n gmailProfileUpdate: GmailProfile;\n gmailProfileUpdateByFilter: GmailProfileManyResponse;\n gmailServiceCreate: GmailService;\n gmailServiceCreateMany: GmailServiceManyResponse;\n gmailServiceDelete: Maybe;\n gmailServiceDeleteByFilter: Maybe;\n gmailServiceDestroy: Maybe;\n gmailServiceDestroyByFilter: Maybe;\n gmailServiceRestore: GmailService;\n gmailServiceUpdate: GmailService;\n gmailServiceUpdateByFilter: GmailServiceManyResponse;\n ifsScoreCreate: IfsScore;\n ifsScoreCreateMany: IfsScoreManyResponse;\n ifsScoreDelete: Maybe;\n ifsScoreDeleteByFilter: Maybe;\n ifsScoreDestroy: Maybe;\n ifsScoreDestroyByFilter: Maybe;\n ifsScoreRestore: IfsScore;\n ifsScoreUpdate: IfsScore;\n ifsScoreUpdateByFilter: IfsScoreManyResponse;\n inboundPhoneCallCreate: InboundPhoneCall;\n inboundPhoneCallCreateMany: InboundPhoneCallManyResponse;\n inboundPhoneCallDelete: Maybe;\n inboundPhoneCallDeleteByFilter: Maybe;\n inboundPhoneCallDestroy: Maybe;\n inboundPhoneCallDestroyByFilter: Maybe;\n inboundPhoneCallRestore: InboundPhoneCall;\n inboundPhoneCallUpdate: InboundPhoneCall;\n inboundPhoneCallUpdateByFilter: InboundPhoneCallManyResponse;\n indexCreate: TableIndex;\n indexDelete: Maybe;\n indexUpdate: TableIndex;\n inviteMembers: Array>;\n /** @deprecated No longer supported. Use `system.invoke` instead. */\n invoke: Maybe;\n leadActionCreate: LeadAction;\n leadActionCreateMany: LeadActionManyResponse;\n leadActionDelete: Maybe;\n leadActionDeleteByFilter: Maybe;\n leadActionDestroy: Maybe;\n leadActionDestroyByFilter: Maybe;\n leadActionRestore: LeadAction;\n leadActionUpdate: LeadAction;\n leadActionUpdateByFilter: LeadActionManyResponse;\n leadCallCadenceCreate: LeadCallCadence;\n leadCallCadenceCreateMany: LeadCallCadenceManyResponse;\n leadCallCadenceDelete: Maybe;\n leadCallCadenceDeleteByFilter: Maybe;\n leadCallCadenceDestroy: Maybe;\n leadCallCadenceDestroyByFilter: Maybe;\n leadCallCadenceRestore: LeadCallCadence;\n leadCallCadenceUpdate: LeadCallCadence;\n leadCallCadenceUpdateByFilter: LeadCallCadenceManyResponse;\n leadContactCreate: LeadContact;\n leadContactCreateMany: LeadContactManyResponse;\n leadContactDelete: Maybe;\n leadContactDeleteByFilter: Maybe;\n leadContactDestroy: Maybe;\n leadContactDestroyByFilter: Maybe;\n leadContactRestore: LeadContact;\n leadContactUpdate: LeadContact;\n leadContactUpdateByFilter: LeadContactManyResponse;\n leadCreate: Lead;\n leadCreateMany: LeadManyResponse;\n leadDelete: Maybe;\n leadDeleteByFilter: Maybe;\n leadDestroy: Maybe;\n leadDestroyByFilter: Maybe;\n leadDispositionCreate: LeadDisposition;\n leadDispositionCreateMany: LeadDispositionManyResponse;\n leadDispositionDelete: Maybe;\n leadDispositionDeleteByFilter: Maybe;\n leadDispositionDestroy: Maybe;\n leadDispositionDestroyByFilter: Maybe;\n leadDispositionRestore: LeadDisposition;\n leadDispositionUpdate: LeadDisposition;\n leadDispositionUpdateByFilter: LeadDispositionManyResponse;\n leadDriverCreate: LeadDriver;\n leadDriverCreateMany: LeadDriverManyResponse;\n leadDriverDelete: Maybe;\n leadDriverDeleteByFilter: Maybe;\n leadDriverDestroy: Maybe;\n leadDriverDestroyByFilter: Maybe;\n leadDriverRestore: LeadDriver;\n leadDriverUpdate: LeadDriver;\n leadDriverUpdateByFilter: LeadDriverManyResponse;\n leadHistoryCreate: LeadHistory;\n leadHistoryCreateMany: LeadHistoryManyResponse;\n leadHistoryDelete: Maybe;\n leadHistoryDeleteByFilter: Maybe;\n leadHistoryDestroy: Maybe;\n leadHistoryDestroyByFilter: Maybe;\n leadHistoryRestore: LeadHistory;\n leadHistoryUpdate: LeadHistory;\n leadHistoryUpdateByFilter: LeadHistoryManyResponse;\n leadNoteCreate: LeadNote;\n leadNoteCreateMany: LeadNoteManyResponse;\n leadNoteDelete: Maybe;\n leadNoteDeleteByFilter: Maybe;\n leadNoteDestroy: Maybe;\n leadNoteDestroyByFilter: Maybe;\n leadNoteRestore: LeadNote;\n leadNoteUpdate: LeadNote;\n leadNoteUpdateByFilter: LeadNoteManyResponse;\n leadPhoneNumberCreate: LeadPhoneNumber;\n leadPhoneNumberCreateMany: LeadPhoneNumberManyResponse;\n leadPhoneNumberDelete: Maybe;\n leadPhoneNumberDeleteByFilter: Maybe;\n leadPhoneNumberDestroy: Maybe;\n leadPhoneNumberDestroyByFilter: Maybe;\n leadPhoneNumberRestore: LeadPhoneNumber;\n leadPhoneNumberUpdate: LeadPhoneNumber;\n leadPhoneNumberUpdateByFilter: LeadPhoneNumberManyResponse;\n leadRestore: Lead;\n leadSourceCreate: LeadSource;\n leadSourceCreateMany: LeadSourceManyResponse;\n leadSourceDelete: Maybe;\n leadSourceDeleteByFilter: Maybe;\n leadSourceDestroy: Maybe;\n leadSourceDestroyByFilter: Maybe;\n leadSourceRestore: LeadSource;\n leadSourceUpdate: LeadSource;\n leadSourceUpdateByFilter: LeadSourceManyResponse;\n leadStageCreate: LeadStage;\n leadStageCreateMany: LeadStageManyResponse;\n leadStageDelete: Maybe;\n leadStageDeleteByFilter: Maybe;\n leadStageDestroy: Maybe;\n leadStageDestroyByFilter: Maybe;\n leadStageHistoryCreate: LeadStageHistory;\n leadStageHistoryCreateMany: LeadStageHistoryManyResponse;\n leadStageHistoryDelete: Maybe;\n leadStageHistoryDeleteByFilter: Maybe;\n leadStageHistoryDestroy: Maybe;\n leadStageHistoryDestroyByFilter: Maybe;\n leadStageHistoryRestore: LeadStageHistory;\n leadStageHistoryUpdate: LeadStageHistory;\n leadStageRestore: LeadStage;\n leadStageUpdate: LeadStage;\n leadStageUpdateByFilter: LeadStageManyResponse;\n leadTaskCreate: LeadTask;\n leadTaskCreateMany: LeadTaskManyResponse;\n leadTaskDelete: Maybe;\n leadTaskDeleteByFilter: Maybe;\n leadTaskDestroy: Maybe;\n leadTaskDestroyByFilter: Maybe;\n leadTaskRestore: LeadTask;\n leadTaskTypeCreate: LeadTaskType;\n leadTaskTypeCreateMany: LeadTaskTypeManyResponse;\n leadTaskTypeDelete: Maybe;\n leadTaskTypeDeleteByFilter: Maybe;\n leadTaskTypeDestroy: Maybe;\n leadTaskTypeDestroyByFilter: Maybe;\n leadTaskTypeRestore: LeadTaskType;\n leadTaskTypeUpdate: LeadTaskType;\n leadTaskTypeUpdateByFilter: LeadTaskTypeManyResponse;\n leadTaskUpdate: LeadTask;\n leadTaskUpdateByFilter: LeadTaskManyResponse;\n leadTypeAutoCreate: LeadTypeAuto;\n leadTypeAutoCreateMany: LeadTypeAutoManyResponse;\n leadTypeAutoDelete: Maybe;\n leadTypeAutoDeleteByFilter: Maybe;\n leadTypeAutoDestroy: Maybe;\n leadTypeAutoDestroyByFilter: Maybe;\n leadTypeAutoRestore: LeadTypeAuto;\n leadTypeAutoUpdate: LeadTypeAuto;\n leadTypeAutoUpdateByFilter: LeadTypeAutoManyResponse;\n leadTypeCommercialAutoCreate: LeadTypeCommercialAuto;\n leadTypeCommercialAutoCreateMany: LeadTypeCommercialAutoManyResponse;\n leadTypeCommercialAutoDelete: Maybe;\n leadTypeCommercialAutoDeleteByFilter: Maybe;\n leadTypeCommercialAutoDestroy: Maybe;\n leadTypeCommercialAutoDestroyByFilter: Maybe;\n leadTypeCommercialAutoRestore: LeadTypeCommercialAuto;\n leadTypeCommercialAutoUpdate: LeadTypeCommercialAuto;\n leadTypeCommercialAutoUpdateByFilter: LeadTypeCommercialAutoManyResponse;\n leadTypeEmployeeBenefitCreate: LeadTypeEmployeeBenefit;\n leadTypeEmployeeBenefitCreateMany: LeadTypeEmployeeBenefitManyResponse;\n leadTypeEmployeeBenefitDelete: Maybe;\n leadTypeEmployeeBenefitDeleteByFilter: Maybe;\n leadTypeEmployeeBenefitDestroy: Maybe;\n leadTypeEmployeeBenefitDestroyByFilter: Maybe;\n leadTypeEmployeeBenefitRestore: LeadTypeEmployeeBenefit;\n leadTypeEmployeeBenefitUpdate: LeadTypeEmployeeBenefit;\n leadTypeEmployeeBenefitUpdateByFilter: LeadTypeEmployeeBenefitManyResponse;\n leadTypeGeneralLiabilityCreate: LeadTypeGeneralLiability;\n leadTypeGeneralLiabilityCreateMany: LeadTypeGeneralLiabilityManyResponse;\n leadTypeGeneralLiabilityDelete: Maybe;\n leadTypeGeneralLiabilityDeleteByFilter: Maybe;\n leadTypeGeneralLiabilityDestroy: Maybe;\n leadTypeGeneralLiabilityDestroyByFilter: Maybe;\n leadTypeGeneralLiabilityRestore: LeadTypeGeneralLiability;\n leadTypeGeneralLiabilityUpdate: LeadTypeGeneralLiability;\n leadTypeGeneralLiabilityUpdateByFilter: LeadTypeGeneralLiabilityManyResponse;\n leadTypeHomeCreate: LeadTypeHome;\n leadTypeHomeCreateMany: LeadTypeHomeManyResponse;\n leadTypeHomeDelete: Maybe;\n leadTypeHomeDeleteByFilter: Maybe;\n leadTypeHomeDestroy: Maybe;\n leadTypeHomeDestroyByFilter: Maybe;\n leadTypeHomeRestore: LeadTypeHome;\n leadTypeHomeUpdate: LeadTypeHome;\n leadTypeHomeUpdateByFilter: LeadTypeHomeManyResponse;\n leadTypeLifeCreate: LeadTypeLife;\n leadTypeLifeCreateMany: LeadTypeLifeManyResponse;\n leadTypeLifeDelete: Maybe;\n leadTypeLifeDeleteByFilter: Maybe;\n leadTypeLifeDestroy: Maybe;\n leadTypeLifeDestroyByFilter: Maybe;\n leadTypeLifeRestore: LeadTypeLife;\n leadTypeLifeUpdate: LeadTypeLife;\n leadTypeLifeUpdateByFilter: LeadTypeLifeManyResponse;\n leadTypeWorkersCompensationCreate: LeadTypeWorkersCompensation;\n leadTypeWorkersCompensationCreateMany: LeadTypeWorkersCompensationManyResponse;\n leadTypeWorkersCompensationDelete: Maybe;\n leadTypeWorkersCompensationDeleteByFilter: Maybe;\n leadTypeWorkersCompensationDestroy: Maybe;\n leadTypeWorkersCompensationDestroyByFilter: Maybe;\n leadTypeWorkersCompensationRestore: LeadTypeWorkersCompensation;\n leadTypeWorkersCompensationUpdate: LeadTypeWorkersCompensation;\n leadTypeWorkersCompensationUpdateByFilter: LeadTypeWorkersCompensationManyResponse;\n leadUpdate: Lead;\n leadUpdateByFilter: LeadManyResponse;\n lifeInsuranceCreate: LifeInsurance;\n lifeInsuranceCreateMany: LifeInsuranceManyResponse;\n lifeInsuranceDelete: Maybe;\n lifeInsuranceDeleteByFilter: Maybe;\n lifeInsuranceDestroy: Maybe;\n lifeInsuranceDestroyByFilter: Maybe;\n lifeInsuranceRestore: LifeInsurance;\n lifeInsuranceUpdate: LifeInsurance;\n lifeInsuranceUpdateByFilter: LifeInsuranceManyResponse;\n mailCreate: Mail;\n mailCreateMany: MailManyResponse;\n mailDelete: Maybe;\n mailDeleteByFilter: Maybe;\n mailDestroy: Maybe;\n mailDestroyByFilter: Maybe;\n mailRestore: Mail;\n mailThreadCreate: MailThread;\n mailThreadCreateMany: MailThreadManyResponse;\n mailThreadDelete: Maybe;\n mailThreadDeleteByFilter: Maybe;\n mailThreadDestroy: Maybe;\n mailThreadDestroyByFilter: Maybe;\n mailThreadRestore: MailThread;\n mailThreadUpdate: MailThread;\n mailThreadUpdateByFilter: MailThreadManyResponse;\n mailUpdate: Mail;\n mailUpdateByFilter: MailManyResponse;\n managerCreate: Manager;\n managerCreateMany: ManagerManyResponse;\n managerDelete: Maybe;\n managerDeleteByFilter: Maybe;\n managerDestroy: Maybe;\n managerDestroyByFilter: Maybe;\n managerRestore: Manager;\n managerUpdate: Manager;\n marketingCampaignClickCreate: MarketingCampaignClick;\n marketingCampaignClickCreateMany: MarketingCampaignClickManyResponse;\n marketingCampaignClickDelete: Maybe;\n marketingCampaignClickDeleteByFilter: Maybe;\n marketingCampaignClickDestroy: Maybe;\n marketingCampaignClickDestroyByFilter: Maybe;\n marketingCampaignClickRestore: MarketingCampaignClick;\n marketingCampaignClickUpdate: MarketingCampaignClick;\n marketingCampaignClickUpdateByFilter: MarketingCampaignClickManyResponse;\n marketingCampaignConditionCreate: MarketingCampaignCondition;\n marketingCampaignConditionCreateMany: MarketingCampaignConditionManyResponse;\n marketingCampaignConditionDelete: Maybe;\n marketingCampaignConditionDeleteByFilter: Maybe;\n marketingCampaignConditionDestroy: Maybe;\n marketingCampaignConditionDestroyByFilter: Maybe;\n marketingCampaignConditionRestore: MarketingCampaignCondition;\n marketingCampaignConditionUpdate: MarketingCampaignCondition;\n marketingCampaignConditionUpdateByFilter: MarketingCampaignConditionManyResponse;\n marketingCampaignCreate: MarketingCampaign;\n marketingCampaignCreateMany: MarketingCampaignManyResponse;\n marketingCampaignDelete: Maybe;\n marketingCampaignDeleteByFilter: Maybe;\n marketingCampaignDestroy: Maybe;\n marketingCampaignDestroyByFilter: Maybe;\n marketingCampaignOpeningCreate: MarketingCampaignOpening;\n marketingCampaignOpeningCreateMany: MarketingCampaignOpeningManyResponse;\n marketingCampaignOpeningDelete: Maybe;\n marketingCampaignOpeningDeleteByFilter: Maybe;\n marketingCampaignOpeningDestroy: Maybe;\n marketingCampaignOpeningDestroyByFilter: Maybe;\n marketingCampaignOpeningRestore: MarketingCampaignOpening;\n marketingCampaignOpeningUpdate: MarketingCampaignOpening;\n marketingCampaignOpeningUpdateByFilter: MarketingCampaignOpeningManyResponse;\n marketingCampaignRestore: MarketingCampaign;\n marketingCampaignUpdate: MarketingCampaign;\n marketingCampaignUpdateByFilter: MarketingCampaignManyResponse;\n marketingEmailTemplateCreate: MarketingEmailTemplate;\n marketingEmailTemplateCreateMany: MarketingEmailTemplateManyResponse;\n marketingEmailTemplateDelete: Maybe;\n marketingEmailTemplateDeleteByFilter: Maybe;\n marketingEmailTemplateDestroy: Maybe;\n marketingEmailTemplateDestroyByFilter: Maybe;\n marketingEmailTemplateRestore: MarketingEmailTemplate;\n marketingEmailTemplateUpdate: MarketingEmailTemplate;\n marketingEmailTemplateUpdateByFilter: MarketingEmailTemplateManyResponse;\n marketingSmsTemplateCreate: MarketingSmsTemplate;\n marketingSmsTemplateCreateMany: MarketingSmsTemplateManyResponse;\n marketingSmsTemplateDelete: Maybe;\n marketingSmsTemplateDeleteByFilter: Maybe;\n marketingSmsTemplateDestroy: Maybe;\n marketingSmsTemplateDestroyByFilter: Maybe;\n marketingSmsTemplateRestore: MarketingSmsTemplate;\n marketingSmsTemplateUpdate: MarketingSmsTemplate;\n marketingSmsTemplateUpdateByFilter: MarketingSmsTemplateManyResponse;\n messageCreate: Message;\n messageCreateMany: MessageManyResponse;\n messageDelete: Maybe;\n messageDeleteByFilter: Maybe;\n messageDestroy: Maybe;\n messageDestroyByFilter: Maybe;\n messageRestore: Message;\n messageUpdate: Message;\n messageUpdateByFilter: MessageManyResponse;\n metaCreate: Meta;\n metaCreateMany: MetaManyResponse;\n metaDelete: Maybe;\n metaDeleteByFilter: Maybe;\n metaDestroy: Maybe;\n metaDestroyByFilter: Maybe;\n metaRestore: Meta;\n metaUpdate: Meta;\n metaUpdateByFilter: MetaManyResponse;\n notificationCreate: Notification;\n notificationCreateMany: NotificationManyResponse;\n notificationDelete: Maybe;\n notificationDeleteByFilter: Maybe;\n notificationDestroy: Maybe;\n notificationDestroyByFilter: Maybe;\n notificationRestore: Notification;\n notificationUpdate: Notification;\n notificationUpdateByFilter: NotificationManyResponse;\n outlookProfileCreate: OutlookProfile;\n outlookProfileCreateMany: OutlookProfileManyResponse;\n outlookProfileDelete: Maybe;\n outlookProfileDeleteByFilter: Maybe;\n outlookProfileDestroy: Maybe;\n outlookProfileDestroyByFilter: Maybe;\n outlookProfileRestore: OutlookProfile;\n outlookProfileUpdate: OutlookProfile;\n outlookProfileUpdateByFilter: OutlookProfileManyResponse;\n outlookServiceCreate: OutlookService;\n outlookServiceCreateMany: OutlookServiceManyResponse;\n outlookServiceDelete: Maybe;\n outlookServiceDeleteByFilter: Maybe;\n outlookServiceDestroy: Maybe;\n outlookServiceDestroyByFilter: Maybe;\n outlookServiceRestore: OutlookService;\n outlookServiceUpdate: OutlookService;\n outlookServiceUpdateByFilter: OutlookServiceManyResponse;\n paymentMethodCreate: PaymentMethod;\n paymentMethodCreateMany: PaymentMethodManyResponse;\n paymentMethodDelete: Maybe;\n paymentMethodDeleteByFilter: Maybe;\n paymentMethodDestroy: Maybe;\n paymentMethodDestroyByFilter: Maybe;\n paymentMethodRestore: PaymentMethod;\n paymentMethodUpdate: PaymentMethod;\n paymentMethodUpdateByFilter: PaymentMethodManyResponse;\n phoneCallCreate: PhoneCall;\n phoneCallCreateMany: PhoneCallManyResponse;\n phoneCallDelete: Maybe;\n phoneCallDeleteByFilter: Maybe;\n phoneCallDestroy: Maybe;\n phoneCallDestroyByFilter: Maybe;\n phoneCallParticipantCreate: PhoneCallParticipant;\n phoneCallParticipantCreateMany: PhoneCallParticipantManyResponse;\n phoneCallParticipantDelete: Maybe;\n phoneCallParticipantDeleteByFilter: Maybe;\n phoneCallParticipantDestroy: Maybe;\n phoneCallParticipantDestroyByFilter: Maybe;\n phoneCallParticipantRestore: PhoneCallParticipant;\n phoneCallParticipantUpdate: PhoneCallParticipant;\n phoneCallParticipantUpdateByFilter: PhoneCallParticipantManyResponse;\n phoneCallRecordingCreate: PhoneCallRecording;\n phoneCallRecordingCreateMany: PhoneCallRecordingManyResponse;\n phoneCallRecordingDelete: Maybe;\n phoneCallRecordingDeleteByFilter: Maybe;\n phoneCallRecordingDestroy: Maybe;\n phoneCallRecordingDestroyByFilter: Maybe;\n phoneCallRecordingRestore: PhoneCallRecording;\n phoneCallRecordingUpdate: PhoneCallRecording;\n phoneCallRecordingUpdateByFilter: PhoneCallRecordingManyResponse;\n phoneCallRestore: PhoneCall;\n phoneCallSettingCreate: PhoneCallSetting;\n phoneCallSettingCreateMany: PhoneCallSettingManyResponse;\n phoneCallSettingDelete: Maybe;\n phoneCallSettingDeleteByFilter: Maybe;\n phoneCallSettingDestroy: Maybe;\n phoneCallSettingDestroyByFilter: Maybe;\n phoneCallSettingRestore: PhoneCallSetting;\n phoneCallSettingUpdate: PhoneCallSetting;\n phoneCallSettingUpdateByFilter: PhoneCallSettingManyResponse;\n phoneCallUpdate: PhoneCall;\n phoneCallUpdateByFilter: PhoneCallManyResponse;\n phoneNumberCreate: PhoneNumber;\n phoneNumberCreateMany: PhoneNumberManyResponse;\n phoneNumberDelete: Maybe;\n phoneNumberDeleteByFilter: Maybe;\n phoneNumberDestroy: Maybe;\n phoneNumberDestroyByFilter: Maybe;\n phoneNumberRestore: PhoneNumber;\n phoneNumberUpdate: PhoneNumber;\n phoneNumberUpdateByFilter: PhoneNumberManyResponse;\n phoneNumberWarningCreate: PhoneNumberWarning;\n phoneNumberWarningCreateMany: PhoneNumberWarningManyResponse;\n phoneNumberWarningDelete: Maybe;\n phoneNumberWarningDeleteByFilter: Maybe;\n phoneNumberWarningDestroy: Maybe;\n phoneNumberWarningDestroyByFilter: Maybe;\n phoneNumberWarningRestore: PhoneNumberWarning;\n phoneNumberWarningUpdate: PhoneNumberWarning;\n phoneNumberWarningUpdateByFilter: PhoneNumberWarningManyResponse;\n /** @deprecated No longer supported. Use `system.prepareDeploy` instead. */\n prepareDeploy: DeployDataResponse;\n resendedAngencyInvitationCreate: ResendedAngencyInvitation;\n resendedAngencyInvitationCreateMany: ResendedAngencyInvitationManyResponse;\n resendedAngencyInvitationDelete: Maybe;\n resendedAngencyInvitationDeleteByFilter: Maybe;\n resendedAngencyInvitationDestroy: Maybe;\n resendedAngencyInvitationDestroyByFilter: Maybe;\n resendedAngencyInvitationRestore: ResendedAngencyInvitation;\n resendedAngencyInvitationUpdate: ResendedAngencyInvitation;\n roleCreate: Role;\n roleCreateMany: RoleManyResponse;\n roleDelete: Maybe;\n roleDeleteByFilter: Maybe;\n roleDestroy: Maybe;\n roleDestroyByFilter: Maybe;\n roleRestore: Role;\n roleUpdate: Role;\n roleUpdateByFilter: RoleManyResponse;\n sMSMessageCreate: SmsMessage;\n sMSMessageCreateMany: SmsMessageManyResponse;\n sMSMessageDelete: Maybe;\n sMSMessageDeleteByFilter: Maybe;\n sMSMessageDestroy: Maybe;\n sMSMessageDestroyByFilter: Maybe;\n sMSMessageRestore: SmsMessage;\n sMSMessageUpdate: SmsMessage;\n sMSMessageUpdateByFilter: SmsMessageManyResponse;\n sendInvitationTo8base: Maybe;\n settingsUpdate: Setting;\n shortUrlCreate: ShortUrl;\n shortUrlCreateMany: ShortUrlManyResponse;\n shortUrlDelete: Maybe;\n shortUrlDeleteByFilter: Maybe;\n shortUrlDestroy: Maybe;\n shortUrlDestroyByFilter: Maybe;\n shortUrlRestore: ShortUrl;\n shortUrlUpdate: ShortUrl;\n shortUrlUpdateByFilter: ShortUrlManyResponse;\n subscriptionPlanCreate: SubscriptionPlan;\n subscriptionPlanCreateMany: SubscriptionPlanManyResponse;\n subscriptionPlanDelete: Maybe;\n subscriptionPlanDeleteByFilter: Maybe;\n subscriptionPlanDestroy: Maybe;\n subscriptionPlanDestroyByFilter: Maybe;\n subscriptionPlanItemCreate: SubscriptionPlanItem;\n subscriptionPlanItemCreateMany: SubscriptionPlanItemManyResponse;\n subscriptionPlanItemDelete: Maybe;\n subscriptionPlanItemDeleteByFilter: Maybe;\n subscriptionPlanItemDestroy: Maybe;\n subscriptionPlanItemDestroyByFilter: Maybe;\n subscriptionPlanItemRestore: SubscriptionPlanItem;\n subscriptionPlanItemUpdate: SubscriptionPlanItem;\n subscriptionPlanItemUpdateByFilter: SubscriptionPlanItemManyResponse;\n subscriptionPlanRestore: SubscriptionPlan;\n subscriptionPlanUpdate: SubscriptionPlan;\n subscriptionPlanUpdateByFilter: SubscriptionPlanManyResponse;\n system: Maybe;\n systemSettingCreate: SystemSetting;\n systemSettingCreateMany: SystemSettingManyResponse;\n systemSettingDelete: Maybe;\n systemSettingDeleteByFilter: Maybe;\n systemSettingDestroy: Maybe;\n systemSettingDestroyByFilter: Maybe;\n systemSettingRestore: SystemSetting;\n systemSettingUpdate: SystemSetting;\n systemSettingUpdateByFilter: SystemSettingManyResponse;\n /** @deprecated No longer supported. Use `system.tableCreate` instead. */\n tableCreate: Table;\n /** @deprecated No longer supported. Use `system.tableDelete` instead. */\n tableDelete: SuccessResponse;\n /** @deprecated No longer supported. Use `system.tableUpdate` instead. */\n tableUpdate: Table;\n teamInvitationAccept: TeamInvitationAcceptResponse;\n teamInvitationCancel: Maybe;\n teamInvitationDelete: Maybe;\n teamInvitationDeleteByFilter: Maybe;\n teamInvitationDestroy: Maybe;\n teamInvitationDestroyByFilter: Maybe;\n teamInvitationResend: Maybe;\n teamInvitationRestore: TeamInvitation;\n teamMemberDelete: Maybe;\n teamMemberDestroy: Maybe;\n teamMemberRestore: TeamMember;\n teamMemberUpdate: TeamMember;\n teamMemberUpdateByFilter: TeamMemberManyResponse;\n urlCreate: Url;\n urlCreateMany: UrlManyResponse;\n urlDelete: Maybe;\n urlDeleteByFilter: Maybe;\n urlDestroy: Maybe;\n urlDestroyByFilter: Maybe;\n urlRestore: Url;\n urlUpdate: Url;\n urlUpdateByFilter: UrlManyResponse;\n userChangePassword: Maybe;\n userCreate: User;\n userCreateMany: UserManyResponse;\n userDelete: Maybe;\n userDeleteByFilter: Maybe;\n userDestroy: Maybe;\n userDestroyByFilter: Maybe;\n userLogin: Maybe;\n userPasswordForgot: Maybe;\n userPasswordForgotConfirm: Maybe;\n userRefreshToken: Maybe;\n userRestore: User;\n /** @deprecated No longer supported. Use `userSignUpWithToken` instead. */\n userSignUp: User;\n /** @deprecated No longer supported. Use `userVerificationEmailResend` instead. */\n userSignUpResend: Maybe;\n userSignUpWithPassword: User;\n userSignUpWithToken: User;\n userStatusCreate: UserStatus;\n userStatusCreateMany: UserStatusManyResponse;\n userStatusDelete: Maybe;\n userStatusDeleteByFilter: Maybe;\n userStatusDestroy: Maybe;\n userStatusDestroyByFilter: Maybe;\n userStatusRestore: UserStatus;\n userStatusUpdate: UserStatus;\n userStatusUpdateByFilter: UserStatusManyResponse;\n userUpdate: User;\n userUpdateByFilter: UserManyResponse;\n userVerificationEmailResend: Maybe;\n vendorCreate: Vendor;\n vendorCreateMany: VendorManyResponse;\n vendorDelete: Maybe;\n vendorDeleteByFilter: Maybe;\n vendorDestroy: Maybe;\n vendorDestroyByFilter: Maybe;\n vendorRestore: Vendor;\n vendorUpdate: Vendor;\n vendorUpdateByFilter: VendorManyResponse;\n /** @deprecated No longer supported. Use `system.viewCreate` instead. */\n viewCreate: Table;\n viewUpdate: Table;\n voiceMailCreate: VoiceMail;\n voiceMailCreateMany: VoiceMailManyResponse;\n voiceMailDelete: Maybe;\n voiceMailDeleteByFilter: Maybe;\n voiceMailDestroy: Maybe;\n voiceMailDestroyByFilter: Maybe;\n voiceMailMessageCreate: VoiceMailMessage;\n voiceMailMessageCreateMany: VoiceMailMessageManyResponse;\n voiceMailMessageDelete: Maybe;\n voiceMailMessageDeleteByFilter: Maybe;\n voiceMailMessageDestroy: Maybe;\n voiceMailMessageDestroyByFilter: Maybe;\n voiceMailMessageRestore: VoiceMailMessage;\n voiceMailMessageUpdate: VoiceMailMessage;\n voiceMailMessageUpdateByFilter: VoiceMailMessageManyResponse;\n voiceMailRestore: VoiceMail;\n voiceMailUpdate: VoiceMail;\n voiceMailUpdateByFilter: VoiceMailManyResponse;\n workflowAutomationCreate: WorkflowAutomation;\n workflowAutomationCreateMany: WorkflowAutomationManyResponse;\n workflowAutomationDelete: Maybe;\n workflowAutomationDeleteByFilter: Maybe;\n workflowAutomationDestroy: Maybe;\n workflowAutomationDestroyByFilter: Maybe;\n workflowAutomationRestore: WorkflowAutomation;\n workflowAutomationUpdate: WorkflowAutomation;\n workflowAutomationUpdateByFilter: WorkflowAutomationManyResponse;\n workflowClickCreate: WorkflowClick;\n workflowClickCreateMany: WorkflowClickManyResponse;\n workflowClickDelete: Maybe;\n workflowClickDeleteByFilter: Maybe;\n workflowClickDestroy: Maybe;\n workflowClickDestroyByFilter: Maybe;\n workflowClickRestore: WorkflowClick;\n workflowClickUpdate: WorkflowClick;\n workflowClickUpdateByFilter: WorkflowClickManyResponse;\n workflowConditionCreate: WorkflowCondition;\n workflowConditionCreateMany: WorkflowConditionManyResponse;\n workflowConditionDelete: Maybe;\n workflowConditionDeleteByFilter: Maybe;\n workflowConditionDestroy: Maybe;\n workflowConditionDestroyByFilter: Maybe;\n workflowConditionRestore: WorkflowCondition;\n workflowConditionUpdate: WorkflowCondition;\n workflowConditionUpdateByFilter: WorkflowConditionManyResponse;\n workflowEmailOpeningCreate: WorkflowEmailOpening;\n workflowEmailOpeningCreateMany: WorkflowEmailOpeningManyResponse;\n workflowEmailOpeningDelete: Maybe;\n workflowEmailOpeningDeleteByFilter: Maybe;\n workflowEmailOpeningDestroy: Maybe;\n workflowEmailOpeningDestroyByFilter: Maybe;\n workflowEmailOpeningRestore: WorkflowEmailOpening;\n workflowEmailOpeningUpdate: WorkflowEmailOpening;\n workflowEmailOpeningUpdateByFilter: WorkflowEmailOpeningManyResponse;\n workflowEmailTemplateCreate: WorkflowEmailTemplate;\n workflowEmailTemplateCreateMany: WorkflowEmailTemplateManyResponse;\n workflowEmailTemplateDelete: Maybe;\n workflowEmailTemplateDeleteByFilter: Maybe;\n workflowEmailTemplateDestroy: Maybe;\n workflowEmailTemplateDestroyByFilter: Maybe;\n workflowEmailTemplateRestore: WorkflowEmailTemplate;\n workflowEmailTemplateUpdate: WorkflowEmailTemplate;\n workflowEmailTemplateUpdateByFilter: WorkflowEmailTemplateManyResponse;\n workflowSmsTemplateCreate: WorkflowSmsTemplate;\n workflowSmsTemplateCreateMany: WorkflowSmsTemplateManyResponse;\n workflowSmsTemplateDelete: Maybe;\n workflowSmsTemplateDeleteByFilter: Maybe;\n workflowSmsTemplateDestroy: Maybe;\n workflowSmsTemplateDestroyByFilter: Maybe;\n workflowSmsTemplateRestore: WorkflowSmsTemplate;\n workflowSmsTemplateUpdate: WorkflowSmsTemplate;\n workflowSmsTemplateUpdateByFilter: WorkflowSmsTemplateManyResponse;\n /** @deprecated No longer supported. Use `system.workspaceCreate` instead. */\n workspaceCreate: Maybe;\n /** @deprecated No longer supported. Use `system.workspaceCreateAsync` instead. */\n workspaceCreateAsync: Maybe;\n /** @deprecated No longer supported. Use `system.workspaceDelete` instead. */\n workspaceDelete: Maybe;\n /** @deprecated No longer supported. Use `system.workspaceLeave` instead. */\n workspaceLeave: Maybe;\n /** @deprecated No longer supported. Use `system.workspaceUpdate` instead. */\n workspaceUpdate: Maybe;\n xTableCreate: XTable;\n xTableCreateMany: XTableManyResponse;\n xTableDelete: Maybe;\n xTableDeleteByFilter: Maybe;\n xTableDestroy: Maybe;\n xTableDestroyByFilter: Maybe;\n xTableRestore: XTable;\n xTableUpdate: XTable;\n xTableUpdateByFilter: XTableManyResponse;\n googleExchangeTokens: GmailService;\n googleEmailCreate: Maybe;\n googleLogout: GmailService;\n azureExchangeTokens: OutlookService;\n azureLogout: OutlookService;\n outlookEmailCreate: Maybe;\n findOrCreateDM: Maybe;\n createStripeCustomer: Maybe;\n createStripeSubscription: Maybe;\n createStripePaymentMethod: Maybe;\n transferCall: Maybe;\n};\n\nexport type MutationAdminCreateArgs = {\n data: AdminCreateInput;\n};\n\nexport type MutationAdminCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationAdminDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAdminDeleteByFilterArgs = {\n filter: AdminFilter;\n force?: Maybe;\n};\n\nexport type MutationAdminDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAdminDestroyByFilterArgs = {\n filter: AdminFilter;\n force?: Maybe;\n};\n\nexport type MutationAdminRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationAdminUpdateArgs = {\n data: AdminUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\n\nexport type MutationAgencyCreateArgs = {\n data: AgencyCreateInput;\n};\n\nexport type MutationAgencyCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationAgencyDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyDeleteByFilterArgs = {\n filter: AgencyFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyDestroyByFilterArgs = {\n filter: AgencyFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyEmailServiceCreateArgs = {\n data: AgencyEmailServiceCreateInput;\n};\n\nexport type MutationAgencyEmailServiceCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationAgencyEmailServiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyEmailServiceDeleteByFilterArgs = {\n filter: AgencyEmailServiceFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyEmailServiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyEmailServiceDestroyByFilterArgs = {\n filter: AgencyEmailServiceFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyEmailServiceRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationAgencyEmailServiceUpdateArgs = {\n data: AgencyEmailServiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\n\nexport type MutationAgencyInvitationCreateArgs = {\n data: AgencyInvitationCreateInput;\n};\n\nexport type MutationAgencyInvitationCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationAgencyInvitationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyInvitationDeleteByFilterArgs = {\n filter: AgencyInvitationFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyInvitationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyInvitationDestroyByFilterArgs = {\n filter: AgencyInvitationFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyInvitationRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationAgencyInvitationUpdateArgs = {\n data: AgencyInvitationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\n\nexport type MutationAgencyInvitationUpdateByFilterArgs = {\n data: AgencyInvitationUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationAgencyRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationAgencyUpdateArgs = {\n data: AgencyUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\n\nexport type MutationAgencyUpdateByFilterArgs = {\n data: AgencyUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationAgencyUserCreateArgs = {\n data: AgencyUserCreateInput;\n};\n\nexport type MutationAgencyUserCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationAgencyUserDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyUserDeleteByFilterArgs = {\n filter: AgencyUserFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyUserDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAgencyUserDestroyByFilterArgs = {\n filter: AgencyUserFilter;\n force?: Maybe;\n};\n\nexport type MutationAgencyUserRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationAgencyUserUpdateArgs = {\n data: AgencyUserUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationAgencyUserUpdateByFilterArgs = {\n data: AgencyUserUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationAgentCreateArgs = {\n data: AgentCreateInput;\n};\nexport type MutationAgentCreateManyArgs = {\n data: Array>;\n};\nexport type MutationAgentDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAgentDeleteByFilterArgs = {\n filter: AgentFilter;\n force?: Maybe;\n};\n\nexport type MutationAgentDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAgentDestroyByFilterArgs = {\n filter: AgentFilter;\n force?: Maybe;\n};\nexport type MutationAgentRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationAgentUpdateArgs = {\n data: AgentUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationAgentUpdateByFilterArgs = {\n data: AgentUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationAnnouncementCreateArgs = {\n data: AnnouncementCreateInput;\n};\n\nexport type MutationAnnouncementCreateManyArgs = {\n data: Array>;\n};\nexport type MutationAnnouncementDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAnnouncementDeleteByFilterArgs = {\n filter: AnnouncementFilter;\n force?: Maybe;\n};\nexport type MutationAnnouncementDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAnnouncementDestroyByFilterArgs = {\n filter: AnnouncementFilter;\n force?: Maybe;\n};\n\nexport type MutationAnnouncementRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationAnnouncementUpdateArgs = {\n data: AnnouncementUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationAnnouncementUpdateByFilterArgs = {\n data: AnnouncementUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationApiTokenCreateArgs = {\n data: ApiTokenCreateInput;\n};\nexport type MutationApiTokenDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationApiTokenDeleteByFilterArgs = {\n filter: ApiTokenFilter;\n force?: Maybe;\n};\nexport type MutationApiTokenDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationApiTokenDestroyByFilterArgs = {\n filter: ApiTokenFilter;\n force?: Maybe;\n};\nexport type MutationApiTokenRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationApiTokenUpdateArgs = {\n data: ApiTokenUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationApiTokenUpdateByFilterArgs = {\n data: ApiTokenUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationApplicationDeleteArgs = {\n data: ApplicationDeleteMutationInput;\n};\nexport type MutationApplicationInstallArgs = {\n data: ApplicationInstallInput;\n};\n\nexport type MutationApplicationUpdateArgs = {\n data: ApplicationUpdateInput;\n};\nexport type MutationAuthenticationProfileCreateArgs = {\n data: AuthenticationProfileCreateInput;\n};\nexport type MutationAuthenticationProfileCreateManyArgs = {\n data: Array>;\n};\nexport type MutationAuthenticationProfileDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAuthenticationProfileDeleteByFilterArgs = {\n filter: AuthenticationProfileFilter;\n force?: Maybe;\n};\nexport type MutationAuthenticationProfileDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationAuthenticationProfileDestroyByFilterArgs = {\n filter: AuthenticationProfileFilter;\n force?: Maybe;\n};\nexport type MutationAuthenticationProfileRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationAuthenticationProfileUpdateArgs = {\n data: AuthenticationProfileUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationAuthenticationProfileUpdateByFilterArgs = {\n data: AuthenticationProfileUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationAuthenticationSettingsUpdateArgs = {\n data: AuthenticationSettingUpdateInput;\n};\nexport type MutationAutomaticCallConfigCreateArgs = {\n data: AutomaticCallConfigCreateInput;\n};\nexport type MutationAutomaticCallConfigCreateManyArgs = {\n data: Array>;\n};\nexport type MutationAutomaticCallConfigDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAutomaticCallConfigDeleteByFilterArgs = {\n filter: AutomaticCallConfigFilter;\n force?: Maybe;\n};\n\nexport type MutationAutomaticCallConfigDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationAutomaticCallConfigDestroyByFilterArgs = {\n filter: AutomaticCallConfigFilter;\n force?: Maybe;\n};\nexport type MutationAutomaticCallConfigRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationAutomaticCallConfigUpdateArgs = {\n data: AutomaticCallConfigUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationAutomaticCallConfigUpdateByFilterArgs = {\n data: AutomaticCallConfigUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationBillingDetailsUpdateArgs = {\n data: BillingDetailsUpdateMutationInput;\n};\n\nexport type MutationBillingPlanUpdateArgs = {\n data: BillingPlanUpdateMutationInput;\n};\nexport type MutationCampaignCreateArgs = {\n data: CampaignCreateInput;\n};\n\nexport type MutationCampaignCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCampaignDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCampaignDeleteByFilterArgs = {\n filter: CampaignFilter;\n force?: Maybe;\n};\nexport type MutationCampaignDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCampaignDestroyByFilterArgs = {\n filter: CampaignFilter;\n force?: Maybe;\n};\nexport type MutationCampaignRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCampaignUpdateArgs = {\n data: CampaignUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCampaignUpdateByFilterArgs = {\n data: CampaignUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationChannelCreateArgs = {\n data: ChannelCreateInput;\n};\n\nexport type MutationChannelCreateManyArgs = {\n data: Array>;\n};\nexport type MutationChannelDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationChannelDeleteByFilterArgs = {\n filter: ChannelFilter;\n force?: Maybe;\n};\nexport type MutationChannelDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationChannelDestroyByFilterArgs = {\n filter: ChannelFilter;\n force?: Maybe;\n};\n\nexport type MutationChannelMemberCreateArgs = {\n data: ChannelMemberCreateInput;\n};\nexport type MutationChannelMemberCreateManyArgs = {\n data: Array>;\n};\nexport type MutationChannelMemberDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationChannelMemberDeleteByFilterArgs = {\n filter: ChannelMemberFilter;\n force?: Maybe;\n};\nexport type MutationChannelMemberDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationChannelMemberDestroyByFilterArgs = {\n filter: ChannelMemberFilter;\n force?: Maybe;\n};\n\nexport type MutationChannelMemberRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationChannelMemberUpdateArgs = {\n data: ChannelMemberUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationChannelMemberUpdateByFilterArgs = {\n data: ChannelMemberUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationChannelRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationChannelUpdateArgs = {\n data: ChannelUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationChannelUpdateByFilterArgs = {\n data: ChannelUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationCiCdMigrationCreateArgs = {\n data: CiCdMigrationCreateInput;\n};\nexport type MutationCiCdMigrationCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCiCdMigrationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCiCdMigrationDeleteByFilterArgs = {\n filter: CiCdMigrationFilter;\n force?: Maybe;\n};\n\nexport type MutationCiCdMigrationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCiCdMigrationDestroyByFilterArgs = {\n filter: CiCdMigrationFilter;\n force?: Maybe;\n};\nexport type MutationCiCdMigrationRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCiCdMigrationUpdateArgs = {\n data: CiCdMigrationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCiCdMigrationUpdateByFilterArgs = {\n data: CiCdMigrationUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationCompanyCreateArgs = {\n data: CompanyCreateInput;\n};\nexport type MutationCompanyCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanyDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyDeleteByFilterArgs = {\n filter: CompanyFilter;\n force?: Maybe;\n};\nexport type MutationCompanyDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationCompanyDestroyByFilterArgs = {\n filter: CompanyFilter;\n force?: Maybe;\n};\nexport type MutationCompanyInvitationCreateArgs = {\n data: CompanyInvitationCreateInput;\n};\nexport type MutationCompanyInvitationCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanyInvitationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationCompanyInvitationDeleteByFilterArgs = {\n filter: CompanyInvitationFilter;\n force?: Maybe;\n};\nexport type MutationCompanyInvitationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyInvitationDestroyByFilterArgs = {\n filter: CompanyInvitationFilter;\n force?: Maybe;\n};\nexport type MutationCompanyInvitationRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanyInvitationUpdateArgs = {\n data: CompanyInvitationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanyInvitationUpdateByFilterArgs = {\n data: CompanyInvitationUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationCompanyInvoiceCreateArgs = {\n data: CompanyInvoiceCreateInput;\n};\n\nexport type MutationCompanyInvoiceCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanyInvoiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyInvoiceDeleteByFilterArgs = {\n filter: CompanyInvoiceFilter;\n force?: Maybe;\n};\nexport type MutationCompanyInvoiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyInvoiceDestroyByFilterArgs = {\n filter: CompanyInvoiceFilter;\n force?: Maybe;\n};\n\nexport type MutationCompanyInvoiceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanyInvoiceUpdateArgs = {\n data: CompanyInvoiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanyInvoiceUpdateByFilterArgs = {\n data: CompanyInvoiceUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationCompanyPaymentMethodCreateArgs = {\n data: CompanyPaymentMethodCreateInput;\n};\nexport type MutationCompanyPaymentMethodCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanyPaymentMethodDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyPaymentMethodDeleteByFilterArgs = {\n filter: CompanyPaymentMethodFilter;\n force?: Maybe;\n};\nexport type MutationCompanyPaymentMethodDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanyPaymentMethodDestroyByFilterArgs = {\n filter: CompanyPaymentMethodFilter;\n force?: Maybe;\n};\n\nexport type MutationCompanyPaymentMethodRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanyPaymentMethodUpdateArgs = {\n data: CompanyPaymentMethodUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanyPaymentMethodUpdateByFilterArgs = {\n data: CompanyPaymentMethodUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationCompanyRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanySubCouponCreateArgs = {\n data: CompanySubCouponCreateInput;\n};\n\nexport type MutationCompanySubCouponCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanySubCouponDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanySubCouponDeleteByFilterArgs = {\n filter: CompanySubCouponFilter;\n force?: Maybe;\n};\nexport type MutationCompanySubCouponDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanySubCouponDestroyByFilterArgs = {\n filter: CompanySubCouponFilter;\n force?: Maybe;\n};\nexport type MutationCompanySubCouponRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanySubCouponUpdateArgs = {\n data: CompanySubCouponUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanySubCouponUpdateByFilterArgs = {\n data: CompanySubCouponUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationCompanySubCreateArgs = {\n data: CompanySubCreateInput;\n};\nexport type MutationCompanySubCreateManyArgs = {\n data: Array>;\n};\nexport type MutationCompanySubDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanySubDeleteByFilterArgs = {\n filter: CompanySubFilter;\n force?: Maybe;\n};\nexport type MutationCompanySubDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationCompanySubDestroyByFilterArgs = {\n filter: CompanySubFilter;\n force?: Maybe;\n};\n\nexport type MutationCompanySubRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationCompanySubUpdateArgs = {\n data: CompanySubUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanySubUpdateByFilterArgs = {\n data: CompanySubUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationCompanyUpdateArgs = {\n data: CompanyUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationCompanyUpdateByFilterArgs = {\n data: CompanyUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationDeployArgs = {\n data?: Maybe;\n};\n\nexport type MutationDriverIncidentCreateArgs = {\n data: DriverIncidentCreateInput;\n};\nexport type MutationDriverIncidentCreateManyArgs = {\n data: Array>;\n};\nexport type MutationDriverIncidentDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationDriverIncidentDeleteByFilterArgs = {\n filter: DriverIncidentFilter;\n force?: Maybe;\n};\nexport type MutationDriverIncidentDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationDriverIncidentDestroyByFilterArgs = {\n filter: DriverIncidentFilter;\n force?: Maybe;\n};\n\nexport type MutationDriverIncidentRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationDriverIncidentUpdateArgs = {\n data: DriverIncidentUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationDriverIncidentUpdateByFilterArgs = {\n data: DriverIncidentUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationEmailInboundServiceCreateArgs = {\n data: EmailInboundServiceCreateInput;\n};\nexport type MutationEmailInboundServiceCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationEmailInboundServiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEmailInboundServiceDeleteByFilterArgs = {\n filter: EmailInboundServiceFilter;\n force?: Maybe;\n};\nexport type MutationEmailInboundServiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEmailInboundServiceDestroyByFilterArgs = {\n filter: EmailInboundServiceFilter;\n force?: Maybe;\n};\nexport type MutationEmailInboundServiceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationEmailInboundServiceUpdateArgs = {\n data: EmailInboundServiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationEmailInboundServiceUpdateByFilterArgs = {\n data: EmailInboundServiceUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationEmailOutboundServiceCreateArgs = {\n data: EmailOutboundServiceCreateInput;\n};\nexport type MutationEmailOutboundServiceCreateManyArgs = {\n data: Array>;\n};\nexport type MutationEmailOutboundServiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEmailOutboundServiceDeleteByFilterArgs = {\n filter: EmailOutboundServiceFilter;\n force?: Maybe;\n};\nexport type MutationEmailOutboundServiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEmailOutboundServiceDestroyByFilterArgs = {\n filter: EmailOutboundServiceFilter;\n force?: Maybe;\n};\n\nexport type MutationEmailOutboundServiceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationEmailOutboundServiceUpdateArgs = {\n data: EmailOutboundServiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationEmailOutboundServiceUpdateByFilterArgs = {\n data: EmailOutboundServiceUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationEnvironmentVariableCreateArgs = {\n data: EnvironmentVariableCreateInput;\n};\nexport type MutationEnvironmentVariableCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationEnvironmentVariableDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEnvironmentVariableDeleteByFilterArgs = {\n filter: EnvironmentVariableFilter;\n force?: Maybe;\n};\nexport type MutationEnvironmentVariableDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationEnvironmentVariableDestroyByFilterArgs = {\n filter: EnvironmentVariableFilter;\n force?: Maybe;\n};\nexport type MutationEnvironmentVariableRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationEnvironmentVariableUpdateArgs = {\n data: EnvironmentVariableUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationEnvironmentVariableUpdateByFilterArgs = {\n data: EnvironmentVariableUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationFieldCreateArgs = {\n data: TableFieldCreateInput;\n};\n\nexport type MutationFieldDeleteArgs = {\n data: TableFieldDeleteInput;\n};\nexport type MutationFieldUpdateArgs = {\n data: TableFieldUpdateInput;\n};\nexport type MutationFieldUpdatePositionArgs = {\n data: TableFieldPositionUpdateInput;\n};\n\nexport type MutationFileCreateArgs = {\n data: FileCreateInput;\n};\nexport type MutationFileCreateManyArgs = {\n data: Array>;\n};\nexport type MutationFileDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationFileDeleteByFilterArgs = {\n filter: FileFilter;\n force?: Maybe;\n};\nexport type MutationFileDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationFileDestroyByFilterArgs = {\n filter: FileFilter;\n force?: Maybe;\n};\nexport type MutationFileRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationFileUpdateArgs = {\n data: FileUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationFileUpdateByFilterArgs = {\n data: FileUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationFreePhoneNumberCreateArgs = {\n data: FreePhoneNumberCreateInput;\n};\nexport type MutationFreePhoneNumberCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationFreePhoneNumberDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationFreePhoneNumberDeleteByFilterArgs = {\n filter: FreePhoneNumberFilter;\n force?: Maybe;\n};\nexport type MutationFreePhoneNumberDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationFreePhoneNumberDestroyByFilterArgs = {\n filter: FreePhoneNumberFilter;\n force?: Maybe;\n};\nexport type MutationFreePhoneNumberRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationFreePhoneNumberUpdateArgs = {\n data: FreePhoneNumberUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationGmailProfileCreateArgs = {\n data: GmailProfileCreateInput;\n};\n\nexport type MutationGmailProfileCreateManyArgs = {\n data: Array>;\n};\nexport type MutationGmailProfileDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationGmailProfileDeleteByFilterArgs = {\n filter: GmailProfileFilter;\n force?: Maybe;\n};\nexport type MutationGmailProfileDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationGmailProfileDestroyByFilterArgs = {\n filter: GmailProfileFilter;\n force?: Maybe;\n};\n\nexport type MutationGmailProfileRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationGmailProfileUpdateArgs = {\n data: GmailProfileUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationGmailProfileUpdateByFilterArgs = {\n data: GmailProfileUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationGmailServiceCreateArgs = {\n data: GmailServiceCreateInput;\n};\nexport type MutationGmailServiceCreateManyArgs = {\n data: Array>;\n};\nexport type MutationGmailServiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationGmailServiceDeleteByFilterArgs = {\n filter: GmailServiceFilter;\n force?: Maybe;\n};\n\nexport type MutationGmailServiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationGmailServiceDestroyByFilterArgs = {\n filter: GmailServiceFilter;\n force?: Maybe;\n};\nexport type MutationGmailServiceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationGmailServiceUpdateArgs = {\n data: GmailServiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationGmailServiceUpdateByFilterArgs = {\n data: GmailServiceUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationIfsScoreCreateArgs = {\n data: IfsScoreCreateInput;\n};\nexport type MutationIfsScoreCreateManyArgs = {\n data: Array>;\n};\nexport type MutationIfsScoreDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationIfsScoreDeleteByFilterArgs = {\n filter: IfsScoreFilter;\n force?: Maybe;\n};\nexport type MutationIfsScoreDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationIfsScoreDestroyByFilterArgs = {\n filter: IfsScoreFilter;\n force?: Maybe;\n};\n\nexport type MutationIfsScoreRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationIfsScoreUpdateArgs = {\n data: IfsScoreUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationIfsScoreUpdateByFilterArgs = {\n data: IfsScoreUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationInboundPhoneCallCreateArgs = {\n data: InboundPhoneCallCreateInput;\n};\nexport type MutationInboundPhoneCallCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationInboundPhoneCallDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationInboundPhoneCallDeleteByFilterArgs = {\n filter: InboundPhoneCallFilter;\n force?: Maybe;\n};\nexport type MutationInboundPhoneCallDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationInboundPhoneCallDestroyByFilterArgs = {\n filter: InboundPhoneCallFilter;\n force?: Maybe;\n};\nexport type MutationInboundPhoneCallRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationInboundPhoneCallUpdateArgs = {\n data: InboundPhoneCallUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationInboundPhoneCallUpdateByFilterArgs = {\n data: InboundPhoneCallUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationIndexCreateArgs = {\n data: IndexCreateInput;\n};\nexport type MutationIndexDeleteArgs = {\n data: IndexDeleteInput;\n};\nexport type MutationIndexUpdateArgs = {\n data: IndexUpdateInput;\n};\nexport type MutationInviteMembersArgs = {\n data: InviteMembersInput;\n force?: Maybe;\n};\n\nexport type MutationInvokeArgs = {\n data?: Maybe;\n};\nexport type MutationLeadActionCreateArgs = {\n data: LeadActionCreateInput;\n};\nexport type MutationLeadActionCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadActionDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadActionDeleteByFilterArgs = {\n filter: LeadActionFilter;\n force?: Maybe;\n};\nexport type MutationLeadActionDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadActionDestroyByFilterArgs = {\n filter: LeadActionFilter;\n force?: Maybe;\n};\nexport type MutationLeadActionRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadActionUpdateArgs = {\n data: LeadActionUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadActionUpdateByFilterArgs = {\n data: LeadActionUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadCallCadenceCreateArgs = {\n data: LeadCallCadenceCreateInput;\n};\nexport type MutationLeadCallCadenceCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadCallCadenceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadCallCadenceDeleteByFilterArgs = {\n filter: LeadCallCadenceFilter;\n force?: Maybe;\n};\nexport type MutationLeadCallCadenceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationLeadCallCadenceDestroyByFilterArgs = {\n filter: LeadCallCadenceFilter;\n force?: Maybe;\n};\nexport type MutationLeadCallCadenceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadCallCadenceUpdateArgs = {\n data: LeadCallCadenceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadCallCadenceUpdateByFilterArgs = {\n data: LeadCallCadenceUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadContactCreateArgs = {\n data: LeadContactCreateInput;\n};\nexport type MutationLeadContactCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadContactDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadContactDeleteByFilterArgs = {\n filter: LeadContactFilter;\n force?: Maybe;\n};\nexport type MutationLeadContactDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadContactDestroyByFilterArgs = {\n filter: LeadContactFilter;\n force?: Maybe;\n};\nexport type MutationLeadContactRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadContactUpdateArgs = {\n data: LeadContactUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadContactUpdateByFilterArgs = {\n data: LeadContactUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadCreateArgs = {\n data: LeadCreateInput;\n};\n\nexport type MutationLeadCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDeleteByFilterArgs = {\n filter: LeadFilter;\n force?: Maybe;\n};\nexport type MutationLeadDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDestroyByFilterArgs = {\n filter: LeadFilter;\n force?: Maybe;\n};\nexport type MutationLeadDispositionCreateArgs = {\n data: LeadDispositionCreateInput;\n};\nexport type MutationLeadDispositionCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadDispositionDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDispositionDeleteByFilterArgs = {\n filter: LeadDispositionFilter;\n force?: Maybe;\n};\nexport type MutationLeadDispositionDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDispositionDestroyByFilterArgs = {\n filter: LeadDispositionFilter;\n force?: Maybe;\n};\nexport type MutationLeadDispositionRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadDispositionUpdateArgs = {\n data: LeadDispositionUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadDispositionUpdateByFilterArgs = {\n data: LeadDispositionUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadDriverCreateArgs = {\n data: LeadDriverCreateInput;\n};\n\nexport type MutationLeadDriverCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadDriverDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDriverDeleteByFilterArgs = {\n filter: LeadDriverFilter;\n force?: Maybe;\n};\nexport type MutationLeadDriverDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadDriverDestroyByFilterArgs = {\n filter: LeadDriverFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadDriverRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadDriverUpdateArgs = {\n data: LeadDriverUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadDriverUpdateByFilterArgs = {\n data: LeadDriverUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadHistoryCreateArgs = {\n data: LeadHistoryCreateInput;\n};\nexport type MutationLeadHistoryCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadHistoryDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadHistoryDeleteByFilterArgs = {\n filter: LeadHistoryFilter;\n force?: Maybe;\n};\nexport type MutationLeadHistoryDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadHistoryDestroyByFilterArgs = {\n filter: LeadHistoryFilter;\n force?: Maybe;\n};\nexport type MutationLeadHistoryRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadHistoryUpdateArgs = {\n data: LeadHistoryUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadHistoryUpdateByFilterArgs = {\n data: LeadHistoryUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadNoteCreateArgs = {\n data: LeadNoteCreateInput;\n};\nexport type MutationLeadNoteCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadNoteDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadNoteDeleteByFilterArgs = {\n filter: LeadNoteFilter;\n force?: Maybe;\n};\nexport type MutationLeadNoteDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadNoteDestroyByFilterArgs = {\n filter: LeadNoteFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadNoteRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadNoteUpdateArgs = {\n data: LeadNoteUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadNoteUpdateByFilterArgs = {\n data: LeadNoteUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadPhoneNumberCreateArgs = {\n data: LeadPhoneNumberCreateInput;\n};\n\nexport type MutationLeadPhoneNumberCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadPhoneNumberDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadPhoneNumberDeleteByFilterArgs = {\n filter: LeadPhoneNumberFilter;\n force?: Maybe;\n};\nexport type MutationLeadPhoneNumberDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadPhoneNumberDestroyByFilterArgs = {\n filter: LeadPhoneNumberFilter;\n force?: Maybe;\n};\nexport type MutationLeadPhoneNumberRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadPhoneNumberUpdateArgs = {\n data: LeadPhoneNumberUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadPhoneNumberUpdateByFilterArgs = {\n data: LeadPhoneNumberUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadSourceCreateArgs = {\n data: LeadSourceCreateInput;\n};\nexport type MutationLeadSourceCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadSourceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadSourceDeleteByFilterArgs = {\n filter: LeadSourceFilter;\n force?: Maybe;\n};\nexport type MutationLeadSourceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadSourceDestroyByFilterArgs = {\n filter: LeadSourceFilter;\n force?: Maybe;\n};\nexport type MutationLeadSourceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadSourceUpdateArgs = {\n data: LeadSourceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadSourceUpdateByFilterArgs = {\n data: LeadSourceUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadStageCreateArgs = {\n data: LeadStageCreateInput;\n};\n\nexport type MutationLeadStageCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadStageDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadStageDeleteByFilterArgs = {\n filter: LeadStageFilter;\n force?: Maybe;\n};\nexport type MutationLeadStageDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadStageDestroyByFilterArgs = {\n filter: LeadStageFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadStageHistoryCreateArgs = {\n data: LeadStageHistoryCreateInput;\n};\nexport type MutationLeadStageHistoryCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadStageHistoryDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadStageHistoryDeleteByFilterArgs = {\n filter: LeadStageHistoryFilter;\n force?: Maybe;\n};\nexport type MutationLeadStageHistoryDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadStageHistoryDestroyByFilterArgs = {\n filter: LeadStageHistoryFilter;\n force?: Maybe;\n};\nexport type MutationLeadStageHistoryRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadStageHistoryUpdateArgs = {\n data: LeadStageHistoryUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadStageRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadStageUpdateArgs = {\n data: LeadStageUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadStageUpdateByFilterArgs = {\n data: LeadStageUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadTaskCreateArgs = {\n data: LeadTaskCreateInput;\n};\nexport type MutationLeadTaskCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTaskDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTaskDeleteByFilterArgs = {\n filter: LeadTaskFilter;\n force?: Maybe;\n};\nexport type MutationLeadTaskDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTaskDestroyByFilterArgs = {\n filter: LeadTaskFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadTaskRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTaskTypeCreateArgs = {\n data: LeadTaskTypeCreateInput;\n};\nexport type MutationLeadTaskTypeCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadTaskTypeDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTaskTypeDeleteByFilterArgs = {\n filter: LeadTaskTypeFilter;\n force?: Maybe;\n};\nexport type MutationLeadTaskTypeDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTaskTypeDestroyByFilterArgs = {\n filter: LeadTaskTypeFilter;\n force?: Maybe;\n};\nexport type MutationLeadTaskTypeRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTaskTypeUpdateArgs = {\n data: LeadTaskTypeUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTaskTypeUpdateByFilterArgs = {\n data: LeadTaskTypeUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTaskUpdateArgs = {\n data: LeadTaskUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTaskUpdateByFilterArgs = {\n data: LeadTaskUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadTypeAutoCreateArgs = {\n data: LeadTypeAutoCreateInput;\n};\nexport type MutationLeadTypeAutoCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTypeAutoDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeAutoDeleteByFilterArgs = {\n filter: LeadTypeAutoFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeAutoDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeAutoDestroyByFilterArgs = {\n filter: LeadTypeAutoFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadTypeAutoRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeAutoUpdateArgs = {\n data: LeadTypeAutoUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeAutoUpdateByFilterArgs = {\n data: LeadTypeAutoUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoCreateArgs = {\n data: LeadTypeCommercialAutoCreateInput;\n};\nexport type MutationLeadTypeCommercialAutoCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadTypeCommercialAutoDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoDeleteByFilterArgs = {\n filter: LeadTypeCommercialAutoFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoDestroyByFilterArgs = {\n filter: LeadTypeCommercialAutoFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeCommercialAutoUpdateArgs = {\n data: LeadTypeCommercialAutoUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeCommercialAutoUpdateByFilterArgs = {\n data: LeadTypeCommercialAutoUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTypeEmployeeBenefitCreateArgs = {\n data: LeadTypeEmployeeBenefitCreateInput;\n};\n\nexport type MutationLeadTypeEmployeeBenefitCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTypeEmployeeBenefitDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeEmployeeBenefitDeleteByFilterArgs = {\n filter: LeadTypeEmployeeBenefitFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeEmployeeBenefitDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeEmployeeBenefitDestroyByFilterArgs = {\n filter: LeadTypeEmployeeBenefitFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadTypeEmployeeBenefitRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeEmployeeBenefitUpdateArgs = {\n data: LeadTypeEmployeeBenefitUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeEmployeeBenefitUpdateByFilterArgs = {\n data: LeadTypeEmployeeBenefitUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTypeGeneralLiabilityCreateArgs = {\n data: LeadTypeGeneralLiabilityCreateInput;\n};\nexport type MutationLeadTypeGeneralLiabilityCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTypeGeneralLiabilityDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeGeneralLiabilityDeleteByFilterArgs = {\n filter: LeadTypeGeneralLiabilityFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadTypeGeneralLiabilityDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeGeneralLiabilityDestroyByFilterArgs = {\n filter: LeadTypeGeneralLiabilityFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeGeneralLiabilityRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeGeneralLiabilityUpdateArgs = {\n data: LeadTypeGeneralLiabilityUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeGeneralLiabilityUpdateByFilterArgs = {\n data: LeadTypeGeneralLiabilityUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationLeadTypeHomeCreateArgs = {\n data: LeadTypeHomeCreateInput;\n};\nexport type MutationLeadTypeHomeCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTypeHomeDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeHomeDeleteByFilterArgs = {\n filter: LeadTypeHomeFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeHomeDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeHomeDestroyByFilterArgs = {\n filter: LeadTypeHomeFilter;\n force?: Maybe;\n};\n\nexport type MutationLeadTypeHomeRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeHomeUpdateArgs = {\n data: LeadTypeHomeUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeHomeUpdateByFilterArgs = {\n data: LeadTypeHomeUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTypeLifeCreateArgs = {\n data: LeadTypeLifeCreateInput;\n};\nexport type MutationLeadTypeLifeCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLeadTypeLifeDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeLifeDeleteByFilterArgs = {\n filter: LeadTypeLifeFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeLifeDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeLifeDestroyByFilterArgs = {\n filter: LeadTypeLifeFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeLifeRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLeadTypeLifeUpdateArgs = {\n data: LeadTypeLifeUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeLifeUpdateByFilterArgs = {\n data: LeadTypeLifeUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationCreateArgs = {\n data: LeadTypeWorkersCompensationCreateInput;\n};\n\nexport type MutationLeadTypeWorkersCompensationCreateManyArgs = {\n data: Array>;\n};\nexport type MutationLeadTypeWorkersCompensationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationDeleteByFilterArgs = {\n filter: LeadTypeWorkersCompensationFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationDestroyByFilterArgs = {\n filter: LeadTypeWorkersCompensationFilter;\n force?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationLeadTypeWorkersCompensationUpdateArgs = {\n data: LeadTypeWorkersCompensationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadTypeWorkersCompensationUpdateByFilterArgs = {\n data: LeadTypeWorkersCompensationUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLeadUpdateArgs = {\n data: LeadUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLeadUpdateByFilterArgs = {\n data: LeadUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationLifeInsuranceCreateArgs = {\n data: LifeInsuranceCreateInput;\n};\nexport type MutationLifeInsuranceCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationLifeInsuranceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLifeInsuranceDeleteByFilterArgs = {\n filter: LifeInsuranceFilter;\n force?: Maybe;\n};\nexport type MutationLifeInsuranceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationLifeInsuranceDestroyByFilterArgs = {\n filter: LifeInsuranceFilter;\n force?: Maybe;\n};\nexport type MutationLifeInsuranceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationLifeInsuranceUpdateArgs = {\n data: LifeInsuranceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationLifeInsuranceUpdateByFilterArgs = {\n data: LifeInsuranceUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMailCreateArgs = {\n data: MailCreateInput;\n};\n\nexport type MutationMailCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMailDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMailDeleteByFilterArgs = {\n filter: MailFilter;\n force?: Maybe;\n};\nexport type MutationMailDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMailDestroyByFilterArgs = {\n filter: MailFilter;\n force?: Maybe;\n};\n\nexport type MutationMailRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMailThreadCreateArgs = {\n data: MailThreadCreateInput;\n};\nexport type MutationMailThreadCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMailThreadDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMailThreadDeleteByFilterArgs = {\n filter: MailThreadFilter;\n force?: Maybe;\n};\nexport type MutationMailThreadDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationMailThreadDestroyByFilterArgs = {\n filter: MailThreadFilter;\n force?: Maybe;\n};\nexport type MutationMailThreadRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMailThreadUpdateArgs = {\n data: MailThreadUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMailThreadUpdateByFilterArgs = {\n data: MailThreadUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMailUpdateArgs = {\n data: MailUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMailUpdateByFilterArgs = {\n data: MailUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationManagerCreateArgs = {\n data: ManagerCreateInput;\n};\nexport type MutationManagerCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationManagerDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationManagerDeleteByFilterArgs = {\n filter: ManagerFilter;\n force?: Maybe;\n};\nexport type MutationManagerDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationManagerDestroyByFilterArgs = {\n filter: ManagerFilter;\n force?: Maybe;\n};\nexport type MutationManagerRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationManagerUpdateArgs = {\n data: ManagerUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingCampaignClickCreateArgs = {\n data: MarketingCampaignClickCreateInput;\n};\nexport type MutationMarketingCampaignClickCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMarketingCampaignClickDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignClickDeleteByFilterArgs = {\n filter: MarketingCampaignClickFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignClickDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignClickDestroyByFilterArgs = {\n filter: MarketingCampaignClickFilter;\n force?: Maybe;\n};\n\nexport type MutationMarketingCampaignClickRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingCampaignClickUpdateArgs = {\n data: MarketingCampaignClickUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingCampaignClickUpdateByFilterArgs = {\n data: MarketingCampaignClickUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMarketingCampaignConditionCreateArgs = {\n data: MarketingCampaignConditionCreateInput;\n};\nexport type MutationMarketingCampaignConditionCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMarketingCampaignConditionDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignConditionDeleteByFilterArgs = {\n filter: MarketingCampaignConditionFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignConditionDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationMarketingCampaignConditionDestroyByFilterArgs = {\n filter: MarketingCampaignConditionFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignConditionRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingCampaignConditionUpdateArgs = {\n data: MarketingCampaignConditionUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingCampaignConditionUpdateByFilterArgs = {\n data: MarketingCampaignConditionUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMarketingCampaignCreateArgs = {\n data: MarketingCampaignCreateInput;\n};\n\nexport type MutationMarketingCampaignCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMarketingCampaignDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignDeleteByFilterArgs = {\n filter: MarketingCampaignFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignDestroyByFilterArgs = {\n filter: MarketingCampaignFilter;\n force?: Maybe;\n};\n\nexport type MutationMarketingCampaignOpeningCreateArgs = {\n data: MarketingCampaignOpeningCreateInput;\n};\nexport type MutationMarketingCampaignOpeningCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMarketingCampaignOpeningDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignOpeningDeleteByFilterArgs = {\n filter: MarketingCampaignOpeningFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignOpeningDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationMarketingCampaignOpeningDestroyByFilterArgs = {\n filter: MarketingCampaignOpeningFilter;\n force?: Maybe;\n};\nexport type MutationMarketingCampaignOpeningRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingCampaignOpeningUpdateArgs = {\n data: MarketingCampaignOpeningUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingCampaignOpeningUpdateByFilterArgs = {\n data: MarketingCampaignOpeningUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMarketingCampaignRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingCampaignUpdateArgs = {\n data: MarketingCampaignUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingCampaignUpdateByFilterArgs = {\n data: MarketingCampaignUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationMarketingEmailTemplateCreateArgs = {\n data: MarketingEmailTemplateCreateInput;\n};\nexport type MutationMarketingEmailTemplateCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMarketingEmailTemplateDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingEmailTemplateDeleteByFilterArgs = {\n filter: MarketingEmailTemplateFilter;\n force?: Maybe;\n};\nexport type MutationMarketingEmailTemplateDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingEmailTemplateDestroyByFilterArgs = {\n filter: MarketingEmailTemplateFilter;\n force?: Maybe;\n};\n\nexport type MutationMarketingEmailTemplateRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingEmailTemplateUpdateArgs = {\n data: MarketingEmailTemplateUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingEmailTemplateUpdateByFilterArgs = {\n data: MarketingEmailTemplateUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMarketingSmsTemplateCreateArgs = {\n data: MarketingSmsTemplateCreateInput;\n};\nexport type MutationMarketingSmsTemplateCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationMarketingSmsTemplateDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingSmsTemplateDeleteByFilterArgs = {\n filter: MarketingSmsTemplateFilter;\n force?: Maybe;\n};\nexport type MutationMarketingSmsTemplateDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMarketingSmsTemplateDestroyByFilterArgs = {\n filter: MarketingSmsTemplateFilter;\n force?: Maybe;\n};\nexport type MutationMarketingSmsTemplateRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMarketingSmsTemplateUpdateArgs = {\n data: MarketingSmsTemplateUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMarketingSmsTemplateUpdateByFilterArgs = {\n data: MarketingSmsTemplateUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationMessageCreateArgs = {\n data: MessageCreateInput;\n};\nexport type MutationMessageCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMessageDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMessageDeleteByFilterArgs = {\n filter: MessageFilter;\n force?: Maybe;\n};\nexport type MutationMessageDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMessageDestroyByFilterArgs = {\n filter: MessageFilter;\n force?: Maybe;\n};\n\nexport type MutationMessageRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMessageUpdateArgs = {\n data: MessageUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMessageUpdateByFilterArgs = {\n data: MessageUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationMetaCreateArgs = {\n data: MetaCreateInput;\n};\n\nexport type MutationMetaCreateManyArgs = {\n data: Array>;\n};\nexport type MutationMetaDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMetaDeleteByFilterArgs = {\n filter: MetaFilter;\n force?: Maybe;\n};\nexport type MutationMetaDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationMetaDestroyByFilterArgs = {\n filter: MetaFilter;\n force?: Maybe;\n};\nexport type MutationMetaRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationMetaUpdateArgs = {\n data: MetaUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationMetaUpdateByFilterArgs = {\n data: MetaUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationNotificationCreateArgs = {\n data: NotificationCreateInput;\n};\nexport type MutationNotificationCreateManyArgs = {\n data: Array>;\n};\nexport type MutationNotificationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationNotificationDeleteByFilterArgs = {\n filter: NotificationFilter;\n force?: Maybe;\n};\nexport type MutationNotificationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationNotificationDestroyByFilterArgs = {\n filter: NotificationFilter;\n force?: Maybe;\n};\n\nexport type MutationNotificationRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationNotificationUpdateArgs = {\n data: NotificationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationNotificationUpdateByFilterArgs = {\n data: NotificationUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationOutlookProfileCreateArgs = {\n data: OutlookProfileCreateInput;\n};\nexport type MutationOutlookProfileCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationOutlookProfileDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationOutlookProfileDeleteByFilterArgs = {\n filter: OutlookProfileFilter;\n force?: Maybe;\n};\nexport type MutationOutlookProfileDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationOutlookProfileDestroyByFilterArgs = {\n filter: OutlookProfileFilter;\n force?: Maybe;\n};\nexport type MutationOutlookProfileRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationOutlookProfileUpdateArgs = {\n data: OutlookProfileUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationOutlookProfileUpdateByFilterArgs = {\n data: OutlookProfileUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationOutlookServiceCreateArgs = {\n data: OutlookServiceCreateInput;\n};\nexport type MutationOutlookServiceCreateManyArgs = {\n data: Array>;\n};\nexport type MutationOutlookServiceDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationOutlookServiceDeleteByFilterArgs = {\n filter: OutlookServiceFilter;\n force?: Maybe;\n};\nexport type MutationOutlookServiceDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationOutlookServiceDestroyByFilterArgs = {\n filter: OutlookServiceFilter;\n force?: Maybe;\n};\n\nexport type MutationOutlookServiceRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationOutlookServiceUpdateArgs = {\n data: OutlookServiceUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationOutlookServiceUpdateByFilterArgs = {\n data: OutlookServiceUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationPaymentMethodCreateArgs = {\n data: PaymentMethodCreateInput;\n};\nexport type MutationPaymentMethodCreateManyArgs = {\n data: Array>;\n};\nexport type MutationPaymentMethodDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPaymentMethodDeleteByFilterArgs = {\n filter: PaymentMethodFilter;\n force?: Maybe;\n};\nexport type MutationPaymentMethodDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPaymentMethodDestroyByFilterArgs = {\n filter: PaymentMethodFilter;\n force?: Maybe;\n};\n\nexport type MutationPaymentMethodRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPaymentMethodUpdateArgs = {\n data: PaymentMethodUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPaymentMethodUpdateByFilterArgs = {\n data: PaymentMethodUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationPhoneCallCreateArgs = {\n data: PhoneCallCreateInput;\n};\nexport type MutationPhoneCallCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationPhoneCallDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallDeleteByFilterArgs = {\n filter: PhoneCallFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallDestroyByFilterArgs = {\n filter: PhoneCallFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallParticipantCreateArgs = {\n data: PhoneCallParticipantCreateInput;\n};\nexport type MutationPhoneCallParticipantCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationPhoneCallParticipantDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallParticipantDeleteByFilterArgs = {\n filter: PhoneCallParticipantFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallParticipantDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallParticipantDestroyByFilterArgs = {\n filter: PhoneCallParticipantFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallParticipantRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPhoneCallParticipantUpdateArgs = {\n data: PhoneCallParticipantUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneCallParticipantUpdateByFilterArgs = {\n data: PhoneCallParticipantUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationPhoneCallRecordingCreateArgs = {\n data: PhoneCallRecordingCreateInput;\n};\n\nexport type MutationPhoneCallRecordingCreateManyArgs = {\n data: Array>;\n};\nexport type MutationPhoneCallRecordingDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallRecordingDeleteByFilterArgs = {\n filter: PhoneCallRecordingFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallRecordingDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallRecordingDestroyByFilterArgs = {\n filter: PhoneCallRecordingFilter;\n force?: Maybe;\n};\n\nexport type MutationPhoneCallRecordingRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPhoneCallRecordingUpdateArgs = {\n data: PhoneCallRecordingUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneCallRecordingUpdateByFilterArgs = {\n data: PhoneCallRecordingUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationPhoneCallRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationPhoneCallSettingCreateArgs = {\n data: PhoneCallSettingCreateInput;\n};\nexport type MutationPhoneCallSettingCreateManyArgs = {\n data: Array>;\n};\nexport type MutationPhoneCallSettingDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallSettingDeleteByFilterArgs = {\n filter: PhoneCallSettingFilter;\n force?: Maybe;\n};\nexport type MutationPhoneCallSettingDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneCallSettingDestroyByFilterArgs = {\n filter: PhoneCallSettingFilter;\n force?: Maybe;\n};\n\nexport type MutationPhoneCallSettingRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPhoneCallSettingUpdateArgs = {\n data: PhoneCallSettingUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneCallSettingUpdateByFilterArgs = {\n data: PhoneCallSettingUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationPhoneCallUpdateArgs = {\n data: PhoneCallUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneCallUpdateByFilterArgs = {\n data: PhoneCallUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationPhoneNumberCreateArgs = {\n data: PhoneNumberCreateInput;\n};\nexport type MutationPhoneNumberCreateManyArgs = {\n data: Array>;\n};\nexport type MutationPhoneNumberDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneNumberDeleteByFilterArgs = {\n filter: PhoneNumberFilter;\n force?: Maybe;\n};\n\nexport type MutationPhoneNumberDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneNumberDestroyByFilterArgs = {\n filter: PhoneNumberFilter;\n force?: Maybe;\n};\nexport type MutationPhoneNumberRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPhoneNumberUpdateArgs = {\n data: PhoneNumberUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneNumberUpdateByFilterArgs = {\n data: PhoneNumberUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationPhoneNumberWarningCreateArgs = {\n data: PhoneNumberWarningCreateInput;\n};\nexport type MutationPhoneNumberWarningCreateManyArgs = {\n data: Array>;\n};\nexport type MutationPhoneNumberWarningDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneNumberWarningDeleteByFilterArgs = {\n filter: PhoneNumberWarningFilter;\n force?: Maybe;\n};\nexport type MutationPhoneNumberWarningDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationPhoneNumberWarningDestroyByFilterArgs = {\n filter: PhoneNumberWarningFilter;\n force?: Maybe;\n};\n\nexport type MutationPhoneNumberWarningRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationPhoneNumberWarningUpdateArgs = {\n data: PhoneNumberWarningUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationPhoneNumberWarningUpdateByFilterArgs = {\n data: PhoneNumberWarningUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationResendedAngencyInvitationCreateArgs = {\n data: ResendedAngencyInvitationCreateInput;\n};\nexport type MutationResendedAngencyInvitationCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationResendedAngencyInvitationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationResendedAngencyInvitationDeleteByFilterArgs = {\n filter: ResendedAngencyInvitationFilter;\n force?: Maybe;\n};\nexport type MutationResendedAngencyInvitationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationResendedAngencyInvitationDestroyByFilterArgs = {\n filter: ResendedAngencyInvitationFilter;\n force?: Maybe;\n};\nexport type MutationResendedAngencyInvitationRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationResendedAngencyInvitationUpdateArgs = {\n data: ResendedAngencyInvitationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationRoleCreateArgs = {\n data: RoleCreateInput;\n};\n\nexport type MutationRoleCreateManyArgs = {\n data: Array>;\n};\nexport type MutationRoleDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationRoleDeleteByFilterArgs = {\n filter: RoleFilter;\n force?: Maybe;\n};\nexport type MutationRoleDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationRoleDestroyByFilterArgs = {\n filter: RoleFilter;\n force?: Maybe;\n};\nexport type MutationRoleRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationRoleUpdateArgs = {\n data: RoleUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationRoleUpdateByFilterArgs = {\n data: RoleUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationSMsMessageCreateArgs = {\n data: SmsMessageCreateInput;\n};\n\nexport type MutationSMsMessageCreateManyArgs = {\n data: Array>;\n};\nexport type MutationSMsMessageDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSMsMessageDeleteByFilterArgs = {\n filter: SmsMessageFilter;\n force?: Maybe;\n};\nexport type MutationSMsMessageDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationSMsMessageDestroyByFilterArgs = {\n filter: SmsMessageFilter;\n force?: Maybe;\n};\nexport type MutationSMsMessageRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationSMsMessageUpdateArgs = {\n data: SmsMessageUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationSMsMessageUpdateByFilterArgs = {\n data: SmsMessageUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationSendInvitationTo8baseArgs = {\n inviteEmail: Scalars['String'];\n};\n\nexport type MutationSettingsUpdateArgs = {\n data: SettingUpdateInput;\n};\nexport type MutationShortUrlCreateArgs = {\n data: ShortUrlCreateInput;\n};\nexport type MutationShortUrlCreateManyArgs = {\n data: Array>;\n};\nexport type MutationShortUrlDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationShortUrlDeleteByFilterArgs = {\n filter: ShortUrlFilter;\n force?: Maybe;\n};\nexport type MutationShortUrlDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationShortUrlDestroyByFilterArgs = {\n filter: ShortUrlFilter;\n force?: Maybe;\n};\nexport type MutationShortUrlRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationShortUrlUpdateArgs = {\n data: ShortUrlUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationShortUrlUpdateByFilterArgs = {\n data: ShortUrlUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationSubscriptionPlanCreateArgs = {\n data: SubscriptionPlanCreateInput;\n};\n\nexport type MutationSubscriptionPlanCreateManyArgs = {\n data: Array>;\n};\nexport type MutationSubscriptionPlanDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanDeleteByFilterArgs = {\n filter: SubscriptionPlanFilter;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanDestroyByFilterArgs = {\n filter: SubscriptionPlanFilter;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanItemCreateArgs = {\n data: SubscriptionPlanItemCreateInput;\n};\n\nexport type MutationSubscriptionPlanItemCreateManyArgs = {\n data: Array>;\n};\nexport type MutationSubscriptionPlanItemDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanItemDeleteByFilterArgs = {\n filter: SubscriptionPlanItemFilter;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanItemDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSubscriptionPlanItemDestroyByFilterArgs = {\n filter: SubscriptionPlanItemFilter;\n force?: Maybe;\n};\n\nexport type MutationSubscriptionPlanItemRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationSubscriptionPlanItemUpdateArgs = {\n data: SubscriptionPlanItemUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationSubscriptionPlanItemUpdateByFilterArgs = {\n data: SubscriptionPlanItemUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationSubscriptionPlanRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationSubscriptionPlanUpdateArgs = {\n data: SubscriptionPlanUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationSubscriptionPlanUpdateByFilterArgs = {\n data: SubscriptionPlanUpdateByFilterInput;\n filter?: Maybe;\n};\n\nexport type MutationSystemSettingCreateArgs = {\n data: SystemSettingCreateInput;\n};\nexport type MutationSystemSettingCreateManyArgs = {\n data: Array>;\n};\nexport type MutationSystemSettingDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSystemSettingDeleteByFilterArgs = {\n filter: SystemSettingFilter;\n force?: Maybe;\n};\nexport type MutationSystemSettingDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationSystemSettingDestroyByFilterArgs = {\n filter: SystemSettingFilter;\n force?: Maybe;\n};\n\nexport type MutationSystemSettingRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationSystemSettingUpdateArgs = {\n data: SystemSettingUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationSystemSettingUpdateByFilterArgs = {\n data: SystemSettingUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationTableCreateArgs = {\n data: TableCreateInput;\n};\nexport type MutationTableDeleteArgs = {\n data: TableDeleteInput;\n};\n\nexport type MutationTableUpdateArgs = {\n data: TableUpdateInput;\n};\nexport type MutationTeamInvitationAcceptArgs = {\n data: TeamInvitationAcceptInput;\n};\nexport type MutationTeamInvitationCancelArgs = {\n data: TeamInvitationCancelInput;\n};\nexport type MutationTeamInvitationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationTeamInvitationDeleteByFilterArgs = {\n filter: TeamInvitationFilter;\n force?: Maybe;\n};\n\nexport type MutationTeamInvitationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationTeamInvitationDestroyByFilterArgs = {\n filter: TeamInvitationFilter;\n force?: Maybe;\n};\nexport type MutationTeamInvitationResendArgs = {\n data: TeamInvitationResendInput;\n};\nexport type MutationTeamInvitationRestoreArgs = {\n id: Scalars['String'];\n};\n\nexport type MutationTeamMemberDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationTeamMemberDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationTeamMemberRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationTeamMemberUpdateArgs = {\n data: TeamMemberUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationTeamMemberUpdateByFilterArgs = {\n data: TeamMemberUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationUrlCreateArgs = {\n data: UrlCreateInput;\n};\nexport type MutationUrlCreateManyArgs = {\n data: Array>;\n};\n\nexport type MutationUrlDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationUrlDeleteByFilterArgs = {\n filter: UrlFilter;\n force?: Maybe;\n};\nexport type MutationUrlDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationUrlDestroyByFilterArgs = {\n filter: UrlFilter;\n force?: Maybe;\n};\nexport type MutationUrlRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationUrlUpdateArgs = {\n data: UrlUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\n\nexport type MutationUrlUpdateByFilterArgs = {\n data: UrlUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationUserChangePasswordArgs = {\n data: ChangePasswordInput;\n};\nexport type MutationUserCreateArgs = {\n data: UserCreateInput;\n};\nexport type MutationUserCreateManyArgs = {\n data: Array>;\n};\nexport type MutationUserDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\n\nexport type MutationUserDeleteByFilterArgs = {\n filter: UserFilter;\n force?: Maybe;\n};\nexport type MutationUserDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationUserDestroyByFilterArgs = {\n filter: UserFilter;\n force?: Maybe;\n};\nexport type MutationUserLoginArgs = {\n data: UserLoginInput;\n};\n\nexport type MutationUserPasswordForgotArgs = {\n data: PasswordForgotInput;\n};\nexport type MutationUserPasswordForgotConfirmArgs = {\n data: PasswordForgotConfirmInput;\n};\nexport type MutationUserRefreshTokenArgs = {\n data: RefreshTokenInput;\n};\n\nexport type MutationUserRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationUserSignUpArgs = {\n user: UserCreateInput;\n authProfileId?: Maybe;\n};\nexport type MutationUserSignUpResendArgs = {\n data: SignUpResendInput;\n};\nexport type MutationUserSignUpWithPasswordArgs = {\n user: UserCreateInput;\n password: Scalars['String'];\n authProfileId?: Maybe;\n};\nexport type MutationUserSignUpWithTokenArgs = {\n user: UserCreateInput;\n authProfileId?: Maybe;\n};\n\nexport type MutationUserStatusCreateArgs = {\n data: UserStatusCreateInput;\n};\nexport type MutationUserStatusCreateManyArgs = {\n data: Array>;\n};\nexport type MutationUserStatusDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationUserStatusDeleteByFilterArgs = {\n filter: UserStatusFilter;\n force?: Maybe;\n};\nexport type MutationUserStatusDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationUserStatusDestroyByFilterArgs = {\n filter: UserStatusFilter;\n force?: Maybe;\n};\n\nexport type MutationUserStatusRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationUserStatusUpdateArgs = {\n data: UserStatusUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationUserStatusUpdateByFilterArgs = {\n data: UserStatusUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationUserUpdateArgs = {\n data: UserUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationUserUpdateByFilterArgs = {\n data: UserUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationUserVerificationEmailResendArgs = {\n data: VerificationEmailResendInput;\n authProfileId?: Maybe;\n};\nexport type MutationVendorCreateArgs = {\n data: VendorCreateInput;\n};\n\nexport type MutationVendorCreateManyArgs = {\n data: Array>;\n};\nexport type MutationVendorDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVendorDeleteByFilterArgs = {\n filter: VendorFilter;\n force?: Maybe;\n};\nexport type MutationVendorDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVendorDestroyByFilterArgs = {\n filter: VendorFilter;\n force?: Maybe;\n};\nexport type MutationVendorRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationVendorUpdateArgs = {\n data: VendorUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationVendorUpdateByFilterArgs = {\n data: VendorUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationViewCreateArgs = {\n data: ViewCreateInput;\n};\nexport type MutationViewUpdateArgs = {\n data: ViewUpdateInput;\n};\nexport type MutationVoiceMailCreateArgs = {\n data: VoiceMailCreateInput;\n};\nexport type MutationVoiceMailCreateManyArgs = {\n data: Array>;\n};\nexport type MutationVoiceMailDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVoiceMailDeleteByFilterArgs = {\n filter: VoiceMailFilter;\n force?: Maybe;\n};\nexport type MutationVoiceMailDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVoiceMailDestroyByFilterArgs = {\n filter: VoiceMailFilter;\n force?: Maybe;\n};\nexport type MutationVoiceMailMessageCreateArgs = {\n data: VoiceMailMessageCreateInput;\n};\nexport type MutationVoiceMailMessageCreateManyArgs = {\n data: Array>;\n};\nexport type MutationVoiceMailMessageDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVoiceMailMessageDeleteByFilterArgs = {\n filter: VoiceMailMessageFilter;\n force?: Maybe;\n};\nexport type MutationVoiceMailMessageDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationVoiceMailMessageDestroyByFilterArgs = {\n filter: VoiceMailMessageFilter;\n force?: Maybe;\n};\nexport type MutationVoiceMailMessageRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationVoiceMailMessageUpdateArgs = {\n data: VoiceMailMessageUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationVoiceMailMessageUpdateByFilterArgs = {\n data: VoiceMailMessageUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationVoiceMailRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationVoiceMailUpdateArgs = {\n data: VoiceMailUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationVoiceMailUpdateByFilterArgs = {\n data: VoiceMailUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowAutomationCreateArgs = {\n data: WorkflowAutomationCreateInput;\n};\nexport type MutationWorkflowAutomationCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowAutomationDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowAutomationDeleteByFilterArgs = {\n filter: WorkflowAutomationFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowAutomationDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowAutomationDestroyByFilterArgs = {\n filter: WorkflowAutomationFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowAutomationRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowAutomationUpdateArgs = {\n data: WorkflowAutomationUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowAutomationUpdateByFilterArgs = {\n data: WorkflowAutomationUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowClickCreateArgs = {\n data: WorkflowClickCreateInput;\n};\nexport type MutationWorkflowClickCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowClickDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowClickDeleteByFilterArgs = {\n filter: WorkflowClickFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowClickDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowClickDestroyByFilterArgs = {\n filter: WorkflowClickFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowClickRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowClickUpdateArgs = {\n data: WorkflowClickUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowClickUpdateByFilterArgs = {\n data: WorkflowClickUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowConditionCreateArgs = {\n data: WorkflowConditionCreateInput;\n};\nexport type MutationWorkflowConditionCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowConditionDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowConditionDeleteByFilterArgs = {\n filter: WorkflowConditionFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowConditionDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowConditionDestroyByFilterArgs = {\n filter: WorkflowConditionFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowConditionRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowConditionUpdateArgs = {\n data: WorkflowConditionUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowConditionUpdateByFilterArgs = {\n data: WorkflowConditionUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningCreateArgs = {\n data: WorkflowEmailOpeningCreateInput;\n};\nexport type MutationWorkflowEmailOpeningCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowEmailOpeningDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningDeleteByFilterArgs = {\n filter: WorkflowEmailOpeningFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningDestroyByFilterArgs = {\n filter: WorkflowEmailOpeningFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowEmailOpeningUpdateArgs = {\n data: WorkflowEmailOpeningUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowEmailOpeningUpdateByFilterArgs = {\n data: WorkflowEmailOpeningUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateCreateArgs = {\n data: WorkflowEmailTemplateCreateInput;\n};\nexport type MutationWorkflowEmailTemplateCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowEmailTemplateDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateDeleteByFilterArgs = {\n filter: WorkflowEmailTemplateFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateDestroyByFilterArgs = {\n filter: WorkflowEmailTemplateFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowEmailTemplateUpdateArgs = {\n data: WorkflowEmailTemplateUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowEmailTemplateUpdateByFilterArgs = {\n data: WorkflowEmailTemplateUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateCreateArgs = {\n data: WorkflowSmsTemplateCreateInput;\n};\nexport type MutationWorkflowSmsTemplateCreateManyArgs = {\n data: Array>;\n};\nexport type MutationWorkflowSmsTemplateDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateDeleteByFilterArgs = {\n filter: WorkflowSmsTemplateFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateDestroyByFilterArgs = {\n filter: WorkflowSmsTemplateFilter;\n force?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationWorkflowSmsTemplateUpdateArgs = {\n data: WorkflowSmsTemplateUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationWorkflowSmsTemplateUpdateByFilterArgs = {\n data: WorkflowSmsTemplateUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationWorkspaceCreateArgs = {\n data: WorkspaceCreateMutationInput;\n};\nexport type MutationWorkspaceCreateAsyncArgs = {\n data: WorkspaceCreateMutationInput;\n};\nexport type MutationWorkspaceDeleteArgs = {\n data: WorkspaceDeleteMutationInput;\n};\nexport type MutationWorkspaceLeaveArgs = {\n force?: Maybe;\n};\nexport type MutationWorkspaceUpdateArgs = {\n data: WorkspaceUpdateMutationInput;\n};\nexport type MutationXTableCreateArgs = {\n data: XTableCreateInput;\n};\nexport type MutationXTableCreateManyArgs = {\n data: Array>;\n};\nexport type MutationXTableDeleteArgs = {\n data?: Maybe;\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationXTableDeleteByFilterArgs = {\n filter: XTableFilter;\n force?: Maybe;\n};\nexport type MutationXTableDestroyArgs = {\n filter?: Maybe;\n force?: Maybe;\n};\nexport type MutationXTableDestroyByFilterArgs = {\n filter: XTableFilter;\n force?: Maybe;\n};\nexport type MutationXTableRestoreArgs = {\n id: Scalars['String'];\n};\nexport type MutationXTableUpdateArgs = {\n data: XTableUpdateInput;\n filter?: Maybe;\n force?: Maybe;\n destroyDetached?: Maybe;\n};\nexport type MutationXTableUpdateByFilterArgs = {\n data: XTableUpdateByFilterInput;\n filter?: Maybe;\n};\nexport type MutationGoogleExchangeTokensArgs = {\n agency: Scalars['ID'];\n code: Scalars['String'];\n from: AuthFrom;\n};\nexport type MutationGoogleEmailCreateArgs = {\n data: GoogleEmailCreateInput;\n user?: Maybe;\n};\nexport type MutationGoogleLogoutArgs = {\n agency: Scalars['ID'];\n};\nexport type MutationAzureExchangeTokensArgs = {\n agency: Scalars['ID'];\n code: Scalars['String'];\n from: AuthFrom;\n};\nexport type MutationAzureLogoutArgs = {\n agency: Scalars['ID'];\n};\nexport type MutationOutlookEmailCreateArgs = {\n data: OutlookEmailCreateInput;\n user?: Maybe;\n};\nexport type MutationFindOrCreateDmArgs = {\n data: FindOrCreateDmInput;\n};\nexport type MutationCreateStripeCustomerArgs = {\n data?: Maybe;\n};\nexport type MutationCreateStripeSubscriptionArgs = {\n data: CreateStripeSubscriptionInput;\n};\nexport type MutationCreateStripePaymentMethodArgs = {\n data: CreateStripePaymentMethodInput;\n};\nexport type MutationTransferCallArgs = {\n users: Array>;\n phones: Array>;\n call: Scalars['ID'];\n callType: CallType;\n};\nexport enum MutationType {\n Create = 'create',\n Update = 'update',\n Delete = 'delete',\n Destroy = 'destroy',\n}\n/** LeadHistory create input from note */\nexport type Note_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n/** LeadHistory update input from note */\nexport type Note_LeadHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadHistoryUpdateInput;\n};\n/** Lead create input from notesLeadRelation */\nexport type NotesLeadRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** LeadNote create input from notesLeadRelation */\nexport type NotesLeadRelation_LeadNoteCreateInput = {\n notesLeadRelation?: Maybe;\n text?: Maybe;\n title?: Maybe;\n history?: Maybe;\n};\n/** LeadNote update input from notesLeadRelation */\nexport type NotesLeadRelation_LeadNoteUpdateInput = {\n filter?: Maybe;\n data: LeadNoteUpdateInput;\n};\n/** Lead update input from notesLeadRelation */\nexport type NotesLeadRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\nexport type Notification = {\n __typename?: 'Notification';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n read: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Maybe;\n userTrigger: Maybe;\n user: Maybe;\n agency: Maybe;\n lead: Maybe;\n campaign: Maybe;\n email: Maybe;\n disposition: Maybe;\n sms: Maybe;\n _description: Maybe;\n};\nexport type Notification_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n read?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type Notification_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationAgencyManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationCampaignManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Notification create input */\nexport type NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n/** Notification create many input */\nexport type NotificationCreateManyInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user: NotificationUserManyRelationInput;\n agency: NotificationAgencyManyRelationInput;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n/** Notification delete input */\nexport type NotificationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationDispositionManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationDispositionRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationDispositionUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationEmailManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationEmailRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationEmailUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** NotificationFieldsPermissions create input */\nexport type NotificationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n read?: Maybe;\n type?: Maybe;\n};\nexport type NotificationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n read?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type NotificationGroupBy = {\n query: NotificationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type NotificationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n read?: Maybe>;\n type?: Maybe>;\n createdBy?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n _group?: Maybe>;\n};\nexport type NotificationKeyFilter = {\n id?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationLeadManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** NotificationListResponse output */\nexport type NotificationListResponse = {\n __typename?: 'NotificationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** NotificationManyResponse output */\nexport type NotificationManyResponse = {\n __typename?: 'NotificationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum NotificationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ReadAsc = 'read_ASC',\n ReadDesc = 'read_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n}\n/** Notification subscription payload */\nexport type NotificationPayload = {\n __typename?: 'NotificationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n/** Agency create input from notificationRelation */\nexport type NotificationRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Agency update input from notificationRelation */\nexport type NotificationRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Campaign create input from notificationRelation */\nexport type NotificationRelation_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n/** Campaign update input from notificationRelation */\nexport type NotificationRelation_CampaignUpdateInput = {\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n/** Lead create input from notificationRelation */\nexport type NotificationRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Lead update input from notificationRelation */\nexport type NotificationRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Mail create input from notificationRelation */\nexport type NotificationRelation_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n/** Mail update input from notificationRelation */\nexport type NotificationRelation_MailUpdateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body?: Maybe;\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n/** Users create input from notificationRelation */\nexport type NotificationRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from notificationRelation */\nexport type NotificationRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\nexport type NotificationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** LeadDisposition create input from notifications */\nexport type Notifications_LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** LeadDisposition update input from notifications */\nexport type Notifications_LeadDispositionUpdateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationSmsManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationSmsRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationSmsUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\nexport type NotificationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n read?: Maybe;\n type?: Maybe;\n createdBy?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n/** Notification subscription filter */\nexport type NotificationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** Users create input from notificationTriggerRelation */\nexport type NotificationTriggerRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from notificationTriggerRelation */\nexport type NotificationTriggerRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Notification update input */\nexport type NotificationUpdateByFilterInput = {\n read?: Maybe>>;\n type?: Maybe>>;\n};\n/** Notification update input */\nexport type NotificationUpdateInput = {\n id?: Maybe;\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserTriggerManyRelationInput = {\n connect?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserTriggerRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserTriggerUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Notification relation input */\nexport type NotificationUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Number Field Attributes */\nexport type NumberFieldTypeAttributes = {\n __typename?: 'NumberFieldTypeAttributes';\n format: Scalars['String'];\n precision: Maybe;\n currency: Maybe;\n minValue: Maybe;\n maxValue: Maybe;\n isBigInt: Maybe;\n autoIncrement: Maybe;\n};\n/** Number Type Format Enum */\nexport enum NumberTypeFormatEnum {\n Number = 'NUMBER',\n Currency = 'CURRENCY',\n Percentage = 'PERCENTAGE',\n Fraction = 'FRACTION',\n Scientific = 'SCIENTIFIC',\n}\n/** MarketingCampaign create input from openings */\nexport type Openings_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n/** MarketingCampaign update input from openings */\nexport type Openings_MarketingCampaignUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n/** WorkflowAutomation create input from openings */\nexport type Openings_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n/** WorkflowAutomation update input from openings */\nexport type Openings_WorkflowAutomationUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\nexport type OrganizationUserInvitationResponse = {\n __typename?: 'OrganizationUserInvitationResponse';\n invitationId: Scalars['String'];\n};\n/** AgencyEmailService create input from outbound */\nexport type Outbound_AgencyEmailServiceCreateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n/** AgencyEmailService update input from outbound */\nexport type Outbound_AgencyEmailServiceUpdateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n/** PhoneCallParticipant create input from outboundCall */\nexport type OutboundCall_PhoneCallParticipantCreateInput = {\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n/** PhoneCallParticipant update input from outboundCall */\nexport type OutboundCall_PhoneCallParticipantUpdateInput = {\n filter?: Maybe;\n data: PhoneCallParticipantUpdateInput;\n};\n/** LeadDisposition create input from outboundPhoneCall */\nexport type OutboundPhoneCall_LeadDispositionCreateInput = {\n lead: LeadDispositionLeadRelationInput;\n carrier?: Maybe;\n status: LeadDispositionStatusRelationInput;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** LeadDisposition update input from outboundPhoneCall */\nexport type OutboundPhoneCall_LeadDispositionUpdateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** Users create input from outboundServices */\nexport type OutboundServices_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from outboundServices */\nexport type OutboundServices_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** AgencyEmailService create input from outlook */\nexport type Outlook_AgencyEmailServiceCreateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\n/** AgencyEmailService update input from outlook */\nexport type Outlook_AgencyEmailServiceUpdateInput = {\n agency?: Maybe;\n outbound?: Maybe;\n gmail?: Maybe;\n outlook?: Maybe;\n};\nexport type OutlookEmail = {\n __typename?: 'OutlookEmail';\n id: Maybe;\n from: Maybe;\n to: Maybe>>;\n subject: Maybe;\n preview: Maybe;\n body: Maybe;\n createdAt: Maybe;\n conversationId: Maybe;\n};\nexport type OutlookEmailAddress = {\n __typename?: 'OutlookEmailAddress';\n name: Maybe;\n address: Maybe;\n};\nexport type OutlookEmailCreateInput = {\n agency: Scalars['ID'];\n to?: Maybe;\n cc?: Maybe;\n subject?: Maybe;\n body: Scalars['String'];\n replyId?: Maybe;\n};\nexport type OutlookEmailsListResponse = {\n __typename?: 'OutlookEmailsListResponse';\n count: Maybe;\n items: Maybe>>;\n next: Maybe;\n};\nexport enum OutlookFolder {\n Inbox = 'inbox',\n Sentitems = 'sentitems',\n Deleteditems = 'deleteditems',\n}\nexport type OutlookProfile = {\n __typename?: 'OutlookProfile';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n outlookId: Maybe;\n name: Maybe;\n email: Maybe;\n accessToken: Maybe;\n refreshToken: Maybe;\n services: Maybe;\n _description: Maybe;\n};\nexport type OutlookProfileServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type OutlookProfile_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n services?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n/** OutlookProfile create input */\nexport type OutlookProfileCreateInput = {\n outlookId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n/** OutlookProfile create many input */\nexport type OutlookProfileCreateManyInput = {\n outlookId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n/** OutlookProfile delete input */\nexport type OutlookProfileDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** OutlookProfileFieldsPermissions create input */\nexport type OutlookProfileFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n};\nexport type OutlookProfileFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n services?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type OutlookProfileGroupBy = {\n query: OutlookProfileGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type OutlookProfileGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n outlookId?: Maybe>;\n name?: Maybe>;\n email?: Maybe>;\n accessToken?: Maybe>;\n refreshToken?: Maybe>;\n createdBy?: Maybe;\n services?: Maybe;\n _group?: Maybe>;\n};\nexport type OutlookProfileKeyFilter = {\n id?: Maybe;\n outlookId?: Maybe;\n};\n/** OutlookProfileListResponse output */\nexport type OutlookProfileListResponse = {\n __typename?: 'OutlookProfileListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** OutlookProfileManyResponse output */\nexport type OutlookProfileManyResponse = {\n __typename?: 'OutlookProfileManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum OutlookProfileOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n OutlookIdAsc = 'outlookId_ASC',\n OutlookIdDesc = 'outlookId_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n AccessTokenAsc = 'accessToken_ASC',\n AccessTokenDesc = 'accessToken_DESC',\n RefreshTokenAsc = 'refreshToken_ASC',\n RefreshTokenDesc = 'refreshToken_DESC',\n}\n/** OutlookProfile subscription payload */\nexport type OutlookProfilePayload = {\n __typename?: 'OutlookProfilePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n/** OutlookProfile relation input */\nexport type OutlookProfileServicesManyRelationInput = {\n connect?: Maybe>;\n};\n/** OutlookProfile relation input */\nexport type OutlookProfileServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** OutlookProfile relation input */\nexport type OutlookProfileServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\nexport type OutlookProfileSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n createdBy?: Maybe;\n};\n/** OutlookProfile subscription filter */\nexport type OutlookProfileSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** OutlookProfile update input */\nexport type OutlookProfileUpdateByFilterInput = {\n outlookId?: Maybe>>;\n name?: Maybe>>;\n email?: Maybe>>;\n accessToken?: Maybe>>;\n refreshToken?: Maybe>>;\n};\n/** OutlookProfile update input */\nexport type OutlookProfileUpdateInput = {\n id?: Maybe;\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\nexport type OutlookService = {\n __typename?: 'OutlookService';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n agency: Maybe;\n active: Maybe;\n profile: Maybe;\n agencyEmailService: Maybe;\n _description: Maybe;\n};\nexport type OutlookService_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type OutlookService_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyEmailServiceManyRelationInput = {\n connect?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyEmailServiceRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyEmailServiceUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyManyRelationInput = {\n connect?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** OutlookService create input */\nexport type OutlookServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n/** OutlookService create many input */\nexport type OutlookServiceCreateManyInput = {\n user: OutlookServiceUserManyRelationInput;\n agency: OutlookServiceAgencyManyRelationInput;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n/** OutlookService delete input */\nexport type OutlookServiceDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** OutlookServiceFieldsPermissions create input */\nexport type OutlookServiceFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n active?: Maybe;\n};\nexport type OutlookServiceFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type OutlookServiceGroupBy = {\n query: OutlookServiceGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type OutlookServiceGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n active?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n _group?: Maybe>;\n};\nexport type OutlookServiceKeyFilter = {\n id?: Maybe;\n};\n/** OutlookServiceListResponse output */\nexport type OutlookServiceListResponse = {\n __typename?: 'OutlookServiceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** OutlookServiceManyResponse output */\nexport type OutlookServiceManyResponse = {\n __typename?: 'OutlookServiceManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum OutlookServiceOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n}\n/** OutlookService subscription payload */\nexport type OutlookServicePayload = {\n __typename?: 'OutlookServicePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceProfileManyRelationInput = {\n connect?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceProfileRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceProfileUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\nexport type OutlookServiceRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Agency create input from outlookServices */\nexport type OutlookServices_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Agency update input from outlookServices */\nexport type OutlookServices_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Users create input from outlookServices */\nexport type OutlookServices_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from outlookServices */\nexport type OutlookServices_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\nexport type OutlookServiceSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n active?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n/** OutlookService subscription filter */\nexport type OutlookServiceSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** OutlookService update input */\nexport type OutlookServiceUpdateByFilterInput = {\n active?: Maybe>>;\n};\n/** OutlookService update input */\nexport type OutlookServiceUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceUserManyRelationInput = {\n connect?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** OutlookService relation input */\nexport type OutlookServiceUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** InboundPhoneCall create input from participants */\nexport type Participants_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** InboundPhoneCall update input from participants */\nexport type Participants_InboundPhoneCallUpdateInput = {\n agency?: Maybe;\n to?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** PhoneCall create input from participants */\nexport type Participants_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n/** PhoneCall update input from participants */\nexport type Participants_PhoneCallUpdateInput = {\n user?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n/** PasswordForgotConfirmInput */\nexport type PasswordForgotConfirmInput = {\n email: Scalars['String'];\n code: Scalars['String'];\n newPassword: Scalars['String'];\n authProfileId: Scalars['ID'];\n};\n/** PasswordForgotInput */\nexport type PasswordForgotInput = {\n email: Scalars['String'];\n authProfileId: Scalars['ID'];\n};\nexport type PatternFunctionArguments = {\n pattern: Scalars['String'];\n escape?: Maybe;\n};\nexport type PaymentMethod = {\n __typename?: 'PaymentMethod';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n tokenId: Maybe;\n cardHolderName: Maybe;\n last4: Maybe;\n company: Maybe;\n _description: Maybe;\n};\nexport type PaymentMethod_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n tokenId?: Maybe;\n cardHolderName?: Maybe;\n last4?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type PaymentMethod_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** PaymentMethod relation input */\nexport type PaymentMethodCompanyManyRelationInput = {\n connect?: Maybe;\n};\n/** Company create input from paymentMethodCompanyRelation */\nexport type PaymentMethodCompanyRelation_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n/** Company update input from paymentMethodCompanyRelation */\nexport type PaymentMethodCompanyRelation_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n/** PaymentMethod relation input */\nexport type PaymentMethodCompanyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** PaymentMethod relation input */\nexport type PaymentMethodCompanyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** PaymentMethod create input */\nexport type PaymentMethodCreateInput = {\n tokenId: Scalars['String'];\n cardHolderName: Scalars['String'];\n last4: Scalars['String'];\n company?: Maybe;\n};\n/** PaymentMethod create many input */\nexport type PaymentMethodCreateManyInput = {\n tokenId: Scalars['String'];\n cardHolderName: Scalars['String'];\n last4: Scalars['String'];\n company: PaymentMethodCompanyManyRelationInput;\n};\n/** PaymentMethod delete input */\nexport type PaymentMethodDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** PaymentMethodFieldsPermissions create input */\nexport type PaymentMethodFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n tokenId?: Maybe;\n cardHolderName?: Maybe;\n last4?: Maybe;\n};\nexport type PaymentMethodFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n tokenId?: Maybe;\n cardHolderName?: Maybe;\n last4?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type PaymentMethodGroupBy = {\n query: PaymentMethodGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type PaymentMethodGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n tokenId?: Maybe>;\n cardHolderName?: Maybe>;\n last4?: Maybe>;\n createdBy?: Maybe;\n company?: Maybe;\n _group?: Maybe>;\n};\nexport type PaymentMethodKeyFilter = {\n id?: Maybe;\n};\n\n/** PaymentMethodListResponse output */\nexport type PaymentMethodListResponse = {\n __typename?: 'PaymentMethodListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PaymentMethodManyResponse output */\nexport type PaymentMethodManyResponse = {\n __typename?: 'PaymentMethodManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PaymentMethodOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TokenIdAsc = 'tokenId_ASC',\n TokenIdDesc = 'tokenId_DESC',\n CardHolderNameAsc = 'cardHolderName_ASC',\n CardHolderNameDesc = 'cardHolderName_DESC',\n Last4Asc = 'last4_ASC',\n Last4Desc = 'last4_DESC',\n}\n\n/** PaymentMethod subscription payload */\nexport type PaymentMethodPayload = {\n __typename?: 'PaymentMethodPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type PaymentMethodRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type PaymentMethodSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n tokenId?: Maybe;\n cardHolderName?: Maybe;\n last4?: Maybe;\n createdBy?: Maybe;\n company?: Maybe;\n};\n\n/** PaymentMethod subscription filter */\nexport type PaymentMethodSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PaymentMethod update input */\nexport type PaymentMethodUpdateByFilterInput = {\n tokenId?: Maybe>>;\n cardHolderName?: Maybe>>;\n last4?: Maybe>>;\n};\n\n/** PaymentMethod update input */\nexport type PaymentMethodUpdateInput = {\n id?: Maybe;\n tokenId?: Maybe;\n cardHolderName?: Maybe;\n last4?: Maybe;\n company?: Maybe;\n};\n\nexport type Permission = {\n __typename?: 'Permission';\n createdAt: Maybe;\n updatedAt: Maybe;\n createdBy: Maybe;\n appId: Maybe;\n resourceType: Maybe;\n resource: Maybe;\n permission: Maybe;\n role: Maybe;\n _description: Maybe;\n};\n\nexport type Permission_PermissionFilter = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n appId?: Maybe;\n resourceType?: Maybe;\n resource?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n role?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Permission_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type PermissionFilter = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n appId?: Maybe;\n resourceType?: Maybe;\n resource?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n role?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type PermissionGroupByQuery = {\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n appId?: Maybe>;\n resourceType?: Maybe>;\n resource?: Maybe>;\n permission?: Maybe>;\n createdBy?: Maybe;\n role?: Maybe;\n _group?: Maybe>;\n};\n\n/** Permission Filter */\nexport type PermissionInputFilter = {\n resourceType?: Maybe;\n action?: Maybe;\n resource?: Maybe;\n applicationName?: Maybe;\n};\n\n/** PermissionListResponse output */\nexport type PermissionListResponse = {\n __typename?: 'PermissionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** Permissions subscription payload */\nexport type PermissionPayload = {\n __typename?: 'PermissionPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport enum PermissionResourceTypeEnum {\n Data = 'data',\n Custom = 'custom',\n}\n\n/** custom permissions input */\nexport type PermissionsCustom = {\n data?: Maybe;\n logic?: Maybe;\n api?: Maybe;\n users?: Maybe;\n settings?: Maybe;\n};\n\nexport type PermissionsCustomApi = {\n googleAuthUrl?: Maybe;\n googleExchangeTokens?: Maybe;\n googleEmailsList?: Maybe;\n googleEmail?: Maybe;\n googleEmailCreate?: Maybe;\n googleLogout?: Maybe;\n azureAuthUrl?: Maybe;\n azureExchangeTokens?: Maybe;\n azureLogout?: Maybe;\n outlookEmailsList?: Maybe;\n outlookEmail?: Maybe;\n outlookEmailCreate?: Maybe;\n findOrCreateDM?: Maybe;\n createStripeCustomer?: Maybe;\n createStripeSubscription?: Maybe;\n createStripePaymentMethod?: Maybe;\n stripePaymentIntent?: Maybe;\n agentsCalls?: Maybe;\n transferCall?: Maybe;\n};\n\nexport type PermissionsCustomApiResolver = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomData = {\n schemaManagement?: Maybe;\n viewerAccess?: Maybe;\n};\n\nexport type PermissionsCustomDataSchemaManagement = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomDataViewerAccess = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomLogic = {\n view?: Maybe;\n deploy?: Maybe;\n invoke?: Maybe;\n logs?: Maybe;\n};\n\nexport type PermissionsCustomLogicDeploy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomLogicInvoke = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomLogicLogs = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomLogicView = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomSettings = {\n workspaceAdministration?: Maybe;\n};\n\nexport type PermissionsCustomSettingsWorkspaceAdministration = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsCustomUsers = {\n teamAdministration?: Maybe;\n};\n\nexport type PermissionsCustomUsersTeamAdministration = {\n allow: Scalars['Boolean'];\n};\n\n/** Schema tables permissions input */\nexport type PermissionsData = {\n Users?: Maybe;\n Files?: Maybe;\n Roles?: Maybe;\n CiCdMigrations?: Maybe;\n Agency?: Maybe;\n Announcement?: Maybe;\n Lead?: Maybe;\n LeadSource?: Maybe;\n LifeInsurance?: Maybe;\n Campaign?: Maybe;\n MarketingCampaign?: Maybe;\n Agent?: Maybe;\n Manager?: Maybe;\n LeadAction?: Maybe;\n LeadNote?: Maybe;\n LeadTask?: Maybe;\n Admin?: Maybe;\n Company?: Maybe;\n LeadContact?: Maybe;\n Vendor?: Maybe;\n Meta?: Maybe;\n SubscriptionPlan?: Maybe;\n AgencyInvitation?: Maybe;\n LeadTaskType?: Maybe;\n CompanyInvitation?: Maybe;\n PaymentMethod?: Maybe;\n SMSMessage?: Maybe;\n LeadTypeAuto?: Maybe;\n LeadTypeCommercialAuto?: Maybe;\n UserStatus?: Maybe;\n LeadDriver?: Maybe;\n DriverIncident?: Maybe;\n ResendedAngencyInvitation?: Maybe;\n LeadStage?: Maybe;\n LeadStageHistory?: Maybe;\n LeadTypeGeneralLiability?: Maybe;\n Mail?: Maybe;\n LeadTypeLife?: Maybe;\n MailThread?: Maybe;\n PhoneCall?: Maybe;\n LeadTypeHome?: Maybe;\n LeadTypeWorkersCompensation?: Maybe;\n LeadTypeEmployeeBenefit?: Maybe;\n PhoneNumber?: Maybe;\n EmailOutboundService?: Maybe;\n EmailInboundServices?: Maybe;\n LeadHistory?: Maybe;\n LeadDisposition?: Maybe;\n IfsScore?: Maybe;\n AutomaticCallConfig?: Maybe;\n Url?: Maybe;\n PhoneCallRecording?: Maybe;\n PhoneCallSetting?: Maybe;\n VoiceMailMessage?: Maybe;\n AgencyUser?: Maybe;\n Notification?: Maybe;\n MarketingEmailTemplate?: Maybe;\n MarketingSmsTemplate?: Maybe;\n ShortUrl?: Maybe;\n MarketingCampaignCondition?: Maybe;\n Channel?: Maybe;\n ChannelMember?: Maybe;\n Message?: Maybe;\n MarketingCampaignOpening?: Maybe;\n MarketingCampaignClick?: Maybe;\n WorkflowAutomation?: Maybe;\n WorkflowEmailTemplate?: Maybe;\n WorkflowSmsTemplate?: Maybe;\n WorkflowConditions?: Maybe;\n WorkflowClick?: Maybe;\n WorkflowEmailOpening?: Maybe;\n XTable?: Maybe;\n CompanySub?: Maybe;\n CompanyInvoice?: Maybe;\n CompanyPaymentMethod?: Maybe;\n FreePhoneNumber?: Maybe;\n SubscriptionPlanItem?: Maybe;\n InboundPhoneCall?: Maybe;\n LeadPhoneNumber?: Maybe;\n SystemSetting?: Maybe;\n PhoneCallParticipant?: Maybe;\n CompanySubCoupon?: Maybe;\n GmailService?: Maybe;\n GmailProfile?: Maybe;\n LeadCallCadence?: Maybe;\n OutlookService?: Maybe;\n OutlookProfile?: Maybe;\n AgencyEmailService?: Maybe;\n PhoneNumberWarning?: Maybe;\n VoiceMail?: Maybe;\n};\n\nexport type PermissionsDataAdmin = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAdminCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAdminDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAdminDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAdminRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAdminUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgency = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAgencyCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAgencyDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyEmailService = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAgencyEmailServiceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyEmailServiceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAgencyEmailServiceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyEmailServiceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyEmailServiceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyInvitation = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAgencyInvitationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyInvitationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAgencyInvitationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyInvitationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyInvitationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyUser = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAgencyUserCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyUserDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAgencyUserDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgencyUserRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgencyUserUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgent = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAgentCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgentDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAgentDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAgentRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAgentUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAnnouncement = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAnnouncementCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAnnouncementDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAnnouncementDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAnnouncementRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAnnouncementUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAutomaticCallConfig = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataAutomaticCallConfigCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAutomaticCallConfigDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataAutomaticCallConfigDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataAutomaticCallConfigRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataAutomaticCallConfigUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCampaign = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCampaignCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCampaignDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCampaignDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCampaignRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCampaignUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataChannel = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataChannelCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataChannelDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataChannelDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataChannelMember = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataChannelMemberCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataChannelMemberDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataChannelMemberDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataChannelMemberRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataChannelMemberUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataChannelRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataChannelUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCiCdMigrations = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCiCdMigrationsCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCiCdMigrationsDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCiCdMigrationsDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCiCdMigrationsRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCiCdMigrationsUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompany = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanyCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanyDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyInvitation = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvitationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyInvitationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvitationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyInvitationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvitationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvoice = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvoiceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyInvoiceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvoiceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyInvoiceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyInvoiceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyPaymentMethod = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanyPaymentMethodCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyPaymentMethodDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanyPaymentMethodDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanyPaymentMethodRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyPaymentMethodUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanySub = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanySubCoupon = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataCompanySubCouponCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanySubCouponDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanySubCouponDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanySubCouponRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanySubCouponUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanySubCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanySubDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataCompanySubDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataCompanySubRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanySubUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataCompanyUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataDriverIncident = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataDriverIncidentCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataDriverIncidentDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataDriverIncidentDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataDriverIncidentRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataDriverIncidentUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataEmailInboundServices = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataEmailInboundServicesCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataEmailInboundServicesDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataEmailInboundServicesDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataEmailInboundServicesRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataEmailInboundServicesUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataEmailOutboundService = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataEmailOutboundServiceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataEmailOutboundServiceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataEmailOutboundServiceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataEmailOutboundServiceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataEmailOutboundServiceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataFiles = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataFilesCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataFilesDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataFilesDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataFilesRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataFilesUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataFreePhoneNumber = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataFreePhoneNumberCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataFreePhoneNumberDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataFreePhoneNumberDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataFreePhoneNumberRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataFreePhoneNumberUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataGmailProfile = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataGmailProfileCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataGmailProfileDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataGmailProfileDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataGmailProfileRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataGmailProfileUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataGmailService = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataGmailServiceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataGmailServiceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataGmailServiceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataGmailServiceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataGmailServiceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataIfsScore = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataIfsScoreCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataIfsScoreDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataIfsScoreDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataIfsScoreRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataIfsScoreUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataInboundPhoneCall = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataInboundPhoneCallCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataInboundPhoneCallDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataInboundPhoneCallDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataInboundPhoneCallRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataInboundPhoneCallUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLead = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadAction = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadActionCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadActionDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadActionDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadActionRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadActionUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadCallCadence = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadCallCadenceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadCallCadenceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadCallCadenceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadCallCadenceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadCallCadenceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadContact = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadContactCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadContactDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadContactDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadContactRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadContactUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDisposition = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadDispositionCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDispositionDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadDispositionDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDispositionRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadDispositionUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadDriver = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadDriverCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDriverDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadDriverDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadDriverRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadDriverUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadHistory = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadHistoryCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadHistoryDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadHistoryDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadHistoryRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadHistoryUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadNote = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadNoteCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadNoteDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadNoteDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadNoteRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadNoteUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadPhoneNumber = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadPhoneNumberCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadPhoneNumberDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadPhoneNumberDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadPhoneNumberRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadPhoneNumberUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadSource = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadSourceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadSourceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadSourceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadSourceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadSourceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadStage = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadStageCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadStageDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadStageDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadStageHistory = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadStageHistoryCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadStageHistoryDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadStageHistoryDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadStageHistoryRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadStageHistoryUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadStageRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadStageUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTask = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTaskDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTaskRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskType = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskTypeCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTaskTypeDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskTypeDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTaskTypeRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskTypeUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTaskUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeAuto = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeAutoCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeAutoDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeAutoDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeAutoRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeAutoUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeCommercialAuto = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeCommercialAutoCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeCommercialAutoDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeCommercialAutoDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeCommercialAutoRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeCommercialAutoUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefit = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefitCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefitDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefitDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefitRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeEmployeeBenefitUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeGeneralLiability = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeGeneralLiabilityCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeGeneralLiabilityDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeGeneralLiabilityDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeGeneralLiabilityRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeGeneralLiabilityUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeHome = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeHomeCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeHomeDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeHomeDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeHomeRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeHomeUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeLife = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeLifeCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeLifeDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeLifeDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeLifeRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeLifeUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensation = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadTypeWorkersCompensationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLeadUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLifeInsurance = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataLifeInsuranceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLifeInsuranceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataLifeInsuranceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataLifeInsuranceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataLifeInsuranceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMail = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMailCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMailDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMailDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMailRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMailThread = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMailThreadCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMailThreadDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMailThreadDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMailThreadRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMailThreadUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMailUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataManager = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataManagerCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataManagerDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataManagerDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataManagerRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataManagerUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaign = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignClick = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignClickCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignClickDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignClickDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignClickRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignClickUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignCondition = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignConditionCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignConditionDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignConditionDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignConditionRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignConditionUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignOpening = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignOpeningCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignOpeningDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignOpeningDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingCampaignOpeningRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignOpeningUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingCampaignUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingEmailTemplate = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingEmailTemplateCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingEmailTemplateDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingEmailTemplateDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingEmailTemplateRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingEmailTemplateUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingSmsTemplate = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMarketingSmsTemplateCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingSmsTemplateDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMarketingSmsTemplateDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMarketingSmsTemplateRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMarketingSmsTemplateUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMessage = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMessageCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMessageDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMessageDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMessageRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMessageUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMeta = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataMetaCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMetaDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataMetaDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataMetaRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataMetaUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataNotification = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataNotificationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataNotificationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataNotificationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataNotificationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataNotificationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataOutlookProfile = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataOutlookProfileCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataOutlookProfileDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataOutlookProfileDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataOutlookProfileRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataOutlookProfileUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataOutlookService = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataOutlookServiceCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataOutlookServiceDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataOutlookServiceDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataOutlookServiceRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataOutlookServiceUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPaymentMethod = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPaymentMethodCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPaymentMethodDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPaymentMethodDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPaymentMethodRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPaymentMethodUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCall = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallParticipant = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallParticipantCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallParticipantDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallParticipantDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallParticipantRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallParticipantUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallRecording = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallRecordingCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallRecordingDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallRecordingDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallRecordingRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallRecordingUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallSetting = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallSettingCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallSettingDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallSettingDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneCallSettingRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallSettingUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneCallUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumber = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneNumberDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneNumberRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberWarning = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberWarningCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneNumberWarningDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberWarningDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataPhoneNumberWarningRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataPhoneNumberWarningUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataResendedAngencyInvitation = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataResendedAngencyInvitationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataResendedAngencyInvitationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataResendedAngencyInvitationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataResendedAngencyInvitationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataResendedAngencyInvitationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataRoles = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataRolesCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataRolesDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataRolesDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataRolesRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataRolesUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataShortUrl = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataShortUrlCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataShortUrlDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataShortUrlDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataShortUrlRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataShortUrlUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSmsMessage = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataSmsMessageCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSmsMessageDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataSmsMessageDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSmsMessageRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSmsMessageUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlan = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSubscriptionPlanDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSubscriptionPlanItem = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanItemCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSubscriptionPlanItemDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanItemDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSubscriptionPlanItemRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanItemUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSubscriptionPlanUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSystemSetting = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataSystemSettingCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSystemSettingDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataSystemSettingDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataSystemSettingRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataSystemSettingUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUrl = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataUrlCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUrlDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataUrlDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUrlRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUrlUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUsers = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataUsersCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUsersDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataUsersDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUsersRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUserStatus = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataUserStatusCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUserStatusDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataUserStatusDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataUserStatusRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUserStatusUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataUsersUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVendor = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataVendorCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVendorDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataVendorDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVendorRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVendorUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVoiceMail = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVoiceMailDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVoiceMailMessage = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailMessageCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVoiceMailMessageDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailMessageDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataVoiceMailMessageRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailMessageUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataVoiceMailUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowAutomation = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowAutomationCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowAutomationDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowAutomationDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowAutomationRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowAutomationUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowClick = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowClickCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowClickDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowClickDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowClickRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowClickUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowConditions = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowConditionsCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowConditionsDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowConditionsDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowConditionsRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowConditionsUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailOpening = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailOpeningCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowEmailOpeningDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailOpeningDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowEmailOpeningRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailOpeningUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailTemplate = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailTemplateCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowEmailTemplateDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailTemplateDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowEmailTemplateRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowEmailTemplateUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowSmsTemplate = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataWorkflowSmsTemplateCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowSmsTemplateDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataWorkflowSmsTemplateDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataWorkflowSmsTemplateRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataWorkflowSmsTemplateUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataXTable = {\n create?: Maybe;\n read?: Maybe;\n update?: Maybe;\n delete?: Maybe;\n destroy?: Maybe;\n};\n\nexport type PermissionsDataXTableCreate = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataXTableDelete = {\n allow: Scalars['Boolean'];\n restore?: Maybe;\n review?: Maybe;\n};\n\nexport type PermissionsDataXTableDestroy = {\n allow: Scalars['Boolean'];\n};\n\nexport type PermissionsDataXTableRead = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\nexport type PermissionsDataXTableUpdate = {\n allow: Scalars['Boolean'];\n filter?: Maybe;\n fields?: Maybe;\n};\n\n/** PermissionsInput create input */\nexport type PermissionsInput = {\n data?: Maybe;\n custom?: Maybe;\n};\n\n/** Permissions subscription filter */\nexport type PermissionSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\nexport type PhoneCall = {\n __typename?: 'PhoneCall';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n /** User who made the call */\n user: Maybe;\n duration: Maybe;\n to: Maybe;\n /** DEPRECATED */\n fromNumber: Maybe;\n /** The Lead related if is the case */\n lead: Maybe;\n status: Maybe;\n history: Maybe;\n phoneCallDispositionRelation: Maybe;\n /** Id of the call in the twilio platform */\n callSid: Maybe;\n recording: Maybe;\n agency: Maybe;\n dialCallSid: Maybe;\n price: Maybe;\n from: Maybe;\n conferenceSid: Maybe;\n participants: Maybe;\n priceUnit: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneCallParticipantsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type PhoneCall_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n fromNumber?: Maybe;\n status?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n conferenceSid?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n lead?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n participants?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneCall_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** VoiceMail create input from phoneCall */\nexport type PhoneCall_VoiceMailCreateInput = {\n phoneCall?: Maybe;\n recordingSid: Scalars['String'];\n /** url to retrieve the recording from twilio api */\n recordingUrl: Scalars['String'];\n /** duration of the recording in seconds */\n duration?: Maybe;\n};\n\n/** VoiceMail update input from phoneCall */\nexport type PhoneCall_VoiceMailUpdateInput = {\n phoneCall?: Maybe;\n recordingSid?: Maybe;\n /** url to retrieve the recording from twilio api */\n recordingUrl?: Maybe;\n /** duration of the recording in seconds */\n duration?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCall create input */\nexport type PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall create many input */\nexport type PhoneCallCreateManyInput = {\n user: PhoneCallUserManyRelationInput;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromManyRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall delete input */\nexport type PhoneCallDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneCall create input from phoneCallDispositionRelation */\nexport type PhoneCallDispositionRelation_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall update input from phoneCallDispositionRelation */\nexport type PhoneCallDispositionRelation_PhoneCallUpdateInput = {\n user?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallFieldsPermissions create input */\nexport type PhoneCallFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n fromNumber?: Maybe;\n status?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n conferenceSid?: Maybe;\n priceUnit?: Maybe;\n};\n\nexport type PhoneCallFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n fromNumber?: Maybe;\n status?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n conferenceSid?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n lead?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n participants?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallFromManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallFromRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallFromUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallGroupBy = {\n query: PhoneCallGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneCallGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n duration?: Maybe>;\n to?: Maybe>;\n fromNumber?: Maybe>;\n status?: Maybe>;\n callSid?: Maybe>;\n dialCallSid?: Maybe>;\n price?: Maybe>;\n conferenceSid?: Maybe>;\n priceUnit?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n lead?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n participants?: Maybe;\n _group?: Maybe>;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallHistoryManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallHistoryRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallHistoryUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallKeyFilter = {\n id?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCallListResponse output */\nexport type PhoneCallListResponse = {\n __typename?: 'PhoneCallListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneCallManyResponse output */\nexport type PhoneCallManyResponse = {\n __typename?: 'PhoneCallManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneCallOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n DurationAsc = 'duration_ASC',\n DurationDesc = 'duration_DESC',\n ToAsc = 'to_ASC',\n ToDesc = 'to_DESC',\n FromNumberAsc = 'fromNumber_ASC',\n FromNumberDesc = 'fromNumber_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n CallSidAsc = 'callSid_ASC',\n CallSidDesc = 'callSid_DESC',\n DialCallSidAsc = 'dialCallSid_ASC',\n DialCallSidDesc = 'dialCallSid_DESC',\n PriceAsc = 'price_ASC',\n PriceDesc = 'price_DESC',\n ConferenceSidAsc = 'conferenceSid_ASC',\n ConferenceSidDesc = 'conferenceSid_DESC',\n PriceUnitAsc = 'priceUnit_ASC',\n PriceUnitDesc = 'priceUnit_DESC',\n}\n\nexport type PhoneCallParticipant = {\n __typename?: 'PhoneCallParticipant';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n phone: Maybe;\n status: Maybe;\n answeredAt: Maybe;\n completedAt: Maybe;\n callSid: Maybe;\n isInitialParticipant: Maybe;\n inboundCall: Maybe;\n outboundCall: Maybe;\n duration: Maybe;\n /** The cost of this participant in the call, in $ */\n price: Maybe;\n priceUnit: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneCallParticipant_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n duration?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneCallParticipant_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneCallParticipant create input */\nexport type PhoneCallParticipantCreateInput = {\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant create many input */\nexport type PhoneCallParticipantCreateManyInput = {\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant delete input */\nexport type PhoneCallParticipantDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneCallParticipantFieldsPermissions create input */\nexport type PhoneCallParticipantFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n duration?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\nexport type PhoneCallParticipantFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n duration?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneCallParticipantGroupBy = {\n query: PhoneCallParticipantGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneCallParticipantGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n phone?: Maybe;\n status?: Maybe>;\n answeredAt?: Maybe>;\n completedAt?: Maybe>;\n callSid?: Maybe>;\n isInitialParticipant?: Maybe>;\n duration?: Maybe>;\n price?: Maybe>;\n priceUnit?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n _group?: Maybe>;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantInboundCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantInboundCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantInboundCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallParticipantKeyFilter = {\n id?: Maybe;\n callSid?: Maybe;\n};\n\n/** PhoneCallParticipantListResponse output */\nexport type PhoneCallParticipantListResponse = {\n __typename?: 'PhoneCallParticipantListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneCallParticipantManyResponse output */\nexport type PhoneCallParticipantManyResponse = {\n __typename?: 'PhoneCallParticipantManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneCallParticipantOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n PhoneCodeAsc = 'phone_code_ASC',\n PhoneCodeDesc = 'phone_code_DESC',\n PhoneNumberAsc = 'phone_number_ASC',\n PhoneNumberDesc = 'phone_number_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n AnsweredAtAsc = 'answeredAt_ASC',\n AnsweredAtDesc = 'answeredAt_DESC',\n CompletedAtAsc = 'completedAt_ASC',\n CompletedAtDesc = 'completedAt_DESC',\n CallSidAsc = 'callSid_ASC',\n CallSidDesc = 'callSid_DESC',\n IsInitialParticipantAsc = 'isInitialParticipant_ASC',\n IsInitialParticipantDesc = 'isInitialParticipant_DESC',\n DurationAsc = 'duration_ASC',\n DurationDesc = 'duration_DESC',\n PriceAsc = 'price_ASC',\n PriceDesc = 'price_DESC',\n PriceUnitAsc = 'priceUnit_ASC',\n PriceUnitDesc = 'priceUnit_DESC',\n}\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantOutboundCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantOutboundCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantOutboundCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCallParticipant subscription payload */\nexport type PhoneCallParticipantPayload = {\n __typename?: 'PhoneCallParticipantPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type PhoneCallParticipantRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallParticipantsManyRelationInput = {\n connect?: Maybe>;\n};\n\nexport type PhoneCallParticipantSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n duration?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallParticipantsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** PhoneCallParticipant subscription filter */\nexport type PhoneCallParticipantSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallParticipantsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** PhoneCallParticipant update input */\nexport type PhoneCallParticipantUpdateByFilterInput = {\n status?: Maybe>>;\n answeredAt?: Maybe>>;\n completedAt?: Maybe>>;\n callSid?: Maybe>>;\n isInitialParticipant?: Maybe>>;\n duration?: Maybe>>;\n price?: Maybe>>;\n priceUnit?: Maybe>>;\n};\n\n/** PhoneCallParticipant update input */\nexport type PhoneCallParticipantUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallParticipant relation input */\nexport type PhoneCallParticipantUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCall subscription payload */\nexport type PhoneCallPayload = {\n __typename?: 'PhoneCallPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallPhoneCallDispositionRelationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallPhoneCallDispositionRelationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallPhoneCallDispositionRelationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallRecording = {\n __typename?: 'PhoneCallRecording';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n call: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid: Maybe;\n recordingUrl: Maybe;\n status: Maybe;\n inboundCall: Maybe;\n duration: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneCallRecording_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n duration?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n call?: Maybe;\n inboundCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCallRecording create input */\nexport type PhoneCallRecordingCreateInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl: Scalars['String'];\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** PhoneCallRecording create many input */\nexport type PhoneCallRecordingCreateManyInput = {\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl: Scalars['String'];\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** PhoneCallRecording delete input */\nexport type PhoneCallRecordingDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneCallRecordingFieldsPermissions create input */\nexport type PhoneCallRecordingFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n duration?: Maybe;\n};\n\nexport type PhoneCallRecordingFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n duration?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n call?: Maybe;\n inboundCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneCallRecordingGroupBy = {\n query: PhoneCallRecordingGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneCallRecordingGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n recordingSid?: Maybe>;\n recordingUrl?: Maybe>;\n status?: Maybe>;\n duration?: Maybe>;\n createdBy?: Maybe;\n call?: Maybe;\n inboundCall?: Maybe;\n _group?: Maybe>;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingInboundCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingInboundCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallRecording relation input */\nexport type PhoneCallRecordingInboundCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallRecordingKeyFilter = {\n id?: Maybe;\n recordingSid?: Maybe;\n};\n\n/** PhoneCallRecordingListResponse output */\nexport type PhoneCallRecordingListResponse = {\n __typename?: 'PhoneCallRecordingListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallRecordingManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallRecordingManyResponse output */\nexport type PhoneCallRecordingManyResponse = {\n __typename?: 'PhoneCallRecordingManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneCallRecordingOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n RecordingSidAsc = 'recordingSid_ASC',\n RecordingSidDesc = 'recordingSid_DESC',\n RecordingUrlAsc = 'recordingUrl_ASC',\n RecordingUrlDesc = 'recordingUrl_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n DurationAsc = 'duration_ASC',\n DurationDesc = 'duration_DESC',\n}\n\n/** PhoneCallRecording subscription payload */\nexport type PhoneCallRecordingPayload = {\n __typename?: 'PhoneCallRecordingPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallRecordingRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\nexport type PhoneCallRecordingSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n duration?: Maybe;\n createdBy?: Maybe;\n call?: Maybe;\n inboundCall?: Maybe;\n};\n\n/** PhoneCallRecording subscription filter */\nexport type PhoneCallRecordingSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneCallRecording update input */\nexport type PhoneCallRecordingUpdateByFilterInput = {\n recordingSid?: Maybe>>;\n recordingUrl?: Maybe>>;\n status?: Maybe>>;\n duration?: Maybe>>;\n};\n\n/** PhoneCallRecording update input */\nexport type PhoneCallRecordingUpdateInput = {\n id?: Maybe;\n call?: Maybe;\n /** Id of the recording in twilio platform */\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n status?: Maybe;\n inboundCall?: Maybe;\n duration?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallRecordingUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneCallRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from phoneCalls */\nexport type PhoneCalls_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Agency update input from phoneCalls */\nexport type PhoneCalls_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type PhoneCallSetting = {\n __typename?: 'PhoneCallSetting';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n automaticCalls: Maybe;\n recordCalls: Maybe;\n agency: Maybe;\n callsDelay: Maybe;\n campignAssineeFilter: Maybe;\n callCadenceConfig: Maybe;\n voicemail: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneCallSetting_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n voicemail?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** PhoneCallSetting relation input */\nexport type PhoneCallSettingAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCallSetting relation input */\nexport type PhoneCallSettingAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCallSetting relation input */\nexport type PhoneCallSettingAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneCallSetting create input */\nexport type PhoneCallSettingCreateInput = {\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n agency?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\n/** PhoneCallSetting create many input */\nexport type PhoneCallSettingCreateManyInput = {\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n agency: PhoneCallSettingAgencyManyRelationInput;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\n/** PhoneCallSetting delete input */\nexport type PhoneCallSettingDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneCallSettingFieldsPermissions create input */\nexport type PhoneCallSettingFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\nexport type PhoneCallSettingFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n voicemail?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneCallSettingGroupBy = {\n query: PhoneCallSettingGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneCallSettingGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n automaticCalls?: Maybe>;\n recordCalls?: Maybe>;\n callsDelay?: Maybe>;\n campignAssineeFilter?: Maybe>;\n callCadenceConfig?: Maybe>;\n voicemail?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type PhoneCallSettingKeyFilter = {\n id?: Maybe;\n};\n\n/** PhoneCallSettingListResponse output */\nexport type PhoneCallSettingListResponse = {\n __typename?: 'PhoneCallSettingListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneCallSettingManyResponse output */\nexport type PhoneCallSettingManyResponse = {\n __typename?: 'PhoneCallSettingManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneCallSettingOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n AutomaticCallsAsc = 'automaticCalls_ASC',\n AutomaticCallsDesc = 'automaticCalls_DESC',\n RecordCallsAsc = 'recordCalls_ASC',\n RecordCallsDesc = 'recordCalls_DESC',\n CallsDelayAsc = 'callsDelay_ASC',\n CallsDelayDesc = 'callsDelay_DESC',\n CampignAssineeFilterAsc = 'campignAssineeFilter_ASC',\n CampignAssineeFilterDesc = 'campignAssineeFilter_DESC',\n CallCadenceConfigAsc = 'callCadenceConfig_ASC',\n CallCadenceConfigDesc = 'callCadenceConfig_DESC',\n VoicemailAsc = 'voicemail_ASC',\n VoicemailDesc = 'voicemail_DESC',\n}\n\n/** PhoneCallSetting subscription payload */\nexport type PhoneCallSettingPayload = {\n __typename?: 'PhoneCallSettingPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Agency create input from phoneCallSettings */\nexport type PhoneCallSettings_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from phoneCallSettings */\nexport type PhoneCallSettings_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type PhoneCallSettingSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n voicemail?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** PhoneCallSetting subscription filter */\nexport type PhoneCallSettingSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneCallSetting update input */\nexport type PhoneCallSettingUpdateByFilterInput = {\n automaticCalls?: Maybe>>;\n recordCalls?: Maybe>>;\n callsDelay?: Maybe>>;\n campignAssineeFilter?: Maybe>>;\n callCadenceConfig?: Maybe>>;\n voicemail?: Maybe>>;\n};\n\n/** PhoneCallSetting update input */\nexport type PhoneCallSettingUpdateInput = {\n id?: Maybe;\n automaticCalls?: Maybe;\n recordCalls?: Maybe;\n agency?: Maybe;\n callsDelay?: Maybe;\n campignAssineeFilter?: Maybe;\n callCadenceConfig?: Maybe;\n voicemail?: Maybe;\n};\n\nexport type PhoneCallSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n fromNumber?: Maybe;\n status?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n conferenceSid?: Maybe;\n priceUnit?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n lead?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n};\n\n/** PhoneCall subscription filter */\nexport type PhoneCallSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneCall update input */\nexport type PhoneCallUpdateByFilterInput = {\n duration?: Maybe>>;\n to?: Maybe>>;\n fromNumber?: Maybe>>;\n status?: Maybe>>;\n callSid?: Maybe>>;\n dialCallSid?: Maybe>>;\n price?: Maybe>>;\n conferenceSid?: Maybe>>;\n priceUnit?: Maybe>>;\n};\n\n/** PhoneCall update input */\nexport type PhoneCallUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneCall relation input */\nexport type PhoneCallUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type PhoneNumber = {\n __typename?: 'PhoneNumber';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n number: Maybe;\n status: Maybe;\n priority: Maybe;\n user: Maybe;\n agency: Maybe;\n active: Maybe;\n paid: Maybe;\n sid: Maybe;\n isFree: Maybe;\n callFromRelation: Maybe;\n smsFromRelation: Maybe;\n campaign: Maybe;\n inboundPhoneCallPhoneNumberRelation: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneNumberCallFromRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type PhoneNumberSmsFromRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type PhoneNumberInboundPhoneCallPhoneNumberRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Campaign create input from phoneNumber */\nexport type PhoneNumber_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from phoneNumber */\nexport type PhoneNumber_CampaignUpdateInput = {\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\nexport type PhoneNumber_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneNumber_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCallFromRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCallFromRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCallFromRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** PhoneNumber create input */\nexport type PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber create many input */\nexport type PhoneNumberCreateManyInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationManyRelationInput\n >;\n};\n\n/** PhoneNumber delete input */\nexport type PhoneNumberDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneNumberFieldsPermissions create input */\nexport type PhoneNumberFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n};\n\nexport type PhoneNumberFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneNumberGroupBy = {\n query: PhoneNumberGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneNumberGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n number?: Maybe;\n status?: Maybe>;\n priority?: Maybe>;\n active?: Maybe>;\n paid?: Maybe>;\n sid?: Maybe>;\n isFree?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe;\n _group?: Maybe>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberInboundPhoneCallPhoneNumberRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type PhoneNumberKeyFilter = {\n id?: Maybe;\n};\n\n/** PhoneNumberListResponse output */\nexport type PhoneNumberListResponse = {\n __typename?: 'PhoneNumberListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneNumberManyResponse output */\nexport type PhoneNumberManyResponse = {\n __typename?: 'PhoneNumberManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneNumberOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NumberCodeAsc = 'number_code_ASC',\n NumberCodeDesc = 'number_code_DESC',\n NumberNumberAsc = 'number_number_ASC',\n NumberNumberDesc = 'number_number_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n PriorityAsc = 'priority_ASC',\n PriorityDesc = 'priority_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n PaidAsc = 'paid_ASC',\n PaidDesc = 'paid_DESC',\n SidAsc = 'sid_ASC',\n SidDesc = 'sid_DESC',\n IsFreeAsc = 'isFree_ASC',\n IsFreeDesc = 'isFree_DESC',\n}\n\n/** PhoneNumber subscription payload */\nexport type PhoneNumberPayload = {\n __typename?: 'PhoneNumberPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** Users create input from phoneNumberRelation */\nexport type PhoneNumberRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from phoneNumberRelation */\nexport type PhoneNumberRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport type PhoneNumberRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberSmsFromRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberSmsFromRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberSmsFromRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type PhoneNumberSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n campaign?: Maybe;\n};\n\n/** Agency create input from phoneNumbersRelation */\nexport type PhoneNumbersRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from phoneNumbersRelation */\nexport type PhoneNumbersRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** PhoneNumber subscription filter */\nexport type PhoneNumberSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneNumber update input */\nexport type PhoneNumberUpdateByFilterInput = {\n status?: Maybe>>;\n priority?: Maybe>>;\n active?: Maybe>>;\n paid?: Maybe>>;\n sid?: Maybe>>;\n isFree?: Maybe>>;\n};\n\n/** PhoneNumber update input */\nexport type PhoneNumberUpdateInput = {\n id?: Maybe;\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput\n >;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** PhoneNumber relation input */\nexport type PhoneNumberUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Table to add twilio phone numbers not attached to any agency, so we can later delete unused phone numbers from it */\nexport type PhoneNumberWarning = {\n __typename?: 'PhoneNumberWarning';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n raw: Maybe;\n phone: Maybe;\n warning: Maybe;\n _description: Maybe;\n};\n\nexport type PhoneNumberWarning_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** PhoneNumberWarning create input */\nexport type PhoneNumberWarningCreateInput = {\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n};\n\n/** PhoneNumberWarning create many input */\nexport type PhoneNumberWarningCreateManyInput = {\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n};\n\n/** PhoneNumberWarning delete input */\nexport type PhoneNumberWarningDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** PhoneNumberWarningFieldsPermissions create input */\nexport type PhoneNumberWarningFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n};\n\nexport type PhoneNumberWarningFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type PhoneNumberWarningGroupBy = {\n query: PhoneNumberWarningGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type PhoneNumberWarningGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n raw?: Maybe>;\n phone?: Maybe;\n warning?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type PhoneNumberWarningKeyFilter = {\n id?: Maybe;\n};\n\n/** PhoneNumberWarningListResponse output */\nexport type PhoneNumberWarningListResponse = {\n __typename?: 'PhoneNumberWarningListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** PhoneNumberWarningManyResponse output */\nexport type PhoneNumberWarningManyResponse = {\n __typename?: 'PhoneNumberWarningManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum PhoneNumberWarningOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n RawAsc = 'raw_ASC',\n RawDesc = 'raw_DESC',\n PhoneCodeAsc = 'phone_code_ASC',\n PhoneCodeDesc = 'phone_code_DESC',\n PhoneNumberAsc = 'phone_number_ASC',\n PhoneNumberDesc = 'phone_number_DESC',\n WarningAsc = 'warning_ASC',\n WarningDesc = 'warning_DESC',\n}\n\n/** PhoneNumberWarning subscription payload */\nexport type PhoneNumberWarningPayload = {\n __typename?: 'PhoneNumberWarningPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type PhoneNumberWarningSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n createdBy?: Maybe;\n};\n\n/** PhoneNumberWarning subscription filter */\nexport type PhoneNumberWarningSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** PhoneNumberWarning update input */\nexport type PhoneNumberWarningUpdateByFilterInput = {\n raw?: Maybe>>;\n warning?: Maybe>>;\n};\n\n/** PhoneNumberWarning update input */\nexport type PhoneNumberWarningUpdateInput = {\n id?: Maybe;\n raw?: Maybe;\n phone?: Maybe;\n warning?: Maybe;\n};\n\n/** GmailService create input from profile */\nexport type Profile_GmailServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService update input from profile */\nexport type Profile_GmailServiceUpdateInput = {\n filter?: Maybe;\n data: GmailServiceUpdateInput;\n};\n\n/** OutlookService create input from profile */\nexport type Profile_OutlookServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** OutlookService update input from profile */\nexport type Profile_OutlookServiceUpdateInput = {\n filter?: Maybe;\n data: OutlookServiceUpdateInput;\n};\n\nexport type Query = {\n __typename?: 'Query';\n admin: Maybe;\n adminsList: AdminListResponse;\n agenciesList: AgencyListResponse;\n agency: Maybe;\n agencyEmailService: Maybe;\n agencyEmailServicesList: AgencyEmailServiceListResponse;\n agencyInvitation: Maybe;\n agencyInvitationsList: AgencyInvitationListResponse;\n agencyUser: Maybe;\n agencyUsersList: AgencyUserListResponse;\n agent: Maybe;\n agentsList: AgentListResponse;\n announcement: Maybe;\n announcementsList: AnnouncementListResponse;\n apiToken: Maybe;\n apiTokensList: ApiTokenListResponse;\n /** @deprecated No longer supported. Use `system.application` instead. */\n application: Maybe;\n /** @deprecated No longer supported. Use `system.applicationsList` instead. */\n applicationsList: Maybe;\n asyncSessionStatus: Maybe;\n authenticationProfile: Maybe;\n authenticationProfilesList: AuthenticationProfileListResponse;\n authenticationSettings: Maybe;\n automaticCallConfig: Maybe;\n automaticCallConfigsList: AutomaticCallConfigListResponse;\n /** @deprecated No longer supported. Use `system.billingCurrentPlan` instead. */\n billingCurrentPlan: Maybe;\n /** @deprecated No longer supported. Use `system.billingDetails` instead. */\n billingDetails: Maybe;\n /** @deprecated No longer supported. Use `system.billingInvoicesList` instead. */\n billingInvoicesList: BillingInvoicesListResponse;\n /** @deprecated No longer supported. Use `system.billingMetricUsageQuotasList` instead. */\n billingMetricUsageQuotasList: BillingMetricUsageQuotasListResponse;\n /** @deprecated No longer supported. Use `system.billingMetricUsagesList` instead. */\n billingMetricUsagesList: BillingMetricUsagesListResponse;\n campaign: Maybe;\n campaignsList: CampaignListResponse;\n channel: Maybe;\n channelMember: Maybe;\n channelMembersList: ChannelMemberListResponse;\n channelsList: ChannelListResponse;\n ciCdMigration: Maybe;\n ciCdMigrationsList: CiCdMigrationListResponse;\n companiesList: CompanyListResponse;\n company: Maybe;\n companyInvitation: Maybe;\n companyInvitationsList: CompanyInvitationListResponse;\n companyInvoice: Maybe;\n companyInvoicesList: CompanyInvoiceListResponse;\n companyName: Maybe;\n companyPaymentMethod: Maybe;\n companyPaymentMethodsList: CompanyPaymentMethodListResponse;\n companySub: Maybe;\n companySubCoupon: Maybe;\n companySubCouponsList: CompanySubCouponListResponse;\n companySubsList: CompanySubListResponse;\n /** @deprecated No longer supported. Use `system.deployStatus` instead. */\n deployStatus: DeployStatusResult;\n driverIncident: Maybe;\n driverIncidentsList: DriverIncidentListResponse;\n emailInboundService: Maybe;\n emailInboundServicesList: EmailInboundServiceListResponse;\n emailOutboundService: Maybe;\n emailOutboundServicesList: EmailOutboundServiceListResponse;\n environmentVariable: Maybe;\n environmentVariablesList: EnvironmentVariableListResponse;\n file: Maybe;\n fileUploadInfo: Maybe;\n filesList: FileListResponse;\n freePhoneNumber: Maybe;\n freePhoneNumbersList: FreePhoneNumberListResponse;\n /** @deprecated No longer supported. Use `system.functionsList` instead. */\n functionsList: Maybe;\n getWorkspaceTransferInfo: Maybe;\n gmailProfile: Maybe;\n gmailProfilesList: GmailProfileListResponse;\n gmailService: Maybe;\n gmailServicesList: GmailServiceListResponse;\n ifsScore: Maybe;\n ifsScoresList: IfsScoreListResponse;\n inboundPhoneCall: Maybe;\n inboundPhoneCallsList: InboundPhoneCallListResponse;\n lead: Maybe;\n leadAction: Maybe;\n leadActionsList: LeadActionListResponse;\n leadCallCadence: Maybe;\n leadCallCadencesList: LeadCallCadenceListResponse;\n leadContact: Maybe;\n leadContactsList: LeadContactListResponse;\n leadDisposition: Maybe;\n leadDispositionsList: LeadDispositionListResponse;\n leadDriver: Maybe;\n leadDriversList: LeadDriverListResponse;\n leadHistoriesList: LeadHistoryListResponse;\n leadHistory: Maybe;\n leadNote: Maybe;\n leadNotesList: LeadNoteListResponse;\n leadPhoneNumber: Maybe;\n leadPhoneNumbersList: LeadPhoneNumberListResponse;\n leadSource: Maybe;\n leadSourcesList: LeadSourceListResponse;\n leadStage: Maybe;\n leadStageHistoriesList: LeadStageHistoryListResponse;\n leadStageHistory: Maybe;\n leadStagesList: LeadStageListResponse;\n leadTask: Maybe;\n leadTaskType: Maybe;\n leadTaskTypesList: LeadTaskTypeListResponse;\n leadTasksList: LeadTaskListResponse;\n leadTypeAuto: Maybe;\n leadTypeAutosList: LeadTypeAutoListResponse;\n leadTypeCommercialAuto: Maybe;\n leadTypeCommercialAutosList: LeadTypeCommercialAutoListResponse;\n leadTypeEmployeeBenefit: Maybe;\n leadTypeEmployeeBenefitsList: LeadTypeEmployeeBenefitListResponse;\n leadTypeGeneralLiabilitiesList: LeadTypeGeneralLiabilityListResponse;\n leadTypeGeneralLiability: Maybe;\n leadTypeHome: Maybe;\n leadTypeHomesList: LeadTypeHomeListResponse;\n leadTypeLife: Maybe;\n leadTypeLivesList: LeadTypeLifeListResponse;\n leadTypeWorkersCompensation: Maybe;\n leadTypeWorkersCompensationsList: LeadTypeWorkersCompensationListResponse;\n leadsList: LeadListResponse;\n lifeInsurance: Maybe;\n lifeInsurancesList: LifeInsuranceListResponse;\n /** @deprecated No longer supported. Use `system.logsList` instead. */\n logs: Maybe>>;\n mail: Maybe;\n mailList: MailListResponse;\n mailThread: Maybe;\n mailThreadsList: MailThreadListResponse;\n manager: Maybe;\n managersList: ManagerListResponse;\n marketingCampaign: Maybe;\n marketingCampaignClick: Maybe;\n marketingCampaignClicksList: MarketingCampaignClickListResponse;\n marketingCampaignCondition: Maybe;\n marketingCampaignConditionsList: MarketingCampaignConditionListResponse;\n marketingCampaignOpening: Maybe;\n marketingCampaignOpeningsList: MarketingCampaignOpeningListResponse;\n marketingCampaignsList: MarketingCampaignListResponse;\n marketingEmailTemplate: Maybe;\n marketingEmailTemplatesList: MarketingEmailTemplateListResponse;\n marketingSmsTemplate: Maybe;\n marketingSmsTemplatesList: MarketingSmsTemplateListResponse;\n message: Maybe;\n messagesList: MessageListResponse;\n meta: Maybe;\n metasList: MetaListResponse;\n notification: Maybe;\n notificationsList: NotificationListResponse;\n outlookProfile: Maybe;\n outlookProfilesList: OutlookProfileListResponse;\n outlookService: Maybe;\n outlookServicesList: OutlookServiceListResponse;\n paymentMethod: Maybe;\n paymentMethodsList: PaymentMethodListResponse;\n phoneCall: Maybe;\n phoneCallParticipant: Maybe;\n phoneCallParticipantsList: PhoneCallParticipantListResponse;\n phoneCallRecording: Maybe;\n phoneCallRecordingsList: PhoneCallRecordingListResponse;\n phoneCallSetting: Maybe;\n phoneCallSettingsList: PhoneCallSettingListResponse;\n phoneCallsList: PhoneCallListResponse;\n phoneNumber: Maybe;\n phoneNumberWarning: Maybe;\n phoneNumberWarningsList: PhoneNumberWarningListResponse;\n phoneNumbersList: PhoneNumberListResponse;\n resendedAngencyInvitation: Maybe;\n resendedAngencyInvitationsList: ResendedAngencyInvitationListResponse;\n role: Maybe;\n rolesList: RoleListResponse;\n sMSMessage: Maybe;\n sMSMessagesList: SmsMessageListResponse;\n settings: Maybe;\n shortUrl: Maybe;\n shortUrlsList: ShortUrlListResponse;\n subscriptionPlan: Maybe;\n subscriptionPlanItem: Maybe;\n subscriptionPlanItemsList: SubscriptionPlanItemListResponse;\n subscriptionPlansList: SubscriptionPlanListResponse;\n system: Maybe;\n systemSetting: Maybe;\n systemSettingsList: SystemSettingListResponse;\n /** @deprecated No longer supported. Use `system.table` instead. */\n table: Maybe;\n /** @deprecated No longer supported. Use `system.tableField` instead. */\n tableField: Maybe;\n /** @deprecated No longer supported. Use `system.tablesList` instead. */\n tablesList: TableListResponse;\n teamInvitationDetails: Maybe;\n teamInvitationsDetailsList: Maybe;\n teamMember: Maybe;\n teamMembersList: TeamMemberListResponse;\n url: Maybe;\n urlsList: UrlListResponse;\n user: Maybe;\n userBillingConfiguration: UserBillingConfigurationResponse;\n userInvitationsList: Maybe;\n userStatus: Maybe;\n userStatusesList: UserStatusListResponse;\n usersList: UserListResponse;\n vendor: Maybe;\n vendorsList: VendorListResponse;\n voiceMail: Maybe;\n voiceMailMessage: Maybe;\n voiceMailMessagesList: VoiceMailMessageListResponse;\n voiceMailsList: VoiceMailListResponse;\n workflowAutomation: Maybe;\n workflowAutomationsList: WorkflowAutomationListResponse;\n workflowClick: Maybe;\n workflowClicksList: WorkflowClickListResponse;\n workflowCondition: Maybe;\n workflowConditionsList: WorkflowConditionListResponse;\n workflowEmailOpening: Maybe;\n workflowEmailOpeningsList: WorkflowEmailOpeningListResponse;\n workflowEmailTemplate: Maybe;\n workflowEmailTemplatesList: WorkflowEmailTemplateListResponse;\n workflowSmsTemplate: Maybe;\n workflowSmsTemplatesList: WorkflowSmsTemplateListResponse;\n /** @deprecated No longer supported. Use `system.workspacesList` instead. */\n workspacesList: Maybe;\n xTable: Maybe;\n xTablesList: XTableListResponse;\n googleAuthUrl: Maybe;\n googleEmailsList: Maybe;\n googleEmail: Maybe;\n azureAuthUrl: Maybe;\n outlookEmailsList: Maybe;\n outlookEmail: Maybe;\n stripePaymentIntent: Maybe;\n agentsCalls: Maybe;\n};\nexport type QueryAdminArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAdminsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryAgenciesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryAgencyArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyEmailServiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyEmailServicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyInvitationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyInvitationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyUserArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgencyUsersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgentArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAgentsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAnnouncementArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAnnouncementsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryApiTokenArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryApiTokensListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryApplicationArgs = {\n id: Scalars['String'];\n};\n\nexport type QueryAsyncSessionStatusArgs = {\n sessionId: Scalars['String'];\n};\n\nexport type QueryAuthenticationProfileArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAuthenticationProfilesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAutomaticCallConfigArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryAutomaticCallConfigsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryBillingInvoicesListArgs = {\n by?: Maybe;\n limit?: Maybe;\n before?: Maybe;\n after?: Maybe;\n};\n\nexport type QueryBillingMetricUsagesListArgs = {\n filter?: Maybe;\n};\n\nexport type QueryCampaignArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCampaignsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryChannelArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryChannelMemberArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryChannelMembersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryChannelsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCiCdMigrationArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCiCdMigrationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompaniesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyInvitationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyInvitationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyInvoiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyInvoicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyPaymentMethodArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanyPaymentMethodsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanySubArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanySubCouponArgs = {\n id?: Maybe;\n stripeCouponId?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanySubCouponsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryCompanySubsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryDeployStatusArgs = {\n buildName: Scalars['String'];\n};\n\nexport type QueryDriverIncidentArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryDriverIncidentsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEmailInboundServiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEmailInboundServicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEmailOutboundServiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEmailOutboundServicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEnvironmentVariableArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryEnvironmentVariablesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryFileArgs = {\n id?: Maybe;\n fileId?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryFilesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryFreePhoneNumberArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryFreePhoneNumbersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryFunctionsListArgs = {\n applicationId?: Maybe;\n filter?: Maybe;\n orderBy?: Maybe>>;\n};\n\nexport type QueryGetWorkspaceTransferInfoArgs = {\n workspaceId: Scalars['String'];\n};\n\nexport type QueryGmailProfileArgs = {\n id?: Maybe;\n googleId?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryGmailProfilesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryGmailServiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryGmailServicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryIfsScoreArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryIfsScoresListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryInboundPhoneCallArgs = {\n id?: Maybe;\n callSid?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryInboundPhoneCallsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadActionArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadActionsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadCallCadenceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadCallCadencesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadContactArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadContactsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadDispositionArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadDispositionsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadDriverArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadDriversListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadHistoriesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadHistoryArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadNoteArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadNotesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadPhoneNumberArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadPhoneNumbersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadSourceArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadSourcesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadStageArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadStageHistoriesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadStageHistoryArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadStagesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTaskArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTaskTypeArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTaskTypesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTasksListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeAutoArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeAutosListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeCommercialAutoArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeCommercialAutosListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeEmployeeBenefitArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeEmployeeBenefitsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeGeneralLiabilitiesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeGeneralLiabilityArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeHomeArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeHomesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeLifeArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeLivesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeWorkersCompensationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadTypeWorkersCompensationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLeadsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLifeInsuranceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLifeInsurancesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryLogsArgs = {\n functionName: Scalars['String'];\n applicationId?: Maybe;\n limit?: Maybe;\n startTime?: Maybe;\n endTime?: Maybe;\n};\n\nexport type QueryMailArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMailListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMailThreadArgs = {\n id?: Maybe;\n identifier?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMailThreadsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryManagerArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryManagersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignClickArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignClicksListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignConditionArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignConditionsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignOpeningArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingCampaignOpeningsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMarketingCampaignsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMarketingEmailTemplateArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryMarketingEmailTemplatesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMarketingSmsTemplateArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMarketingSmsTemplatesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMessageArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMessagesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMetaArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryMetasListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryNotificationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryNotificationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryOutlookProfileArgs = {\n id?: Maybe;\n outlookId?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryOutlookProfilesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryOutlookServiceArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryOutlookServicesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryPaymentMethodArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPaymentMethodsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallArgs = {\n id?: Maybe;\n callSid?: Maybe;\n dialCallSid?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallParticipantArgs = {\n id?: Maybe;\n callSid?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallParticipantsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallRecordingArgs = {\n id?: Maybe;\n recordingSid?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallRecordingsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallSettingArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallSettingsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneCallsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneNumberArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneNumberWarningArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneNumberWarningsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryPhoneNumbersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryResendedAngencyInvitationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryResendedAngencyInvitationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryRoleArgs = {\n id?: Maybe;\n name?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryRolesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySMsMessageArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySMsMessagesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryShortUrlArgs = {\n id?: Maybe;\n identifier?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryShortUrlsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySubscriptionPlanArgs = {\n id?: Maybe;\n stripeProductId?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySubscriptionPlanItemArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySubscriptionPlanItemsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySubscriptionPlansListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySystemSettingArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QuerySystemSettingsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryTableArgs = {\n id?: Maybe;\n name?: Maybe;\n};\nexport type QueryTableFieldArgs = {\n id: Scalars['ID'];\n};\n\nexport type QueryTablesListArgs = {\n filter?: Maybe;\n};\n\nexport type QueryTeamInvitationDetailsArgs = {\n uuid: Scalars['String'];\n};\nexport type QueryTeamMemberArgs = {\n id?: Maybe;\n userId?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryTeamMembersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUrlArgs = {\n id?: Maybe;\n num?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUrlsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUserArgs = {\n id?: Maybe;\n email?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUserStatusArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUserStatusesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryUsersListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryVendorArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryVendorsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryVoiceMailArgs = {\n id?: Maybe;\n recordingSid?: Maybe;\n withDeleted?: Maybe;\n};\n\nexport type QueryVoiceMailMessageArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryVoiceMailMessagesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryVoiceMailsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowAutomationArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowAutomationsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowClickArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowClicksListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowConditionArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowConditionsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowEmailOpeningArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowEmailOpeningsListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowEmailTemplateArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowEmailTemplatesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowSmsTemplateArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryWorkflowSmsTemplatesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryXTableArgs = {\n id?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryXTablesListArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n withDeleted?: Maybe;\n};\nexport type QueryGoogleAuthUrlArgs = {\n agency: Scalars['ID'];\n from: AuthFrom;\n};\nexport type QueryGoogleEmailsListArgs = {\n first?: Maybe;\n after?: Maybe;\n filter: GoogleEmailsFilter;\n};\nexport type QueryGoogleEmailArgs = {\n id: Scalars['String'];\n agency: Scalars['ID'];\n};\n\nexport type QueryAzureAuthUrlArgs = {\n agency: Scalars['ID'];\n from: AuthFrom;\n};\nexport type QueryOutlookEmailsListArgs = {\n agency: Scalars['ID'];\n folder: OutlookFolder;\n search?: Maybe;\n next?: Maybe;\n};\nexport type QueryOutlookEmailArgs = {\n outlookId: Scalars['String'];\n agency: Scalars['ID'];\n};\nexport type QueryStripePaymentIntentArgs = {\n stripeInvoiceId: Scalars['String'];\n};\nexport type QueryAgentsCallsArgs = {\n agency: Scalars['ID'];\n startDate: Scalars['DateTime'];\n endDate: Scalars['DateTime'];\n search?: Maybe;\n userId?: Maybe;\n first?: Maybe;\n skip?: Maybe;\n};\n/** Agency create input from quoteOfDay */\nexport type QuoteOfDay_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** Agency update input from quoteOfDay */\nexport type QuoteOfDay_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n/** InboundPhoneCall create input from recording */\nexport type Recording_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** InboundPhoneCall update input from recording */\nexport type Recording_InboundPhoneCallUpdateInput = {\n agency?: Maybe;\n to?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** PhoneCall create input from recording */\nexport type Recording_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n/** PhoneCall update input from recording */\nexport type Recording_PhoneCallUpdateInput = {\n user?: Maybe;\n duration?: Maybe;\n to?: Maybe;\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from?: Maybe;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n/** RefreshTokenInput */\nexport type RefreshTokenInput = {\n email?: Maybe;\n refreshToken: Scalars['String'];\n authProfileId?: Maybe;\n};\n/** InboundPhoneCall create input from rejectedBy */\nexport type RejectedBy_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to: InboundPhoneCallToRelationInput;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n/** InboundPhoneCall update input from rejectedBy */\nexport type RejectedBy_InboundPhoneCallUpdateInput = {\n filter?: Maybe;\n data: InboundPhoneCallUpdateInput;\n};\n/** Relation */\nexport type Relation = {\n __typename?: 'Relation';\n refTable: Table;\n refField: Maybe;\n relationTableName: Maybe;\n relationFieldName: Maybe;\n refFieldName: Maybe;\n refFieldDisplayName: Maybe;\n refFieldIsList: Maybe;\n refFieldIsRequired: Maybe;\n};\n/** Relation Create Input */\nexport type RelationCreateInput = {\n refTableId: Scalars['ID'];\n refFieldName?: Maybe;\n refFieldDisplayName?: Maybe;\n refFieldIsList: Scalars['Boolean'];\n refFieldIsRequired: Scalars['Boolean'];\n};\n/** Relation Update Input */\nexport type RelationUpdateInput = {\n refTableId?: Maybe;\n refFieldName?: Maybe;\n refFieldDisplayName?: Maybe;\n refFieldIsList?: Maybe;\n refFieldIsRequired?: Maybe;\n};\n/** Relative Date Predicate Operation Enum */\nexport enum RelativePredicateOpEnum {\n Add = 'ADD',\n Sub = 'SUB',\n}\n/** Relative Date Predicate Unit Enum */\nexport enum RelativePredicateUnitEnum {\n Microsecond = 'MICROSECOND',\n Second = 'SECOND',\n Minute = 'MINUTE',\n Hour = 'HOUR',\n Day = 'DAY',\n Week = 'WEEK',\n Month = 'MONTH',\n Quarter = 'QUARTER',\n Year = 'YEAR',\n SecondMicrosecond = 'SECOND_MICROSECOND',\n MinuteMicrosecond = 'MINUTE_MICROSECOND',\n MinuteSecond = 'MINUTE_SECOND',\n HourMicrosecond = 'HOUR_MICROSECOND',\n HourSecond = 'HOUR_SECOND',\n HourMinute = 'HOUR_MINUTE',\n DayMicrosecond = 'DAY_MICROSECOND',\n DaySecond = 'DAY_SECOND',\n DayMinute = 'DAY_MINUTE',\n DayHour = 'DAY_HOUR',\n YearMonth = 'YEAR_MONTH',\n}\nexport type ReplaceFunctionArguments = {\n from: Scalars['String'];\n to: Scalars['String'];\n};\n/** SubscriptionPlan create input from requiredItems */\nexport type RequiredItems_SubscriptionPlanCreateInput = {\n name: Scalars['String'];\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n/** SubscriptionPlan update input from requiredItems */\nexport type RequiredItems_SubscriptionPlanUpdateInput = {\n filter?: Maybe;\n data: SubscriptionPlanUpdateInput;\n};\n/** AgencyInvitation create input from resended */\nexport type Resended_AgencyInvitationCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\n/** AgencyInvitation update input from resended */\nexport type Resended_AgencyInvitationUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n type?: Maybe;\n agency?: Maybe;\n /** deprecated */\n resendInvitation?: Maybe;\n resended?: Maybe;\n};\nexport type ResendedAngencyInvitation = {\n __typename?: 'ResendedAngencyInvitation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n invitation: Maybe;\n _description: Maybe;\n};\nexport type ResendedAngencyInvitation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invitation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type ResendedAngencyInvitation_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** ResendedAngencyInvitation create input */\nexport type ResendedAngencyInvitationCreateInput = {\n invitation?: Maybe;\n};\n/** ResendedAngencyInvitation create many input */\nexport type ResendedAngencyInvitationCreateManyInput = {\n invitation: ResendedAngencyInvitationInvitationManyRelationInput;\n};\n/** ResendedAngencyInvitation delete input */\nexport type ResendedAngencyInvitationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** ResendedAngencyInvitationFieldsPermissions create input */\nexport type ResendedAngencyInvitationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n};\nexport type ResendedAngencyInvitationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invitation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type ResendedAngencyInvitationGroupBy = {\n query: ResendedAngencyInvitationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type ResendedAngencyInvitationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n createdBy?: Maybe;\n invitation?: Maybe;\n _group?: Maybe>;\n};\n/** ResendedAngencyInvitation relation input */\nexport type ResendedAngencyInvitationInvitationManyRelationInput = {\n connect?: Maybe;\n};\n/** ResendedAngencyInvitation relation input */\nexport type ResendedAngencyInvitationInvitationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** ResendedAngencyInvitation relation input */\nexport type ResendedAngencyInvitationInvitationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\nexport type ResendedAngencyInvitationKeyFilter = {\n id?: Maybe;\n};\n/** ResendedAngencyInvitationListResponse output */\nexport type ResendedAngencyInvitationListResponse = {\n __typename?: 'ResendedAngencyInvitationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** ResendedAngencyInvitationManyResponse output */\nexport type ResendedAngencyInvitationManyResponse = {\n __typename?: 'ResendedAngencyInvitationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum ResendedAngencyInvitationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n}\n/** ResendedAngencyInvitation subscription payload */\nexport type ResendedAngencyInvitationPayload = {\n __typename?: 'ResendedAngencyInvitationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type ResendedAngencyInvitationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\nexport type ResendedAngencyInvitationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n createdBy?: Maybe;\n invitation?: Maybe;\n};\n/** ResendedAngencyInvitation subscription filter */\nexport type ResendedAngencyInvitationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** ResendedAngencyInvitation update input */\nexport type ResendedAngencyInvitationUpdateInput = {\n id?: Maybe;\n invitation?: Maybe;\n};\nexport type Role = {\n __typename?: 'Role';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n description: Maybe;\n users: Maybe;\n apiTokens: Maybe;\n authenticationProfiles: Maybe;\n teamMembers: Maybe;\n permissions: Maybe;\n _description: Maybe;\n};\nexport type RoleUsersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type RoleApiTokensArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type RoleAuthenticationProfilesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type RoleTeamMembersArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type RolePermissionsArgs = {\n filter?: Maybe;\n};\nexport type Role_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n description?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type Role_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Roles create input */\nexport type RoleCreateInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n/** Roles create many input */\nexport type RoleCreateManyInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n/** Roles delete input */\nexport type RoleDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** RoleFieldsPermissions create input */\nexport type RoleFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n description?: Maybe;\n};\nexport type RoleFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n description?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type RoleGroupBy = {\n query: RoleGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type RoleGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n description?: Maybe>;\n createdBy?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n _group?: Maybe>;\n};\nexport type RoleKeyFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n/** RoleListResponse output */\nexport type RoleListResponse = {\n __typename?: 'RoleListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** RoleManyResponse output */\nexport type RoleManyResponse = {\n __typename?: 'RoleManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum RoleOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n SystemTypeAsc = 'systemType_ASC',\n SystemTypeDesc = 'systemType_DESC',\n}\n/** Roles subscription payload */\nexport type RolePayload = {\n __typename?: 'RolePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type RoleRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** ApiTokens update input from roles */\nexport type Roles_ApiTokenUpdateInput = {\n filter?: Maybe;\n data: ApiTokenUpdateInput;\n};\n/** AuthenticationProfiles create input from roles */\nexport type Roles_AuthenticationProfileCreateInput = {\n name: Scalars['String'];\n type?: Maybe;\n secret?: Maybe;\n managementDomain?: Maybe;\n clientId?: Maybe;\n databaseName?: Maybe;\n domain?: Maybe;\n selfSignUpEnabled?: Maybe;\n selfSignUpEmailDomains?: Maybe>>;\n roles?: Maybe;\n audiences?: Maybe>>;\n};\n/** AuthenticationProfiles update input from roles */\nexport type Roles_AuthenticationProfileUpdateInput = {\n filter?: Maybe;\n data: AuthenticationProfileUpdateInput;\n};\n/** TeamMembers update input from roles */\nexport type Roles_TeamMemberUpdateInput = {\n filter?: Maybe;\n data: TeamMemberUpdateInput;\n};\n/** Users create input from roles */\nexport type Roles_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from roles */\nexport type Roles_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n/** Roles relation input */\nexport type RolesApiTokensManyRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesApiTokensRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesApiTokensUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n update?: Maybe>>;\n};\n/** Roles relation input */\nexport type RolesAuthenticationProfilesManyRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesAuthenticationProfilesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** Roles relation input */\nexport type RolesAuthenticationProfilesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\nexport type RoleSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n description?: Maybe;\n createdBy?: Maybe;\n};\n/** Roles relation input */\nexport type RolesTeamMembersManyRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesTeamMembersRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesTeamMembersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n update?: Maybe>>;\n};\n/** Roles subscription filter */\nexport type RoleSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** Roles relation input */\nexport type RolesUsersManyRelationInput = {\n connect?: Maybe>;\n};\n/** Roles relation input */\nexport type RolesUsersRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** Roles relation input */\nexport type RolesUsersUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n/** Roles update input */\nexport type RoleUpdateByFilterInput = {\n name?: Maybe>>;\n description?: Maybe>>;\n systemType?: Maybe>>;\n};\n/** Roles update input */\nexport type RoleUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n/** Schema Origin */\nexport type SchemaOrigin = {\n __typename?: 'SchemaOrigin';\n type: SchemaOriginType;\n provider: Maybe;\n};\n/** Schema Origin Type Enum */\nexport enum SchemaOriginType {\n Remote = 'REMOTE',\n Local = 'LOCAL',\n View = 'VIEW',\n}\n/** LeadDisposition create input from score */\nexport type Score_LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n/** LeadDisposition update input from score */\nexport type Score_LeadDispositionUpdateInput = {\n filter?: Maybe;\n data: LeadDispositionUpdateInput;\n};\n/** Users create input from selectedAgency */\nexport type SelectedAgency_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from selectedAgency */\nexport type SelectedAgency_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n/** GmailProfile create input from services */\nexport type Services_GmailProfileCreateInput = {\n googleId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n/** GmailProfile update input from services */\nexport type Services_GmailProfileUpdateInput = {\n googleId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n/** OutlookProfile create input from services */\nexport type Services_OutlookProfileCreateInput = {\n outlookId: Scalars['String'];\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\n/** OutlookProfile update input from services */\nexport type Services_OutlookProfileUpdateInput = {\n outlookId?: Maybe;\n name?: Maybe;\n email?: Maybe;\n accessToken?: Maybe;\n refreshToken?: Maybe;\n services?: Maybe;\n};\nexport type Setting = {\n __typename?: 'Setting';\n createdAt: Maybe;\n updatedAt: Maybe;\n createdBy: Maybe;\n passwordMinLength: Maybe;\n passwordRequireNumbers: Maybe;\n passwordRequireSpecial: Maybe;\n passwordRequireUppercase: Maybe;\n passwordRequireLowercase: Maybe;\n passwordUpdateInterval: Maybe;\n rememberDevice: Maybe;\n language: Maybe;\n dateFormat: Maybe;\n currency: Maybe;\n timezone: Maybe;\n menuBarLogo: Maybe;\n landingPageImage: Maybe;\n vanityUrl: Maybe;\n buttonLinkColor: Maybe;\n userInterfaceStyle: Maybe;\n menuBarBGColor: Maybe;\n menuBarIconsColor: Maybe;\n bgColor: Maybe;\n containerColor: Maybe;\n leftNavColor: Maybe;\n _description: Maybe;\n};\nexport type Setting_PermissionFilter = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n passwordMinLength?: Maybe;\n passwordRequireNumbers?: Maybe;\n passwordRequireSpecial?: Maybe;\n passwordRequireUppercase?: Maybe;\n passwordRequireLowercase?: Maybe;\n passwordUpdateInterval?: Maybe;\n rememberDevice?: Maybe;\n language?: Maybe;\n dateFormat?: Maybe;\n currency?: Maybe;\n timezone?: Maybe;\n vanityUrl?: Maybe;\n buttonLinkColor?: Maybe;\n userInterfaceStyle?: Maybe;\n menuBarBGColor?: Maybe;\n menuBarIconsColor?: Maybe;\n bgColor?: Maybe;\n containerColor?: Maybe;\n leftNavColor?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n menuBarLogo?: Maybe;\n landingPageImage?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type Setting_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\nexport type SettingFilter = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n passwordMinLength?: Maybe;\n passwordRequireNumbers?: Maybe;\n passwordRequireSpecial?: Maybe;\n passwordRequireUppercase?: Maybe;\n passwordRequireLowercase?: Maybe;\n passwordUpdateInterval?: Maybe;\n rememberDevice?: Maybe;\n language?: Maybe;\n dateFormat?: Maybe;\n currency?: Maybe;\n timezone?: Maybe;\n vanityUrl?: Maybe;\n buttonLinkColor?: Maybe;\n userInterfaceStyle?: Maybe;\n menuBarBGColor?: Maybe;\n menuBarIconsColor?: Maybe;\n bgColor?: Maybe;\n containerColor?: Maybe;\n leftNavColor?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n menuBarLogo?: Maybe;\n landingPageImage?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type SettingGroupBy = {\n query: SettingGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type SettingGroupByQuery = {\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n passwordMinLength?: Maybe>;\n passwordRequireNumbers?: Maybe>;\n passwordRequireSpecial?: Maybe>;\n passwordRequireUppercase?: Maybe>;\n passwordRequireLowercase?: Maybe>;\n passwordUpdateInterval?: Maybe>;\n rememberDevice?: Maybe>;\n language?: Maybe>;\n dateFormat?: Maybe>;\n currency?: Maybe>;\n timezone?: Maybe>;\n vanityUrl?: Maybe>;\n buttonLinkColor?: Maybe>;\n userInterfaceStyle?: Maybe>;\n menuBarBGColor?: Maybe>;\n menuBarIconsColor?: Maybe>;\n bgColor?: Maybe>;\n containerColor?: Maybe>;\n leftNavColor?: Maybe>;\n createdBy?: Maybe;\n menuBarLogo?: Maybe;\n landingPageImage?: Maybe;\n _group?: Maybe>;\n};\n/** SettingListResponse output */\nexport type SettingListResponse = {\n __typename?: 'SettingListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** No longer supported. Use `sort` instead. */\nexport enum SettingOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n PasswordMinLengthAsc = 'passwordMinLength_ASC',\n PasswordMinLengthDesc = 'passwordMinLength_DESC',\n PasswordRequireNumbersAsc = 'passwordRequireNumbers_ASC',\n PasswordRequireNumbersDesc = 'passwordRequireNumbers_DESC',\n PasswordRequireSpecialAsc = 'passwordRequireSpecial_ASC',\n PasswordRequireSpecialDesc = 'passwordRequireSpecial_DESC',\n PasswordRequireUppercaseAsc = 'passwordRequireUppercase_ASC',\n PasswordRequireUppercaseDesc = 'passwordRequireUppercase_DESC',\n PasswordRequireLowercaseAsc = 'passwordRequireLowercase_ASC',\n PasswordRequireLowercaseDesc = 'passwordRequireLowercase_DESC',\n PasswordUpdateIntervalAsc = 'passwordUpdateInterval_ASC',\n PasswordUpdateIntervalDesc = 'passwordUpdateInterval_DESC',\n RememberDeviceAsc = 'rememberDevice_ASC',\n RememberDeviceDesc = 'rememberDevice_DESC',\n LanguageAsc = 'language_ASC',\n LanguageDesc = 'language_DESC',\n DateFormatAsc = 'dateFormat_ASC',\n DateFormatDesc = 'dateFormat_DESC',\n CurrencyAsc = 'currency_ASC',\n CurrencyDesc = 'currency_DESC',\n TimezoneAsc = 'timezone_ASC',\n TimezoneDesc = 'timezone_DESC',\n VanityUrlAsc = 'vanityUrl_ASC',\n VanityUrlDesc = 'vanityUrl_DESC',\n ButtonLinkColorAsc = 'buttonLinkColor_ASC',\n ButtonLinkColorDesc = 'buttonLinkColor_DESC',\n UserInterfaceStyleAsc = 'userInterfaceStyle_ASC',\n UserInterfaceStyleDesc = 'userInterfaceStyle_DESC',\n MenuBarBgColorAsc = 'menuBarBGColor_ASC',\n MenuBarBgColorDesc = 'menuBarBGColor_DESC',\n MenuBarIconsColorAsc = 'menuBarIconsColor_ASC',\n MenuBarIconsColorDesc = 'menuBarIconsColor_DESC',\n BgColorAsc = 'bgColor_ASC',\n BgColorDesc = 'bgColor_DESC',\n ContainerColorAsc = 'containerColor_ASC',\n ContainerColorDesc = 'containerColor_DESC',\n LeftNavColorAsc = 'leftNavColor_ASC',\n LeftNavColorDesc = 'leftNavColor_DESC',\n}\n/** Settings subscription payload */\nexport type SettingPayload = {\n __typename?: 'SettingPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type SettingRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\nexport type SettingSort = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n passwordMinLength?: Maybe;\n passwordRequireNumbers?: Maybe;\n passwordRequireSpecial?: Maybe;\n passwordRequireUppercase?: Maybe;\n passwordRequireLowercase?: Maybe;\n passwordUpdateInterval?: Maybe;\n rememberDevice?: Maybe;\n language?: Maybe;\n dateFormat?: Maybe;\n currency?: Maybe;\n timezone?: Maybe;\n vanityUrl?: Maybe;\n buttonLinkColor?: Maybe;\n userInterfaceStyle?: Maybe;\n menuBarBGColor?: Maybe;\n menuBarIconsColor?: Maybe;\n bgColor?: Maybe;\n containerColor?: Maybe;\n leftNavColor?: Maybe;\n createdBy?: Maybe;\n menuBarLogo?: Maybe;\n landingPageImage?: Maybe;\n};\n/** Settings subscription filter */\nexport type SettingSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** Settings update input */\nexport type SettingUpdateInput = {\n passwordMinLength?: Maybe;\n passwordRequireNumbers?: Maybe;\n passwordRequireSpecial?: Maybe;\n passwordRequireUppercase?: Maybe;\n passwordRequireLowercase?: Maybe;\n passwordUpdateInterval?: Maybe;\n rememberDevice?: Maybe;\n language?: Maybe;\n dateFormat?: Maybe;\n currency?: Maybe;\n timezone?: Maybe;\n vanityUrl?: Maybe;\n buttonLinkColor?: Maybe;\n userInterfaceStyle?: Maybe;\n menuBarBGColor?: Maybe;\n menuBarIconsColor?: Maybe;\n bgColor?: Maybe;\n containerColor?: Maybe;\n leftNavColor?: Maybe;\n};\nexport type ShortUrl = {\n __typename?: 'ShortUrl';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n url: Maybe;\n path: Maybe;\n identifier: Maybe;\n marketingCampaign: Maybe;\n workflowAutomation: Maybe;\n _description: Maybe;\n};\nexport type ShortUrl_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n path?: Maybe;\n identifier?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type ShortUrl_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** ShortUrl create input */\nexport type ShortUrlCreateInput = {\n url: Scalars['String'];\n path?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n/** ShortUrl create many input */\nexport type ShortUrlCreateManyInput = {\n url: Scalars['String'];\n path?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n/** ShortUrl delete input */\nexport type ShortUrlDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** ShortUrlFieldsPermissions create input */\nexport type ShortUrlFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n url?: Maybe;\n path?: Maybe;\n identifier?: Maybe;\n};\nexport type ShortUrlFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n path?: Maybe;\n identifier?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type ShortUrlGroupBy = {\n query: ShortUrlGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type ShortUrlGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n url?: Maybe>;\n path?: Maybe>;\n identifier?: Maybe>;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n _group?: Maybe>;\n};\nexport type ShortUrlKeyFilter = {\n id?: Maybe;\n identifier?: Maybe;\n};\n/** ShortUrlListResponse output */\nexport type ShortUrlListResponse = {\n __typename?: 'ShortUrlListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** ShortUrlManyResponse output */\nexport type ShortUrlManyResponse = {\n __typename?: 'ShortUrlManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** ShortUrl relation input */\nexport type ShortUrlMarketingCampaignManyRelationInput = {\n connect?: Maybe;\n};\n/** ShortUrl relation input */\nexport type ShortUrlMarketingCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** ShortUrl relation input */\nexport type ShortUrlMarketingCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** No longer supported. Use `sort` instead. */\nexport enum ShortUrlOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n UrlAsc = 'url_ASC',\n UrlDesc = 'url_DESC',\n PathAsc = 'path_ASC',\n PathDesc = 'path_DESC',\n IdentifierAsc = 'identifier_ASC',\n IdentifierDesc = 'identifier_DESC',\n}\n/** ShortUrl subscription payload */\nexport type ShortUrlPayload = {\n __typename?: 'ShortUrlPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type ShortUrlRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** MarketingCampaign create input from shortUrls */\nexport type ShortUrls_MarketingCampaignCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n/** MarketingCampaign update input from shortUrls */\nexport type ShortUrls_MarketingCampaignUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n shortUrls?: Maybe;\n clicks?: Maybe;\n};\n/** WorkflowAutomation create input from shortUrls */\nexport type ShortUrls_WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n/** WorkflowAutomation update input from shortUrls */\nexport type ShortUrls_WorkflowAutomationUpdateInput = {\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\nexport type ShortUrlSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n path?: Maybe;\n identifier?: Maybe;\n createdBy?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n/** ShortUrl subscription filter */\nexport type ShortUrlSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** ShortUrl update input */\nexport type ShortUrlUpdateByFilterInput = {\n url?: Maybe>>;\n path?: Maybe>>;\n identifier?: Maybe>>;\n};\n\n/** ShortUrl update input */\nexport type ShortUrlUpdateInput = {\n id?: Maybe;\n url?: Maybe;\n path?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n\n/** ShortUrl relation input */\nexport type ShortUrlWorkflowAutomationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** ShortUrl relation input */\nexport type ShortUrlWorkflowAutomationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** ShortUrl relation input */\nexport type ShortUrlWorkflowAutomationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** SignUpResendInput */\nexport type SignUpResendInput = {\n email: Scalars['String'];\n};\n\nexport type SmartAddress = {\n __typename?: 'SmartAddress';\n country: Maybe;\n street1: Maybe;\n street2: Maybe;\n zip: Maybe;\n city: Maybe;\n state: Maybe;\n};\n\nexport type SmartAddressGroupByQuery = {\n country?: Maybe>;\n street1?: Maybe>;\n street2?: Maybe>;\n zip?: Maybe>;\n city?: Maybe>;\n state?: Maybe>;\n};\n\n/** SmartAddressInput create input */\nexport type SmartAddressInput = {\n country?: Maybe;\n street1?: Maybe;\n street2?: Maybe;\n zip?: Maybe;\n city?: Maybe;\n state?: Maybe;\n};\n\nexport type SmartAddressPredicate = {\n country?: Maybe;\n street1?: Maybe;\n street2?: Maybe;\n zip?: Maybe;\n city?: Maybe;\n state?: Maybe;\n};\n\nexport type SmartAddressSort = {\n country?: Maybe;\n street1?: Maybe;\n street2?: Maybe;\n zip?: Maybe;\n city?: Maybe;\n state?: Maybe;\n};\n\n/** Smart Field Attributes */\nexport type SmartFieldTypeAttributes = {\n __typename?: 'SmartFieldTypeAttributes';\n format: Scalars['String'];\n innerFields: Maybe>>;\n};\n\nexport type SmartPhone = {\n __typename?: 'SmartPhone';\n code: Maybe;\n number: Maybe;\n};\n\nexport type SmartPhoneGroupByQuery = {\n code?: Maybe>;\n number?: Maybe>;\n};\n\n/** SmartPhoneInput create input */\nexport type SmartPhoneInput = {\n code?: Maybe;\n number?: Maybe;\n};\n\nexport type SmartPhonePredicate = {\n code?: Maybe;\n number?: Maybe;\n};\n\nexport type SmartPhoneSort = {\n code?: Maybe;\n number?: Maybe;\n};\n\n/** Smart Type Format Enum */\nexport enum SmartTypeFormatEnum {\n Address = 'ADDRESS',\n Phone = 'PHONE',\n}\n\n/** LeadHistory create input from sms */\nexport type Sms_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory update input from sms */\nexport type Sms_LeadHistoryUpdateInput = {\n /** Entity related to the lead that was mutated */\n entity?: Maybe;\n /** The operation executed on the entity */\n operation?: Maybe;\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification create input from sms */\nexport type Sms_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from sms */\nexport type Sms_NotificationUpdateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type?: Maybe;\n userTrigger?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** PhoneNumber create input from smsFromRelation */\nexport type SmsFromRelation_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from smsFromRelation */\nexport type SmsFromRelation_PhoneNumberUpdateInput = {\n number?: Maybe;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationUpdateRelationInput\n >;\n};\n\nexport type SmsMessage = {\n __typename?: 'SMSMessage';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n text: Maybe;\n lead: Maybe;\n files: Maybe;\n /** DEPRECATED */\n agent: Maybe;\n phoneNumber: Maybe;\n user: Maybe;\n history: Maybe;\n agency: Maybe;\n from: Maybe;\n receivedFrom: Maybe;\n type: Maybe;\n to: Maybe;\n smsMessageNotification: Maybe;\n leadPhoneNumber: Maybe;\n _description: Maybe;\n};\nexport type SmsMessageFilesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** Files create input from sMSMessage_files */\nexport type SmsMessage_Files_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n/** Files update input from sMSMessage_files */\nexport type SmsMessage_Files_FileUpdateInput = {\n filter?: Maybe;\n data: FileUpdateInput;\n};\nexport type SmsMessage_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n phoneNumber?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type SmsMessage_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgentManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgentRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageAgentUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** SMSMessage create input */\nexport type SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage create many input */\nexport type SmsMessageCreateManyInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency: SmsMessageAgencyManyRelationInput;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage delete input */\nexport type SmsMessageDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** SMSMessageFieldsPermissions create input */\nexport type SmsMessageFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n text?: Maybe;\n phoneNumber?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFilesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFilesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFilesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type SmsMessageFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n phoneNumber?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFromManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFromRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageFromUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type SmsMessageGroupBy = {\n query: SmsMessageGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type SmsMessageGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n text?: Maybe>;\n phoneNumber?: Maybe>;\n receivedFrom?: Maybe>;\n type?: Maybe>;\n to?: Maybe>;\n createdBy?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n _group?: Maybe>;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageHistoryManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageHistoryRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageHistoryUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type SmsMessageKeyFilter = {\n id?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadPhoneNumberManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadPhoneNumberRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadPhoneNumberUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** SMSMessageListResponse output */\nexport type SmsMessageListResponse = {\n __typename?: 'SMSMessageListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** SMSMessageManyResponse output */\nexport type SmsMessageManyResponse = {\n __typename?: 'SMSMessageManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** SMSMessage create input from smsMessageNotification */\nexport type SmsMessageNotification_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from smsMessageNotification */\nexport type SmsMessageNotification_SmsMessageUpdateInput = {\n text?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum SmsMessageOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TextAsc = 'text_ASC',\n TextDesc = 'text_DESC',\n PhoneNumberAsc = 'phoneNumber_ASC',\n PhoneNumberDesc = 'phoneNumber_DESC',\n ReceivedFromAsc = 'receivedFrom_ASC',\n ReceivedFromDesc = 'receivedFrom_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n ToAsc = 'to_ASC',\n ToDesc = 'to_DESC',\n}\n\n/** SMSMessage subscription payload */\nexport type SmsMessagePayload = {\n __typename?: 'SMSMessagePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type SmsMessageRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageSmsMessageNotificationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageSmsMessageNotificationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageSmsMessageNotificationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type SmsMessageSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n text?: Maybe;\n phoneNumber?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n createdBy?: Maybe;\n lead?: Maybe;\n agent?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage subscription filter */\nexport type SmsMessageSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** SMSMessage update input */\nexport type SmsMessageUpdateByFilterInput = {\n text?: Maybe>>;\n phoneNumber?: Maybe>>;\n receivedFrom?: Maybe>>;\n type?: Maybe>>;\n to?: Maybe>>;\n};\n\n/** SMSMessage update input */\nexport type SmsMessageUpdateInput = {\n id?: Maybe;\n text?: Maybe;\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency?: Maybe;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SMSMessage relation input */\nexport type SmsMessageUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** MarketingCampaignCondition create input from smsTemplate */\nexport type SmsTemplate_MarketingCampaignConditionCreateInput = {\n name: Scalars['String'];\n marketingCampaign: MarketingCampaignConditionMarketingCampaignRelationInput;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** MarketingCampaignCondition update input from smsTemplate */\nexport type SmsTemplate_MarketingCampaignConditionUpdateInput = {\n filter?: Maybe;\n data: MarketingCampaignConditionUpdateInput;\n};\n\n/** WorkflowConditions create input from smsTemplate */\nexport type SmsTemplate_WorkflowConditionCreateInput = {\n name: Scalars['String'];\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions update input from smsTemplate */\nexport type SmsTemplate_WorkflowConditionUpdateInput = {\n filter?: Maybe;\n data: WorkflowConditionUpdateInput;\n};\n\n/** SortOrder */\nexport enum SortOrder {\n Asc = 'ASC',\n Desc = 'DESC',\n}\n\n/** Lead create input from stage */\nexport type Stage_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** LeadHistory create input from stage */\nexport type Stage_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n\n/** LeadHistory update input from stage */\nexport type Stage_LeadHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadHistoryUpdateInput;\n};\n\n/** LeadStageHistory create input from stage */\nexport type Stage_LeadStageHistoryCreateInput = {\n lead?: Maybe;\n stage?: Maybe;\n};\n\n/** LeadStageHistory update input from stage */\nexport type Stage_LeadStageHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadStageHistoryUpdateInput;\n};\n\n/** Lead update input from stage */\nexport type Stage_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n\n/** LeadStage create input from stageLeadStageHistory */\nexport type StageLeadStageHistory_LeadStageCreateInput = {\n name: Scalars['String'];\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadStage update input from stageLeadStageHistory */\nexport type StageLeadStageHistory_LeadStageUpdateInput = {\n name?: Maybe;\n stageLeadStageHistory?: Maybe;\n history?: Maybe;\n leadDispositionRelation?: Maybe;\n leadRealtion?: Maybe;\n};\n\n/** LeadDisposition create input from status */\nexport type Status_LeadDispositionCreateInput = {\n lead?: Maybe;\n carrier?: Maybe;\n status?: Maybe;\n expirationDate?: Maybe;\n insurance?: Maybe;\n notes?: Maybe;\n score?: Maybe;\n ifsScore?: Maybe;\n notifications?: Maybe;\n currentPremium?: Maybe;\n quotedPremium?: Maybe;\n outboundPhoneCall?: Maybe;\n inboundPhoneCall?: Maybe;\n};\n\n/** LeadDisposition update input from status */\nexport type Status_LeadDispositionUpdateInput = {\n filter?: Maybe;\n data: LeadDispositionUpdateInput;\n};\n\nexport type StringPadFunctionArguments = {\n len: Scalars['Int'];\n str: Scalars['String'];\n};\n\nexport type StringPredicate = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n contains?: Maybe;\n not_contains?: Maybe;\n starts_with?: Maybe;\n not_starts_with?: Maybe;\n ends_with?: Maybe;\n not_ends_with?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n};\n\nexport type StringPredicateHaving = {\n equals?: Maybe;\n not_equals?: Maybe;\n in?: Maybe>;\n not_in?: Maybe>;\n contains?: Maybe;\n not_contains?: Maybe;\n starts_with?: Maybe;\n not_starts_with?: Maybe;\n ends_with?: Maybe;\n not_ends_with?: Maybe;\n is_empty?: Maybe;\n is_not_empty?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport enum StringTrimMode {\n Both = 'BOTH',\n Leading = 'LEADING',\n Trailing = 'TRAILING',\n}\n\nexport type StripeCustomer = {\n __typename?: 'StripeCustomer';\n id: Scalars['ID'];\n email: Scalars['String'];\n name: Maybe;\n phone: Maybe;\n metadata: Maybe;\n};\n\nexport type StripeInvoice = {\n __typename?: 'StripeInvoice';\n id: Scalars['String'];\n status: Scalars['String'];\n payment_intent: Maybe;\n};\n\nexport type StripePaymentIntent = {\n __typename?: 'StripePaymentIntent';\n id: Scalars['String'];\n status: Scalars['String'];\n client_secret: Scalars['String'];\n last_payment_error: Maybe;\n};\n\nexport type StripePaymentMethod = {\n __typename?: 'StripePaymentMethod';\n id: Scalars['String'];\n};\n\nexport type StripeSubscription = {\n __typename?: 'StripeSubscription';\n id: Scalars['String'];\n status: Scalars['String'];\n latest_invoice: Maybe;\n};\n\nexport type Subscription = {\n __typename?: 'Subscription';\n Admin: Maybe;\n Agency: Maybe;\n AgencyEmailService: Maybe;\n AgencyInvitation: Maybe;\n AgencyUser: Maybe;\n Agent: Maybe;\n Announcement: Maybe;\n ApiTokens: Maybe;\n AuthenticationProfiles: Maybe;\n AuthenticationSettings: Maybe;\n AutomaticCallConfig: Maybe;\n Campaign: Maybe;\n Channel: Maybe;\n ChannelMember: Maybe;\n CiCdMigrations: Maybe;\n Company: Maybe;\n CompanyInvitation: Maybe;\n CompanyInvoice: Maybe;\n CompanyPaymentMethod: Maybe;\n CompanySub: Maybe;\n CompanySubCoupon: Maybe;\n DriverIncident: Maybe;\n EmailInboundServices: Maybe;\n EmailOutboundService: Maybe;\n EnvironmentVariables: Maybe;\n Files: Maybe;\n FreePhoneNumber: Maybe;\n GmailProfile: Maybe;\n GmailService: Maybe;\n IfsScore: Maybe;\n InboundPhoneCall: Maybe;\n Lead: Maybe;\n LeadAction: Maybe;\n LeadCallCadence: Maybe;\n LeadContact: Maybe;\n LeadDisposition: Maybe;\n LeadDriver: Maybe;\n LeadHistory: Maybe;\n LeadNote: Maybe;\n LeadPhoneNumber: Maybe;\n LeadSource: Maybe;\n LeadStage: Maybe;\n LeadStageHistory: Maybe;\n LeadTask: Maybe;\n LeadTaskType: Maybe;\n LeadTypeAuto: Maybe;\n LeadTypeCommercialAuto: Maybe;\n LeadTypeEmployeeBenefit: Maybe;\n LeadTypeGeneralLiability: Maybe;\n LeadTypeHome: Maybe;\n LeadTypeLife: Maybe;\n LeadTypeWorkersCompensation: Maybe;\n LifeInsurance: Maybe;\n Mail: Maybe;\n MailThread: Maybe;\n Manager: Maybe;\n MarketingCampaign: Maybe;\n MarketingCampaignClick: Maybe;\n MarketingCampaignCondition: Maybe;\n MarketingCampaignOpening: Maybe;\n MarketingEmailTemplate: Maybe;\n MarketingSmsTemplate: Maybe;\n Message: Maybe;\n Meta: Maybe;\n Notification: Maybe;\n OutlookProfile: Maybe;\n OutlookService: Maybe;\n PaymentMethod: Maybe;\n Permissions: Maybe;\n PhoneCall: Maybe;\n PhoneCallParticipant: Maybe;\n PhoneCallRecording: Maybe;\n PhoneCallSetting: Maybe;\n PhoneNumber: Maybe;\n PhoneNumberWarning: Maybe;\n ResendedAngencyInvitation: Maybe;\n Roles: Maybe;\n SMSMessage: Maybe;\n Settings: Maybe;\n ShortUrl: Maybe;\n SubscriptionPlan: Maybe;\n SubscriptionPlanItem: Maybe;\n SystemSetting: Maybe;\n TeamInvitations: Maybe;\n TeamMembers: Maybe;\n Url: Maybe;\n UserStatus: Maybe;\n Users: Maybe;\n Vendor: Maybe;\n VoiceMail: Maybe;\n VoiceMailMessage: Maybe;\n WorkflowAutomation: Maybe;\n WorkflowClick: Maybe;\n WorkflowConditions: Maybe;\n WorkflowEmailOpening: Maybe;\n WorkflowEmailTemplate: Maybe;\n WorkflowSmsTemplate: Maybe;\n XTable: Maybe;\n};\n\nexport type SubscriptionAdminArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAgencyArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAgencyEmailServiceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAgencyInvitationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAgencyUserArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAgentArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAnnouncementArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionApiTokensArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAuthenticationProfilesArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAuthenticationSettingsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionAutomaticCallConfigArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCampaignArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionChannelArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionChannelMemberArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCiCdMigrationsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanyArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanyInvitationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanyInvoiceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanyPaymentMethodArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanySubArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionCompanySubCouponArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionDriverIncidentArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionEmailInboundServicesArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionEmailOutboundServiceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionEnvironmentVariablesArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionFilesArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionFreePhoneNumberArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionGmailProfileArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionGmailServiceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionIfsScoreArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionInboundPhoneCallArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadActionArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadCallCadenceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadContactArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadDispositionArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadDriverArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadHistoryArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadNoteArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadPhoneNumberArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadSourceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadStageArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadStageHistoryArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTaskArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTaskTypeArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeAutoArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeCommercialAutoArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeEmployeeBenefitArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeGeneralLiabilityArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeHomeArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeLifeArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLeadTypeWorkersCompensationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionLifeInsuranceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMailArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMailThreadArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionManagerArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingCampaignArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingCampaignClickArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingCampaignConditionArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingCampaignOpeningArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingEmailTemplateArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMarketingSmsTemplateArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMessageArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionMetaArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionNotificationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionOutlookProfileArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionOutlookServiceArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPaymentMethodArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPermissionsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneCallArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneCallParticipantArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneCallRecordingArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneCallSettingArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneNumberArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPhoneNumberWarningArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionResendedAngencyInvitationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionRolesArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionSmsMessageArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionSettingsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionShortUrlArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionSubscriptionPlanArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionSubscriptionPlanItemArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionSystemSettingArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionTeamInvitationsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionTeamMembersArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionUrlArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionUserStatusArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionUsersArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionVendorArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionVoiceMailArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionVoiceMailMessageArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowAutomationArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowClickArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowConditionsArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowEmailOpeningArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowEmailTemplateArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionWorkflowSmsTemplateArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionXTableArgs = {\n filter?: Maybe;\n};\n\nexport type SubscriptionPlan = {\n __typename?: 'SubscriptionPlan';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n order: Maybe;\n isFreeTrial: Maybe;\n monthlyPrice: Maybe;\n annualPrice: Maybe;\n monthlyStripePlanID: Maybe;\n annualStripePlanID: Maybe;\n annualSavings: Maybe;\n /** @deprecated */\n price: Maybe;\n /** @deprecated */\n description: Maybe;\n subscriptions: Maybe;\n requiredItems: Maybe;\n stripeProductId: Maybe;\n _description: Maybe;\n};\n\nexport type SubscriptionPlanSubscriptionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type SubscriptionPlanRequiredItemsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n/** CompanySub create input from subscriptionPlan */\nexport type SubscriptionPlan_CompanySubCreateInput = {\n subscriptionPlan?: Maybe;\n company?: Maybe;\n expireDate?: Maybe;\n status: Scalars['String'];\n numberOfSeats?: Maybe;\n stripeSubscriptionId?: Maybe;\n stripeCustomerId?: Maybe;\n stripePaymentMethodId?: Maybe;\n cardHolderName?: Maybe;\n cardExpireDate?: Maybe;\n last4?: Maybe;\n addressLine1?: Maybe;\n addressLine2?: Maybe;\n city?: Maybe;\n state?: Maybe;\n country?: Maybe;\n pendingUpdate?: Maybe;\n};\n\n/** CompanySub update input from subscriptionPlan */\nexport type SubscriptionPlan_CompanySubUpdateInput = {\n filter?: Maybe;\n data: CompanySubUpdateInput;\n};\n\nexport type SubscriptionPlan_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n price?: Maybe;\n description?: Maybe;\n stripeProductId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SubscriptionPlan_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SubscriptionPlan create input */\nexport type SubscriptionPlanCreateInput = {\n name: Scalars['String'];\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n\n/** SubscriptionPlan create many input */\nexport type SubscriptionPlanCreateManyInput = {\n name: Scalars['String'];\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n\n/** SubscriptionPlan delete input */\nexport type SubscriptionPlanDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** SubscriptionPlanFieldsPermissions create input */\nexport type SubscriptionPlanFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n price?: Maybe;\n description?: Maybe;\n stripeProductId?: Maybe;\n};\n\nexport type SubscriptionPlanFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n price?: Maybe;\n description?: Maybe;\n stripeProductId?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SubscriptionPlanGroupBy = {\n query: SubscriptionPlanGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type SubscriptionPlanGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n order?: Maybe>;\n isFreeTrial?: Maybe>;\n monthlyPrice?: Maybe>;\n annualPrice?: Maybe>;\n monthlyStripePlanID?: Maybe>;\n annualStripePlanID?: Maybe>;\n annualSavings?: Maybe>;\n price?: Maybe>;\n description?: Maybe>;\n stripeProductId?: Maybe>;\n createdBy?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n _group?: Maybe>;\n};\n\nexport type SubscriptionPlanItem = {\n __typename?: 'SubscriptionPlanItem';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n price: Maybe;\n /** Quantity used when item is applied to subscription on creation */\n initialQuantity: Maybe;\n stripePriceId: Maybe;\n description: Maybe;\n subscriptionPlans: Maybe;\n _description: Maybe;\n};\n\nexport type SubscriptionPlanItemSubscriptionPlansArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type SubscriptionPlanItem_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n price?: Maybe;\n initialQuantity?: Maybe;\n stripePriceId?: Maybe;\n description?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptionPlans?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SubscriptionPlanItem_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SubscriptionPlanItem create input */\nexport type SubscriptionPlanItemCreateInput = {\n name: Scalars['String'];\n price: Scalars['Int'];\n /** Quantity used when item is applied to subscription on creation */\n initialQuantity?: Maybe;\n stripePriceId: Scalars['String'];\n description?: Maybe;\n subscriptionPlans?: Maybe;\n};\n\n/** SubscriptionPlanItem create many input */\nexport type SubscriptionPlanItemCreateManyInput = {\n name: Scalars['String'];\n price: Scalars['Int'];\n /** Quantity used when item is applied to subscription on creation */\n initialQuantity?: Maybe;\n stripePriceId: Scalars['String'];\n description?: Maybe;\n subscriptionPlans?: Maybe;\n};\n\n/** SubscriptionPlanItem delete input */\nexport type SubscriptionPlanItemDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** SubscriptionPlanItemFieldsPermissions create input */\nexport type SubscriptionPlanItemFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n price?: Maybe;\n initialQuantity?: Maybe;\n stripePriceId?: Maybe;\n description?: Maybe;\n};\n\nexport type SubscriptionPlanItemFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n price?: Maybe;\n initialQuantity?: Maybe;\n stripePriceId?: Maybe;\n description?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n subscriptionPlans?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SubscriptionPlanItemGroupBy = {\n query: SubscriptionPlanItemGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type SubscriptionPlanItemGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n price?: Maybe>;\n initialQuantity?: Maybe>;\n stripePriceId?: Maybe>;\n description?: Maybe>;\n createdBy?: Maybe;\n subscriptionPlans?: Maybe;\n _group?: Maybe>;\n};\n\nexport type SubscriptionPlanItemKeyFilter = {\n id?: Maybe;\n};\n\n/** SubscriptionPlanItemListResponse output */\nexport type SubscriptionPlanItemListResponse = {\n __typename?: 'SubscriptionPlanItemListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** SubscriptionPlanItemManyResponse output */\nexport type SubscriptionPlanItemManyResponse = {\n __typename?: 'SubscriptionPlanItemManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum SubscriptionPlanItemOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n PriceAsc = 'price_ASC',\n PriceDesc = 'price_DESC',\n InitialQuantityAsc = 'initialQuantity_ASC',\n InitialQuantityDesc = 'initialQuantity_DESC',\n StripePriceIdAsc = 'stripePriceId_ASC',\n StripePriceIdDesc = 'stripePriceId_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n}\n\n/** SubscriptionPlanItem subscription payload */\nexport type SubscriptionPlanItemPayload = {\n __typename?: 'SubscriptionPlanItemPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type SubscriptionPlanItemRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type SubscriptionPlanItemSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n price?: Maybe;\n initialQuantity?: Maybe;\n stripePriceId?: Maybe;\n description?: Maybe;\n createdBy?: Maybe;\n};\n\n/** SubscriptionPlanItem subscription filter */\nexport type SubscriptionPlanItemSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** SubscriptionPlanItem relation input */\nexport type SubscriptionPlanItemSubscriptionPlansManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** SubscriptionPlanItem relation input */\nexport type SubscriptionPlanItemSubscriptionPlansRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** SubscriptionPlanItem relation input */\nexport type SubscriptionPlanItemSubscriptionPlansUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** SubscriptionPlanItem update input */\nexport type SubscriptionPlanItemUpdateByFilterInput = {\n name?: Maybe>>;\n price?: Maybe>>;\n initialQuantity?: Maybe>>;\n stripePriceId?: Maybe>>;\n description?: Maybe>>;\n};\n\n/** SubscriptionPlanItem update input */\nexport type SubscriptionPlanItemUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n price?: Maybe;\n /** Quantity used when item is applied to subscription on creation */\n initialQuantity?: Maybe;\n stripePriceId?: Maybe;\n description?: Maybe;\n subscriptionPlans?: Maybe;\n};\n\nexport type SubscriptionPlanKeyFilter = {\n id?: Maybe;\n stripeProductId?: Maybe;\n};\n\n/** SubscriptionPlanListResponse output */\nexport type SubscriptionPlanListResponse = {\n __typename?: 'SubscriptionPlanListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** SubscriptionPlanManyResponse output */\nexport type SubscriptionPlanManyResponse = {\n __typename?: 'SubscriptionPlanManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum SubscriptionPlanOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n OrderAsc = 'order_ASC',\n OrderDesc = 'order_DESC',\n IsFreeTrialAsc = 'isFreeTrial_ASC',\n IsFreeTrialDesc = 'isFreeTrial_DESC',\n MonthlyPriceAsc = 'monthlyPrice_ASC',\n MonthlyPriceDesc = 'monthlyPrice_DESC',\n AnnualPriceAsc = 'annualPrice_ASC',\n AnnualPriceDesc = 'annualPrice_DESC',\n MonthlyStripePlanIdAsc = 'monthlyStripePlanID_ASC',\n MonthlyStripePlanIdDesc = 'monthlyStripePlanID_DESC',\n AnnualStripePlanIdAsc = 'annualStripePlanID_ASC',\n AnnualStripePlanIdDesc = 'annualStripePlanID_DESC',\n AnnualSavingsAsc = 'annualSavings_ASC',\n AnnualSavingsDesc = 'annualSavings_DESC',\n PriceAsc = 'price_ASC',\n PriceDesc = 'price_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n StripeProductIdAsc = 'stripeProductId_ASC',\n StripeProductIdDesc = 'stripeProductId_DESC',\n}\n\n/** SubscriptionPlan subscription payload */\nexport type SubscriptionPlanPayload = {\n __typename?: 'SubscriptionPlanPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type SubscriptionPlanRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanRequiredItemsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanRequiredItemsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanRequiredItemsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** SubscriptionPlanItem create input from subscriptionPlans */\nexport type SubscriptionPlans_SubscriptionPlanItemCreateInput = {\n name: Scalars['String'];\n price: Scalars['Int'];\n /** Quantity used when item is applied to subscription on creation */\n initialQuantity?: Maybe;\n stripePriceId: Scalars['String'];\n description?: Maybe;\n subscriptionPlans?: Maybe;\n};\n\n/** SubscriptionPlanItem update input from subscriptionPlans */\nexport type SubscriptionPlans_SubscriptionPlanItemUpdateInput = {\n filter?: Maybe;\n data: SubscriptionPlanItemUpdateInput;\n};\n\nexport type SubscriptionPlanSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n price?: Maybe;\n description?: Maybe;\n stripeProductId?: Maybe;\n createdBy?: Maybe;\n};\n\n/** SubscriptionPlan subscription filter */\nexport type SubscriptionPlanSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanSubscriptionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanSubscriptionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** SubscriptionPlan relation input */\nexport type SubscriptionPlanSubscriptionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** SubscriptionPlan update input */\nexport type SubscriptionPlanUpdateByFilterInput = {\n name?: Maybe>>;\n order?: Maybe>>;\n isFreeTrial?: Maybe>>;\n monthlyPrice?: Maybe>>;\n annualPrice?: Maybe>>;\n monthlyStripePlanID?: Maybe>>;\n annualStripePlanID?: Maybe>>;\n annualSavings?: Maybe>>;\n price?: Maybe>>;\n description?: Maybe>>;\n stripeProductId?: Maybe>>;\n};\n\n/** SubscriptionPlan update input */\nexport type SubscriptionPlanUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n\n/** Company create input from subscriptions */\nexport type Subscriptions_CompanyCreateInput = {\n name: Scalars['String'];\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** Company update input from subscriptions */\nexport type Subscriptions_CompanyUpdateInput = {\n name?: Maybe;\n taxId?: Maybe;\n adminCompanyRelation?: Maybe;\n agencyCompanyRelation?: Maybe;\n companyInvitationCompanyRelation?: Maybe<\n CompanyCompanyInvitationCompanyRelationUpdateRelationInput\n >;\n paymentMethodCompanyRelation?: Maybe;\n subscriptions?: Maybe;\n /** DEPRECATED */\n cardExpireDate?: Maybe;\n /** DEPRECATED */\n last4?: Maybe;\n /** DEPRECATED */\n addressLine1?: Maybe;\n /** DEPRECATED */\n addressLine2?: Maybe;\n /** DEPRECATED */\n city?: Maybe;\n /** DEPRECATED */\n state?: Maybe;\n /** DEPRECATED */\n country?: Maybe;\n companyInvoices?: Maybe;\n companyPaymentMethods?: Maybe;\n status?: Maybe;\n};\n\n/** SubscriptionPlan create input from subscriptions */\nexport type Subscriptions_SubscriptionPlanCreateInput = {\n name: Scalars['String'];\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n\n/** SubscriptionPlan update input from subscriptions */\nexport type Subscriptions_SubscriptionPlanUpdateInput = {\n name?: Maybe;\n order?: Maybe;\n isFreeTrial?: Maybe;\n monthlyPrice?: Maybe;\n annualPrice?: Maybe;\n monthlyStripePlanID?: Maybe;\n annualStripePlanID?: Maybe;\n annualSavings?: Maybe;\n /** @deprecated */\n price?: Maybe;\n /** @deprecated */\n description?: Maybe;\n subscriptions?: Maybe;\n requiredItems?: Maybe;\n stripeProductId?: Maybe;\n};\n\nexport type SubstringFunctionArguments = {\n pos: Scalars['Int'];\n len?: Maybe;\n};\n\nexport type SuccessResponse = {\n __typename?: 'SuccessResponse';\n success: Maybe;\n};\n\n/** Switch Field Attributes */\nexport type SwitchFieldTypeAttributes = {\n __typename?: 'SwitchFieldTypeAttributes';\n format: Scalars['String'];\n listOptions: Maybe>>;\n};\n\n/** Switch Type Format Enum */\nexport enum SwitchTypeFormatEnum {\n OnOff = 'ON_OFF',\n YesNo = 'YES_NO',\n TrueFalse = 'TRUE_FALSE',\n ActiveInactive = 'ACTIVE_INACTIVE',\n HighLow = 'HIGH_LOW',\n Custom = 'CUSTOM',\n}\n\n/** Application */\nexport type SystemApplication = {\n __typename?: 'SystemApplication';\n id: Scalars['ID'];\n name: Scalars['String'];\n displayName: Maybe;\n description: Maybe;\n createdAt: Scalars['DateTime'];\n appType: Scalars['String'];\n status: SystemApplicationStatusEnum;\n};\n\n/** ApplicationDeleteMutationInput */\nexport type SystemApplicationDeleteMutationInput = {\n id: Scalars['String'];\n force?: Maybe;\n};\n\n/** Application install input */\nexport type SystemApplicationInstallInput = {\n appType: Scalars['String'];\n name: Scalars['String'];\n status?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n};\n\n/** SystemApplicationListResponse output */\nexport type SystemApplicationListResponse = {\n __typename?: 'SystemApplicationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** Application Status Enum */\nexport enum SystemApplicationStatusEnum {\n Active = 'ACTIVE',\n Inactive = 'INACTIVE',\n}\n\n/** Application update input */\nexport type SystemApplicationUpdateInput = {\n id: Scalars['String'];\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n status?: Maybe;\n};\n\nexport type SystemBillingCurrentPlanResponse = {\n __typename?: 'SystemBillingCurrentPlanResponse';\n id: Maybe;\n name: Maybe;\n price: Maybe;\n displayName: Maybe;\n trialEnd: Maybe;\n status: Maybe;\n nextPlan: Maybe;\n};\n\nexport type SystemBillingDetailsResponse = {\n __typename?: 'SystemBillingDetailsResponse';\n last4: Maybe;\n expMonth: Maybe;\n expYear: Maybe;\n brand: Maybe;\n};\n\n/** BillingDetailsUpdateMutationInput */\nexport type SystemBillingDetailsUpdateMutationInput = {\n cardToken: Scalars['String'];\n};\n\nexport type SystemBillingInvoiceItem = {\n __typename?: 'SystemBillingInvoiceItem';\n id: Scalars['ID'];\n periodStart: Maybe;\n periodEnd: Maybe;\n paid: Maybe;\n invoicePdf: Maybe;\n amountDue: Maybe;\n amountPaid: Maybe;\n amountRemaining: Maybe;\n endingBalance: Maybe;\n number: Maybe;\n status: Maybe;\n total: Maybe;\n description: Maybe;\n plan: Maybe;\n workspace: Maybe;\n};\n\nexport type SystemBillingInvoiceItemPlanInfo = {\n __typename?: 'SystemBillingInvoiceItemPlanInfo';\n id: Maybe;\n name: Maybe;\n displayName: Maybe;\n};\n\nexport type SystemBillingInvoiceItemWorkspaceInfo = {\n __typename?: 'SystemBillingInvoiceItemWorkspaceInfo';\n id: Maybe;\n name: Maybe;\n};\n\nexport enum SystemBillingInvoicesListFilterType {\n Workspace = 'WORKSPACE',\n Customer = 'CUSTOMER',\n}\n\n/** SystemBillingInvoicesListResponse output */\nexport type SystemBillingInvoicesListResponse = {\n __typename?: 'SystemBillingInvoicesListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type SystemBillingLimitMetricItem = {\n __typename?: 'SystemBillingLimitMetricItem';\n name: Maybe;\n displayName: Maybe;\n showPriority: Maybe;\n unit: Maybe;\n};\n\nexport type SystemBillingMetricUsageItem = {\n __typename?: 'SystemBillingMetricUsageItem';\n limitMetric: Maybe;\n value: Maybe;\n};\n\nexport type SystemBillingMetricUsageQuotaItem = {\n __typename?: 'SystemBillingMetricUsageQuotaItem';\n limitMetric: Maybe;\n value: Maybe;\n};\n/** SystemBillingMetricUsageQuotasListResponse output */\nexport type SystemBillingMetricUsageQuotasListResponse = {\n __typename?: 'SystemBillingMetricUsageQuotasListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\nexport type SystemBillingMetricUsagesListFilter = {\n entryDate: DateTimePredicate;\n};\n/** SystemBillingMetricUsagesListResponse output */\nexport type SystemBillingMetricUsagesListResponse = {\n __typename?: 'SystemBillingMetricUsagesListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\nexport type SystemBillingNextPlanResponse = {\n __typename?: 'SystemBillingNextPlanResponse';\n id: Maybe;\n name: Maybe;\n price: Maybe;\n displayName: Maybe;\n};\nexport type SystemBillingPlanBaseInfo = {\n __typename?: 'SystemBillingPlanBaseInfo';\n id: Maybe;\n name: Maybe;\n description: Maybe;\n displayName: Maybe;\n price: Maybe;\n isCustom: Maybe;\n isLegacy: Maybe;\n limitMetrics: Maybe>>;\n};\nexport type SystemBillingPlanLimitMetricItem = {\n __typename?: 'SystemBillingPlanLimitMetricItem';\n name: Maybe;\n displayName: Maybe;\n overagePrice: Maybe;\n softLimit: Maybe;\n hardLimit: Maybe;\n};\n/** BillingPlanUpdateMutationInput */\nexport type SystemBillingPlanUpdateMutationInput = {\n planId: Scalars['ID'];\n};\nexport enum SystemBranchEnvironmentMode {\n Full = 'FULL',\n System = 'SYSTEM',\n}\n/** Ci Commit Mode */\nexport enum SystemCiCommitMode {\n Full = 'FULL',\n OnlyMigrations = 'ONLY_MIGRATIONS',\n OnlyProject = 'ONLY_PROJECT',\n}\n/** Ci Status */\nexport type SystemCiStatusOutput = {\n __typename?: 'SystemCiStatusOutput';\n status: Scalars['String'];\n migrations: Maybe>>;\n};\n/** Computed field mode */\nexport enum SystemComputedFieldMode {\n Virtual = 'VIRTUAL',\n Stored = 'STORED',\n}\n/** Custom Table Field Type */\nexport type SystemCustomTableField = {\n __typename?: 'SystemCustomTableField';\n name: Maybe;\n displayName: Maybe;\n description: Maybe;\n fieldType: Maybe;\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique: Maybe;\n defaultValue: Maybe;\n computedMode: Maybe;\n expression: Maybe;\n fieldTypeAttributes: Maybe;\n};\n/** Date Field Attributes */\nexport type SystemDateFieldTypeAttributes = {\n __typename?: 'SystemDateFieldTypeAttributes';\n format: Scalars['String'];\n};\n/** Date Type Format Enum */\nexport enum SystemDateTypeFormatEnum {\n Date = 'DATE',\n Datetime = 'DATETIME',\n}\n/** DeployDataResponse */\nexport type SystemDeployDataResponse = {\n __typename?: 'SystemDeployDataResponse';\n uploadBuildUrl: Scalars['String'];\n uploadMetaDataUrl: Scalars['String'];\n buildName: Scalars['String'];\n};\n/** DeployingBuildInput */\nexport type SystemDeployingBuildInput = {\n buildName: Scalars['String'];\n options?: Maybe;\n};\nexport enum SystemDeployModeEnum {\n Full = 'FULL',\n OnlyPlugins = 'ONLY_PLUGINS',\n OnlyProject = 'ONLY_PROJECT',\n Functions = 'FUNCTIONS',\n Migrations = 'MIGRATIONS',\n}\n/** DeployOptions */\nexport type SystemDeployOptions = {\n mode?: Maybe;\n pluginNames?: Maybe>>;\n extensionNames?: Maybe>>;\n};\nexport enum SystemDeployStatusEnum {\n Deploying = 'deploying',\n CompleteError = 'complete_error',\n CompleteSuccess = 'complete_success',\n Compiling = 'compiling',\n Preparing = 'preparing',\n Initialize = 'initialize',\n}\n/** SystemDeployStatusResult */\nexport type SystemDeployStatusResult = {\n __typename?: 'SystemDeployStatusResult';\n status: SystemDeployStatusEnum;\n message: Maybe;\n};\n/** SystemEnvironmentBackupListResponse output */\nexport type SystemEnvironmentBackupListResponse = {\n __typename?: 'SystemEnvironmentBackupListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\nexport type SystemEnvironmentRoleBaseInfo = {\n __typename?: 'SystemEnvironmentRoleBaseInfo';\n id: Scalars['String'];\n name: Scalars['String'];\n};\nexport type SystemEnvironmentRoleList = {\n __typename?: 'SystemEnvironmentRoleList';\n environmentId: Scalars['String'];\n environmentName: Scalars['String'];\n roles: Maybe>>;\n exists: Maybe;\n};\nexport type SystemEnvironmentSettings = {\n __typename?: 'SystemEnvironmentSettings';\n deleteLock: Maybe;\n fileManagementProvider: Maybe;\n};\n/** SystemEnvironmentsListResponse output */\nexport type SystemEnvironmentsListResponse = {\n __typename?: 'SystemEnvironmentsListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** Field Data Features */\nexport type SystemFieldDataFeatures = {\n __typename?: 'SystemFieldDataFeatures';\n create: Scalars['Boolean'];\n update: Scalars['Boolean'];\n sort: Scalars['Boolean'];\n};\n/** Field Schema Features */\nexport type SystemFieldSchemaFeatures = {\n __typename?: 'SystemFieldSchemaFeatures';\n update: Scalars['Boolean'];\n delete: Scalars['Boolean'];\n};\n/** Field types */\nexport enum SystemFieldType {\n Id = 'ID',\n Uuid = 'UUID',\n Json = 'JSON',\n Number = 'NUMBER',\n Text = 'TEXT',\n Date = 'DATE',\n Switch = 'SWITCH',\n Relation = 'RELATION',\n File = 'FILE',\n Smart = 'SMART',\n Geo = 'GEO',\n OneWayRelation = 'ONE_WAY_RELATION',\n MissingRelation = 'MISSING_RELATION',\n}\n/** Field Type Attributes */\nexport type SystemFieldTypeAttributes =\n | SystemDateFieldTypeAttributes\n | SystemFileFieldTypeAttributes\n | SystemMissingRelationFieldTypeAttributes\n | SystemNumberFieldTypeAttributes\n | SystemSmartFieldTypeAttributes\n | SystemSwitchFieldTypeAttributes\n | SystemTextFieldTypeAttributes\n | SystemUuidFieldTypeAttributes\n | SystemGeoFieldTypeAttributes;\n/** Field Type Attributes Input */\nexport type SystemFieldTypeAttributesInput = {\n format?: Maybe;\n precision?: Maybe;\n currency?: Maybe;\n minValue?: Maybe;\n maxValue?: Maybe;\n isBigInt?: Maybe;\n autoIncrement?: Maybe;\n fieldSize?: Maybe;\n expiration?: Maybe;\n listOptions?: Maybe>;\n maxSize?: Maybe;\n typeRestrictions?: Maybe>;\n srid?: Maybe;\n};\n/** File Field Attributes */\nexport type SystemFileFieldTypeAttributes = {\n __typename?: 'SystemFileFieldTypeAttributes';\n format: Scalars['String'];\n maxSize: Maybe;\n /** @deprecated Field is deprecated */\n showTitle: Maybe;\n /** @deprecated Field is deprecated */\n showUrl: Maybe;\n typeRestrictions: Maybe>;\n expiration: Maybe;\n};\n/** File Type Format Enum */\nexport enum SystemFileTypeFormatEnum {\n File = 'FILE',\n Image = 'IMAGE',\n}\n/** FunctionInfo */\nexport type SystemFunctionInfo = {\n name: Scalars['String'];\n functionType: SystemFunctionType;\n description: Maybe;\n application: Maybe;\n};\n/** FunctionInfoFilter */\nexport type SystemFunctionInfoFilter = {\n name?: Maybe;\n functionType?: Maybe;\n description?: Maybe;\n};\n/** FunctionInfoOrderBy */\nexport enum SystemFunctionInfoOrderBy {\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n FunctionTypeAsc = 'functionType_ASC',\n FunctionTypeDesc = 'functionType_DESC',\n DescriptionAsc = 'description_ASC',\n DescriptionDesc = 'description_DESC',\n}\n/** SystemFunctionListResponse output */\nexport type SystemFunctionListResponse = {\n __typename?: 'SystemFunctionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** FunctionLogEntry */\nexport type SystemFunctionLogEntry = {\n __typename?: 'SystemFunctionLogEntry';\n timestamp: Maybe;\n message: Maybe;\n};\n/** FunctionResolverInfo */\nexport type SystemFunctionResolverInfo = SystemFunctionInfo & {\n __typename?: 'SystemFunctionResolverInfo';\n name: Scalars['String'];\n functionType: SystemFunctionType;\n description: Maybe;\n gqlType: Scalars['String'];\n application: Maybe;\n};\n/** FunctionTaskInfo */\nexport type SystemFunctionTaskInfo = SystemFunctionInfo & {\n __typename?: 'SystemFunctionTaskInfo';\n name: Scalars['String'];\n functionType: SystemFunctionType;\n description: Maybe;\n scheduleExpression: Maybe;\n application: Maybe;\n};\n/** FunctionTriggerInfo */\nexport type SystemFunctionTriggerInfo = SystemFunctionInfo & {\n __typename?: 'SystemFunctionTriggerInfo';\n name: Scalars['String'];\n functionType: SystemFunctionType;\n description: Maybe;\n operation: Scalars['String'];\n tableName: Scalars['String'];\n type: Scalars['String'];\n application: Maybe;\n};\n/** FunctionType */\nexport enum SystemFunctionType {\n Resolver = 'resolver',\n Trigger = 'trigger',\n Webhook = 'webhook',\n Task = 'task',\n Schedule = 'schedule',\n}\n/** FunctionWebhookInfo */\nexport type SystemFunctionWebhookInfo = SystemFunctionInfo & {\n __typename?: 'SystemFunctionWebhookInfo';\n name: Scalars['String'];\n functionType: SystemFunctionType;\n description: Maybe;\n httpMethod: Scalars['String'];\n workspaceRelativePath: Scalars['String'];\n workspaceFullPath: Scalars['String'];\n application: Maybe;\n};\n/** Diff Environment Input */\nexport type SystemGenerateEnvironmentOutput = {\n __typename?: 'SystemGenerateEnvironmentOutput';\n url: Maybe;\n};\n/** Geo Field Attributes */\nexport type SystemGeoFieldTypeAttributes = {\n __typename?: 'SystemGeoFieldTypeAttributes';\n format: Scalars['String'];\n srid: Maybe;\n};\nexport type SystemInboxEventDetailsUnion =\n | SystemInboxEventEnvironmentInvitationDetails\n | SystemInboxEventOrganizationInvitationDetails;\nexport type SystemInboxEventEnvironmentInvitationDetails = {\n __typename?: 'SystemInboxEventEnvironmentInvitationDetails';\n uuid: Maybe;\n status: Maybe;\n invitedBy: Maybe;\n workspace: Maybe;\n environmentName: Maybe;\n};\nexport type SystemInboxEventInvitedBy = {\n __typename?: 'SystemInboxEventInvitedBy';\n email: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe;\n};\nexport type SystemInboxEventItem = {\n __typename?: 'SystemInboxEventItem';\n id: Scalars['ID'];\n createdAt: Scalars['DateTime'];\n type: Maybe;\n isCompleted: Maybe;\n details: Maybe;\n};\nexport type SystemInboxEventOrganization = {\n __typename?: 'SystemInboxEventOrganization';\n id: Scalars['ID'];\n name: Maybe;\n avatar: Maybe;\n};\nexport type SystemInboxEventOrganizationInvitationDetails = {\n __typename?: 'SystemInboxEventOrganizationInvitationDetails';\n uuid: Maybe;\n status: Maybe;\n invitedBy: Maybe;\n organization: Maybe;\n};\n/** SystemInboxEventsListResponse output */\nexport type SystemInboxEventsListResponse = {\n __typename?: 'SystemInboxEventsListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\nexport enum SystemInboxEventStatusEnum {\n Sent = 'sent',\n Accepted = 'accepted',\n Declined = 'declined',\n}\nexport enum SystemInboxEventTypeEnum {\n OrganizationInvitation = 'OrganizationInvitation',\n EnvironmentInvitation = 'EnvironmentInvitation',\n}\nexport type SystemInboxEventWorkspace = {\n __typename?: 'SystemInboxEventWorkspace';\n id: Scalars['ID'];\n name: Maybe;\n avatar: Maybe;\n};\n/** Table Create Index Input */\nexport type SystemIndexCreateInput = {\n tableId: Scalars['ID'];\n type: TableIndexType;\n columns: Array;\n force?: Maybe;\n name?: Maybe;\n};\n/** Table Delete Index Input */\nexport type SystemIndexDeleteInput = {\n id: Scalars['ID'];\n};\n/** Table Update Index Input */\nexport type SystemIndexUpdateInput = {\n id: Scalars['ID'];\n type?: Maybe;\n columns?: Maybe>;\n force?: Maybe;\n name?: Maybe;\n};\n/** InvokeData */\nexport type SystemInvokeData = {\n functionName: Scalars['String'];\n inputArgs?: Maybe;\n};\n/** InvokeFunctionResponse */\nexport type SystemInvokeFunctionResponse = {\n __typename?: 'SystemInvokeFunctionResponse';\n responseData: Scalars['String'];\n};\n/** MissingRelation Field Attributes */\nexport type SystemMissingRelationFieldTypeAttributes = {\n __typename?: 'SystemMissingRelationFieldTypeAttributes';\n missingTable: Scalars['String'];\n};\nexport type SystemMutation = {\n __typename?: 'SystemMutation';\n applicationDelete: Maybe;\n applicationInstall: Maybe;\n applicationUpdate: Maybe;\n billingDetailsUpdate: Maybe;\n billingPlanUpdate: Maybe;\n ciCommit: Maybe;\n ciInstall: Maybe;\n deploy: Maybe;\n environmentBackup: Maybe;\n environmentBranch: Maybe;\n environmentDelete: Maybe;\n environmentDeleteAsync: Maybe;\n environmentRestore: Maybe;\n environmentSetup: Maybe;\n fieldCreate: SystemTableField;\n fieldDelete: SuccessResponse;\n fieldUpdate: SystemTableField;\n fieldUpdatePosition: SuccessResponse;\n indexCreate: SystemTableIndex;\n indexDelete: Maybe;\n indexUpdate: SystemTableIndex;\n invoke: Maybe;\n organizationInviteUser: Maybe;\n organizationInviteUserAccept: Maybe;\n organizationInviteUserCancel: Maybe;\n organizationUpdate: Maybe;\n organizationUserRemove: Maybe;\n organizationWorkspaceAdd: Maybe;\n organizationWorkspaceAddAccept: Maybe;\n organizationWorkspaceAddCancel: Maybe;\n organizationWorkspaceRemove: Maybe;\n organizationWorkspaceUserRemove: Maybe;\n organizationWorkspaceUserShare: Maybe;\n prepareDeploy: SystemDeployDataResponse;\n tableCreate: SystemTable;\n tableDelete: SuccessResponse;\n tableUpdate: SystemTable;\n viewCreate: SystemTable;\n viewUpdate: SystemTable;\n workspaceCreate: Maybe;\n workspaceCreateAsync: Maybe;\n workspaceDelete: Maybe;\n workspaceLeave: Maybe;\n workspaceTransferAccept: Maybe;\n workspaceTransferCancel: Maybe;\n workspaceTransferRegister: Maybe;\n workspaceUpdate: Maybe;\n};\nexport type SystemMutationApplicationDeleteArgs = {\n data: SystemApplicationDeleteMutationInput;\n};\nexport type SystemMutationApplicationInstallArgs = {\n data: SystemApplicationInstallInput;\n};\nexport type SystemMutationApplicationUpdateArgs = {\n data: SystemApplicationUpdateInput;\n};\nexport type SystemMutationBillingDetailsUpdateArgs = {\n data: SystemBillingDetailsUpdateMutationInput;\n};\nexport type SystemMutationBillingPlanUpdateArgs = {\n data: SystemBillingPlanUpdateMutationInput;\n};\nexport type SystemMutationCiCommitArgs = {\n mode?: Maybe;\n build?: Maybe;\n};\nexport type SystemMutationDeployArgs = {\n data?: Maybe;\n};\nexport type SystemMutationEnvironmentBackupArgs = {\n environmentName: Scalars['String'];\n};\nexport type SystemMutationEnvironmentBranchArgs = {\n name: Scalars['String'];\n mode?: Maybe;\n};\nexport type SystemMutationEnvironmentDeleteArgs = {\n environmentName: Scalars['String'];\n};\nexport type SystemMutationEnvironmentDeleteAsyncArgs = {\n environmentName: Scalars['String'];\n};\nexport type SystemMutationEnvironmentRestoreArgs = {\n environmentName: Scalars['String'];\n backup: Scalars['String'];\n};\nexport type SystemMutationEnvironmentSetupArgs = {\n data?: Maybe;\n};\nexport type SystemMutationFieldCreateArgs = {\n data: SystemTableFieldCreateInput;\n};\nexport type SystemMutationFieldDeleteArgs = {\n data: SystemTableFieldDeleteInput;\n};\nexport type SystemMutationFieldUpdateArgs = {\n data: SystemTableFieldUpdateInput;\n};\nexport type SystemMutationFieldUpdatePositionArgs = {\n data: SystemTableFieldPositionUpdateInput;\n};\nexport type SystemMutationIndexCreateArgs = {\n data: SystemIndexCreateInput;\n};\nexport type SystemMutationIndexDeleteArgs = {\n data: SystemIndexDeleteInput;\n};\nexport type SystemMutationIndexUpdateArgs = {\n data: SystemIndexUpdateInput;\n};\nexport type SystemMutationInvokeArgs = {\n data?: Maybe;\n};\nexport type SystemMutationOrganizationInviteUserArgs = {\n organizationId: Scalars['String'];\n email: Scalars['String'];\n role: Scalars['String'];\n firstName?: Maybe;\n lastName?: Maybe;\n};\nexport type SystemMutationOrganizationInviteUserAcceptArgs = {\n invitationId: Scalars['String'];\n};\nexport type SystemMutationOrganizationInviteUserCancelArgs = {\n invitationId: Scalars['String'];\n};\nexport type SystemMutationOrganizationUpdateArgs = {\n id: Scalars['String'];\n name?: Maybe;\n type?: Maybe;\n description?: Maybe;\n image?: Maybe;\n};\nexport type SystemMutationOrganizationUserRemoveArgs = {\n organizationId: Scalars['String'];\n email: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceAddArgs = {\n organizationId: Scalars['String'];\n workspaceId: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceAddAcceptArgs = {\n sessionId: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceAddCancelArgs = {\n sessionId: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceRemoveArgs = {\n organizationId: Scalars['String'];\n workspaceId: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceUserRemoveArgs = {\n organizationId: Scalars['String'];\n workspaceId: Scalars['String'];\n email: Scalars['String'];\n};\nexport type SystemMutationOrganizationWorkspaceUserShareArgs = {\n environments?: Maybe>>;\n email: Scalars['String'];\n};\nexport type SystemMutationTableCreateArgs = {\n data: SystemTableCreateInput;\n};\nexport type SystemMutationTableDeleteArgs = {\n data: SystemTableDeleteInput;\n};\nexport type SystemMutationTableUpdateArgs = {\n data: SystemTableUpdateInput;\n};\nexport type SystemMutationViewCreateArgs = {\n data: SystemViewCreateInput;\n};\nexport type SystemMutationViewUpdateArgs = {\n data: SystemViewUpdateInput;\n};\nexport type SystemMutationWorkspaceCreateArgs = {\n data: SystemWorkspaceCreateMutationInput;\n};\nexport type SystemMutationWorkspaceCreateAsyncArgs = {\n data: SystemWorkspaceCreateMutationInput;\n};\n\nexport type SystemMutationWorkspaceDeleteArgs = {\n data: SystemWorkspaceDeleteMutationInput;\n};\n\nexport type SystemMutationWorkspaceLeaveArgs = {\n force?: Maybe;\n};\n\nexport type SystemMutationWorkspaceTransferAcceptArgs = {\n workspaceId: Scalars['String'];\n};\nexport type SystemMutationWorkspaceTransferCancelArgs = {\n workspaceId: Scalars['String'];\n};\n\nexport type SystemMutationWorkspaceTransferRegisterArgs = {\n owner: Scalars['String'];\n workspaceId: Scalars['String'];\n};\n\nexport type SystemMutationWorkspaceUpdateArgs = {\n data: SystemWorkspaceUpdateMutationInput;\n};\n\n/** Number Field Attributes */\nexport type SystemNumberFieldTypeAttributes = {\n __typename?: 'SystemNumberFieldTypeAttributes';\n format: Scalars['String'];\n precision: Maybe;\n currency: Maybe;\n minValue: Maybe;\n maxValue: Maybe;\n isBigInt: Maybe;\n autoIncrement: Maybe;\n};\n\n/** Number Type Format Enum */\nexport enum SystemNumberTypeFormatEnum {\n Number = 'NUMBER',\n Currency = 'CURRENCY',\n Percentage = 'PERCENTAGE',\n Fraction = 'FRACTION',\n Scientific = 'SCIENTIFIC',\n}\n\nexport type SystemOrganizationBaseItem = {\n __typename?: 'SystemOrganizationBaseItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n type: Maybe;\n description: Maybe;\n};\n\nexport type SystemOrganizationInvitation = {\n __typename?: 'SystemOrganizationInvitation';\n id: Scalars['ID'];\n email: Scalars['String'];\n firstName: Maybe;\n lastName: Maybe;\n emailFrom: Scalars['String'];\n firstNameFrom: Maybe;\n lastNameFrom: Maybe;\n role: Scalars['String'];\n accepted: Maybe;\n organization: SystemOrganizationBaseItem;\n};\n\nexport type SystemOrganizationItem = {\n __typename?: 'SystemOrganizationItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n description: Maybe;\n type: Maybe;\n users: Maybe>>;\n image: Maybe;\n};\n\nexport type SystemOrganizationItemImage = {\n __typename?: 'SystemOrganizationItemImage';\n id: Maybe;\n downloadUrl: Maybe;\n};\n\n/** SystemOrganizationsListAllResponse output */\nexport type SystemOrganizationsListAllResponse = {\n __typename?: 'SystemOrganizationsListAllResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** SystemOrganizationsListResponse output */\nexport type SystemOrganizationsListResponse = {\n __typename?: 'SystemOrganizationsListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport enum SystemOrganizationTypeEnum {\n Agency = 'agency',\n Company = 'company',\n Community = 'community',\n}\n\nexport type SystemOrganizationUserBaseInfo = {\n __typename?: 'SystemOrganizationUserBaseInfo';\n id: Scalars['String'];\n email: Scalars['String'];\n firstName: Maybe;\n lastName: Maybe;\n role: Scalars['String'];\n status: Scalars['String'];\n};\n\nexport type SystemOrganizationUserInfo = {\n __typename?: 'SystemOrganizationUserInfo';\n id: Scalars['String'];\n email: Scalars['String'];\n firstName: Maybe;\n lastName: Maybe;\n role: Scalars['String'];\n status: Scalars['String'];\n avatar: Maybe;\n workspaces: Maybe>>;\n};\n\nexport type SystemOrganizationWorkspaceAddSession = {\n __typename?: 'SystemOrganizationWorkspaceAddSession';\n user: Maybe;\n workspace: SystemOrganizationWorkspaceItem;\n organization: SystemOrganizationBaseItem;\n status: Maybe;\n};\n\nexport type SystemOrganizationWorkspaceItem = {\n __typename?: 'SystemOrganizationWorkspaceItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n organization: Maybe;\n};\n\nexport type SystemOrganizationWorkspaceUserShareInfo = {\n environmentId: Scalars['String'];\n roles?: Maybe>>;\n};\n\n/** Diff Environment Input */\nexport type SystemPlanEnvironmentOutput = {\n __typename?: 'SystemPlanEnvironmentOutput';\n url: Maybe;\n};\n\nexport type SystemQuery = {\n __typename?: 'SystemQuery';\n application: Maybe;\n applicationsList: Maybe;\n billingCurrentPlan: Maybe;\n billingDetails: Maybe;\n billingInvoicesList: SystemBillingInvoicesListResponse;\n billingMetricUsageQuotasList: SystemBillingMetricUsageQuotasListResponse;\n billingMetricUsagesList: SystemBillingMetricUsagesListResponse;\n ciGenerate: Maybe;\n /** @deprecated No longer supported. Use `ciGenerate` instead. */\n ciPlan: Maybe;\n ciStatus: Maybe;\n deployStatus: SystemDeployStatusResult;\n environmentBackupsList: Maybe;\n environmentSettings: Maybe;\n environmentsList: Maybe;\n functionsList: Maybe;\n getEnvironmentRoles: Maybe>>;\n getWorkspaceTransferInfo: Maybe;\n inboxEventsList: Maybe;\n introspection: Maybe;\n /** @deprecated No longer supported. Use `system.logsList` instead. */\n logs: Maybe>>;\n logsList: Maybe>>;\n organizationById: Maybe;\n organizationInvitationById: Maybe;\n organizationWorkspaceAddSession: Maybe;\n organizationsListAll: Maybe;\n organizationsListByUser: Maybe;\n table: Maybe;\n tableField: Maybe;\n tablesList: SystemTableListResponse;\n userBillingConfiguration: SystemUserBillingConfigurationResponse;\n workspacesFrontendList: Maybe;\n workspacesList: Maybe;\n};\n\nexport type SystemQueryApplicationArgs = {\n id: Scalars['String'];\n};\n\nexport type SystemQueryBillingInvoicesListArgs = {\n by?: Maybe;\n limit?: Maybe;\n before?: Maybe;\n after?: Maybe;\n};\n\nexport type SystemQueryBillingMetricUsagesListArgs = {\n filter?: Maybe;\n};\n\nexport type SystemQueryCiGenerateArgs = {\n tables?: Maybe>;\n sourceEnvironmentId?: Maybe;\n targetEnvironmentId?: Maybe;\n};\n\nexport type SystemQueryCiPlanArgs = {\n tables?: Maybe>;\n sourceEnvironmentId?: Maybe;\n targetEnvironmentId?: Maybe;\n};\n\nexport type SystemQueryDeployStatusArgs = {\n buildName: Scalars['String'];\n};\n\nexport type SystemQueryEnvironmentBackupsListArgs = {\n environmentName?: Maybe;\n};\n\nexport type SystemQueryFunctionsListArgs = {\n applicationId?: Maybe;\n filter?: Maybe;\n orderBy?: Maybe>>;\n};\n\nexport type SystemQueryGetEnvironmentRolesArgs = {\n workspaceId: Scalars['String'];\n email?: Maybe;\n};\n\nexport type SystemQueryGetWorkspaceTransferInfoArgs = {\n workspaceId: Scalars['String'];\n};\n\nexport type SystemQueryInboxEventsListArgs = {\n filter?: Maybe;\n first?: Maybe;\n skip?: Maybe;\n};\n\nexport type SystemQueryLogsArgs = {\n functionName: Scalars['String'];\n applicationId?: Maybe;\n limit?: Maybe;\n startTime?: Maybe;\n endTime?: Maybe;\n};\n\nexport type SystemQueryLogsListArgs = {\n functionName: Scalars['String'];\n applicationId?: Maybe;\n limit?: Maybe;\n startTime?: Maybe;\n endTime?: Maybe;\n};\n\nexport type SystemQueryOrganizationByIdArgs = {\n organizationId: Scalars['String'];\n};\n\nexport type SystemQueryOrganizationInvitationByIdArgs = {\n invitationId: Scalars['String'];\n};\n\nexport type SystemQueryOrganizationWorkspaceAddSessionArgs = {\n sessionId: Scalars['String'];\n};\n\nexport type SystemQueryTableArgs = {\n id?: Maybe;\n name?: Maybe;\n};\n\nexport type SystemQueryTableFieldArgs = {\n id: Scalars['ID'];\n};\n\nexport type SystemQueryTablesListArgs = {\n filter?: Maybe;\n};\n\n/** Relation */\nexport type SystemRelation = {\n __typename?: 'SystemRelation';\n refTable: SystemTable;\n refField: Maybe;\n relationTableName: Maybe;\n relationFieldName: Maybe;\n refFieldName: Maybe;\n refFieldDisplayName: Maybe;\n refFieldIsList: Maybe;\n refFieldIsRequired: Maybe;\n};\n\n/** Relation Create Input */\nexport type SystemRelationCreateInput = {\n refTableId: Scalars['ID'];\n refFieldName?: Maybe;\n refFieldDisplayName?: Maybe;\n refFieldIsList: Scalars['Boolean'];\n refFieldIsRequired: Scalars['Boolean'];\n};\n\n/** Relation Update Input */\nexport type SystemRelationUpdateInput = {\n refTableId?: Maybe;\n refFieldName?: Maybe;\n refFieldDisplayName?: Maybe;\n refFieldIsList?: Maybe;\n refFieldIsRequired?: Maybe;\n};\n\n/** Schema Origin */\nexport type SystemSchemaOrigin = {\n __typename?: 'SystemSchemaOrigin';\n type: SystemSchemaOriginType;\n provider: Maybe;\n};\n\n/** Schema Origin Type Enum */\nexport enum SystemSchemaOriginType {\n Remote = 'REMOTE',\n Local = 'LOCAL',\n View = 'VIEW',\n}\n\nexport type SystemSetting = {\n __typename?: 'SystemSetting';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n isEnabled: Maybe;\n file: Maybe;\n value: Maybe;\n _description: Maybe;\n};\n\n/** Files create input from systemSetting_file */\nexport type SystemSetting_File_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files update input from systemSetting_file */\nexport type SystemSetting_File_FileUpdateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\nexport type SystemSetting_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n isEnabled?: Maybe;\n value?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n file?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SystemSetting_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** SystemSetting create input */\nexport type SystemSettingCreateInput = {\n name?: Maybe;\n isEnabled?: Maybe;\n file?: Maybe;\n value?: Maybe;\n};\n\n/** SystemSetting create many input */\nexport type SystemSettingCreateManyInput = {\n name?: Maybe;\n isEnabled?: Maybe;\n file?: Maybe;\n value?: Maybe;\n};\n\n/** SystemSetting delete input */\nexport type SystemSettingDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** SystemSettingFieldsPermissions create input */\nexport type SystemSettingFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n isEnabled?: Maybe;\n value?: Maybe;\n};\n\n/** SystemSetting relation input */\nexport type SystemSettingFileManyRelationInput = {\n connect?: Maybe;\n};\n\n/** SystemSetting relation input */\nexport type SystemSettingFileRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** SystemSetting relation input */\nexport type SystemSettingFileUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type SystemSettingFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n isEnabled?: Maybe;\n value?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n file?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type SystemSettingGroupBy = {\n query: SystemSettingGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type SystemSettingGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n isEnabled?: Maybe>;\n value?: Maybe>;\n createdBy?: Maybe;\n file?: Maybe;\n _group?: Maybe>;\n};\n\nexport type SystemSettingKeyFilter = {\n id?: Maybe;\n};\n\n/** SystemSettingListResponse output */\nexport type SystemSettingListResponse = {\n __typename?: 'SystemSettingListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** SystemSettingManyResponse output */\nexport type SystemSettingManyResponse = {\n __typename?: 'SystemSettingManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum SystemSettingOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n IsEnabledAsc = 'isEnabled_ASC',\n IsEnabledDesc = 'isEnabled_DESC',\n ValueAsc = 'value_ASC',\n ValueDesc = 'value_DESC',\n}\n\n/** SystemSetting subscription payload */\nexport type SystemSettingPayload = {\n __typename?: 'SystemSettingPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type SystemSettingRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type SystemSettingSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n isEnabled?: Maybe;\n value?: Maybe;\n createdBy?: Maybe;\n file?: Maybe;\n};\n\n/** SystemSetting subscription filter */\nexport type SystemSettingSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** SystemSetting update input */\nexport type SystemSettingUpdateByFilterInput = {\n name?: Maybe>>;\n isEnabled?: Maybe>>;\n value?: Maybe>>;\n};\n\n/** SystemSetting update input */\nexport type SystemSettingUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n isEnabled?: Maybe;\n file?: Maybe;\n value?: Maybe;\n};\n\n/** Smart Field Attributes */\nexport type SystemSmartFieldTypeAttributes = {\n __typename?: 'SystemSmartFieldTypeAttributes';\n format: Scalars['String'];\n innerFields: Maybe>>;\n};\n\n/** Smart Type Format Enum */\nexport enum SystemSmartTypeFormatEnum {\n Address = 'ADDRESS',\n Phone = 'PHONE',\n}\n\n/** Switch Field Attributes */\nexport type SystemSwitchFieldTypeAttributes = {\n __typename?: 'SystemSwitchFieldTypeAttributes';\n format: Scalars['String'];\n listOptions: Maybe>>;\n};\n\n/** Switch Type Format Enum */\nexport enum SystemSwitchTypeFormatEnum {\n OnOff = 'ON_OFF',\n YesNo = 'YES_NO',\n TrueFalse = 'TRUE_FALSE',\n ActiveInactive = 'ACTIVE_INACTIVE',\n HighLow = 'HIGH_LOW',\n Custom = 'CUSTOM',\n}\n\n/** Table */\nexport type SystemTable = {\n __typename?: 'SystemTable';\n id: Scalars['ID'];\n application: Maybe;\n isSystem: Scalars['Boolean'];\n name: Scalars['String'];\n displayName: Maybe;\n fields: Maybe>;\n indexes: Maybe>;\n origin: SystemSchemaOrigin;\n schemaFeatures: SystemTableSchemaFeatures;\n dataFeatures: SystemTableDataFeatures;\n attributes: Maybe;\n description: Maybe;\n};\n\n/** Table Attributes */\nexport type SystemTableAttributes = SystemViewAttributes;\n\n/** Table Create Input */\nexport type SystemTableCreateInput = {\n name: Scalars['String'];\n displayName?: Maybe;\n description?: Maybe;\n applicationId?: Maybe;\n};\n\n/** Table Data Features */\nexport type SystemTableDataFeatures = {\n __typename?: 'SystemTableDataFeatures';\n create: Scalars['Boolean'];\n update: Scalars['Boolean'];\n delete: Scalars['Boolean'];\n};\n\n/** Table Delete Input */\nexport type SystemTableDeleteInput = {\n id: Scalars['ID'];\n};\n\n/** TableField */\nexport type SystemTableField = {\n __typename?: 'SystemTableField';\n id: Scalars['ID'];\n table: SystemTable;\n isSystem: Scalars['Boolean'];\n name: Scalars['String'];\n displayName: Maybe;\n description: Maybe;\n fieldType: SystemFieldType;\n origin: SystemSchemaOrigin;\n schemaFeatures: SystemFieldSchemaFeatures;\n dataFeatures: SystemFieldDataFeatures;\n isMeta: Scalars['Boolean'];\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique: Maybe;\n defaultValue: Maybe;\n computedMode: Maybe;\n expression: Maybe;\n fieldTypeAttributes: Maybe;\n relation: Maybe;\n};\n\n/** Table Field Create Input */\nexport type SystemTableFieldCreateInput = {\n tableId: Scalars['ID'];\n force?: Maybe;\n name: Scalars['String'];\n displayName?: Maybe;\n description?: Maybe;\n fieldType: SystemFieldType;\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique?: Maybe;\n defaultValue?: Maybe;\n initialValue?: Maybe;\n computedMode?: Maybe;\n expression?: Maybe;\n position?: Maybe;\n fieldTypeAttributes?: Maybe;\n relation?: Maybe;\n};\n\n/** Table Field Delete Input */\nexport type SystemTableFieldDeleteInput = {\n id: Scalars['ID'];\n};\n\n/** Table Field Position Update Input */\nexport type SystemTableFieldPositionUpdateInput = {\n id: Scalars['ID'];\n newPosition: Scalars['Int'];\n};\n\n/** Table Field Update Input */\nexport type SystemTableFieldUpdateInput = {\n id: Scalars['ID'];\n force?: Maybe;\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n fieldType?: Maybe;\n isList?: Maybe;\n isRequired?: Maybe;\n isUnique?: Maybe;\n defaultValue?: Maybe;\n initialValue?: Maybe;\n computedMode?: Maybe;\n expression?: Maybe;\n position?: Maybe;\n fieldTypeAttributes?: Maybe;\n relation?: Maybe;\n};\n\n/** Table Index */\nexport type SystemTableIndex = {\n __typename?: 'SystemTableIndex';\n id: Scalars['ID'];\n table: SystemTable;\n type: Scalars['String'];\n columns: Maybe>;\n name: Maybe;\n isSystem: Scalars['Boolean'];\n};\n\n/** Table Index Column */\nexport type SystemTableIndexColumn = {\n __typename?: 'SystemTableIndexColumn';\n name: Scalars['String'];\n};\n\n/** Table Index Column Input */\nexport type SystemTableIndexColumnInput = {\n name: Scalars['String'];\n};\n\n/** Table List Application Filter */\nexport type SystemTableListApplicationFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** Table List Filter */\nexport type SystemTableListFilter = {\n applications?: Maybe>>;\n onlyUserTables?: Maybe;\n tableNames?: Maybe>>;\n};\n\n/** Table List Response */\nexport type SystemTableListResponse = {\n __typename?: 'SystemTableListResponse';\n items: Maybe>>;\n count: Maybe;\n};\n\n/** Table Schema Create Features */\nexport type SystemTableSchemaCreateFeatures = {\n __typename?: 'SystemTableSchemaCreateFeatures';\n ID: Scalars['Boolean'];\n UUID: Scalars['Boolean'];\n JSON: Scalars['Boolean'];\n NUMBER: Scalars['Boolean'];\n TEXT: Scalars['Boolean'];\n DATE: Scalars['Boolean'];\n SWITCH: Scalars['Boolean'];\n RELATION: Scalars['Boolean'];\n FILE: Scalars['Boolean'];\n SMART: Scalars['Boolean'];\n GEO: Scalars['Boolean'];\n ONE_WAY_RELATION: Scalars['Boolean'];\n MISSING_RELATION: Scalars['Boolean'];\n};\n\n/** Table Schema Features */\nexport type SystemTableSchemaFeatures = {\n __typename?: 'SystemTableSchemaFeatures';\n create: SystemTableSchemaCreateFeatures;\n update: Maybe;\n computedFields: Scalars['Boolean'];\n};\n\n/** Table Schema Meta Field Features */\nexport type SystemTableSchemaMetaFieldFeatures = {\n __typename?: 'SystemTableSchemaMetaFieldFeatures';\n name: Scalars['Boolean'];\n displayName: Scalars['Boolean'];\n};\n\n/** Table Update Input */\nexport type SystemTableUpdateInput = {\n id: Scalars['ID'];\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n};\n\n/** Text Field Attributes */\nexport type SystemTextFieldTypeAttributes = {\n __typename?: 'SystemTextFieldTypeAttributes';\n format: Scalars['String'];\n fieldSize: Maybe;\n};\n\n/** Text Type Format Enum */\nexport enum SystemTextTypeFormatEnum {\n Unformatted = 'UNFORMATTED',\n Name = 'NAME',\n Ein = 'EIN',\n Email = 'EMAIL',\n Markdown = 'MARKDOWN',\n Html = 'HTML',\n}\n\nexport type SystemUserAccountInfo = {\n __typename?: 'SystemUserAccountInfo';\n email: Scalars['String'];\n createdAt: Maybe;\n avatar: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n timezone: Maybe;\n learningMode: Maybe;\n permissions: Maybe;\n role: Maybe;\n isDeveloper: Maybe;\n aboutMe: Maybe;\n country: Maybe;\n city: Maybe;\n state: Maybe;\n website: Maybe;\n zipCode: Maybe;\n githubUsername: Maybe;\n linkedInUsername: Maybe;\n twitterUsername: Maybe;\n addressLine1: Maybe;\n addressLine2: Maybe;\n type: Maybe;\n companyName: Maybe;\n projectDescription: Maybe;\n};\n\nexport type SystemUserBillingConfigurationResponse = {\n __typename?: 'SystemUserBillingConfigurationResponse';\n isFreePlanAvailable: Scalars['Boolean'];\n isCancelSubscriptionAvailable: Scalars['Boolean'];\n availablePlans: Array;\n};\n\n/** User Type */\nexport enum SystemUserType {\n Agency = 'Agency',\n MyOwn = 'MyOwn',\n Team = 'Team',\n}\n\n/** UUID Field Attributes */\nexport type SystemUuidFieldTypeAttributes = {\n __typename?: 'SystemUUIDFieldTypeAttributes';\n fieldSize: Maybe;\n};\n\n/** View Attributes */\nexport type SystemViewAttributes = {\n __typename?: 'SystemViewAttributes';\n query: Maybe;\n};\n\n/** View Create Input */\nexport type SystemViewCreateInput = {\n name: Scalars['String'];\n displayName?: Maybe;\n query: Scalars['String'];\n description?: Maybe;\n};\n\n/** View Update Input */\nexport type SystemViewUpdateInput = {\n id: Scalars['ID'];\n name?: Maybe;\n displayName?: Maybe;\n query?: Maybe;\n description?: Maybe;\n};\n\n/** WorkspaceCreateMutationInput */\nexport type SystemWorkspaceCreateMutationInput = {\n name: Scalars['String'];\n image?: Maybe;\n billingPlanId?: Maybe;\n organizationId?: Maybe;\n kind?: Maybe;\n description?: Maybe;\n};\n\nexport type SystemWorkspaceCreateResponse = {\n __typename?: 'SystemWorkspaceCreateResponse';\n id: Maybe;\n name: Maybe;\n kind: Maybe;\n description: Maybe;\n};\n\n/** WorkspaceDeleteMutationInput */\nexport type SystemWorkspaceDeleteMutationInput = {\n id: Scalars['ID'];\n};\n\nexport type SystemWorkspaceImage = {\n __typename?: 'SystemWorkspaceImage';\n id: Maybe;\n downloadUrl: Maybe;\n};\n\nexport type SystemWorkspaceItem = {\n __typename?: 'SystemWorkspaceItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n isOwner: Scalars['Boolean'];\n plan: Maybe;\n nextPlan: Maybe;\n lastAccess: Maybe;\n createdAt: Maybe;\n teamMemberCount: Maybe;\n region: Maybe;\n owner: Maybe;\n image: Maybe;\n isCiCdEnabled: Maybe;\n apiHost: Maybe;\n webSocket: Maybe;\n organization: Maybe;\n kind: Maybe;\n description: Maybe;\n};\n\n/** Workspace Kind */\nexport enum SystemWorkspaceKind {\n Frontend = 'frontend',\n General = 'general',\n}\n\n/** SystemWorkspaceListResponse output */\nexport type SystemWorkspaceListResponse = {\n __typename?: 'SystemWorkspaceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport enum SystemWorkspaceStatus {\n Active = 'active',\n Blocked = 'blocked',\n Canceled = 'canceled',\n Suspended = 'suspended',\n Canceling = 'canceling',\n Pending = 'pending',\n}\n\n/** WorkspaceUpdateMutationInput */\nexport type SystemWorkspaceUpdateMutationInput = {\n id: Scalars['ID'];\n name?: Maybe;\n image?: Maybe;\n description?: Maybe;\n};\n\nexport type SystemWorkspaceUpdateResponse = {\n __typename?: 'SystemWorkspaceUpdateResponse';\n id: Maybe;\n name: Maybe;\n image: Maybe;\n description: Maybe;\n};\n\n/** Table */\nexport type Table = {\n __typename?: 'Table';\n id: Scalars['ID'];\n application: Maybe;\n isSystem: Scalars['Boolean'];\n name: Scalars['String'];\n displayName: Maybe;\n fields: Maybe>;\n indexes: Maybe>;\n origin: SchemaOrigin;\n schemaFeatures: TableSchemaFeatures;\n dataFeatures: TableDataFeatures;\n attributes: Maybe;\n description: Maybe;\n};\n\n/** Table Attributes */\nexport type TableAttributes = ViewAttributes;\n\n/** Table Create Input */\nexport type TableCreateInput = {\n name: Scalars['String'];\n displayName?: Maybe;\n description?: Maybe;\n applicationId?: Maybe;\n};\n\n/** Table Data Features */\nexport type TableDataFeatures = {\n __typename?: 'TableDataFeatures';\n create: Scalars['Boolean'];\n update: Scalars['Boolean'];\n delete: Scalars['Boolean'];\n};\n\n/** Table Delete Input */\nexport type TableDeleteInput = {\n id: Scalars['ID'];\n};\n\n/** TableField */\nexport type TableField = {\n __typename?: 'TableField';\n id: Scalars['ID'];\n table: Table;\n isSystem: Scalars['Boolean'];\n name: Scalars['String'];\n displayName: Maybe;\n description: Maybe;\n fieldType: FieldType;\n origin: SchemaOrigin;\n schemaFeatures: FieldSchemaFeatures;\n dataFeatures: FieldDataFeatures;\n isMeta: Scalars['Boolean'];\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique: Maybe;\n defaultValue: Maybe;\n computedMode: Maybe;\n expression: Maybe;\n fieldTypeAttributes: Maybe;\n relation: Maybe;\n};\n\n/** Table Field Create Input */\nexport type TableFieldCreateInput = {\n tableId: Scalars['ID'];\n force?: Maybe;\n name: Scalars['String'];\n displayName?: Maybe;\n description?: Maybe;\n fieldType: FieldType;\n isList: Scalars['Boolean'];\n isRequired: Scalars['Boolean'];\n isUnique?: Maybe;\n defaultValue?: Maybe;\n initialValue?: Maybe;\n computedMode?: Maybe;\n expression?: Maybe;\n position?: Maybe;\n fieldTypeAttributes?: Maybe;\n relation?: Maybe;\n};\n\n/** Table Field Delete Input */\nexport type TableFieldDeleteInput = {\n id: Scalars['ID'];\n};\n\n/** Table Field Position Update Input */\nexport type TableFieldPositionUpdateInput = {\n id: Scalars['ID'];\n newPosition: Scalars['Int'];\n};\n\n/** Table Field Update Input */\nexport type TableFieldUpdateInput = {\n id: Scalars['ID'];\n force?: Maybe;\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n fieldType?: Maybe;\n isList?: Maybe;\n isRequired?: Maybe;\n isUnique?: Maybe;\n defaultValue?: Maybe;\n initialValue?: Maybe;\n computedMode?: Maybe;\n expression?: Maybe;\n position?: Maybe;\n fieldTypeAttributes?: Maybe;\n relation?: Maybe;\n};\n\n/** Table Index */\nexport type TableIndex = {\n __typename?: 'TableIndex';\n id: Scalars['ID'];\n table: Table;\n type: Scalars['String'];\n columns: Maybe>;\n name: Maybe;\n isSystem: Scalars['Boolean'];\n};\n\n/** Table Index Column */\nexport type TableIndexColumn = {\n __typename?: 'TableIndexColumn';\n name: Scalars['String'];\n};\n\n/** Table Index Column Input */\nexport type TableIndexColumnInput = {\n name: Scalars['String'];\n};\n\nexport enum TableIndexType {\n Index = 'INDEX',\n Unique = 'UNIQUE',\n}\n\n/** Table List Application Filter */\nexport type TableListApplicationFilter = {\n id?: Maybe;\n name?: Maybe;\n};\n\n/** Table List Filter */\nexport type TableListFilter = {\n applications?: Maybe>>;\n onlyUserTables?: Maybe;\n tableNames?: Maybe>>;\n};\n/** Table List Response */\nexport type TableListResponse = {\n __typename?: 'TableListResponse';\n items: Maybe>>;\n count: Maybe;\n};\n/** Table Schema Create Features */\nexport type TableSchemaCreateFeatures = {\n __typename?: 'TableSchemaCreateFeatures';\n ID: Scalars['Boolean'];\n UUID: Scalars['Boolean'];\n JSON: Scalars['Boolean'];\n NUMBER: Scalars['Boolean'];\n TEXT: Scalars['Boolean'];\n DATE: Scalars['Boolean'];\n SWITCH: Scalars['Boolean'];\n RELATION: Scalars['Boolean'];\n FILE: Scalars['Boolean'];\n SMART: Scalars['Boolean'];\n GEO: Scalars['Boolean'];\n ONE_WAY_RELATION: Scalars['Boolean'];\n MISSING_RELATION: Scalars['Boolean'];\n};\n/** Table Schema Features */\nexport type TableSchemaFeatures = {\n __typename?: 'TableSchemaFeatures';\n create: TableSchemaCreateFeatures;\n update: Maybe;\n computedFields: Scalars['Boolean'];\n};\n/** Table Schema Meta Field Features */\nexport type TableSchemaMetaFieldFeatures = {\n __typename?: 'TableSchemaMetaFieldFeatures';\n name: Scalars['Boolean'];\n displayName: Scalars['Boolean'];\n};\n/** Table Update Input */\nexport type TableUpdateInput = {\n id: Scalars['ID'];\n name?: Maybe;\n displayName?: Maybe;\n description?: Maybe;\n};\n/** LeadHistory create input from task */\nexport type Task_LeadHistoryCreateInput = {\n /** Entity related to the lead that was mutated */\n entity: Scalars['String'];\n /** The operation executed on the entity */\n operation: Scalars['String'];\n difference?: Maybe;\n lead?: Maybe;\n note?: Maybe;\n task?: Maybe;\n email?: Maybe;\n stage?: Maybe;\n call?: Maybe;\n sms?: Maybe;\n};\n/** LeadHistory update input from task */\nexport type Task_LeadHistoryUpdateInput = {\n filter?: Maybe;\n data: LeadHistoryUpdateInput;\n};\n/** Agent create input from taskAgentRelation */\nexport type TaskAgentRelation_AgentCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n/** Agent update input from taskAgentRelation */\nexport type TaskAgentRelation_AgentUpdateInput = {\n filter?: Maybe;\n data: AgentUpdateInput;\n};\n/** Lead create input from tasksLeadRelation */\nexport type TasksLeadRelation_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Lead update input from tasksLeadRelation */\nexport type TasksLeadRelation_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** Users create input from taskUserRelation */\nexport type TaskUserRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from taskUserRelation */\nexport type TaskUserRelation_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\nexport type TeamInvitation = {\n __typename?: 'TeamInvitation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n uuid: Maybe;\n email: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n resentOn: Maybe;\n accepted: Maybe;\n acceptedOn: Maybe;\n invitee: Maybe;\n invitedBy: Maybe;\n _description: Maybe;\n};\nexport type TeamInvitation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n uuid?: Maybe;\n email?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n resentOn?: Maybe;\n accepted?: Maybe;\n acceptedOn?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invitee?: Maybe;\n invitedBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type TeamInvitation_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** TeamInvitationAcceptInput */\nexport type TeamInvitationAcceptInput = {\n uuid: Scalars['String'];\n accepted: Scalars['Boolean'];\n};\n/** TeamInvitationAcceptResponse */\nexport type TeamInvitationAcceptResponse = {\n __typename?: 'TeamInvitationAcceptResponse';\n success: Scalars['Boolean'];\n};\n/** Cancel team members invitations input */\nexport type TeamInvitationCancelInput = {\n memberId: Scalars['ID'];\n};\n/** TeamInvitations delete input */\nexport type TeamInvitationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n/** Team Invitation Details */\nexport type TeamInvitationDetails = {\n __typename?: 'TeamInvitationDetails';\n uuid: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n email: Maybe;\n isRegistered: Maybe;\n invitedBy: Maybe;\n};\nexport type TeamInvitationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n uuid?: Maybe;\n email?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n resentOn?: Maybe;\n accepted?: Maybe;\n acceptedOn?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n invitee?: Maybe;\n invitedBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type TeamInvitationGroupBy = {\n query: TeamInvitationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type TeamInvitationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n uuid?: Maybe>;\n email?: Maybe>;\n firstName?: Maybe>;\n lastName?: Maybe>;\n resentOn?: Maybe>;\n accepted?: Maybe>;\n acceptedOn?: Maybe>;\n createdBy?: Maybe;\n invitee?: Maybe;\n invitedBy?: Maybe;\n _group?: Maybe>;\n};\nexport type TeamInvitationKeyFilter = {\n id?: Maybe;\n uuid?: Maybe;\n};\n/** TeamInvitationListResponse output */\nexport type TeamInvitationListResponse = {\n __typename?: 'TeamInvitationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** No longer supported. Use `sort` instead. */\nexport enum TeamInvitationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n UuidAsc = 'uuid_ASC',\n UuidDesc = 'uuid_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n ResentOnAsc = 'resentOn_ASC',\n ResentOnDesc = 'resentOn_DESC',\n AcceptedAsc = 'accepted_ASC',\n AcceptedDesc = 'accepted_DESC',\n AcceptedOnAsc = 'acceptedOn_ASC',\n AcceptedOnDesc = 'acceptedOn_DESC',\n}\n/** TeamInvitations subscription payload */\nexport type TeamInvitationPayload = {\n __typename?: 'TeamInvitationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type TeamInvitationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Resend team invitation input */\nexport type TeamInvitationResendInput = {\n memberId: Scalars['ID'];\n};\n/** Team Invitations Details List */\nexport type TeamInvitationsDetailsList = {\n __typename?: 'TeamInvitationsDetailsList';\n items: Maybe>>;\n count: Maybe;\n};\nexport type TeamInvitationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n uuid?: Maybe;\n email?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n resentOn?: Maybe;\n accepted?: Maybe;\n acceptedOn?: Maybe;\n createdBy?: Maybe;\n invitee?: Maybe;\n invitedBy?: Maybe;\n};\n/** TeamInvitations subscription filter */\nexport type TeamInvitationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\nexport type TeamMember = {\n __typename?: 'TeamMember';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n status: Maybe;\n isOwner: Maybe;\n avatar: Maybe;\n roles: Maybe;\n receivedTeamInvitations: Maybe;\n sentTeamInvitations: Maybe;\n email: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n timezone: Maybe;\n learningMode: Maybe;\n permissions: Maybe;\n _description: Maybe;\n};\nexport type TeamMemberRolesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type TeamMemberReceivedTeamInvitationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type TeamMemberSentTeamInvitationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\nexport type TeamMemberPermissionsArgs = {\n filter?: Maybe;\n};\nexport type TeamMember_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n isOwner?: Maybe;\n _fullText?: Maybe;\n is_self?: Maybe;\n not_self?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n receivedTeamInvitations?: Maybe;\n sentTeamInvitations?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type TeamMember_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** TeamMembers delete input */\nexport type TeamMemberDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\nexport type TeamMemberFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n isOwner?: Maybe;\n _fullText?: Maybe;\n is_self?: Maybe;\n not_self?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n receivedTeamInvitations?: Maybe;\n sentTeamInvitations?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type TeamMemberGroupBy = {\n query: TeamMemberGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type TeamMemberGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n status?: Maybe>;\n isOwner?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n receivedTeamInvitations?: Maybe;\n sentTeamInvitations?: Maybe;\n _group?: Maybe>;\n};\nexport type TeamMemberKeyFilter = {\n id?: Maybe;\n};\n/** TeamMemberListResponse output */\nexport type TeamMemberListResponse = {\n __typename?: 'TeamMemberListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** TeamMemberManyResponse output */\nexport type TeamMemberManyResponse = {\n __typename?: 'TeamMemberManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n/** No longer supported. Use `sort` instead. */\nexport enum TeamMemberOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n IsOwnerAsc = 'isOwner_ASC',\n IsOwnerDesc = 'isOwner_DESC',\n}\n/** TeamMembers subscription payload */\nexport type TeamMemberPayload = {\n __typename?: 'TeamMemberPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\nexport type TeamMemberRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Files create input from teamMembers_avatar */\nexport type TeamMembers_Avatar_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n/** Files update input from teamMembers_avatar */\nexport type TeamMembers_Avatar_FileUpdateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n/** Roles create input from teamMembers */\nexport type TeamMembers_RoleCreateInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n/** Roles update input from teamMembers */\nexport type TeamMembers_RoleUpdateInput = {\n filter?: Maybe;\n data: RoleUpdateInput;\n};\n/** TeamMembers relation input */\nexport type TeamMembersAvatarUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\nexport type TeamMemberSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n isOwner?: Maybe;\n email?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n avatar?: Maybe;\n};\n/** TeamMembers relation input */\nexport type TeamMembersReceivedTeamInvitationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n};\n/** TeamMembers relation input */\nexport type TeamMembersRolesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n/** TeamMembers relation input */\nexport type TeamMembersSentTeamInvitationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n};\n/** TeamMembers subscription filter */\nexport type TeamMemberSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n/** TeamMembers update input */\nexport type TeamMemberUpdateByFilterInput = {\n status?: Maybe>>;\n isOwner?: Maybe>>;\n firstName?: Maybe;\n lastName?: Maybe;\n timezone?: Maybe;\n learningMode?: Maybe;\n};\n/** TeamMembers update input */\nexport type TeamMemberUpdateInput = {\n id?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n receivedTeamInvitations?: Maybe;\n sentTeamInvitations?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n timezone?: Maybe;\n learningMode?: Maybe;\n};\n/** Text Field Attributes */\nexport type TextFieldTypeAttributes = {\n __typename?: 'TextFieldTypeAttributes';\n format: Scalars['String'];\n fieldSize: Maybe;\n};\n/** Text Type Format Enum */\nexport enum TextTypeFormatEnum {\n Unformatted = 'UNFORMATTED',\n Name = 'NAME',\n Ein = 'EIN',\n Email = 'EMAIL',\n Markdown = 'MARKDOWN',\n Html = 'HTML',\n}\n\n/** Mail create input from thread */\nexport type Thread_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail update input from thread */\nexport type Thread_MailUpdateInput = {\n filter?: Maybe;\n data: MailUpdateInput;\n};\n\n/** InboundPhoneCall create input from to */\nexport type To_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall update input from to */\nexport type To_InboundPhoneCallUpdateInput = {\n filter?: Maybe;\n data: InboundPhoneCallUpdateInput;\n};\n\nexport type TransferCallResult = {\n __typename?: 'TransferCallResult';\n success: Scalars['Boolean'];\n};\n\nexport type TrimFunctionArguments = {\n str: Scalars['String'];\n mode?: Maybe;\n};\n\n/** LeadTask create input from type */\nexport type Type_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type?: Maybe;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyRelationInput;\n};\n\n/** LeadTask update input from type */\nexport type Type_LeadTaskUpdateInput = {\n filter?: Maybe;\n data: LeadTaskUpdateInput;\n};\n\n/** LeadTaskType create input from typeLeadTaskRelation */\nexport type TypeLeadTaskRelation_LeadTaskTypeCreateInput = {\n name: Scalars['String'];\n typeLeadTaskRelation?: Maybe;\n};\n\n/** LeadTaskType update input from typeLeadTaskRelation */\nexport type TypeLeadTaskRelation_LeadTaskTypeUpdateInput = {\n name?: Maybe;\n typeLeadTaskRelation?: Maybe;\n};\n\nexport type UpdateByFilterBigNumberInput = {\n add?: Maybe;\n sub?: Maybe;\n mult?: Maybe;\n div?: Maybe;\n mod?: Maybe;\n set?: Maybe;\n pow?: Maybe;\n sqrt?: Maybe;\n prec?: Maybe;\n};\n\nexport type UpdateByFilterBooleanSwitchInput = {\n set?: Maybe;\n invert?: Maybe;\n};\n\nexport type UpdateByFilterDateInput = {\n set?: Maybe;\n add?: Maybe;\n sub?: Maybe;\n};\n\nexport type UpdateByFilterDatePartsInput = {\n years?: Maybe;\n months?: Maybe;\n days?: Maybe;\n};\n\nexport type UpdateByFilterDateTimeInput = {\n set?: Maybe;\n add?: Maybe;\n sub?: Maybe;\n};\n\nexport type UpdateByFilterDateTimePartsInput = {\n years?: Maybe;\n months?: Maybe;\n days?: Maybe;\n hours?: Maybe;\n minutes?: Maybe;\n seconds?: Maybe;\n microseconds?: Maybe;\n};\n\nexport type UpdateByFilterFloatInput = {\n add?: Maybe;\n sub?: Maybe;\n mult?: Maybe;\n div?: Maybe;\n mod?: Maybe;\n set?: Maybe;\n pow?: Maybe;\n sqrt?: Maybe;\n prec?: Maybe;\n};\n\nexport type UpdateByFilterIntInput = {\n add?: Maybe;\n sub?: Maybe;\n mult?: Maybe;\n div?: Maybe;\n mod?: Maybe;\n set?: Maybe;\n pow?: Maybe;\n sqrt?: Maybe;\n prec?: Maybe;\n};\n\nexport type UpdateByFilterJsonInput = {\n set?: Maybe;\n};\n\nexport type UpdateByFilterListStringInput = {\n set?: Maybe>>;\n push?: Maybe>>;\n unshift?: Maybe>>;\n insert?: Maybe;\n remove?: Maybe>>;\n removeValue?: Maybe;\n swap?: Maybe>>;\n};\n\nexport type UpdateByFilterListStringInsertOperationInput = {\n start: Scalars['Int'];\n values: Array;\n};\n\nexport type UpdateByFilterStringInput = {\n prefix?: Maybe;\n postfix?: Maybe;\n set?: Maybe;\n};\n\nexport type UpdateByFilterStringSwitchInput = {\n set?: Maybe;\n};\n\n/** UpdatedFieldsFilter */\nexport type UpdatedFieldsFilter = {\n contains?: Maybe>>;\n every?: Maybe>>;\n};\n\n/** DEPRECATED */\nexport type Url = {\n __typename?: 'Url';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n url: Maybe;\n num: Maybe;\n hash: Maybe;\n _description: Maybe;\n};\n\nexport type Url_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n num?: Maybe;\n hash?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** Url create input */\nexport type UrlCreateInput = {\n url?: Maybe;\n hash?: Maybe;\n};\n\n/** Url create many input */\nexport type UrlCreateManyInput = {\n url?: Maybe;\n hash?: Maybe;\n};\n\n/** Url delete input */\nexport type UrlDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** UrlFieldsPermissions create input */\nexport type UrlFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n url?: Maybe;\n num?: Maybe;\n hash?: Maybe;\n};\n\nexport type UrlFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n num?: Maybe;\n hash?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type UrlGroupBy = {\n query: UrlGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type UrlGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n url?: Maybe>;\n num?: Maybe>;\n hash?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type UrlKeyFilter = {\n id?: Maybe;\n num?: Maybe;\n};\n\n/** UrlListResponse output */\nexport type UrlListResponse = {\n __typename?: 'UrlListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** UrlManyResponse output */\nexport type UrlManyResponse = {\n __typename?: 'UrlManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum UrlOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n UrlAsc = 'url_ASC',\n UrlDesc = 'url_DESC',\n NumAsc = 'num_ASC',\n NumDesc = 'num_DESC',\n HashAsc = 'hash_ASC',\n HashDesc = 'hash_DESC',\n}\n\n/** Url subscription payload */\nexport type UrlPayload = {\n __typename?: 'UrlPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type UrlSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n num?: Maybe;\n hash?: Maybe;\n createdBy?: Maybe;\n};\n\n/** Url subscription filter */\nexport type UrlSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Url update input */\nexport type UrlUpdateByFilterInput = {\n url?: Maybe>>;\n num?: Maybe>>;\n hash?: Maybe>>;\n};\n\n/** Url update input */\nexport type UrlUpdateInput = {\n id?: Maybe;\n url?: Maybe;\n hash?: Maybe;\n};\n\nexport type User = {\n __typename?: 'User';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n email: Maybe;\n status: Maybe;\n origin: Maybe;\n is8base: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n cellPhone: Maybe;\n workPhone: Maybe;\n workPhoneExt: Maybe;\n gender: Maybe;\n birthday: Maybe;\n language: Maybe;\n timezone: Maybe;\n avatar: Maybe;\n roles: Maybe;\n userAgentRelation: Maybe;\n userManagerRelation: Maybe;\n userAdminRelation: Maybe;\n metaUserRelation: Maybe;\n agentSMSMessageRelation: Maybe;\n signature: Maybe;\n isEnableSignature: Maybe;\n userUserStatusRelation: Maybe;\n assigneesLeadRelation: Maybe;\n assigneesCampaignRelation: Maybe;\n usersLeadRelation: Maybe;\n userSMSMessageRelation: Maybe;\n campaignUsersRelation: Maybe;\n taskUserRelation: Maybe;\n userPhoneCallRelation: Maybe;\n phoneNumberRelation: Maybe;\n userAgencyUserRelation: Maybe;\n notificationRelation: Maybe;\n notificationTriggerRelation: Maybe;\n channelIdentities: Maybe;\n onboardingStep: Maybe;\n selectedAgency: Maybe;\n inbounPhoneCallRejectedRelation: Maybe;\n inboundPhoneCallAceptedRelation: Maybe;\n currentStatus: Maybe;\n calls: Maybe;\n gmailConfigurations: Maybe;\n outboundServices: Maybe;\n inboundServices: Maybe;\n outlookServices: Maybe;\n emails: Maybe;\n learningMode: Maybe;\n permissions: Maybe;\n _description: Maybe;\n};\n\nexport type UserRolesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserAgentRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserManagerRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserAdminRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserMetaUserRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserAgentSmsMessageRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserUserStatusRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserAssigneesLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserAssigneesCampaignRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUsersLeadRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserSmsMessageRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserCampaignUsersRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserTaskUserRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserPhoneCallRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserPhoneNumberRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserUserAgencyUserRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserNotificationRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserNotificationTriggerRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserChannelIdentitiesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserInbounPhoneCallRejectedRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserInboundPhoneCallAceptedRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserCallsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserGmailConfigurationsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserOutboundServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserInboundServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserOutlookServicesArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserEmailsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type UserPermissionsArgs = {\n filter?: Maybe;\n};\n\n/** Admin create input from user */\nexport type User_AdminCreateInput = {\n user?: Maybe;\n company: AdminCompanyRelationInput;\n};\n\n/** Admin update input from user */\nexport type User_AdminUpdateInput = {\n filter?: Maybe;\n data: AdminUpdateInput;\n};\n\n/** AgencyUser create input from user */\nexport type User_AgencyUserCreateInput = {\n agency: AgencyUserAgencyRelationInput;\n user?: Maybe;\n roles?: Maybe>>;\n};\n\n/** AgencyUser update input from user */\nexport type User_AgencyUserUpdateInput = {\n filter?: Maybe;\n data: AgencyUserUpdateInput;\n};\n\n/** Agent create input from user */\nexport type User_AgentCreateInput = {\n user?: Maybe;\n agency: AgentAgencyRelationInput;\n name?: Maybe;\n active?: Maybe;\n campaignAgentsRelation?: Maybe;\n agentsLeadRelation?: Maybe;\n taskAgentRelation?: Maybe;\n};\n\n/** Agent update input from user */\nexport type User_AgentUpdateInput = {\n filter?: Maybe;\n data: AgentUpdateInput;\n};\n\n/** ChannelMember create input from user */\nexport type User_ChannelMemberCreateInput = {\n channel: ChannelMemberChannelRelationInput;\n user?: Maybe;\n lastReadTS?: Maybe;\n};\n\n/** ChannelMember update input from user */\nexport type User_ChannelMemberUpdateInput = {\n filter?: Maybe;\n data: ChannelMemberUpdateInput;\n};\n\n/** EmailInboundServices create input from user */\nexport type User_EmailInboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n server: Scalars['String'];\n protocol?: Maybe;\n port?: Maybe;\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n lastChecked?: Maybe;\n};\n\n/** EmailInboundServices update input from user */\nexport type User_EmailInboundServiceUpdateInput = {\n filter?: Maybe;\n data: EmailInboundServiceUpdateInput;\n};\n\n/** EmailOutboundService create input from user */\nexport type User_EmailOutboundServiceCreateInput = {\n active?: Maybe;\n description?: Maybe;\n priority?: Maybe;\n server: Scalars['String'];\n port: Scalars['Int'];\n connection?: Maybe;\n username?: Maybe;\n password?: Maybe;\n agency?: Maybe;\n user?: Maybe;\n fallback?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** EmailOutboundService update input from user */\nexport type User_EmailOutboundServiceUpdateInput = {\n filter?: Maybe;\n data: EmailOutboundServiceUpdateInput;\n};\n\n/** GmailService create input from user */\nexport type User_GmailServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n name?: Maybe;\n email?: Maybe;\n avatar?: Maybe;\n refreshToken?: Maybe;\n accessToken?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** GmailService update input from user */\nexport type User_GmailServiceUpdateInput = {\n filter?: Maybe;\n data: GmailServiceUpdateInput;\n};\n\n/** InboundPhoneCall create input from user */\nexport type User_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall update input from user */\nexport type User_InboundPhoneCallUpdateInput = {\n filter?: Maybe;\n data: InboundPhoneCallUpdateInput;\n};\n\n/** Mail create input from user */\nexport type User_MailCreateInput = {\n subject?: Maybe;\n from?: Maybe;\n to?: Maybe;\n body: Scalars['String'];\n thread?: Maybe;\n archived?: Maybe;\n deleted?: Maybe;\n history?: Maybe;\n attachments?: Maybe;\n notificationRelation?: Maybe;\n type?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n lead?: Maybe;\n ccopy?: Maybe;\n};\n\n/** Mail update input from user */\nexport type User_MailUpdateInput = {\n filter?: Maybe;\n data: MailUpdateInput;\n};\n\n/** Manager create input from user */\nexport type User_ManagerCreateInput = {\n user?: Maybe;\n agency: ManagerAgencyRelationInput;\n};\n\n/** Manager update input from user */\nexport type User_ManagerUpdateInput = {\n filter?: Maybe;\n data: ManagerUpdateInput;\n};\n\n/** Meta create input from user */\nexport type User_MetaCreateInput = {\n /** Helper metadata for the user */\n name: Scalars['String'];\n value: Scalars['String'];\n user?: Maybe;\n};\n\n/** Meta update input from user */\nexport type User_MetaUpdateInput = {\n filter?: Maybe;\n data: MetaUpdateInput;\n};\n\n/** Notification create input from user */\nexport type User_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency: NotificationAgencyRelationInput;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from user */\nexport type User_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\n/** OutlookService create input from user */\nexport type User_OutlookServiceCreateInput = {\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n profile?: Maybe;\n agencyEmailService?: Maybe;\n};\n\n/** OutlookService update input from user */\nexport type User_OutlookServiceUpdateInput = {\n filter?: Maybe;\n data: OutlookServiceUpdateInput;\n};\n\nexport type User_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n origin?: Maybe;\n is8base?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n onboardingStep?: Maybe;\n _fullText?: Maybe;\n is_self?: Maybe;\n not_self?: Maybe;\n createdBy?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type User_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** PhoneCall create input from user */\nexport type User_PhoneCallCreateInput = {\n user?: Maybe;\n duration?: Maybe;\n to: Scalars['String'];\n /** DEPRECATED */\n fromNumber?: Maybe;\n lead?: Maybe;\n status?: Maybe;\n history?: Maybe;\n phoneCallDispositionRelation?: Maybe;\n /** Id of the call in the twilio platform */\n callSid?: Maybe;\n recording?: Maybe;\n agency?: Maybe;\n dialCallSid?: Maybe;\n price?: Maybe;\n from: PhoneCallFromRelationInput;\n conferenceSid?: Maybe;\n participants?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant create input from user */\nexport type User_PhoneCallParticipantCreateInput = {\n user?: Maybe;\n phone?: Maybe;\n status?: Maybe;\n answeredAt?: Maybe;\n completedAt?: Maybe;\n callSid?: Maybe;\n isInitialParticipant?: Maybe;\n inboundCall?: Maybe;\n outboundCall?: Maybe;\n duration?: Maybe;\n /** The cost of this participant in the call, in $ */\n price?: Maybe;\n priceUnit?: Maybe;\n};\n\n/** PhoneCallParticipant update input from user */\nexport type User_PhoneCallParticipantUpdateInput = {\n filter?: Maybe;\n data: PhoneCallParticipantUpdateInput;\n};\n\n/** PhoneCall update input from user */\nexport type User_PhoneCallUpdateInput = {\n filter?: Maybe;\n data: PhoneCallUpdateInput;\n};\n\n/** PhoneNumber create input from user */\nexport type User_PhoneNumberCreateInput = {\n number: SmartPhoneInput;\n status?: Maybe;\n priority?: Maybe;\n user?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n paid?: Maybe;\n sid?: Maybe;\n isFree?: Maybe;\n callFromRelation?: Maybe;\n smsFromRelation?: Maybe;\n campaign?: Maybe;\n inboundPhoneCallPhoneNumberRelation?: Maybe<\n PhoneNumberInboundPhoneCallPhoneNumberRelationRelationInput\n >;\n};\n\n/** PhoneNumber update input from user */\nexport type User_PhoneNumberUpdateInput = {\n filter?: Maybe;\n data: PhoneNumberUpdateInput;\n};\n\n/** SMSMessage create input from user */\nexport type User_SmsMessageCreateInput = {\n text: Scalars['String'];\n lead?: Maybe;\n files?: Maybe;\n agent?: Maybe;\n phoneNumber?: Maybe;\n user?: Maybe;\n history?: Maybe;\n agency: SmsMessageAgencyRelationInput;\n from?: Maybe;\n receivedFrom?: Maybe;\n type?: Maybe;\n to?: Maybe;\n smsMessageNotification?: Maybe;\n leadPhoneNumber?: Maybe;\n};\n\n/** SMSMessage update input from user */\nexport type User_SmsMessageUpdateInput = {\n filter?: Maybe;\n data: SmsMessageUpdateInput;\n};\n/** UserStatus create input from user */\nexport type User_UserStatusCreateInput = {\n user?: Maybe;\n current?: Maybe;\n status?: Maybe;\n};\n/** UserStatus update input from user */\nexport type User_UserStatusUpdateInput = {\n filter?: Maybe;\n data: UserStatusUpdateInput;\n};\n/** Users create input from userAdminRelation */\nexport type UserAdminRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from userAdminRelation */\nexport type UserAdminRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from userAgencyUserRelation */\nexport type UserAgencyUserRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from userAgencyUserRelation */\nexport type UserAgencyUserRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from userAgentRelation */\nexport type UserAgentRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from userAgentRelation */\nexport type UserAgentRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\nexport type UserBillingConfigurationResponse = {\n __typename?: 'UserBillingConfigurationResponse';\n isFreePlanAvailable: Scalars['Boolean'];\n isCancelSubscriptionAvailable: Scalars['Boolean'];\n availablePlans: Array;\n};\n\n/** Users create input */\nexport type UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users create many input */\nexport type UserCreateManyInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users delete input */\nexport type UserDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** UserFieldsPermissions create input */\nexport type UserFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n origin?: Maybe;\n is8base?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n onboardingStep?: Maybe;\n};\n\nexport type UserFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n origin?: Maybe;\n is8base?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n onboardingStep?: Maybe;\n _fullText?: Maybe;\n is_self?: Maybe;\n not_self?: Maybe;\n createdBy?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type UserGroupBy = {\n query: UserGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type UserGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n email?: Maybe>;\n status?: Maybe>;\n origin?: Maybe>;\n is8base?: Maybe>;\n firstName?: Maybe>;\n lastName?: Maybe>;\n cellPhone?: Maybe>;\n workPhone?: Maybe>;\n workPhoneExt?: Maybe>;\n gender?: Maybe>;\n birthday?: Maybe>;\n language?: Maybe>;\n timezone?: Maybe>;\n signature?: Maybe>;\n isEnableSignature?: Maybe>;\n onboardingStep?: Maybe>;\n createdBy?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n _group?: Maybe>;\n};\n\n/** Invitation Details */\nexport type UserInvitationDetails = {\n __typename?: 'UserInvitationDetails';\n uuid: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n email: Maybe;\n isRegistered: Maybe;\n invitedBy: Maybe;\n};\n\n/** User Invitation List */\nexport type UserInvitationList = {\n __typename?: 'UserInvitationList';\n items: Maybe>>;\n count: Maybe;\n};\n\nexport type UserKeyFilter = {\n id?: Maybe;\n email?: Maybe;\n};\n\n/** UserListResponse output */\nexport type UserListResponse = {\n __typename?: 'UserListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** UserLoginInput */\nexport type UserLoginInput = {\n email: Scalars['String'];\n password: Scalars['String'];\n fromInvitation?: Maybe;\n authProfileId?: Maybe;\n};\n\n/** Users create input from userManagerRelation */\nexport type UserManagerRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from userManagerRelation */\nexport type UserManagerRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** UserManyResponse output */\nexport type UserManyResponse = {\n __typename?: 'UserManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum UserOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n EmailAsc = 'email_ASC',\n EmailDesc = 'email_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n OriginAsc = 'origin_ASC',\n OriginDesc = 'origin_DESC',\n IsOwnerAsc = 'isOwner_ASC',\n IsOwnerDesc = 'isOwner_DESC',\n Is8baseAsc = 'is8base_ASC',\n Is8baseDesc = 'is8base_DESC',\n FirstNameAsc = 'firstName_ASC',\n FirstNameDesc = 'firstName_DESC',\n LastNameAsc = 'lastName_ASC',\n LastNameDesc = 'lastName_DESC',\n CellPhoneAsc = 'cellPhone_ASC',\n CellPhoneDesc = 'cellPhone_DESC',\n WorkPhoneAsc = 'workPhone_ASC',\n WorkPhoneDesc = 'workPhone_DESC',\n WorkPhoneExtAsc = 'workPhoneExt_ASC',\n WorkPhoneExtDesc = 'workPhoneExt_DESC',\n GenderAsc = 'gender_ASC',\n GenderDesc = 'gender_DESC',\n BirthdayAsc = 'birthday_ASC',\n BirthdayDesc = 'birthday_DESC',\n LanguageAsc = 'language_ASC',\n LanguageDesc = 'language_DESC',\n TimezoneAsc = 'timezone_ASC',\n TimezoneDesc = 'timezone_DESC',\n SignatureAsc = 'signature_ASC',\n SignatureDesc = 'signature_DESC',\n IsEnableSignatureAsc = 'isEnableSignature_ASC',\n IsEnableSignatureDesc = 'isEnableSignature_DESC',\n OnboardingStepAsc = 'onboardingStep_ASC',\n OnboardingStepDesc = 'onboardingStep_DESC',\n}\n\n/** Users subscription payload */\nexport type UserPayload = {\n __typename?: 'UserPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n/** User Permission */\nexport type UserPermission = {\n __typename?: 'UserPermission';\n resourceType: Maybe;\n resource: Maybe;\n permission: Maybe;\n};\n/** User Permission List */\nexport type UserPermissionList = {\n __typename?: 'UserPermissionList';\n items: Maybe>;\n count: Scalars['Int'];\n};\n/** Users create input from userPhoneCallRelation */\nexport type UserPhoneCallRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n/** Users update input from userPhoneCallRelation */\nexport type UserPhoneCallRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\nexport type UserRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n/** Files create input from users_avatar */\nexport type Users_Avatar_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n/** Files update input from users_avatar */\nexport type Users_Avatar_FileUpdateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n/** Campaign create input from users */\nexport type Users_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n/** Campaign update input from users */\nexport type Users_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n/** Lead create input from users */\nexport type Users_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n/** LeadTask create input from users */\nexport type Users_LeadTaskCreateInput = {\n title: Scalars['String'];\n lead?: Maybe;\n date?: Maybe;\n users?: Maybe;\n agents?: Maybe;\n priority?: Maybe;\n description?: Maybe;\n type: LeadTaskTypeRelationInput;\n status?: Maybe;\n history?: Maybe;\n agency: LeadTaskAgencyRelationInput;\n};\n/** LeadTask update input from users */\nexport type Users_LeadTaskUpdateInput = {\n filter?: Maybe;\n data: LeadTaskUpdateInput;\n};\n/** Lead update input from users */\nexport type Users_LeadUpdateInput = {\n filter?: Maybe;\n data: LeadUpdateInput;\n};\n/** Roles create input from users */\nexport type Users_RoleCreateInput = {\n name: Scalars['String'];\n description?: Maybe;\n users?: Maybe;\n permissions?: Maybe;\n apiTokens?: Maybe;\n authenticationProfiles?: Maybe;\n teamMembers?: Maybe;\n};\n/** Roles update input from users */\nexport type Users_RoleUpdateInput = {\n filter?: Maybe;\n data: RoleUpdateInput;\n};\n/** Users relation input */\nexport type UsersAgentSmsMessageRelationManyRelationInput = {\n connect?: Maybe>;\n};\n/** Users relation input */\nexport type UsersAgentSmsMessageRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAgentSmsMessageRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAssigneesCampaignRelationManyRelationInput = {\n connect?: Maybe>;\n};\n/** Users relation input */\nexport type UsersAssigneesCampaignRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAssigneesCampaignRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAssigneesLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n/** Users relation input */\nexport type UsersAssigneesLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAssigneesLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n/** Users relation input */\nexport type UsersAvatarManyRelationInput = {\n connect?: Maybe;\n};\n/** Users relation input */\nexport type UsersAvatarRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n/** Users relation input */\nexport type UsersAvatarUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n/** Users relation input */\nexport type UsersCallsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersCallsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersCallsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersCampaignUsersRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersCampaignUsersRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersCampaignUsersRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersChannelIdentitiesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersChannelIdentitiesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersChannelIdentitiesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersCurrentStatusManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersCurrentStatusRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersCurrentStatusUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Agency create input from userSelectedAgencyRelation */\nexport type UserSelectedAgencyRelation_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from userSelectedAgencyRelation */\nexport type UserSelectedAgencyRelation_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersEmailsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersEmailsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersEmailsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersGmailConfigurationsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersGmailConfigurationsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersGmailConfigurationsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInboundPhoneCallAceptedRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersInboundPhoneCallAceptedRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInboundPhoneCallAceptedRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInboundServicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersInboundServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInboundServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInbounPhoneCallRejectedRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersInbounPhoneCallRejectedRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersInbounPhoneCallRejectedRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users create input from usersLeadRelation */\nexport type UsersLeadRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from usersLeadRelation */\nexport type UsersLeadRelation_UserUpdateInput = {\n filter?: Maybe;\n data: UserUpdateInput;\n};\n\n/** Users relation input */\nexport type UsersMetaUserRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersMetaUserRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersMetaUserRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users create input from userSMSMessageRelation */\nexport type UserSmsMessageRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from userSMSMessageRelation */\nexport type UserSmsMessageRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersNotificationRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersNotificationRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersNotificationRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersNotificationTriggerRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersNotificationTriggerRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersNotificationTriggerRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type UserSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n email?: Maybe;\n status?: Maybe;\n origin?: Maybe;\n is8base?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n onboardingStep?: Maybe;\n createdBy?: Maybe;\n avatar?: Maybe;\n selectedAgency?: Maybe;\n currentStatus?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersOutboundServicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersOutboundServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersOutboundServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersOutlookServicesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersOutlookServicesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersOutlookServicesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersPhoneNumberRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersPhoneNumberRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersPhoneNumberRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersRolesManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersRolesRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersRolesUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersSelectedAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersSelectedAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersSelectedAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersTaskUserRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersTaskUserRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersTaskUserRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type UserStatus = {\n __typename?: 'UserStatus';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n user: Maybe;\n current: Maybe;\n status: Maybe;\n _description: Maybe;\n};\n\nexport type UserStatus_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n current?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type UserStatus_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** UserStatus create input */\nexport type UserStatusCreateInput = {\n user?: Maybe;\n current?: Maybe;\n status?: Maybe;\n};\n\n/** UserStatus create many input */\nexport type UserStatusCreateManyInput = {\n user: UserStatusUserManyRelationInput;\n current?: Maybe;\n status?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusCurrentManyRelationInput = {\n connect?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusCurrentRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusCurrentUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** UserStatus delete input */\nexport type UserStatusDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** UserStatusFieldsPermissions create input */\nexport type UserStatusFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n status?: Maybe;\n};\n\nexport type UserStatusFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n current?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type UserStatusGroupBy = {\n query: UserStatusGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type UserStatusGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n status?: Maybe>;\n createdBy?: Maybe;\n user?: Maybe;\n current?: Maybe;\n _group?: Maybe>;\n};\n\nexport type UserStatusKeyFilter = {\n id?: Maybe;\n};\n\n/** UserStatusListResponse output */\nexport type UserStatusListResponse = {\n __typename?: 'UserStatusListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** UserStatusManyResponse output */\nexport type UserStatusManyResponse = {\n __typename?: 'UserStatusManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum UserStatusOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n StatusAsc = 'status_ASC',\n StatusDesc = 'status_DESC',\n}\n\n/** UserStatus subscription payload */\nexport type UserStatusPayload = {\n __typename?: 'UserStatusPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type UserStatusRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type UserStatusSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n status?: Maybe;\n createdBy?: Maybe;\n user?: Maybe;\n current?: Maybe;\n};\n\n/** UserStatus subscription filter */\nexport type UserStatusSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** UserStatus update input */\nexport type UserStatusUpdateByFilterInput = {\n status?: Maybe>>;\n};\n\n/** UserStatus update input */\nexport type UserStatusUpdateInput = {\n id?: Maybe;\n user?: Maybe;\n current?: Maybe;\n status?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusUserManyRelationInput = {\n connect?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusUserRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** UserStatus relation input */\nexport type UserStatusUserUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Users subscription filter */\nexport type UserSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Users relation input */\nexport type UsersUserAdminRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserAdminRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserAdminRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserAgencyUserRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserAgencyUserRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserAgencyUserRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserAgentRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserAgentRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserAgentRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserManagerRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserManagerRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserManagerRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserPhoneCallRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserPhoneCallRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserPhoneCallRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUsersLeadRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUsersLeadRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUsersLeadRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserSmsMessageRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserSmsMessageRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserSmsMessageRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserUserStatusRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Users relation input */\nexport type UsersUserUserStatusRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Users relation input */\nexport type UsersUserUserStatusRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Notification create input from userTrigger */\nexport type UserTrigger_NotificationCreateInput = {\n read?: Maybe;\n /** This fileds must match the data model defined in the notification model in the repositories */\n type: Scalars['String'];\n userTrigger?: Maybe;\n user?: Maybe;\n agency: NotificationAgencyRelationInput;\n lead?: Maybe;\n campaign?: Maybe;\n email?: Maybe;\n disposition?: Maybe;\n sms?: Maybe;\n};\n\n/** Notification update input from userTrigger */\nexport type UserTrigger_NotificationUpdateInput = {\n filter?: Maybe;\n data: NotificationUpdateInput;\n};\n\n/** Users update input */\nexport type UserUpdateByFilterInput = {\n email?: Maybe>>;\n status?: Maybe>>;\n origin?: Maybe>>;\n isOwner?: Maybe>>;\n is8base?: Maybe>>;\n firstName?: Maybe>>;\n lastName?: Maybe>>;\n cellPhone?: Maybe>>;\n workPhone?: Maybe>>;\n workPhoneExt?: Maybe>>;\n gender?: Maybe>>;\n birthday?: Maybe>>;\n language?: Maybe>>;\n timezone?: Maybe>>;\n signature?: Maybe>>;\n isEnableSignature?: Maybe>>;\n onboardingStep?: Maybe>>;\n};\n\n/** Users update input */\nexport type UserUpdateInput = {\n id?: Maybe;\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users create input from userUserStatusRelation */\nexport type UserUserStatusRelation_UserCreateInput = {\n email: Scalars['String'];\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** Users update input from userUserStatusRelation */\nexport type UserUserStatusRelation_UserUpdateInput = {\n email?: Maybe;\n status?: Maybe;\n firstName?: Maybe;\n lastName?: Maybe;\n cellPhone?: Maybe;\n workPhone?: Maybe;\n workPhoneExt?: Maybe;\n gender?: Maybe;\n birthday?: Maybe;\n language?: Maybe;\n timezone?: Maybe;\n avatar?: Maybe;\n roles?: Maybe;\n userAgentRelation?: Maybe;\n userManagerRelation?: Maybe;\n userAdminRelation?: Maybe;\n metaUserRelation?: Maybe;\n agentSMSMessageRelation?: Maybe;\n signature?: Maybe;\n isEnableSignature?: Maybe;\n userUserStatusRelation?: Maybe;\n assigneesLeadRelation?: Maybe;\n assigneesCampaignRelation?: Maybe;\n usersLeadRelation?: Maybe;\n userSMSMessageRelation?: Maybe;\n campaignUsersRelation?: Maybe;\n taskUserRelation?: Maybe;\n userPhoneCallRelation?: Maybe;\n phoneNumberRelation?: Maybe;\n userAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n notificationTriggerRelation?: Maybe;\n channelIdentities?: Maybe;\n onboardingStep?: Maybe;\n selectedAgency?: Maybe;\n inbounPhoneCallRejectedRelation?: Maybe;\n inboundPhoneCallAceptedRelation?: Maybe;\n currentStatus?: Maybe;\n calls?: Maybe;\n gmailConfigurations?: Maybe;\n outboundServices?: Maybe;\n inboundServices?: Maybe;\n outlookServices?: Maybe;\n emails?: Maybe;\n};\n\n/** UUID Field Attributes */\nexport type UuidFieldTypeAttributes = {\n __typename?: 'UUIDFieldTypeAttributes';\n fieldSize: Maybe;\n};\n\nexport type Vendor = {\n __typename?: 'Vendor';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n vendorCampaignRelation: Maybe;\n agency: Maybe;\n _description: Maybe;\n};\n\nexport type VendorVendorCampaignRelationArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\n/** Campaign create input from vendor */\nexport type Vendor_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from vendor */\nexport type Vendor_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\nexport type Vendor_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type Vendor_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Vendor relation input */\nexport type VendorAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** Vendor relation input */\nexport type VendorAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** Vendor relation input */\nexport type VendorAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** Vendor create input from vendorCampaignRelation */\nexport type VendorCampaignRelation_VendorCreateInput = {\n name: Scalars['String'];\n vendorCampaignRelation?: Maybe;\n agency: VendorAgencyRelationInput;\n};\n\n/** Vendor update input from vendorCampaignRelation */\nexport type VendorCampaignRelation_VendorUpdateInput = {\n name?: Maybe;\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n};\n\n/** Vendor create input */\nexport type VendorCreateInput = {\n name: Scalars['String'];\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n};\n\n/** Vendor create many input */\nexport type VendorCreateManyInput = {\n name: Scalars['String'];\n vendorCampaignRelation?: Maybe;\n agency: VendorAgencyManyRelationInput;\n};\n\n/** Vendor delete input */\nexport type VendorDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** VendorFieldsPermissions create input */\nexport type VendorFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type VendorFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type VendorGroupBy = {\n query: VendorGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type VendorGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n _group?: Maybe>;\n};\n\nexport type VendorKeyFilter = {\n id?: Maybe;\n};\n\n/** VendorListResponse output */\nexport type VendorListResponse = {\n __typename?: 'VendorListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** VendorManyResponse output */\nexport type VendorManyResponse = {\n __typename?: 'VendorManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum VendorOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** Vendor subscription payload */\nexport type VendorPayload = {\n __typename?: 'VendorPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type VendorRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type VendorSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** Vendor subscription filter */\nexport type VendorSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** Vendor update input */\nexport type VendorUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** Vendor update input */\nexport type VendorUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n vendorCampaignRelation?: Maybe;\n agency?: Maybe;\n};\n\n/** Vendor relation input */\nexport type VendorVendorCampaignRelationManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** Vendor relation input */\nexport type VendorVendorCampaignRelationRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** Vendor relation input */\nexport type VendorVendorCampaignRelationUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** VerificationEmailResendInput */\nexport type VerificationEmailResendInput = {\n email: Scalars['String'];\n};\n\n/** View Attributes */\nexport type ViewAttributes = {\n __typename?: 'ViewAttributes';\n query: Maybe;\n};\n\n/** View Create Input */\nexport type ViewCreateInput = {\n name: Scalars['String'];\n displayName?: Maybe;\n query: Scalars['String'];\n description?: Maybe;\n};\n\n/** View Update Input */\nexport type ViewUpdateInput = {\n id: Scalars['ID'];\n name?: Maybe;\n displayName?: Maybe;\n query?: Maybe;\n description?: Maybe;\n};\n\nexport type VoiceMail = {\n __typename?: 'VoiceMail';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n phoneCall: Maybe;\n recordingSid: Maybe;\n /** url to retrieve the recording from twilio api */\n recordingUrl: Maybe;\n /** duration of the recording in seconds */\n duration: Maybe;\n _description: Maybe;\n};\n\n/** InboundPhoneCall create input from voicemail */\nexport type Voicemail_InboundPhoneCallCreateInput = {\n agency?: Maybe;\n to?: Maybe;\n from: Scalars['String'];\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\n/** InboundPhoneCall update input from voicemail */\nexport type Voicemail_InboundPhoneCallUpdateInput = {\n agency?: Maybe;\n to?: Maybe;\n from?: Maybe;\n status?: Maybe;\n dialCallSid?: Maybe;\n recording?: Maybe;\n rejectedBy?: Maybe;\n user?: Maybe;\n duration?: Maybe;\n callSid?: Maybe;\n participants?: Maybe;\n lead?: Maybe;\n conferenceSid?: Maybe;\n price?: Maybe;\n priceUnit?: Maybe;\n callDisposition?: Maybe;\n voicemail?: Maybe;\n};\n\nexport type VoiceMail_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n duration?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n phoneCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** VoiceMail create input */\nexport type VoiceMailCreateInput = {\n phoneCall?: Maybe;\n recordingSid: Scalars['String'];\n /** url to retrieve the recording from twilio api */\n recordingUrl: Scalars['String'];\n /** duration of the recording in seconds */\n duration?: Maybe;\n};\n\n/** VoiceMail create many input */\nexport type VoiceMailCreateManyInput = {\n phoneCall: VoiceMailPhoneCallManyRelationInput;\n recordingSid: Scalars['String'];\n /** url to retrieve the recording from twilio api */\n recordingUrl: Scalars['String'];\n /** duration of the recording in seconds */\n duration?: Maybe;\n};\n\n/** VoiceMail delete input */\nexport type VoiceMailDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** VoiceMailFieldsPermissions create input */\nexport type VoiceMailFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n duration?: Maybe;\n};\n\nexport type VoiceMailFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n duration?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n phoneCall?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type VoiceMailGroupBy = {\n query: VoiceMailGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type VoiceMailGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n recordingSid?: Maybe>;\n recordingUrl?: Maybe>;\n duration?: Maybe>;\n createdBy?: Maybe;\n phoneCall?: Maybe;\n _group?: Maybe>;\n};\n\nexport type VoiceMailKeyFilter = {\n id?: Maybe;\n recordingSid?: Maybe;\n};\n\n/** VoiceMailListResponse output */\nexport type VoiceMailListResponse = {\n __typename?: 'VoiceMailListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** VoiceMailManyResponse output */\nexport type VoiceMailManyResponse = {\n __typename?: 'VoiceMailManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport type VoiceMailMessage = {\n __typename?: 'VoiceMailMessage';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n agency: Maybe;\n active: Maybe;\n audio: Maybe;\n type: Maybe;\n _description: Maybe;\n};\n\n/** Files create input from voiceMailMessage_audio */\nexport type VoiceMailMessage_Audio_FileCreateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\n/** Files update input from voiceMailMessage_audio */\nexport type VoiceMailMessage_Audio_FileUpdateInput = {\n fileId?: Maybe;\n public?: Maybe;\n filename?: Maybe;\n meta?: Maybe;\n mods?: Maybe;\n users_avatar?: Maybe;\n teamMembers_avatar?: Maybe;\n sMSMessage_files?: Maybe;\n mail_attachments?: Maybe;\n voiceMailMessage_audio?: Maybe;\n message_attachments?: Maybe;\n systemSetting_file?: Maybe;\n};\n\nexport type VoiceMailMessage_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n audio?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type VoiceMailMessage_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAudioManyRelationInput = {\n connect?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAudioRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** VoiceMailMessage relation input */\nexport type VoiceMailMessageAudioUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** VoiceMailMessage create input */\nexport type VoiceMailMessageCreateInput = {\n name: Scalars['String'];\n agency?: Maybe;\n active?: Maybe;\n audio?: Maybe;\n type?: Maybe;\n};\n\n/** VoiceMailMessage create many input */\nexport type VoiceMailMessageCreateManyInput = {\n name: Scalars['String'];\n agency: VoiceMailMessageAgencyManyRelationInput;\n active?: Maybe;\n audio: VoiceMailMessageAudioManyRelationInput;\n type?: Maybe;\n};\n\n/** VoiceMailMessage delete input */\nexport type VoiceMailMessageDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** VoiceMailMessageFieldsPermissions create input */\nexport type VoiceMailMessageFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n type?: Maybe;\n};\n\nexport type VoiceMailMessageFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n type?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n audio?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type VoiceMailMessageGroupBy = {\n query: VoiceMailMessageGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type VoiceMailMessageGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n active?: Maybe>;\n type?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n audio?: Maybe;\n _group?: Maybe>;\n};\n\nexport type VoiceMailMessageKeyFilter = {\n id?: Maybe;\n};\n\n/** VoiceMailMessageListResponse output */\nexport type VoiceMailMessageListResponse = {\n __typename?: 'VoiceMailMessageListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** VoiceMailMessageManyResponse output */\nexport type VoiceMailMessageManyResponse = {\n __typename?: 'VoiceMailMessageManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum VoiceMailMessageOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n ActiveAsc = 'active_ASC',\n ActiveDesc = 'active_DESC',\n TypeAsc = 'type_ASC',\n TypeDesc = 'type_DESC',\n}\n\n/** VoiceMailMessage subscription payload */\nexport type VoiceMailMessagePayload = {\n __typename?: 'VoiceMailMessagePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type VoiceMailMessageRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from voiceMailMessages */\nexport type VoiceMailMessages_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from voiceMailMessages */\nexport type VoiceMailMessages_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type VoiceMailMessageSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n active?: Maybe;\n type?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n audio?: Maybe;\n};\n\n/** VoiceMailMessage subscription filter */\nexport type VoiceMailMessageSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** VoiceMailMessage update input */\nexport type VoiceMailMessageUpdateByFilterInput = {\n name?: Maybe>>;\n active?: Maybe>>;\n type?: Maybe>>;\n};\n\n/** VoiceMailMessage update input */\nexport type VoiceMailMessageUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n agency?: Maybe;\n active?: Maybe;\n audio?: Maybe;\n type?: Maybe;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum VoiceMailOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n RecordingSidAsc = 'recordingSid_ASC',\n RecordingSidDesc = 'recordingSid_DESC',\n RecordingUrlAsc = 'recordingUrl_ASC',\n RecordingUrlDesc = 'recordingUrl_DESC',\n DurationAsc = 'duration_ASC',\n DurationDesc = 'duration_DESC',\n}\n\n/** VoiceMail subscription payload */\nexport type VoiceMailPayload = {\n __typename?: 'VoiceMailPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\n/** VoiceMail relation input */\nexport type VoiceMailPhoneCallManyRelationInput = {\n connect?: Maybe;\n};\n\n/** VoiceMail relation input */\nexport type VoiceMailPhoneCallRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** VoiceMail relation input */\nexport type VoiceMailPhoneCallUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type VoiceMailSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n recordingSid?: Maybe;\n recordingUrl?: Maybe;\n duration?: Maybe;\n createdBy?: Maybe;\n phoneCall?: Maybe;\n};\n\n/** VoiceMail subscription filter */\nexport type VoiceMailSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** VoiceMail update input */\nexport type VoiceMailUpdateByFilterInput = {\n recordingSid?: Maybe>>;\n recordingUrl?: Maybe>>;\n duration?: Maybe>>;\n};\n\n/** VoiceMail update input */\nexport type VoiceMailUpdateInput = {\n id?: Maybe;\n phoneCall?: Maybe;\n recordingSid?: Maybe;\n /** url to retrieve the recording from twilio api */\n recordingUrl?: Maybe;\n /** duration of the recording in seconds */\n duration?: Maybe;\n};\n\nexport type WorkflowAutomation = {\n __typename?: 'WorkflowAutomation';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n conditions: Maybe;\n campaigns: Maybe;\n agency: Maybe;\n openings: Maybe;\n clicks: Maybe;\n shortUrls: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowAutomationConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowAutomationCampaignsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowAutomationOpeningsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowAutomationClicksArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowAutomationShortUrlsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowAutomation_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowAutomation_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** ShortUrl create input from workflowAutomation */\nexport type WorkflowAutomation_ShortUrlCreateInput = {\n url: Scalars['String'];\n path?: Maybe;\n marketingCampaign?: Maybe;\n workflowAutomation?: Maybe;\n};\n\n/** ShortUrl update input from workflowAutomation */\nexport type WorkflowAutomation_ShortUrlUpdateInput = {\n filter?: Maybe;\n data: ShortUrlUpdateInput;\n};\n\n/** WorkflowClick create input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowClickCreateInput = {\n workflowAutomation?: Maybe;\n url: Scalars['String'];\n};\n\n/** WorkflowClick update input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowClickUpdateInput = {\n filter?: Maybe;\n data: WorkflowClickUpdateInput;\n};\n\n/** WorkflowConditions create input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowConditionCreateInput = {\n name: Scalars['String'];\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions update input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowConditionUpdateInput = {\n filter?: Maybe;\n data: WorkflowConditionUpdateInput;\n};\n\n/** WorkflowEmailOpening create input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowEmailOpeningCreateInput = {\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead: WorkflowEmailOpeningLeadRelationInput;\n condition: Scalars['String'];\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening update input from workflowAutomation */\nexport type WorkflowAutomation_WorkflowEmailOpeningUpdateInput = {\n filter?: Maybe;\n data: WorkflowEmailOpeningUpdateInput;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationCampaignsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationCampaignsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationCampaignsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationClicksManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationClicksRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationClicksUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** WorkflowAutomation create input */\nexport type WorkflowAutomationCreateInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation create many input */\nexport type WorkflowAutomationCreateManyInput = {\n name: Scalars['String'];\n conditions?: Maybe;\n campaigns?: Maybe;\n agency: WorkflowAutomationAgencyManyRelationInput;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\n/** WorkflowAutomation delete input */\nexport type WorkflowAutomationDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowAutomationFieldsPermissions create input */\nexport type WorkflowAutomationFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type WorkflowAutomationFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowAutomationGroupBy = {\n query: WorkflowAutomationGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type WorkflowAutomationGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n _group?: Maybe>;\n};\n\nexport type WorkflowAutomationKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowAutomationListResponse output */\nexport type WorkflowAutomationListResponse = {\n __typename?: 'WorkflowAutomationListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** WorkflowAutomationManyResponse output */\nexport type WorkflowAutomationManyResponse = {\n __typename?: 'WorkflowAutomationManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationOpeningsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationOpeningsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationOpeningsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowAutomationOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** WorkflowAutomation subscription payload */\nexport type WorkflowAutomationPayload = {\n __typename?: 'WorkflowAutomationPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowAutomationRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from workflowAutomations */\nexport type WorkflowAutomations_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from workflowAutomations */\nexport type WorkflowAutomations_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationShortUrlsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationShortUrlsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowAutomation relation input */\nexport type WorkflowAutomationShortUrlsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\nexport type WorkflowAutomationSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** WorkflowAutomation subscription filter */\nexport type WorkflowAutomationSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowAutomation update input */\nexport type WorkflowAutomationUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** WorkflowAutomation update input */\nexport type WorkflowAutomationUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n conditions?: Maybe;\n campaigns?: Maybe;\n agency?: Maybe;\n openings?: Maybe;\n clicks?: Maybe;\n shortUrls?: Maybe;\n};\n\nexport type WorkflowClick = {\n __typename?: 'WorkflowClick';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n workflowAutomation: Maybe;\n url: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowClick_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowClick_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowClick create input */\nexport type WorkflowClickCreateInput = {\n workflowAutomation?: Maybe;\n url: Scalars['String'];\n};\n\n/** WorkflowClick create many input */\nexport type WorkflowClickCreateManyInput = {\n workflowAutomation: WorkflowClickWorkflowAutomationManyRelationInput;\n url: Scalars['String'];\n};\n\n/** WorkflowClick delete input */\nexport type WorkflowClickDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowClickFieldsPermissions create input */\nexport type WorkflowClickFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n url?: Maybe;\n};\n\nexport type WorkflowClickFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowClickGroupBy = {\n query: WorkflowClickGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type WorkflowClickGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n url?: Maybe>;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n _group?: Maybe>;\n};\n\nexport type WorkflowClickKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowClickListResponse output */\nexport type WorkflowClickListResponse = {\n __typename?: 'WorkflowClickListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n/** WorkflowClickManyResponse output */\nexport type WorkflowClickManyResponse = {\n __typename?: 'WorkflowClickManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowClickOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n UrlAsc = 'url_ASC',\n UrlDesc = 'url_DESC',\n}\n\n/** WorkflowClick subscription payload */\nexport type WorkflowClickPayload = {\n __typename?: 'WorkflowClickPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowClickRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\nexport type WorkflowClickSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n url?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n};\n\n/** WorkflowClick subscription filter */\nexport type WorkflowClickSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowClick update input */\nexport type WorkflowClickUpdateByFilterInput = {\n url?: Maybe>>;\n};\n\n/** WorkflowClick update input */\nexport type WorkflowClickUpdateInput = {\n id?: Maybe;\n workflowAutomation?: Maybe;\n url?: Maybe;\n};\n\n/** WorkflowClick relation input */\nexport type WorkflowClickWorkflowAutomationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowClick relation input */\nexport type WorkflowClickWorkflowAutomationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowClick relation input */\nexport type WorkflowClickWorkflowAutomationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type WorkflowCondition = {\n __typename?: 'WorkflowCondition';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n workflowAutomation: Maybe;\n emailTemplate: Maybe;\n smsTemplate: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowCondition_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowCondition_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowConditions create input */\nexport type WorkflowConditionCreateInput = {\n name: Scalars['String'];\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions create many input */\nexport type WorkflowConditionCreateManyInput = {\n name: Scalars['String'];\n workflowAutomation: WorkflowConditionsWorkflowAutomationManyRelationInput;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions delete input */\nexport type WorkflowConditionDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowConditionFieldsPermissions create input */\nexport type WorkflowConditionFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n};\n\nexport type WorkflowConditionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowConditionGroupBy = {\n query: WorkflowConditionGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type WorkflowConditionGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n _group?: Maybe>;\n};\n\nexport type WorkflowConditionKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowConditionListResponse output */\nexport type WorkflowConditionListResponse = {\n __typename?: 'WorkflowConditionListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** WorkflowConditionManyResponse output */\nexport type WorkflowConditionManyResponse = {\n __typename?: 'WorkflowConditionManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowConditionOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n}\n\n/** WorkflowConditions subscription payload */\nexport type WorkflowConditionPayload = {\n __typename?: 'WorkflowConditionPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowConditionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowEmailTemplate create input from workflowConditions */\nexport type WorkflowConditions_WorkflowEmailTemplateCreateInput = {\n name: Scalars['String'];\n subject: Scalars['String'];\n template: Scalars['String'];\n json: Scalars['JSON'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowEmailTemplate update input from workflowConditions */\nexport type WorkflowConditions_WorkflowEmailTemplateUpdateInput = {\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n json?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate create input from workflowConditions */\nexport type WorkflowConditions_WorkflowSmsTemplateCreateInput = {\n name: Scalars['String'];\n text: Scalars['String'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate update input from workflowConditions */\nexport type WorkflowConditions_WorkflowSmsTemplateUpdateInput = {\n name?: Maybe;\n text?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsEmailTemplateManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsEmailTemplateRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsEmailTemplateUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type WorkflowConditionSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsSmsTemplateManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsSmsTemplateRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsSmsTemplateUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowConditions subscription filter */\nexport type WorkflowConditionSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsWorkflowAutomationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsWorkflowAutomationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowConditions relation input */\nexport type WorkflowConditionsWorkflowAutomationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowConditions update input */\nexport type WorkflowConditionUpdateByFilterInput = {\n name?: Maybe>>;\n};\n\n/** WorkflowConditions update input */\nexport type WorkflowConditionUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n workflowAutomation?: Maybe;\n emailTemplate?: Maybe;\n smsTemplate?: Maybe;\n};\n\nexport type WorkflowEmailOpening = {\n __typename?: 'WorkflowEmailOpening';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n workflowAutomation: Maybe;\n campaign: Maybe;\n lead: Maybe;\n condition: Maybe;\n opened: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowEmailOpening_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowEmailOpening_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningCampaignManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningCampaignRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningCampaignUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowEmailOpening create input */\nexport type WorkflowEmailOpeningCreateInput = {\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition: Scalars['String'];\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening create many input */\nexport type WorkflowEmailOpeningCreateManyInput = {\n workflowAutomation: WorkflowEmailOpeningWorkflowAutomationManyRelationInput;\n campaign: WorkflowEmailOpeningCampaignManyRelationInput;\n lead: WorkflowEmailOpeningLeadManyRelationInput;\n condition: Scalars['String'];\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening delete input */\nexport type WorkflowEmailOpeningDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowEmailOpeningFieldsPermissions create input */\nexport type WorkflowEmailOpeningFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\nexport type WorkflowEmailOpeningFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowEmailOpeningGroupBy = {\n query: WorkflowEmailOpeningGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type WorkflowEmailOpeningGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n condition?: Maybe>;\n opened?: Maybe>;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n _group?: Maybe>;\n};\n\nexport type WorkflowEmailOpeningKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningLeadManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningLeadRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningLeadUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowEmailOpeningListResponse output */\nexport type WorkflowEmailOpeningListResponse = {\n __typename?: 'WorkflowEmailOpeningListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** WorkflowEmailOpeningManyResponse output */\nexport type WorkflowEmailOpeningManyResponse = {\n __typename?: 'WorkflowEmailOpeningManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowEmailOpeningOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n ConditionAsc = 'condition_ASC',\n ConditionDesc = 'condition_DESC',\n OpenedAsc = 'opened_ASC',\n OpenedDesc = 'opened_DESC',\n}\n\n/** WorkflowEmailOpening subscription payload */\nexport type WorkflowEmailOpeningPayload = {\n __typename?: 'WorkflowEmailOpeningPayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowEmailOpeningRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Campaign create input from workflowEmailOpenings */\nexport type WorkflowEmailOpenings_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from workflowEmailOpenings */\nexport type WorkflowEmailOpenings_CampaignUpdateInput = {\n name?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Lead create input from workflowEmailOpenings */\nexport type WorkflowEmailOpenings_LeadCreateInput = {\n firstName: Scalars['String'];\n middleName?: Maybe;\n lastName: Scalars['String'];\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\n/** Lead update input from workflowEmailOpenings */\nexport type WorkflowEmailOpenings_LeadUpdateInput = {\n firstName?: Maybe;\n middleName?: Maybe;\n lastName?: Maybe;\n address?: Maybe>>;\n /** DEPRECATED */\n phone?: Maybe;\n assignees?: Maybe;\n gender?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n phones?: Maybe>>;\n leadSource?: Maybe;\n /** DEPRECATED */\n status?: Maybe;\n agents?: Maybe;\n users?: Maybe;\n /** @DEPRECATED */\n type?: Maybe;\n notesLeadRelation?: Maybe;\n priority?: Maybe;\n tasksLeadRelation?: Maybe;\n contacts?: Maybe;\n email?: Maybe;\n birthMonth?: Maybe;\n birthDay?: Maybe;\n birthYear?: Maybe;\n creditScore?: Maybe;\n campaign?: Maybe;\n ifsScore?: Maybe;\n leadSMSMessage?: Maybe;\n leadLeadActionRelation?: Maybe;\n leadLeadTypeAutoRelation?: Maybe;\n leadLeadTypeCommercialAutoRelation?: Maybe<\n LeadLeadLeadTypeCommercialAutoRelationUpdateRelationInput\n >;\n leadLeadTypeGeneralLiabilityRelation?: Maybe<\n LeadLeadLeadTypeGeneralLiabilityRelationUpdateRelationInput\n >;\n leadLeadTypeLifeRelation?: Maybe;\n leadLeadTypeHomeRelation?: Maybe;\n leadLeadTypeWorkersCompensationRelation?: Maybe<\n LeadLeadLeadTypeWorkersCompensationRelationUpdateRelationInput\n >;\n leadLeadTypeEmployeeBenefitRelation?: Maybe<\n LeadLeadLeadTypeEmployeeBenefitRelationUpdateRelationInput\n >;\n drivers?: Maybe;\n leadLeadStageHistoryRelation?: Maybe;\n stages?: Maybe;\n leadPhoneCallRelation?: Maybe;\n amount?: Maybe;\n leadMailThreadRelation?: Maybe;\n history?: Maybe;\n leadLeadDispositionRelation?: Maybe;\n callingDelay?: Maybe;\n stage?: Maybe;\n notificationRelation?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflowEmailOpenings?: Maybe;\n creationDate?: Maybe;\n importedLeadId?: Maybe;\n imported?: Maybe;\n leadLeadPhoneNumberRelation?: Maybe;\n lastHistoryActionData?: Maybe;\n lastHistoryActionType?: Maybe;\n inboundCalls?: Maybe;\n callCadence?: Maybe;\n emails?: Maybe;\n};\n\nexport type WorkflowEmailOpeningSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n createdBy?: Maybe;\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n};\n\n/** WorkflowEmailOpening subscription filter */\nexport type WorkflowEmailOpeningSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowEmailOpening update input */\nexport type WorkflowEmailOpeningUpdateByFilterInput = {\n condition?: Maybe>>;\n opened?: Maybe>>;\n};\n\n/** WorkflowEmailOpening update input */\nexport type WorkflowEmailOpeningUpdateInput = {\n id?: Maybe;\n workflowAutomation?: Maybe;\n campaign?: Maybe;\n lead?: Maybe;\n condition?: Maybe;\n opened?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningWorkflowAutomationManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningWorkflowAutomationRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowEmailOpening relation input */\nexport type WorkflowEmailOpeningWorkflowAutomationUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\nexport type WorkflowEmailTemplate = {\n __typename?: 'WorkflowEmailTemplate';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n subject: Maybe;\n template: Maybe;\n json: Maybe;\n agency: Maybe;\n workflowConditions: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowEmailTemplateWorkflowConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowEmailTemplate_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowEmailTemplate_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowEmailTemplate create input */\nexport type WorkflowEmailTemplateCreateInput = {\n name: Scalars['String'];\n subject: Scalars['String'];\n template: Scalars['String'];\n json: Scalars['JSON'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowEmailTemplate create many input */\nexport type WorkflowEmailTemplateCreateManyInput = {\n name: Scalars['String'];\n subject: Scalars['String'];\n template: Scalars['String'];\n json: Scalars['JSON'];\n agency: WorkflowEmailTemplateAgencyManyRelationInput;\n workflowConditions?: Maybe;\n};\n/** WorkflowEmailTemplate delete input */\nexport type WorkflowEmailTemplateDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowEmailTemplateFieldsPermissions create input */\nexport type WorkflowEmailTemplateFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n json?: Maybe;\n};\nexport type WorkflowEmailTemplateFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\nexport type WorkflowEmailTemplateGroupBy = {\n query: WorkflowEmailTemplateGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\nexport type WorkflowEmailTemplateGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n subject?: Maybe>;\n template?: Maybe>;\n json?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n _group?: Maybe>;\n};\nexport type WorkflowEmailTemplateKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowEmailTemplateListResponse output */\nexport type WorkflowEmailTemplateListResponse = {\n __typename?: 'WorkflowEmailTemplateListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** WorkflowEmailTemplateManyResponse output */\nexport type WorkflowEmailTemplateManyResponse = {\n __typename?: 'WorkflowEmailTemplateManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowEmailTemplateOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n SubjectAsc = 'subject_ASC',\n SubjectDesc = 'subject_DESC',\n TemplateAsc = 'template_ASC',\n TemplateDesc = 'template_DESC',\n JsonAsc = 'json_ASC',\n JsonDesc = 'json_DESC',\n}\n\n/** WorkflowEmailTemplate subscription payload */\nexport type WorkflowEmailTemplatePayload = {\n __typename?: 'WorkflowEmailTemplatePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowEmailTemplateRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from workflowEmailTemplates */\nexport type WorkflowEmailTemplates_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from workflowEmailTemplates */\nexport type WorkflowEmailTemplates_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type WorkflowEmailTemplateSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** WorkflowEmailTemplate subscription filter */\nexport type WorkflowEmailTemplateSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowEmailTemplate update input */\nexport type WorkflowEmailTemplateUpdateByFilterInput = {\n name?: Maybe>>;\n subject?: Maybe>>;\n template?: Maybe>>;\n json?: Maybe>>;\n};\n\n/** WorkflowEmailTemplate update input */\nexport type WorkflowEmailTemplateUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n subject?: Maybe;\n template?: Maybe;\n json?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateWorkflowConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateWorkflowConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowEmailTemplate relation input */\nexport type WorkflowEmailTemplateWorkflowConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** Campaign create input from workflows */\nexport type Workflows_CampaignCreateInput = {\n name: Scalars['String'];\n agents?: Maybe;\n users?: Maybe;\n /** DEPRECATED */\n type?: Maybe;\n priority?: Maybe;\n /** DEPRECATED */\n code?: Maybe;\n vendor?: Maybe;\n campaignLeadRelation?: Maybe;\n status?: Maybe;\n agency?: Maybe;\n assignees?: Maybe;\n automaticCalls?: Maybe;\n /** DEPRECATED */\n amount?: Maybe;\n startsAt?: Maybe;\n endsAt?: Maybe;\n notificationRelation?: Maybe;\n emailCampaign?: Maybe;\n marketingCampaignOpenings?: Maybe;\n workflows?: Maybe;\n workflowEmailOpenings?: Maybe;\n phoneNumber?: Maybe;\n};\n\n/** Campaign update input from workflows */\nexport type Workflows_CampaignUpdateInput = {\n filter?: Maybe;\n data: CampaignUpdateInput;\n};\n\nexport type WorkflowSmsTemplate = {\n __typename?: 'WorkflowSmsTemplate';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n name: Maybe;\n text: Maybe;\n agency: Maybe;\n workflowConditions: Maybe;\n _description: Maybe;\n};\n\nexport type WorkflowSmsTemplateWorkflowConditionsArgs = {\n filter?: Maybe;\n orderBy?: Maybe>>;\n sort?: Maybe>;\n skip?: Maybe;\n after?: Maybe;\n before?: Maybe;\n first?: Maybe;\n last?: Maybe;\n groupBy?: Maybe;\n};\n\nexport type WorkflowSmsTemplate_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowSmsTemplate_PermissionRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateAgencyManyRelationInput = {\n connect?: Maybe;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateAgencyRelationInput = {\n connect?: Maybe;\n create?: Maybe;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateAgencyUpdateRelationInput = {\n connect?: Maybe;\n disconnect?: Maybe;\n reconnect?: Maybe;\n create?: Maybe;\n update?: Maybe;\n};\n\n/** WorkflowSmsTemplate create input */\nexport type WorkflowSmsTemplateCreateInput = {\n name: Scalars['String'];\n text: Scalars['String'];\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate create many input */\nexport type WorkflowSmsTemplateCreateManyInput = {\n name: Scalars['String'];\n text: Scalars['String'];\n agency: WorkflowSmsTemplateAgencyManyRelationInput;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate delete input */\nexport type WorkflowSmsTemplateDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** WorkflowSmsTemplateFieldsPermissions create input */\nexport type WorkflowSmsTemplateFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n};\n\nexport type WorkflowSmsTemplateFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type WorkflowSmsTemplateGroupBy = {\n query: WorkflowSmsTemplateGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type WorkflowSmsTemplateGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n name?: Maybe>;\n text?: Maybe>;\n createdBy?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n _group?: Maybe>;\n};\n\nexport type WorkflowSmsTemplateKeyFilter = {\n id?: Maybe;\n};\n\n/** WorkflowSmsTemplateListResponse output */\nexport type WorkflowSmsTemplateListResponse = {\n __typename?: 'WorkflowSmsTemplateListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** WorkflowSmsTemplateManyResponse output */\nexport type WorkflowSmsTemplateManyResponse = {\n __typename?: 'WorkflowSmsTemplateManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum WorkflowSmsTemplateOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n NameAsc = 'name_ASC',\n NameDesc = 'name_DESC',\n TextAsc = 'text_ASC',\n TextDesc = 'text_DESC',\n}\n\n/** WorkflowSmsTemplate subscription payload */\nexport type WorkflowSmsTemplatePayload = {\n __typename?: 'WorkflowSmsTemplatePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type WorkflowSmsTemplateRelationFilter = {\n some?: Maybe;\n every?: Maybe;\n none?: Maybe;\n};\n\n/** Agency create input from workflowSmsTemplates */\nexport type WorkflowSmsTemplates_AgencyCreateInput = {\n name: Scalars['String'];\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\n/** Agency update input from workflowSmsTemplates */\nexport type WorkflowSmsTemplates_AgencyUpdateInput = {\n name?: Maybe;\n quoteOfDay?: Maybe;\n agencyAgentRelation?: Maybe;\n agencyManagerRelation?: Maybe;\n agencyInvitationAgencyRelation?: Maybe;\n company?: Maybe;\n agencyCampaignRelation?: Maybe;\n phoneNumbersRelation?: Maybe;\n agencyOutboundServiceRelation?: Maybe;\n mailThreadAgencyRelation?: Maybe;\n agencyInboundServiceRelation?: Maybe;\n automaticCallConfigRelation?: Maybe;\n shouldRecordCalls?: Maybe;\n phoneCalls?: Maybe;\n phoneCallSettings?: Maybe;\n voiceMailMessages?: Maybe;\n ifsScores?: Maybe;\n agencyAgencyUserRelation?: Maybe;\n notificationRelation?: Maybe;\n marketingSmsTemplates?: Maybe;\n ifsScore?: Maybe>>;\n marketingCampaigns?: Maybe;\n marketingEmailTemplates?: Maybe;\n workflowEmailTemplates?: Maybe;\n workflowSmsTemplates?: Maybe;\n workflowAutomations?: Maybe;\n userSelectedAgencyRelation?: Maybe;\n chatChannelRelation?: Maybe;\n agencySMSMessageRelation?: Maybe;\n inboundPhoneCallAgencyRelation?: Maybe;\n agencyLeadTaskRelation?: Maybe;\n agencyVendorRelation?: Maybe;\n gmailConfigurations?: Maybe;\n outlookServices?: Maybe;\n emailService?: Maybe;\n emails?: Maybe;\n};\n\nexport type WorkflowSmsTemplateSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n name?: Maybe;\n text?: Maybe;\n createdBy?: Maybe;\n agency?: Maybe;\n};\n\n/** WorkflowSmsTemplate subscription filter */\nexport type WorkflowSmsTemplateSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** WorkflowSmsTemplate update input */\nexport type WorkflowSmsTemplateUpdateByFilterInput = {\n name?: Maybe>>;\n text?: Maybe>>;\n};\n\n/** WorkflowSmsTemplate update input */\nexport type WorkflowSmsTemplateUpdateInput = {\n id?: Maybe;\n name?: Maybe;\n text?: Maybe;\n agency?: Maybe;\n workflowConditions?: Maybe;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateWorkflowConditionsManyRelationInput = {\n connect?: Maybe>;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateWorkflowConditionsRelationInput = {\n connect?: Maybe>;\n create?: Maybe>>;\n};\n\n/** WorkflowSmsTemplate relation input */\nexport type WorkflowSmsTemplateWorkflowConditionsUpdateRelationInput = {\n connect?: Maybe>;\n disconnect?: Maybe>;\n reconnect?: Maybe>;\n create?: Maybe>>;\n update?: Maybe>>;\n};\n\n/** WorkspaceCreateMutationInput */\nexport type WorkspaceCreateMutationInput = {\n name: Scalars['String'];\n image?: Maybe;\n billingPlanId?: Maybe;\n organizationId?: Maybe;\n kind?: Maybe;\n description?: Maybe;\n};\n\nexport type WorkspaceCreateResponse = {\n __typename?: 'WorkspaceCreateResponse';\n id: Maybe;\n name: Maybe;\n kind: Maybe;\n description: Maybe;\n};\n\n/** WorkspaceDeleteMutationInput */\nexport type WorkspaceDeleteMutationInput = {\n id: Scalars['ID'];\n};\n\nexport type WorkspaceImage = {\n __typename?: 'WorkspaceImage';\n id: Maybe;\n downloadUrl: Maybe;\n};\n\n/** LoginResponseWorkspace name and id */\nexport type WorkspaceInfo = {\n __typename?: 'WorkspaceInfo';\n workspace: Maybe;\n name: Maybe;\n};\n\nexport type WorkspaceItem = {\n __typename?: 'WorkspaceItem';\n id: Scalars['ID'];\n name: Scalars['String'];\n isOwner: Scalars['Boolean'];\n plan: Maybe;\n nextPlan: Maybe;\n lastAccess: Maybe;\n createdAt: Maybe;\n teamMemberCount: Maybe;\n region: Maybe;\n owner: Maybe;\n image: Maybe;\n isCiCdEnabled: Maybe;\n apiHost: Maybe;\n webSocket: Maybe;\n organization: Maybe;\n kind: Maybe;\n description: Maybe;\n};\n\n/** Workspace Kind */\nexport enum WorkspaceKind {\n Frontend = 'frontend',\n General = 'general',\n}\n\n/** WorkspaceListResponse output */\nexport type WorkspaceListResponse = {\n __typename?: 'WorkspaceListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\nexport enum WorkspaceStatus {\n Active = 'active',\n Blocked = 'blocked',\n Canceled = 'canceled',\n Suspended = 'suspended',\n Canceling = 'canceling',\n Pending = 'pending',\n}\n\nexport type WorkspaceTransferItem = {\n __typename?: 'WorkspaceTransferItem';\n workspaceId: Scalars['String'];\n workspaceName: Scalars['String'];\n ownerEmail: Scalars['String'];\n ownerFirstName: Maybe;\n ownerLastName: Maybe;\n newOwnerEmail: Scalars['String'];\n newOwnerFirstName: Maybe;\n newOwnerLastName: Maybe;\n status: Scalars['String'];\n};\n\n/** WorkspaceUpdateMutationInput */\nexport type WorkspaceUpdateMutationInput = {\n id: Scalars['ID'];\n name?: Maybe;\n image?: Maybe;\n description?: Maybe;\n};\n\nexport type WorkspaceUpdateResponse = {\n __typename?: 'WorkspaceUpdateResponse';\n id: Maybe;\n name: Maybe;\n image: Maybe;\n description: Maybe;\n};\n\nexport type XTable = {\n __typename?: 'XTable';\n id: Maybe;\n createdAt: Maybe;\n updatedAt: Maybe;\n deletedAt: Maybe;\n createdBy: Maybe;\n test: Maybe;\n test2: Maybe;\n test3: Maybe;\n _description: Maybe;\n};\n\nexport type XTable_PermissionFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n test?: Maybe;\n test2?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\n/** XTable create input */\nexport type XTableCreateInput = {\n test?: Maybe;\n test2?: Maybe;\n test3?: Maybe;\n};\n\n/** XTable create many input */\nexport type XTableCreateManyInput = {\n test?: Maybe;\n test2?: Maybe;\n test3?: Maybe;\n};\n\n/** XTable delete input */\nexport type XTableDeleteInput = {\n id?: Maybe;\n force?: Maybe;\n};\n\n/** XTableFieldsPermissions create input */\nexport type XTableFieldsPermissions = {\n createdAt?: Maybe;\n updatedAt?: Maybe;\n test?: Maybe;\n test2?: Maybe;\n test3?: Maybe;\n};\n\nexport type XTableFilter = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n test?: Maybe;\n test2?: Maybe;\n _fullText?: Maybe;\n createdBy?: Maybe;\n AND?: Maybe>;\n OR?: Maybe>;\n};\n\nexport type XTableGroupBy = {\n query: XTableGroupByQuery;\n sort?: Maybe>;\n having?: Maybe;\n first?: Maybe;\n last?: Maybe;\n skip?: Maybe;\n};\n\nexport type XTableGroupByQuery = {\n id?: Maybe>;\n createdAt?: Maybe>;\n updatedAt?: Maybe>;\n test?: Maybe>;\n test2?: Maybe>;\n test3?: Maybe>;\n createdBy?: Maybe;\n _group?: Maybe>;\n};\n\nexport type XTableKeyFilter = {\n id?: Maybe;\n};\n\n/** XTableListResponse output */\nexport type XTableListResponse = {\n __typename?: 'XTableListResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n /** Aggregated items */\n groups: Array;\n};\n\n/** XTableManyResponse output */\nexport type XTableManyResponse = {\n __typename?: 'XTableManyResponse';\n /** List items */\n items: Array;\n /** List items count */\n count: Scalars['Int'];\n};\n\n/** No longer supported. Use `sort` instead. */\nexport enum XTableOrderBy {\n IdAsc = 'id_ASC',\n IdDesc = 'id_DESC',\n CreatedAtAsc = 'createdAt_ASC',\n CreatedAtDesc = 'createdAt_DESC',\n UpdatedAtAsc = 'updatedAt_ASC',\n UpdatedAtDesc = 'updatedAt_DESC',\n DeletedAtAsc = 'deletedAt_ASC',\n DeletedAtDesc = 'deletedAt_DESC',\n TestAsc = 'test_ASC',\n TestDesc = 'test_DESC',\n Test2Asc = 'test2_ASC',\n Test2Desc = 'test2_DESC',\n Test3Asc = 'test3_ASC',\n Test3Desc = 'test3_DESC',\n}\n\n/** XTable subscription payload */\nexport type XTablePayload = {\n __typename?: 'XTablePayload';\n mutation: MutationType;\n node: Maybe;\n updatedFields: Maybe>>;\n previousValues: Maybe;\n};\n\nexport type XTableSort = {\n id?: Maybe;\n createdAt?: Maybe;\n updatedAt?: Maybe;\n deletedAt?: Maybe;\n test?: Maybe;\n test2?: Maybe;\n createdBy?: Maybe;\n};\n\n/** XTable subscription filter */\nexport type XTableSubscriptionFilter = {\n mutation_in?: Maybe>>;\n node?: Maybe;\n updatedFields?: Maybe;\n};\n\n/** XTable update input */\nexport type XTableUpdateByFilterInput = {\n test?: Maybe>>;\n test2?: Maybe>>;\n test3?: Maybe>>;\n};\n\n/** XTable update input */\nexport type XTableUpdateInput = {\n id?: Maybe;\n test?: Maybe;\n test2?: Maybe;\n test3?: Maybe;\n};\n\nexport type CampaignFragmentFragment = {\n __typename?: 'Campaign';\n id: Maybe;\n name: Maybe;\n status: Maybe;\n createdAt: Maybe;\n priority: Maybe;\n automaticCalls: Maybe;\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n assignees: Maybe<{\n __typename?: 'UserListResponse';\n items: Array<{\n __typename?: 'User';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe<{ __typename?: 'File'; id: Maybe; downloadUrl: Maybe }>;\n }>;\n }>;\n workflows: Maybe<{\n __typename?: 'WorkflowAutomationListResponse';\n items: Array<{ __typename?: 'WorkflowAutomation'; id: Maybe; name: Maybe }>;\n }>;\n vendor: Maybe<{ __typename?: 'Vendor'; name: Maybe; id: Maybe }>;\n campaignLeadRelation: Maybe<{ __typename?: 'LeadListResponse'; count: number }>;\n phoneNumber: Maybe<{\n __typename?: 'PhoneNumber';\n id: Maybe;\n number: Maybe<{ __typename?: 'SmartPhone'; number: Maybe; code: Maybe }>;\n }>;\n};\n\nexport type FetchCampaignDetailsQueryVariables = Exact<{\n id: Scalars['ID'];\n}>;\n\nexport type FetchCampaignDetailsQuery = {\n __typename?: 'Query';\n campaign: Maybe<{\n __typename?: 'Campaign';\n id: Maybe;\n name: Maybe;\n status: Maybe;\n createdAt: Maybe;\n priority: Maybe;\n automaticCalls: Maybe;\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n assignees: Maybe<{\n __typename?: 'UserListResponse';\n items: Array<{\n __typename?: 'User';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe<{ __typename?: 'File'; id: Maybe; downloadUrl: Maybe }>;\n }>;\n }>;\n workflows: Maybe<{\n __typename?: 'WorkflowAutomationListResponse';\n items: Array<{ __typename?: 'WorkflowAutomation'; id: Maybe; name: Maybe }>;\n }>;\n vendor: Maybe<{ __typename?: 'Vendor'; name: Maybe; id: Maybe }>;\n campaignLeadRelation: Maybe<{ __typename?: 'LeadListResponse'; count: number }>;\n phoneNumber: Maybe<{\n __typename?: 'PhoneNumber';\n id: Maybe;\n number: Maybe<{ __typename?: 'SmartPhone'; number: Maybe; code: Maybe }>;\n }>;\n }>;\n};\n\nexport type FetchCampaignsListQueryVariables = Exact<{\n skip?: Maybe;\n first?: Maybe;\n filter?: Maybe;\n sort?: Maybe | CampaignSort>;\n orderBy?: Maybe> | Maybe>;\n}>;\n\nexport type FetchCampaignsListQuery = {\n __typename?: 'Query';\n campaignsList: {\n __typename?: 'CampaignListResponse';\n count: number;\n items: Array<{\n __typename?: 'Campaign';\n id: Maybe;\n name: Maybe;\n status: Maybe;\n createdAt: Maybe;\n priority: Maybe;\n automaticCalls: Maybe;\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n assignees: Maybe<{\n __typename?: 'UserListResponse';\n items: Array<{\n __typename?: 'User';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe<{ __typename?: 'File'; id: Maybe; downloadUrl: Maybe }>;\n }>;\n }>;\n workflows: Maybe<{\n __typename?: 'WorkflowAutomationListResponse';\n items: Array<{ __typename?: 'WorkflowAutomation'; id: Maybe; name: Maybe }>;\n }>;\n vendor: Maybe<{ __typename?: 'Vendor'; name: Maybe; id: Maybe }>;\n campaignLeadRelation: Maybe<{ __typename?: 'LeadListResponse'; count: number }>;\n phoneNumber: Maybe<{\n __typename?: 'PhoneNumber';\n id: Maybe;\n number: Maybe<{ __typename?: 'SmartPhone'; number: Maybe; code: Maybe }>;\n }>;\n }>;\n };\n};\n\nexport type FetchLightCampaignsListQueryVariables = Exact<{\n skip?: Maybe;\n first?: Maybe;\n filter?: Maybe;\n sort?: Maybe | CampaignSort>;\n orderBy?: Maybe> | Maybe>;\n}>;\n\nexport type FetchLightCampaignsListQuery = {\n __typename?: 'Query';\n campaignsList: {\n __typename?: 'CampaignListResponse';\n count: number;\n items: Array<{ __typename?: 'Campaign'; id: Maybe; name: Maybe }>;\n };\n};\n\nexport type FetchCampaignProgressQueryVariables = Exact<{\n campaignId?: Maybe;\n}>;\n\nexport type FetchCampaignProgressQuery = {\n __typename?: 'Query';\n campaign: Maybe<{\n __typename?: 'Campaign';\n campaignLeadRelation: Maybe<{\n __typename?: 'LeadListResponse';\n count: number;\n groups: Array<{\n __typename?: 'GroupByResponse';\n count: Maybe;\n amount: Maybe;\n }>;\n }>;\n }>;\n leadsList: {\n __typename?: 'LeadListResponse';\n count: number;\n groups: Array<{ __typename?: 'GroupByResponse'; amount: Maybe }>;\n };\n};\n\nexport type CreateCampaignMutationVariables = Exact<{\n data: CampaignCreateInput;\n}>;\n\nexport type CreateCampaignMutation = {\n __typename?: 'Mutation';\n campaignCreate: {\n __typename?: 'Campaign';\n id: Maybe;\n name: Maybe;\n status: Maybe;\n createdAt: Maybe;\n priority: Maybe;\n automaticCalls: Maybe;\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n assignees: Maybe<{\n __typename?: 'UserListResponse';\n items: Array<{\n __typename?: 'User';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe<{ __typename?: 'File'; id: Maybe; downloadUrl: Maybe }>;\n }>;\n }>;\n workflows: Maybe<{\n __typename?: 'WorkflowAutomationListResponse';\n items: Array<{ __typename?: 'WorkflowAutomation'; id: Maybe; name: Maybe }>;\n }>;\n vendor: Maybe<{ __typename?: 'Vendor'; name: Maybe; id: Maybe }>;\n campaignLeadRelation: Maybe<{ __typename?: 'LeadListResponse'; count: number }>;\n phoneNumber: Maybe<{\n __typename?: 'PhoneNumber';\n id: Maybe;\n number: Maybe<{ __typename?: 'SmartPhone'; number: Maybe; code: Maybe }>;\n }>;\n };\n};\n\nexport type DeleteCampaignMutationVariables = Exact<{\n data: CampaignDeleteInput;\n}>;\n\nexport type DeleteCampaignMutation = {\n __typename?: 'Mutation';\n campaignDelete: Maybe<{ __typename?: 'SuccessResponse'; success: Maybe }>;\n};\n\nexport type UpdateCampaignMutationVariables = Exact<{\n data: CampaignUpdateInput;\n}>;\n\nexport type UpdateCampaignMutation = {\n __typename?: 'Mutation';\n campaignUpdate: {\n __typename?: 'Campaign';\n id: Maybe;\n name: Maybe;\n status: Maybe;\n createdAt: Maybe;\n priority: Maybe;\n automaticCalls: Maybe;\n amount: Maybe;\n startsAt: Maybe;\n endsAt: Maybe;\n assignees: Maybe<{\n __typename?: 'UserListResponse';\n items: Array<{\n __typename?: 'User';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n avatar: Maybe<{ __typename?: 'File'; id: Maybe; downloadUrl: Maybe }>;\n }>;\n }>;\n workflows: Maybe<{\n __typename?: 'WorkflowAutomationListResponse';\n items: Array<{ __typename?: 'WorkflowAutomation'; id: Maybe; name: Maybe }>;\n }>;\n vendor: Maybe<{ __typename?: 'Vendor'; name: Maybe; id: Maybe }>;\n campaignLeadRelation: Maybe<{ __typename?: 'LeadListResponse'; count: number }>;\n phoneNumber: Maybe<{\n __typename?: 'PhoneNumber';\n id: Maybe;\n number: Maybe<{ __typename?: 'SmartPhone'; number: Maybe; code: Maybe }>;\n }>;\n };\n};\n\nexport type FetchCampaignLeadsQueryVariables = Exact<{\n campaignId?: Maybe;\n first?: Maybe;\n skip?: Maybe;\n}>;\n\nexport type FetchCampaignLeadsQuery = {\n __typename?: 'Query';\n leadsList: {\n __typename?: 'LeadListResponse';\n items: Array<{\n __typename?: 'Lead';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n }>;\n };\n};\n\nexport type VoicemailListQueryVariables = Exact<{\n agency: Scalars['ID'];\n first?: Maybe;\n skip?: Maybe;\n}>;\n\nexport type VoicemailListQuery = {\n __typename?: 'Query';\n voiceMailsList: {\n __typename?: 'VoiceMailListResponse';\n count: number;\n items: Array<{\n __typename?: 'VoiceMail';\n recordingUrl: Maybe;\n id: Maybe;\n createdAt: Maybe;\n duration: Maybe;\n phoneCall: Maybe<{\n __typename?: 'InboundPhoneCall';\n createdAt: Maybe;\n from: Maybe;\n to: Maybe<{\n __typename?: 'PhoneNumber';\n number: Maybe<{ __typename?: 'SmartPhone'; code: Maybe; number: Maybe }>;\n }>;\n lead: Maybe<{\n __typename?: 'Lead';\n id: Maybe;\n firstName: Maybe;\n lastName: Maybe;\n }>;\n }>;\n }>;\n };\n};\n\nexport type VoiceailDeleteMutationVariables = Exact<{\n id: Scalars['ID'];\n}>;\nexport type VoiceailDeleteMutation = {\n __typename?: 'Mutation';\n voiceMailDelete: Maybe<{ __typename?: 'SuccessResponse'; success: Maybe }>;\n};\nexport const CampaignFragmentFragmentDoc = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'CampaignFragment' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Campaign' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n { kind: 'Field', name: { kind: 'Name', value: 'status' } },\n { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },\n { kind: 'Field', name: { kind: 'Name', value: 'priority' } },\n { kind: 'Field', name: { kind: 'Name', value: 'automaticCalls' } },\n { kind: 'Field', name: { kind: 'Name', value: 'amount' } },\n { kind: 'Field', name: { kind: 'Name', value: 'startsAt' } },\n { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'assignees' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'firstName' } },\n { kind: 'Field', name: { kind: 'Name', value: 'lastName' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'avatar' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'downloadUrl' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'workflows' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'vendor' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignLeadRelation' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [{ kind: 'Field', name: { kind: 'Name', value: 'count' } }],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'phoneNumber' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'number' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'number' } },\n { kind: 'Field', name: { kind: 'Name', value: 'code' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const FetchCampaignDetailsDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'FetchCampaignDetails' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaign' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'id' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CampaignFragment' } },\n ],\n },\n },\n ],\n },\n },\n ...CampaignFragmentFragmentDoc.definitions,\n ],\n} as unknown) as DocumentNode;\nexport const FetchCampaignsListDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'FetchCampaignsList' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'filter' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignFilter' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },\n type: {\n kind: 'ListType',\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignSort' } },\n },\n },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } },\n type: {\n kind: 'ListType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignOrderBy' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignsList' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'skip' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'first' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'filter' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'sort' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'orderBy' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'count' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CampaignFragment' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ...CampaignFragmentFragmentDoc.definitions,\n ],\n} as unknown) as DocumentNode;\nexport const FetchLightCampaignsListDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'FetchLightCampaignsList' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'filter' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignFilter' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },\n type: {\n kind: 'ListType',\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignSort' } },\n },\n },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } },\n type: {\n kind: 'ListType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignOrderBy' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignsList' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'skip' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'first' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'filter' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'sort' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'orderBy' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'count' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const FetchCampaignProgressDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'FetchCampaignProgress' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'campaignId' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaign' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'id' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'campaignId' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignLeadRelation' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'stages' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'equals' },\n value: {\n kind: 'StringValue',\n value: '${LEAD_STAGES.SOLD}',\n block: false,\n },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'groupBy' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'query' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'id' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'as' },\n value: {\n kind: 'StringValue',\n value: 'count',\n block: false,\n },\n },\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'fn' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'aggregate' },\n value: { kind: 'EnumValue', value: 'COUNT' },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'amount' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'as' },\n value: {\n kind: 'StringValue',\n value: 'amount',\n block: false,\n },\n },\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'fn' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'aggregate' },\n value: { kind: 'EnumValue', value: 'SUM' },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'count' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'groups' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n alias: { kind: 'Name', value: 'count' },\n name: { kind: 'Name', value: 'String' },\n },\n {\n kind: 'Field',\n alias: { kind: 'Name', value: 'amount' },\n name: { kind: 'Name', value: 'String' },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'leadsList' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'campaign' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'id' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'equals' },\n value: {\n kind: 'Variable',\n name: { kind: 'Name', value: 'campaignId' },\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'groupBy' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'query' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'amount' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'as' },\n value: { kind: 'StringValue', value: 'amount', block: false },\n },\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'fn' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'aggregate' },\n value: { kind: 'EnumValue', value: 'SUM' },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'count' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'groups' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n alias: { kind: 'Name', value: 'amount' },\n name: { kind: 'Name', value: 'String' },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const CreateCampaignDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'mutation',\n name: { kind: 'Name', value: 'CreateCampaign' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignCreateInput' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignCreate' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'data' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CampaignFragment' } },\n ],\n },\n },\n ],\n },\n },\n ...CampaignFragmentFragmentDoc.definitions,\n ],\n} as unknown) as DocumentNode;\nexport const DeleteCampaignDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'mutation',\n name: { kind: 'Name', value: 'DeleteCampaign' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignDeleteInput' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignDelete' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'data' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [{ kind: 'Field', name: { kind: 'Name', value: 'success' } }],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const UpdateCampaignDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'mutation',\n name: { kind: 'Name', value: 'UpdateCampaign' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'CampaignUpdateInput' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'campaignUpdate' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'data' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'data' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CampaignFragment' } },\n ],\n },\n },\n ],\n },\n },\n ...CampaignFragmentFragmentDoc.definitions,\n ],\n} as unknown) as DocumentNode;\nexport const FetchCampaignLeadsDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'FetchCampaignLeads' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'campaignId' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'leadsList' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'campaign' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'id' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'equals' },\n value: {\n kind: 'Variable',\n name: { kind: 'Name', value: 'campaignId' },\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'first' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'skip' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'firstName' } },\n { kind: 'Field', name: { kind: 'Name', value: 'lastName' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const VoicemailListDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n name: { kind: 'Name', value: 'VoicemailList' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'agency' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },\n },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'voiceMailsList' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'first' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'first' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'skip' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'skip' } },\n },\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'filter' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'phoneCall' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'agency' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'id' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'equals' },\n value: {\n kind: 'Variable',\n name: { kind: 'Name', value: 'agency' },\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'items' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'recordingUrl' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },\n { kind: 'Field', name: { kind: 'Name', value: 'duration' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'phoneCall' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'to' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'number' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'code' } },\n { kind: 'Field', name: { kind: 'Name', value: 'number' } },\n ],\n },\n },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'lead' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'firstName' } },\n { kind: 'Field', name: { kind: 'Name', value: 'lastName' } },\n ],\n },\n },\n { kind: 'Field', name: { kind: 'Name', value: 'from' } },\n ],\n },\n },\n ],\n },\n },\n { kind: 'Field', name: { kind: 'Name', value: 'count' } },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\nexport const VoiceailDeleteDocument = ({\n kind: 'Document',\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'mutation',\n name: { kind: 'Name', value: 'VoiceailDelete' },\n variableDefinitions: [\n {\n kind: 'VariableDefinition',\n variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },\n type: {\n kind: 'NonNullType',\n type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'voiceMailDelete' },\n arguments: [\n {\n kind: 'Argument',\n name: { kind: 'Name', value: 'data' },\n value: {\n kind: 'ObjectValue',\n fields: [\n {\n kind: 'ObjectField',\n name: { kind: 'Name', value: 'id' },\n value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },\n },\n ],\n },\n },\n ],\n selectionSet: {\n kind: 'SelectionSet',\n selections: [{ kind: 'Field', name: { kind: 'Name', value: 'success' } }],\n },\n },\n ],\n },\n },\n ],\n} as unknown) as DocumentNode;\n","import { usePromise } from '@cobuildlab/hooks-utils';\nimport { fetchAgentCallsReport } from './agent-calls-actions';\nimport { onErrorMixinFC } from '../../../shared/mixins';\n/**\n * Agent Object with the phone calls.\n *\n * @typedef {object} AgentCallDatta\n * @property {string} firstName - Relation for inbound calls.\n * @property {string} lastName - Relation for inbound calls.\n * @property {string} status - Relation for inbound calls.\n * @property {number} outboundDialsCout - Relation for inbound calls.\n * @property {number} totalDialsCount - Relation for inbound calls.\n * @property {number} contacts - Relation for inbound calls.\n * @property {number} callsPerHours - Relation for inbound calls.\n * @property {number} totalTalkTime - Relation for inbound calls.\n * @property {number} totalDialsCount - Relation for inbound calls.\n * @property {number} dialPerContact - Relation for inbound calls.\n * @property {number} talkTimePerHour - Relation for inbound calls.\n * @property {number} talkTimeAverage - Relation for inbound calls.\n */\n/**\n * @param {string} agency - Agency Id\n * @param {number} page - page number\n * @param {object} filters - Object with filters\n * @returns {[Array,number,boolean]} - Hook list data\n */\nexport function useAgentCallsReport(agency, page, filters) {\n const [data, loading] = usePromise(\n async () => fetchAgentCallsReport(agency, filters.search, filters.from, filters.to, page),\n {\n onError: onErrorMixinFC,\n },\n [agency, filters.search, filters.from, filters.to, page],\n );\n\n return [data?.items, data?.count, loading];\n}\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { Table, Paper, Pagination } from '@8base/boost';\nimport { useSubscription as useSimpleSubscription } from '@cobuildlab/react-simple-state';\nimport { fetchIboundPhoneCalls } from '../../phone-calls/phone-calls-actions';\nimport {\n FILTER_DATA,\n FILTER_CATEGORIES_INBOUND,\n SORT_OPTIONS,\n} from '../../phone-calls/phone-calls-model';\nimport { fetchManagerAndAgents } from '../../users/user-actions';\nimport { ItemFilter } from 'shared/components';\nimport { onErrorMixinFC } from 'shared/mixins';\nimport { DateBox } from 'shared/components';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport LogFilter from '../email-logs/components/LogFilter';\nimport styled from 'styled-components';\nimport * as toast from 'shared/components/toast/Toast';\nimport * as R from 'ramda';\nimport { getPhoneNumberStr } from '../../my-account/phone-numbers/phone-numbers-utils';\nimport { formatPhoneNumber } from '../../phone-calls/phone-calls-utils';\nimport {\n OnFetchInboundCallsError,\n OnFetchInboundCallsEvent,\n} from 'modules/phone-calls/phone-calls-events';\nimport {\n OnFetchManagerAndAgentUsersError,\n OnFetchManagerAndAgentUsersEvent,\n} from 'modules/users/user-events';\n\nconst TableHeader = styled(Table.Header)``;\n\nconst TableBody = styled(Table.Body)``;\n\nconst TableBodyRow = styled(Table.BodyRow)``;\n\nconst CardHeader = styled.div`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n height: 64px;\n border-bottom: 1px solid #e8eff5;\n padding: 0 24px;\n position: relative;\n`;\n\nconst HeaderLeftSide = styled.div`\n display: flex;\n justify-content: flex-start;\n align-items: center;\n`;\n\nconst HeaderRightSide = styled.div`\n display: flex;\n justify-content: flex-end;\n align-items: center;\n > div {\n margin-left: 15px;\n max-width: 200px;\n }\n`;\n\nconst CardBody = styled.div`\n overflow: auto;\n padding: 0;\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst columnsSize =\n 'minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) 150px';\n\n/**\n * Component to fetch the Logs of the Lead SMS Messages\n *\n * @returns {React.Component} Return the Component.\n */\n\nconst InboundPhoneCallsLogs = () => {\n const agency = useAgency();\n\n const [phoneCalls, setPhoneCalls] = useState([]);\n const [page, setPage] = useState(1);\n const [filter, setFilter] = useState(R.clone(FILTER_DATA));\n const [currentFilter, setCurrentFilter] = useState(R.clone(FILTER_DATA));\n const [showFilter, setShowFilter] = useState(false);\n const [filterCategories, setFilterCategories] = useState(R.clone(FILTER_CATEGORIES_INBOUND));\n const [loading, setLoading] = useState(true);\n\n useSimpleSubscription(OnFetchInboundCallsEvent, ({ inboundPhoneCallsList }) => {\n setPhoneCalls(inboundPhoneCallsList);\n\n setLoading(false);\n });\n\n useSimpleSubscription(OnFetchInboundCallsError, (err) => {\n onErrorMixinFC(err);\n });\n\n useSimpleSubscription(OnFetchManagerAndAgentUsersEvent, ({ usersList }) => {\n const categoriesClone = R.clone(filterCategories);\n const defaultOption = {\n label: `None`,\n value: '',\n };\n\n categoriesClone.aceptedBy.options = usersList.items.map((user) => ({\n label: `${user.firstName} ${user.lastName}`,\n value: user.id,\n }));\n categoriesClone.rejectedBy.options = usersList.items.map((user) => ({\n label: `${user.firstName} ${user.lastName}`,\n value: user.id,\n }));\n\n categoriesClone.aceptedBy.options.unshift(defaultOption);\n categoriesClone.rejectedBy.options.unshift(defaultOption);\n\n setFilterCategories(categoriesClone);\n });\n\n useSimpleSubscription(OnFetchManagerAndAgentUsersError, () => {\n toast.error('Users Managment', 'There was an error fetching the users, please try again.');\n });\n\n const filterHandler = useCallback(\n (identifier, value) => {\n const newFilter = { ...filter };\n newFilter[identifier] = value;\n if (identifier === 'dateStart') {\n if (newFilter.dateStart > newFilter.dateEnd) {\n newFilter.dateEnd = '';\n }\n }\n setFilter(newFilter);\n },\n [filter],\n );\n const confirmFilterHandler = useCallback(() => {\n setShowFilter(false);\n setCurrentFilter(filter);\n setLoading(true);\n }, [filter]);\n\n const sortHandler = (value) => {\n const newState = R.clone(currentFilter);\n newState.sort = value;\n setCurrentFilter(newState);\n setLoading(true);\n };\n\n const filterClickHandler = () => {\n setShowFilter(true);\n };\n\n const handlePageChanger = (page) => {\n setPage(page);\n setLoading(true);\n };\n\n const getPhoneCallLogs = () => {\n fetchIboundPhoneCalls(page, { ...currentFilter, agency: agency.id });\n };\n\n const getAgents = () => {\n fetchManagerAndAgents(agency.id);\n };\n\n useEffect(() => {\n if (loading) {\n getPhoneCallLogs();\n getAgents();\n }\n // eslint-disable-next-line\n }, [loading]);\n\n return (\n \n \n \n \n {\n setFilter(currentFilter);\n }}\n />\n {\n sortHandler(value);\n }}\n value={currentFilter.sort}\n options={SORT_OPTIONS}\n placeholder=\"Sort Call Logs by Date (Newest/Oldest)\"\n />\n \n \n \n
    \n \n {/* Leads */}\n From\n To\n Acepted by\n Rejected by\n Dates\n \n \n {(phoneCall) => (\n \n {formatPhoneNumber(phoneCall.from)}\n \n {formatPhoneNumber(getPhoneNumberStr(phoneCall.to))}\n \n \n {phoneCall.user\n ? `${phoneCall.user.firstName} ${phoneCall.user.lastName}`\n : ' - '}\n \n \n {phoneCall.rejectedBy\n ? `${phoneCall.rejectedBy.firstName} ${phoneCall.rejectedBy.lastName}`\n : ' - '}\n \n \n \n \n \n )}\n \n \n \n {\n handlePageChanger(page);\n }}\n defaultPage={1}\n total={phoneCalls.count}\n page={page}\n />\n \n \n
    \n \n \n );\n};\n\nexport default InboundPhoneCallsLogs;\n","import { createEvent } from '@cobuildlab/react-simple-state';\nimport { VoicemailListQuery } from 'gerated/types';\n\nexport const onVoicemailslist = createEvent();\nexport const onVoicemailslistError = createEvent();\n\nexport const onVoicemailsDelete = createEvent<{ success: boolean }>();\nexport const onVoicemailsDeleteError = createEvent();\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { VoiceailDeleteDocument, VoicemailListDocument } from 'gerated/types';\nimport { apollClient } from 'shared/session/session-events';\nimport {\n onVoicemailsDelete,\n onVoicemailsDeleteError,\n onVoicemailslist,\n onVoicemailslistError,\n} from './voicemail-events';\n\nexport const fetchVoicemailList = createAction(\n onVoicemailslist,\n onVoicemailslistError,\n async (agency: string, page: number) => {\n const client = apollClient();\n\n const first = 10;\n const skip = first * (page - 1);\n\n const data = await client.query({\n query: VoicemailListDocument,\n variables: { agency, first, skip },\n });\n\n return data.data.voiceMailsList;\n },\n);\n\nexport const deleteVoicemail = createAction(\n onVoicemailsDelete,\n onVoicemailsDeleteError,\n async (id: string) => {\n const client = apollClient();\n\n const data = await client.mutate({\n mutation: VoiceailDeleteDocument,\n variables: { id },\n });\n\n client.cache.reset();\n\n if (!data.data?.voiceMailDelete) {\n throw new Error('data.data?.voiceMailDelete not found ');\n }\n return data.data?.voiceMailDelete;\n },\n);\n","import React, { useState, useCallback } from 'react';\nimport { Card, Paper, Row, Table, Column, Pagination, Icon, Dropdown, Menu } from '@8base/boost';\nimport { useCallAction, useFetchAction } from '@cobuildlab/react-simple-state';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport { formatPhoneNumber, formatDuration } from '../../phone-calls/phone-calls-utils';\nimport { DateBox, YesNoDialog } from '../../../shared/components';\nimport AudioPlayer from 'react-h5-audio-player';\nimport styled from 'styled-components';\nimport * as Toast from '../../../shared/components/toast/Toast';\n\nimport 'react-h5-audio-player/lib/styles.css';\nimport { deleteVoicemail, fetchVoicemailList } from './voicemail-actions';\nimport { VoicemailType } from './voicemail-types';\nimport { onErrorMixinFC } from 'shared/mixins';\n\nconst PlayerCell = styled(Table.BodyCell)`\n padding-left: 0px !important;\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: 250px;\n`;\n\nconst MenuItem = styled(Menu.Item)`\n color: ${({ danger }) => (danger ? '#FF0000' : 'rgb(50, 60, 71)')}!important;\n &:hover {\n ${({ danger }) => (danger ? '' : 'color: #3db4aa !important;')}\n }\n`;\n\nconst columns = '150px 320px minmax(200px, 1fr) 180px 350px 100px';\n/**\n * Renders the record calls configuration view\n *\n * @param props - Props object passed to this component\n *\n * @returns The component to render\n */\nexport function VoicemailsViews() {\n const [page, setPage] = useState(1);\n const [selected, setSelected] = useState();\n const agency = useAgency();\n\n const [recordings, loading, { refetch }] = useFetchAction(\n fetchVoicemailList,\n [agency.id, page],\n {},\n );\n\n const [deleteItem, loadingDelete] = useCallAction(deleteVoicemail, {\n onCompleted: () => {\n Toast.success('Success', 'Recording deleted successfully!');\n setSelected(undefined);\n refetch();\n },\n onError: (e) => {\n onErrorMixinFC(e);\n },\n });\n\n const handleConfirmDelete = useCallback(() => {\n if (selected) {\n deleteItem(selected);\n }\n }, [selected, deleteItem]);\n\n console.log('recordings', recordings);\n\n return (\n \n \n \n \n \n \n Date\n From\n To\n Duration\n Play\n Actions\n \n \n {(recording: VoicemailType) => {\n const call = recording.phoneCall;\n\n const from = call.lead\n ? `${call.lead.firstName} ${call.lead.lastName} ${formatPhoneNumber(call.from)}`\n : formatPhoneNumber(call.from);\n\n const to = formatPhoneNumber(`+${call.to.number.code}${call.to.number.number}`);\n\n return (\n \n \n \n \n {from}\n {to}\n {formatDuration(recording.duration * 1000)}\n \n {\n console.log(value, time);\n },\n }}\n />\n \n \n \n \n \n \n \n \n setSelected(recording.id)}>\n Delete\n \n \n \n \n \n \n );\n }}\n \n \n \n \n \n \n
    \n
    \n
    \n setSelected(undefined)}\n onClose={() => setSelected(undefined)}\n title=\"Delete Phone Call Recording\"\n text=\"Are you sure you want to delete this phone call recording ?\"\n />\n
    \n );\n}\n","import React from 'react';\nimport { Table as TableBoost, Pagination } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst Table = styled(TableBoost)``;\n\nconst TableHeader = styled(TableBoost.Header)``;\n\nconst TableBody = styled(TableBoost.Body)`\n min-height: 400px;\n`;\nconst TableFooter = styled(TableBoost.Footer)``;\n\nconst TableContainer = styled.div``;\n\nconst columnsSize = `\n minmax(200px, 1fr) /* recordingId */\n minmax(200px, 1fr) /* type */\n minmax(200px, 1fr) /* from */\n minmax(200px, 1fr) /* to */\n minmax(200px, 1fr) /* agency */\n minmax(200px, 1fr) /* agent */\n minmax(200px, 1fr) /* callDuration */\n minmax(200px, 1fr) /* dateTime */\n minmax(200px, 1fr) /* twilioId */\n minmax(200px, 1fr) /* leadName */\n minmax(200px, 1fr) /* leadAddress */\n minmax(200px, 1fr) /* leadBirth */\n minmax(200px, 1fr) /* leadGender */\n minmax(200px, 1fr) /* leadCreditScore */\n minmax(200px, 1fr) /* leadIfsScore */\n minmax(200px, 1fr) /* campaingName */\n minmax(200px, 1fr) /* campaingId */\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nexport const AgentScoreTable = ({\n columns,\n data,\n loading = false,\n totalPagination,\n page,\n onChangePage,\n}) => {\n const footer = (\n \n \n \n );\n\n const tableHead = columns.map(({ title }) => {title});\n\n const tableBodyRow = (item) => (\n \n {columns.map(({ data }) => (\n {data(item)}\n ))}\n \n );\n\n return (\n \n {tableHead}\n \n \n {(item) => tableBodyRow(item)}\n \n \n {footer}\n
    \n );\n};\n\nAgentScoreTable.propTypes = {\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n data: PropTypes.func.isRequired,\n }),\n ).isRequired,\n data: PropTypes.arrayOf(\n PropTypes.shape({\n recordingId: PropTypes.string,\n type: PropTypes.string,\n from: PropTypes.string,\n to: PropTypes.string,\n agency: PropTypes.string,\n agent: PropTypes.string,\n callDuration: PropTypes.string,\n dateTime: PropTypes.string,\n twilioId: PropTypes.string,\n leadName: PropTypes.string,\n leadAddress: PropTypes.string,\n leadBirth: PropTypes.string,\n leadGender: PropTypes.string,\n leadCreditScore: PropTypes.string,\n leadIfsScore: PropTypes.string,\n campaingName: PropTypes.string,\n campaingId: PropTypes.string,\n }),\n ).isRequired,\n loading: PropTypes.bool.isRequired,\n page: PropTypes.number.isRequired,\n onChangePage: PropTypes.func.isRequired,\n totalPagination: PropTypes.number.isRequired,\n};\n","import { createEvent } from '@cobuildlab/react-simple-state';\n\nexport const onAgentScoreReportError = createEvent();\nexport const onAgentScoreReport = createEvent();\n","import gql from 'graphql-tag';\n\nexport const AGENT_SCORE_REPORT_QUERY = gql`\n query AgentScoreList(\n $agency: ID!\n $first: Int\n $skip: Int\n $filter: AgentsScoreFilter\n $sort: SortOrder\n ) {\n agentsScore(agency: $agency, first: $first, skip: $skip, filter: $filter, sort: $sort) {\n count\n items {\n recordingId\n type\n from\n to\n agency\n agent\n callDuration\n dateTime\n twilioId\n leadName\n leadAddress\n leadBirth\n leadCreditScore\n leadGender\n leadIfsScore\n campaingName\n campaingId\n }\n }\n }\n`;\n","import { createAction } from '@cobuildlab/react-simple-state';\nimport { onAgentScoreReport, onAgentScoreReportError } from './agent-score-events';\nimport { OnApolloClient } from '../../../shared/session/session-events';\nimport { AGENT_SCORE_REPORT_QUERY } from './agent-score-queries';\n\nexport const fetchAgentScoreReport = createAction(\n onAgentScoreReport,\n onAgentScoreReportError,\n async (agency, page, pageSize, sort, filters) => {\n const client = OnApolloClient.get();\n const first = pageSize;\n const skip = page * pageSize;\n const filter = filters;\n\n const response = await client.query({\n query: AGENT_SCORE_REPORT_QUERY,\n fetchPolicy: 'network-only',\n variables: { agency, first, skip, sort, filter },\n });\n\n return response.data.agentsScore;\n },\n);\n","export const TypeCallRecording = {\n INCOMING: 'Incoming',\n OUTGOING: 'Outgoing',\n};\n","import React, { useState } from 'react';\nimport { Paper, Tag } from '@8base/boost';\nimport styled from 'styled-components';\nimport { useFetchAction } from '@cobuildlab/react-simple-state';\nimport { DateBox, ItemFilter } from 'shared/components';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport { AgentScoreTable } from './AgentScoreTable';\nimport { fetchAgentScoreReport } from './agent-score-actions';\nimport LogFilter from '../email-logs/components/LogFilter';\nimport { TypeCallRecording } from './agent-score-models';\nimport moment from 'moment';\n\nconst CardHeader = styled.div`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n height: 64px;\n border-bottom: 1px solid #e8eff5;\n padding: 0 24px;\n position: relative;\n`;\n\nconst HeaderLeftSide = styled.div`\n display: flex;\n justify-content: flex-start;\n align-items: center;\n`;\n\nconst HeaderRightSide = styled.div`\n display: flex;\n justify-content: flex-end;\n align-items: center;\n > div {\n margin-left: 15px;\n max-width: 200px;\n }\n`;\n\nconst CardBody = styled.div`\n overflow: auto;\n padding: 0;\n`;\n\nconst columns = [\n {\n title: 'Recording ID',\n data: (row) => row.recordingId,\n },\n {\n title: 'Type',\n data: (row) => {\n if (row.type === TypeCallRecording.INCOMING) {\n return {TypeCallRecording.INCOMING};\n }\n if (row.type === TypeCallRecording.OUTGOING) {\n return {TypeCallRecording.OUTGOING};\n }\n },\n },\n {\n title: 'From',\n data: (row) => row.from,\n },\n {\n title: 'To',\n data: (row) => row.to,\n },\n {\n title: 'Agency',\n data: (row) => row.agency,\n },\n {\n title: 'Agent',\n data: (row) => row.agent,\n },\n {\n title: 'Call duration',\n data: (row) => row.callDuration,\n },\n {\n title: 'Date time',\n data: (row) => ,\n },\n {\n title: 'Twilio ID',\n data: (row) => row.twilioId,\n },\n {\n title: 'Lead name',\n data: (row) => row.leadName,\n },\n {\n title: 'Lead address',\n data: (row) => row.leadAddress,\n },\n {\n title: 'Lead birth',\n data: (row) => row.leadBirth,\n },\n {\n title: 'Lead gender',\n data: (row) => row.leadGender,\n },\n {\n title: 'Lead credit score',\n data: (row) => row.leadCreditScore,\n },\n {\n title: 'Lead ifs score',\n data: (row) => row.leadIfsScore,\n },\n {\n title: 'Campaing name',\n data: (row) => row.campaingName,\n },\n {\n title: 'Campaing ID',\n data: (row) => row.campaingId,\n },\n];\n\nconst sortOptions = [\n { label: 'Date: Newest First', value: 'ASC' },\n { label: 'Date: Oldest First', value: 'DESC' },\n];\n\nconst filterCategories = {\n dateStart: {\n title: 'Date Start',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateStart',\n },\n dateEnd: {\n title: 'Date End',\n placeholher: 'Select Date',\n date: {},\n type: 'date',\n identifier: 'dateEnd',\n },\n type: {\n title: 'Type',\n placeholher: 'Select Type',\n type: 'select',\n options: [\n { label: TypeCallRecording.INCOMING, value: TypeCallRecording.INCOMING },\n { label: TypeCallRecording.OUTGOING, value: TypeCallRecording.OUTGOING },\n ],\n identifier: 'type',\n },\n recordingId: {\n title: 'Recording ID',\n placeholher: 'Enter Recording ID',\n type: 'text',\n identifier: 'recordingId',\n },\n from: {\n title: 'From',\n placeholher: 'Enter data',\n type: 'text',\n identifier: 'from',\n },\n to: {\n title: 'To',\n placeholher: 'Enter data',\n type: 'text',\n identifier: 'to',\n },\n agent: {\n title: 'Agent',\n placeholher: 'Enter data',\n type: 'text',\n identifier: 'agent',\n },\n leadName: {\n title: 'Lead name',\n placeholher: 'Enter data',\n type: 'text',\n identifier: 'leadName',\n },\n campaingName: {\n title: 'Campaing name',\n placeholher: 'Enter data',\n type: 'text',\n identifier: 'campaingName',\n },\n};\n\n/**\n * Component to fetch the records agents score of call scoring and display it in a table.\n *\n * @returns {React.FC} Return the Component.\n */\nexport const AgentScore = () => {\n const agency = useAgency();\n const [page, setPage] = useState(1);\n const [totalPagination, setTotalPagination] = useState(0);\n const [pageSize] = useState(10);\n const [sort, setSort] = useState('ASC');\n const [filterState, setFilterState] = useState(false);\n const [filters, setFilters] = useState({});\n const [valueFilters, setValueFilters] = useState({});\n const [queryFilters, setQueryFilters] = useState({});\n\n const [dataAgentScore, loading] = useFetchAction(\n fetchAgentScoreReport,\n [agency.id, page - 1, pageSize, sort, filters],\n {\n onCompleted: (data) => {\n setTotalPagination(Math.ceil(data.count / pageSize));\n },\n onError: (error) => console.log('Error fetching agent score data. ', error),\n },\n );\n\n const handleChangeFilters = (label, value) => {\n setValueFilters({ ...valueFilters, [label]: value });\n let obj;\n if (label === 'type') {\n obj = {\n [label]: value,\n };\n }\n // eslint-disable-next-line no-mixed-operators\n if ((value && label === 'dateStart') || label === 'dateEnd') {\n queryFilters?.dateTime\n ? (obj = {\n dateTime: {\n ...queryFilters.dateTime,\n [label]: `${moment(value).format('YYYY-MM-DDThh:mm:ss')}Z`,\n },\n })\n : (obj = {\n dateTime: {\n [label]: `${moment(value).format('YYYY-MM-DDThh:mm:ss')}Z`,\n },\n });\n }\n if (label !== 'type' && label !== 'dateStart' && label !== 'dateEnd') {\n obj = {\n [label]: {\n contains: value,\n },\n };\n }\n console.log(label, value);\n setQueryFilters({\n ...queryFilters,\n ...obj,\n });\n };\n\n const handleApplyFilters = () => {\n setFilters({ ...filters, ...queryFilters });\n };\n\n const handleCancelFilters = () => {\n setFilterState(false);\n setValueFilters({});\n setFilters({});\n };\n\n const handleChangePage = (page) => {\n setPage(page);\n };\n\n return (\n \n \n \n \n setFilterState(!filterState)}\n active={filterState}\n onFilter={(label, value) => handleChangeFilters(label, value)}\n values={valueFilters}\n categories={filterCategories}\n onConfirm={handleApplyFilters}\n onCancel={handleCancelFilters}\n />\n setSort(sort)}\n value={sort}\n options={sortOptions}\n placeholder=\"Sort agent score by date (Newest/Oldest)\"\n />\n \n \n \n \n \n \n );\n};\n","export const systemSettingsName = {\n ENABLE_SEND_EMAIL: 'ENABLE_SEND_EMAIL',\n CALL_WAIT_SOUND: 'CALL_WAIT_SOUND',\n LAST_FORMATTED_LEAD: 'LAST_FORMATTED_LEAD',\n CALL_FINDER_FEATURE: 'CALL_FINDER_FEATURE',\n};\n","import React, { createContext, useContext, useState, useEffect } from 'react';\nimport moment from 'moment';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport { OnCampaignsList } from 'modules/campaigns/campaign-events';\nimport { fetchCampaignsLight } from 'modules/campaigns/campaigns-actions';\n\n/**\n * @typedef {object} Filters\n * @property {string} fromDate\n * @property {string} toDate\n */\n\n/**\n * @typedef {object} Campaign\n * @property {string} id\n * @property {string} name\n */\n\n/**\n * @typedef {object} LeadsFunnelContextType\n * @property {Campaign[]} campaigns - List of available campaigns.\n * @property {boolean} isLoadingCampaigns - Flag to know wheter campaigns are being loaded or not.\n * @property {Filters} filters - Current state of date filters.\n * @property {string | undefined} selectedCampaignId - Id of selected campaign.\n * @property {Function} handleChangeSelectedCampaignId - Function to update selected campaign id.\n * @property {Function} handleFiltersChange - Function to update filters.\n */\n\nconst INITIAL_FILTERS = {\n fromDate: moment()\n .startOf('month')\n .toISOString(),\n toDate: moment()\n .endOf('month')\n .toISOString(),\n};\n\n/**\n * @type {React.Context}\n */\nconst LeadsFunnelContext = createContext(undefined);\n\n/**\n * Leads funnel provider component.\n *\n * @param {object} props - Component props.\n * @param {React.ReactNode} props.children - Children component.\n * @returns {React.ReactNode} Provider component.\n */\nexport function LeadsFunnelProvider({ children }) {\n const [filters, setFilters] = useState(INITIAL_FILTERS);\n\n /**\n * @type {[Campaign[], React.Dispatch>]}\n */\n const [campaigns, setCampaigns] = useState([]);\n\n /**\n * @type {[string | undefined, React.Dispatch>]}\n */\n const [selectedCampaignId, setSelectedCampaignId] = useState();\n\n const agency = useAgency();\n\n useEffect(() => {\n fetchCampaignsLight({ filterData: { agency: agency.id } });\n }, [agency.id]);\n\n useEventSubscription(OnCampaignsList, (data) => {\n if (data) {\n setCampaigns(data?.campaignsList?.items || []);\n }\n });\n\n useEffect(() => {\n if (selectedCampaignId === undefined && campaigns.length > 0) {\n setSelectedCampaignId(campaigns[0].id);\n }\n }, [selectedCampaignId, campaigns]);\n\n /**\n * @param {Filters} newFilters - filter field to update value.\n */\n function handleFiltersChange(newFilters) {\n setFilters(newFilters);\n }\n\n /**\n * @param {string} newCampaignId - New campaign id to be set.\n */\n function handleChangeSelectedCampaignId(newCampaignId) {\n setSelectedCampaignId(newCampaignId);\n }\n\n return (\n \n {children}\n \n );\n}\n\n/**\n * Hook to access leads funnel context.\n *\n * @returns {LeadsFunnelContextType} Leads funnel context.\n */\nexport function useLeadsFunnelContext() {\n const leadsFunnelContext = useContext(LeadsFunnelContext);\n\n if (leadsFunnelContext === undefined) {\n throw new Error('Trying to access leadsFunnelContext out of a valid LeadsFunnelProvider');\n }\n\n return leadsFunnelContext;\n}\n","import React, { useState } from 'react';\nimport moment from 'moment';\nimport { Dropdown, Grid, DateInputField, Row, Text } from '@8base/boost';\nimport { FilterButtonWithFocus as Button, Padding as Container } from 'shared/components';\nimport { useLeadsFunnelContext } from '../context/LeadFunnelContext';\n\n/**\n * Component to select query fitlers.\n *\n * @returns {React.ReactNode} Leas filter component.\n */\nexport default function LeadFunnelFilter() {\n const { filters, handleFiltersChange } = useLeadsFunnelContext();\n const [isOpen, setIsOpen] = useState(false);\n const [localFilters, setLocalFilters] = useState(filters);\n\n /**\n * @param {string} field - filter field to update value.\n * @param {string} dateString - Date selected.\n */\n function handleDateFiltersChange(field, dateString) {\n const hasField = field in localFilters;\n if (!hasField) return;\n setLocalFilters((prevFilters) => ({\n ...prevFilters,\n [field]: moment(dateString).toISOString(),\n }));\n }\n\n /**\n * Function to handle apply filters dropdown.\n */\n function handleApplyFilters() {\n handleFiltersChange(localFilters);\n setIsOpen(false);\n }\n\n /**\n * Function to handle close filters dropdown.\n */\n function handleCancelFilters() {\n setLocalFilters(filters);\n setIsOpen(false);\n }\n\n return (\n \n \n \n \n Save\n \n \n \n \n );\n};\n\nWorkflowAutomationForm.propTypes = {\n agencyId: PropTypes.string.isRequired,\n workflowAutomation: PropTypes.object,\n onCancel: PropTypes.func.isRequired,\n};\n\nWorkflowAutomationForm.defaultProps = {\n workflowAutomation: null,\n};\n\nexport default WorkflowAutomationForm;\n","import React from 'react';\nimport { Dialog } from '@8base/boost';\nimport WorkflowAutomation from './WorkflowAutomationForm';\nimport PropTypes from 'prop-types';\n\nconst WorkflowAutomationDialog = ({ agencyId, isOpen, workflowAutomation, onClose }) => {\n const title = workflowAutomation ? 'Update workflow automation' : 'Create workflow automation';\n\n return (\n \n \n \n \n );\n};\n\nWorkflowAutomationDialog.propTypes = {\n agencyId: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n workflowAutomation: PropTypes.object,\n onClose: PropTypes.func.isRequired,\n};\n\nWorkflowAutomationDialog.defaultProps = {\n workflowAutomation: null,\n};\n\nexport default WorkflowAutomationDialog;\n","import React, { useState, useCallback } from 'react';\nimport { Card, Table, Pagination, Text, Row, styled } from '@8base/boost';\nimport SearchInput from '../../email/components/SearchInput';\nimport { TextEllipsis, CreateButton } from 'shared/components';\nimport { workflowAutomationMapTable } from './workflow-automation-utils';\nimport { deleteWorkflowAutomation } from './workflow-automation-actions';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { useWorkflowAutomations } from './workflow-automation-hooks';\nimport WorkflowAutomationDialog from './components/WorkflowAutomationDialog';\nimport { IconTrash, IconUpdateAlt } from '../../../shared/components/ui/Icons';\nimport YesNoDialog from '../../../shared/components/YesNoDialog';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport {\n OnWorkflowAutomaticationCreateEvent,\n OnWorkflowAutomaticationDeleteError,\n OnWorkflowAutomaticationDeleteEvent,\n OnWorkflowAutomaticationUpdateEvent,\n} from './workflow-automation-events';\n\nconst CardBody = styled.div`\n overflow: auto;\n padding: 0;\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: 470px;\n`;\n\nconst PaginationContainer = styled.div`\n display: flex;\n justify-content: center;\n font-size: 1.2rem;\n padding: 0 1rem;\n\n & > div > div > *::before {\n background-color: var(--color-primary);\n transition: all 0.2s;\n }\n\n & > div > span {\n display: inline-block;\n padding: 0.5rem 1.5rem;\n border: solid 1px #d0d7dd;\n border-radius: 5px;\n }\n`;\n\nconst columns =\n 'minmax(320px, 1fr) minmax(100px, 1fr) minmax(20px, 1fr) minmax(20px, 1fr) minmax(20px, 1fr) minmax(45px, 1fr)';\n\nconst WorkflowAutomationView = () => {\n const agency = useAgency();\n const [page, setPage] = useState(1);\n const [search, setSearch] = useState('');\n const { count, items, loading, fetch } = useWorkflowAutomations(agency.id, search, page);\n const [workflowForm, setWorkflowForm] = useState({ open: false, selected: null });\n const [workflowDelete, setWorkflowDelete] = useState({\n open: false,\n loading: true,\n selected: null,\n });\n\n const refresh = useCallback(() => {\n if (page === 1) {\n fetch();\n } else {\n setPage(1);\n }\n }, [fetch, page]);\n\n useEventSubscription(OnWorkflowAutomaticationCreateEvent, () => {\n refresh();\n\n setWorkflowForm({ open: false, selected: null });\n\n Toast.success('Success', 'Workflow automation creates successfully');\n });\n\n useEventSubscription(OnWorkflowAutomaticationUpdateEvent, () => {\n refresh();\n\n setWorkflowForm({ open: false, selected: null });\n\n Toast.success('Success', 'Workflow automation updated successfully!');\n });\n\n useEventSubscription(OnWorkflowAutomaticationDeleteEvent, () => {\n refresh();\n\n setWorkflowDelete((state) => ({ ...state, open: false, loading: false, selected: null }));\n\n Toast.success('Success', 'Workflow automation deleted successfully!');\n });\n\n useEventSubscription(OnWorkflowAutomaticationDeleteError, (e) => {\n onErrorMixinFC(e);\n\n setWorkflowDelete((state) => ({ ...state, loading: false }));\n });\n\n const handleSearch = useCallback((value) => {\n setPage(1);\n setSearch(value);\n }, []);\n\n const handleOnYesDelete = useCallback(() => {\n deleteWorkflowAutomation(workflowDelete.selected.id);\n\n setWorkflowDelete((state) => ({\n ...state,\n loading: true,\n }));\n }, [workflowDelete]);\n\n const handleOnNoDelete = useCallback(() => {\n setWorkflowDelete((state) => ({\n ...state,\n loading: false,\n open: false,\n selected: null,\n }));\n }, []);\n\n const handleCloseForm = useCallback(() => {\n setWorkflowForm((state) => ({\n ...state,\n open: false,\n selected: null,\n }));\n }, []);\n\n const emails = items.map(workflowAutomationMapTable);\n\n return (\n
    \n \n \n \n \n setWorkflowForm((state) => ({ ...state, open: true, selected: null }))}\n />\n \n \n \n \n \n NAME\n CREATED\n CAMPAIGNS\n EMAILS OPEN\n LINKS CLICKED\n ACTIONS\n \n \n {(email) => (\n \n \n \n {email.name}\n \n \n {email.created}\n {email.campaigns}\n {email.emailsOpen}\n {email.linksClicked}\n \n \n \n setWorkflowForm((state) => ({ ...state, open: true, selected: email }))\n }\n />\n \n setWorkflowDelete((state) => ({\n ...state,\n open: true,\n loading: false,\n selected: email,\n }))\n }\n />\n \n \n \n )}\n \n \n \n \n \n \n
    \n
    \n
    \n \n \n
    \n );\n};\n\nexport default WorkflowAutomationView;\n","import React, { useCallback } from 'react';\nimport { Table, Row, Icon, Dropdown, Menu } from '@8base/boost';\nimport PropTypes from 'prop-types';\nimport { IconUpdateAlt } from '../../../../shared/components/ui/Icons';\n\n/**\n * Sms template item for the table component\n *\n * @param {object} props - The component's prop object\n * @param {number} props.index - The position in the table\n * @param {string} props.columns - Grid Layout based columns size\n * @param {object} props.template - The template object\n * @param {string} props.template.id - The name of the template\n * @param {string} props.template.name - The name of the template\n * @param {string} props.template.text - The text of the template\n * @param {Function} props.onUpdate - Function to execute after a click on the update menu item\n * @param {Function} props.onClone - Function to execute after a click on the clone menu item\n * @param {Function} props.onDelete - Function to execute after a click on the delete menu item\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsTemplateTableItem({ index, columns, template, onUpdate, onClone, onDelete }) {\n const handleDelete = useCallback(\n (template, callback) => {\n return () => {\n onDelete(template);\n callback();\n };\n },\n [onDelete],\n );\n\n const handleClone = useCallback(\n (template) => {\n return () => onClone(template);\n },\n [onClone],\n );\n\n return (\n \n {index}\n {template.name}\n \n \n onUpdate(template)} />\n \n \n \n \n \n \n {(context) => (\n \n \n Delete template\n \n \n )}\n \n \n \n \n \n );\n}\n\nSmsTemplateTableItem.propTypes = {\n index: PropTypes.number.isRequired,\n columns: PropTypes.string.isRequired,\n template: PropTypes.shape({\n name: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n }).isRequired,\n onUpdate: PropTypes.func.isRequired,\n onClone: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n};\n\nexport default SmsTemplateTableItem;\n","/**\n * Returns the dom node and offset of the current selection\n * in a editable div element\n *\n * @returns {object} The dom node and offset values\n */\nexport function getCaretPosition() {\n const selection = window.getSelection();\n const range = selection.getRangeAt(0);\n\n return { node: range.startContainer, offset: range.startOffset };\n}\n\n/**\n * Inserts the value in the editable element in a span\n *\n * @param {HTMLElement} element - The node element that has the contenteditable attribute set to true\n * @param {object} position - The position object where the field is going to be inserted\n * @param {string} label - The label that is going to appear in the parent element\n *\n * @returns {void}\n */\nexport function insertField(element, position, label) {\n element.focus();\n\n const selection = window.getSelection();\n const range = selection.getRangeAt(0);\n\n if (position.node) {\n range.setStart(position.node, position.offset);\n range.collapse();\n }\n\n const span = document.createElement('span');\n span.textContent = label;\n span.contentEditable = false;\n\n range.insertNode(span);\n range.setStartAfter(span);\n}\n\n/**\n * Receives a generic tags object to embbed variables into a template\n * and formats it to the sms template specification\n *\n * @param {object} tags - The tags object\n * @param {string} parent - The parent tag name\n * @returns {object} The formatted tags object\n */\nexport const formatToSmsTags = (tags, parent = null) => {\n const smsTags = Object.keys(tags).reduce((acum, key) => {\n if (tags[key].tags) {\n return [\n ...acum,\n {\n label: parent ? `${parent} > ${tags[key].name}` : tags[key].name,\n data: false,\n },\n ...formatToSmsTags(tags[key].tags, tags[key].name),\n ];\n }\n\n return [\n ...acum,\n {\n label: tags[key].name,\n value: tags[key].value,\n data: true,\n },\n ];\n }, []);\n\n return smsTags;\n};\n\n/**\n * Transforms an \"contenteditable\" html string into a plain text string\n *\n * @param {HTMLElement} element - Html element to extract the data from\n *\n * @returns {string} The formatted text message\n */\nexport const toPlainSMS = (element) => {\n const html = element.innerHTML;\n let sms = '';\n\n sms = html.replace(/
    (.+?)<\\/div>/g, (_, line) => {\n if (line === '
    ') return '\\n';\n\n return `\\n${line}`;\n });\n\n sms = sms.replace(//g, '{{');\n sms = sms.replace(/<\\/span>/g, '}}');\n sms = sms.replace(/ /g, ' ');\n\n return sms;\n};\n\n/**\n * Transforms plain text to a \"contenteditable\" html string\n *\n * @param {string} sms - Plain text content\n *\n * @returns {string} The formatted text message\n */\nexport const toPlainHTML = (sms) => {\n let html = '';\n\n html = sms.replace(/{{/g, '');\n html = html.replace(/}}/g, '');\n html = html.replace(/^(.|\\.)/gm, (_, character) => `
    ${character}`);\n html = html.replace(/(.|\\.)$/gm, (_, character) => `${character}
    `);\n html = html.replace(/^\\n/gm, '

    ');\n\n return html;\n};\n","export const WORKFLOW_TEMPLATE_TAGS = {\n lead: {\n name: 'Lead',\n tags: {\n id: {\n name: 'Id',\n value: 'lead.id',\n },\n firstName: {\n name: 'First name',\n value: 'lead.firstName',\n },\n middleName: {\n name: 'Middle name',\n value: 'lead.middleName',\n },\n lastName: {\n name: 'Last name',\n value: 'lead.lastName',\n },\n gender: {\n name: 'Gender',\n value: 'lead.gender',\n },\n email: {\n name: 'Email',\n value: 'lead.email',\n },\n stages: {\n name: 'Stage',\n value: 'lead.stages',\n },\n amount: {\n name: 'Amount',\n value: 'lead.amount',\n },\n quoteLink: {\n name: 'Quote Link',\n value: 'lead.quoteLink',\n },\n },\n },\n campaign: {\n name: 'Campaign',\n tags: {\n name: {\n name: 'Name',\n value: 'campaign.priority',\n },\n status: {\n name: 'Status',\n value: 'campaign.status',\n },\n startsAt: {\n name: 'Start date',\n value: 'campaign.startsAt',\n },\n endsAt: {\n name: 'End date',\n value: 'campaign.endsAt',\n },\n },\n },\n agency: {\n name: 'Agency',\n tags: {\n name: {\n name: 'Name',\n value: 'agency.name',\n },\n },\n },\n company: {\n name: 'Company',\n tags: {\n name: {\n name: 'Name',\n value: 'company.name',\n },\n },\n },\n};\n","import React, { useEffect, useRef, useCallback } from 'react';\nimport { Grid, Column as BoostColumn } from '@8base/boost';\nimport { getCaretPosition, insertField, toPlainHTML, formatToSmsTags } from '../sms-template-utils';\nimport { WORKFLOW_TEMPLATE_TAGS } from '../../workflow-templates-model';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst TextContainer = styled(Grid.Box)`\n border: 1px solid #cfd7de;\n height: 250px;\n resize: none;\n border-top-left-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n`;\n\nconst OptionsContainer = styled(Grid.Box)`\n border: 1px solid #cfd7de;\n border-left: none;\n border-top-right-radius: 0.5rem;\n border-bottom-right-radius: 0.5rem;\n`;\n\nconst TextInput = styled.div`\n width: 100%;\n height: 100%;\n max-height: 100%;\n overflow: auto;\n padding: 8px;\n font-size: 12px;\n\n & span {\n font-style: italic;\n font-size: 12px !important;\n background: #eee;\n color: #3db4aa;\n }\n`;\n\nconst FieldList = styled(BoostColumn)`\n max-height: 248px;\n overflow: auto;\n & > *:not(:last-child) {\n margin-bottom: 0px !important;\n }\n`;\n\nconst Field = styled.div`\n width: 100%;\n padding: 8px 8px;\n cursor: pointer;\n &:hover {\n background-color: #f4f7f9;\n }\n`;\n\nconst Label = styled.div`\n width: 100%;\n padding: 8px 8px;\n background-color: #f4f7f9;\n color: #61646b;\n font-weight: 600;\n ${({ loop }) =>\n loop &&\n `\n display: flex;\n align-items: center;\n justify-content: start;\n cursor: pointer;\n\n & > *:not(first-child) {\n margin-left: 5px;\n }\n `}\n`;\n\nconst smsTags = formatToSmsTags(WORKFLOW_TEMPLATE_TAGS);\n\nconst SmsTemplateEditor = React.forwardRef((props, ref) => {\n const timeoutRef = useRef('');\n const cursorRef = useRef({ node: null, offset: 0 });\n\n useEffect(() => {\n ref.current.innerHTML = toPlainHTML(props.initialValue);\n }, [ref, props.initialValue]);\n\n useEffect(() => {\n const element = ref.current;\n\n const onPaste = (e) => {\n e.preventDefault();\n\n const text = (e.clipboardData || window.clipboardData).getData('text/plain');\n\n document.execCommand('insertHTML', false, text);\n };\n\n element.addEventListener('paste', onPaste);\n\n return () => element.removeEventListener('paste', onPaste);\n }, [ref]);\n\n const handleSavePosition = useCallback(() => {\n clearTimeout(timeoutRef.current);\n\n timeoutRef.current = setTimeout(() => {\n cursorRef.current = getCaretPosition();\n }, 300);\n }, []);\n\n const handleFieldInsert = useCallback(\n (value) => insertField(ref.current, cursorRef.current, value),\n [ref],\n );\n\n return (\n \n \n \n \n \n \n {smsTags.map((field, i) =>\n field.data ? (\n handleFieldInsert(field.value)}>\n {field.label}\n \n ) : (\n \n ),\n )}\n \n \n \n );\n});\n\nSmsTemplateEditor.propTypes = {\n initialValue: PropTypes.string,\n};\n\nSmsTemplateEditor.defaultProps = {\n initialValue: '',\n};\n\nexport default SmsTemplateEditor;\n","import React, { useState, useRef, useCallback } from 'react';\nimport { Form, InputField, Button, Row } from '@8base/boost';\nimport { PrimaryBtn as ActionButton } from '../../../../shared/components/ui/buttons/PrimaryBtn';\nimport SmsTemplateEditor from './SmsTemplateEditor';\nimport { createSmsTemplate, updateSmsTemplate } from '../sms-template-action';\nimport { toPlainSMS } from '../sms-template-utils';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport {\n OnCreateSmsTemplatesError,\n OnCreateSmsTemplatesEvent,\n OnUpdateSmsTemplatesError,\n OnUpdateSmsTemplatesEvent,\n} from '../sms-template-events';\n\nconst Body = styled(Form.SectionBody)`\n padding: 24px;\n`;\n\nconst initialForm = {\n name: '',\n text: '',\n};\n\n/**\n * Sms template form component\n *\n * @param {object} props - The component's prop object\n * @param {string} props.template - The template object needed when updating\n * @param {string} props.agencyId - The id of the agency in which the template is going to be created\n * @param {Function} props.onDone - Function that triggers when the cancel button is clicked\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsTemplateForm({ template, agencyId, onDone }) {\n const textRef = useRef(null);\n const [loading, setLoading] = useState(false);\n const [form, setForm] = useState(\n template\n ? {\n id: template.id,\n name: template.name,\n text: template.text,\n }\n : initialForm,\n );\n\n const onSubmit = useCallback(() => {\n setLoading(true);\n const text = toPlainSMS(textRef.current);\n\n if (!form.id) {\n createSmsTemplate({\n name: form.name,\n text,\n agency: agencyId,\n });\n } else {\n updateSmsTemplate({\n id: form.id,\n name: form.name,\n text,\n });\n }\n }, [agencyId, form]);\n\n useEventSubscription(OnCreateSmsTemplatesEvent, () => {\n setLoading(false);\n\n Toast.success('Success', 'Sms template successfully created');\n\n onDone();\n });\n\n useEventSubscription(OnUpdateSmsTemplatesEvent, () => {\n setLoading(false);\n\n Toast.success('Success', 'Sms template successfully updated');\n\n onDone();\n });\n\n useEventSubscription(OnCreateSmsTemplatesError, (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n });\n\n useEventSubscription(OnUpdateSmsTemplatesError, (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n });\n\n return (\n
    \n \n \n setForm((state) => ({ ...state, name: value })),\n }}\n />\n \n \n \n \n {!form.id ? 'Create' : 'Update'}\n \n \n \n \n
    \n );\n}\n\nSmsTemplateForm.propTypes = {\n template: PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n }),\n agencyId: PropTypes.string.isRequired,\n onDone: PropTypes.func.isRequired,\n};\n\nSmsTemplateForm.defaultProps = {\n template: null,\n};\n\nexport default SmsTemplateForm;\n","import React from 'react';\nimport { Dialog } from '@8base/boost';\nimport SmsTemplateForm from './SmsTemplateForm';\nimport PropTypes from 'prop-types';\n\n/**\n * Sms template dialog\n *\n * @param {object} props - The component's prop object\n * @param {object} props.template - The template object to update\n * @param {string} props.agencyId - The id of the agency in which the template is going to be created\n * @param {boolean} props.isOpen - Whether the dialog is open or closed\n * @param {Function} props.onClose - Function that triggers when the close button on the dialog is clicked\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsTemplateDialog({ template, agencyId, isOpen, onClose }) {\n return (\n \n \n \n \n \n \n );\n}\n\nSmsTemplateDialog.propTypes = {\n template: PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n }),\n agencyId: PropTypes.string.isRequired,\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n};\n\nSmsTemplateDialog.defaultProps = {\n template: null,\n};\n\nexport default SmsTemplateDialog;\n","import React, { useState, useCallback } from 'react';\nimport { Table, Row, Pagination } from '@8base/boost';\nimport { YesNoDialog } from '../../../../shared/components';\nimport SmsTemplateTableItem from './SmsTemplateTableItem';\nimport SmsTemplateDialog from './SmsTemplateDialog';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { deleteSmsTemplate, cloneSmsTemplate } from '../sms-template-action';\nimport { useSmsTemplates } from '../sms-template-hooks';\nimport * as Toast from '../../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport {\n OnCloneSmsTemplatesError,\n OnCloneSmsTemplatesEvent,\n OnCreateSmsTemplatesEvent,\n OnDeleteSmsTemplatesError,\n OnDeleteSmsTemplatesEvent,\n OnUpdateSmsTemplatesEvent,\n} from '../sms-template-events';\n\nconst columns = '70px minmax(300px, 1fr) 200px';\n\nconst Body = styled(Table.Body)`\n min-height: 450px;\n`;\n\n/**\n * Sms template table component\n *\n * @param {object} props - The component's prop object\n * @param {string} props.id - The id of the agency\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsTemplatesTable({ id }) {\n const [page, setPage] = useState(1);\n const { items, count, loading, fetch } = useSmsTemplates(id, page);\n const [update, setUpdate] = useState({ open: false, selected: null });\n const [erase, setErase] = useState({ open: false, selected: null, loading: true });\n const [clone, setClone] = useState({ open: false, selected: null, loading: true });\n\n const refresh = useCallback(() => {\n if (page === 1) {\n fetch();\n } else {\n setPage(1);\n }\n }, [fetch, page]);\n\n const onUpdateClick = useCallback(\n (template) => setUpdate({ open: true, selected: template }),\n [],\n );\n\n const onCloneClick = useCallback((template) => setClone({ open: true, selected: template }), []);\n\n const onDeleteClick = useCallback((template) => setErase({ open: true, selected: template }), []);\n\n const onConfirmClone = useCallback(() => {\n cloneSmsTemplate(id, clone.selected);\n\n setClone((state) => ({ ...state, loading: true }));\n }, [id, clone.selected]);\n\n const onConfirmDelete = useCallback(() => {\n setErase((state) => ({ ...state, loading: true }));\n\n deleteSmsTemplate(erase.selected.id);\n }, [erase.selected]);\n\n useEventSubscription(OnCreateSmsTemplatesEvent, () => {\n refresh();\n });\n\n useEventSubscription(OnCloneSmsTemplatesEvent, () => {\n setClone((state) => ({ ...state, loading: false, selected: null, open: false }));\n refresh();\n\n Toast.success('Success', 'Template cloned successfully');\n });\n\n useEventSubscription(OnDeleteSmsTemplatesEvent, () => {\n setErase((state) => ({ ...state, loading: false, selected: null, open: false }));\n refresh();\n\n Toast.success('Success', 'Template deleted successfully');\n });\n\n useEventSubscription(OnUpdateSmsTemplatesEvent, () => {\n refresh();\n });\n\n useEventSubscription(OnCloneSmsTemplatesError, (e) => {\n setClone((state) => ({ ...state, loading: false }));\n onErrorMixinFC(e);\n });\n\n useEventSubscription(OnDeleteSmsTemplatesError, (e) => {\n setErase((state) => ({ ...state, loading: false }));\n onErrorMixinFC(e);\n });\n\n return (\n \n \n #\n NAME\n ACTIONS\n \n \n {(template, i) => (\n \n )}\n \n \n \n \n \n \n setUpdate({ open: false, selected: null })}\n />\n \n setErase((state) => ({ ...state, open: false, selected: null, loading: false }))\n }\n onClose={() =>\n setErase((state) => ({ ...state, open: false, selected: null, loading: false }))\n }\n />\n \n setClone((state) => ({ ...state, open: false, selected: null, loading: false }))\n }\n onClose={() =>\n setClone((state) => ({ ...state, open: false, selected: null, loading: false }))\n }\n />\n
    \n );\n}\n\nSmsTemplatesTable.propTypes = {\n id: PropTypes.string.isRequired,\n};\n\nexport default SmsTemplatesTable;\n","import React, { useState } from 'react';\nimport { Card, Column } from '@8base/boost';\nimport SmsTemplateTable from './components/SmsTemplatesTable';\nimport SmsTemplateDialog from './components/SmsTemplateDialog';\nimport { CreateButton } from 'shared/components';\nimport { useAgency } from 'shared/hooks/useAgency';\nimport styled from 'styled-components';\n\nconst CardHeader = styled(Card.Header)`\n display: flex;\n justify-content: flex-end;\n`;\n\n/**\n * Sms marketing templates component\n *\n * @returns {React.FC} The component to render\n */\nfunction SmsTemplatesView() {\n const agency = useAgency();\n const [isCreateOpen, setCreateOpen] = useState(false);\n\n return (\n \n \n \n setCreateOpen(true)}\n text=\"Create Template\"\n />\n \n \n \n \n \n setCreateOpen(false)}\n />\n \n );\n}\n\nexport default SmsTemplatesView;\n","import React, { useState, useEffect, useCallback } from 'react';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { Grid, Card as BoostCard, Heading, Row, Icon, Modal, styled } from '@8base/boost';\nimport EmailEditor from 'react-email-editor';\nimport { PrimaryBtn } from '../../../../shared/components';\nimport Field from '../../../../shared/components/Field';\nimport PropTypes from 'prop-types';\nimport { createEmailTemplate, updateEmailTemplate } from '../email-template-actions';\nimport { formatToMergeTags } from '../email-template-utils';\nimport { WORKFLOW_TEMPLATE_TAGS } from '../../workflow-templates-model';\nimport { onErrorMixinFC } from '../../../../shared/mixins';\nimport {\n OnEmailsTemplateCreateError,\n OnEmailsTemplateCreateEvent,\n OnEmailsTemplateUpdateError,\n OnEmailsTemplateUpdateEvent,\n} from '../email-template-events';\n\nconst Card = styled(BoostCard)`\n height: 97vh;\n width: 97vw;\n box-shadow: none !important;\n border-radius: 0.5rem !important;\n`;\n\nconst Body = styled(BoostCard.Body)`\n height: 100%;\n`;\n\nconst mergeTags = formatToMergeTags(WORKFLOW_TEMPLATE_TAGS);\n\n/**\n * TemplateCreator\n *\n * Full screen template creator with react-email-editor.\n *\n * @param {object} props - component props\n * @param {boolean} props.isOpen - opens the form\n * @param {Function} props.agencyId - The agency to create the template on\n * @param {object} props.template - The template object\n * @param {Function} props.onOpenChange - To handle open state\n *\n * @returns {React.ReactElement} component\n */\nconst TemplateCreator = ({ isOpen, agencyId, template, onOpenChange }) => {\n const [name, setName] = useState(template ? template.name : '');\n const [subject, setSubject] = useState(template ? template.subject : '');\n const [editor, setEditor] = useState(null);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (!loading && template && editor) {\n editor.loadDesign(template.json);\n }\n }, [loading, editor, template]);\n\n useEffect(() => {\n if (isOpen) {\n setName(template ? template.name : '');\n setSubject(template ? template.subject : '');\n } else {\n setEditor(null);\n }\n }, [template, isOpen]);\n\n const handleLoad = useCallback(() => {\n setLoading(false);\n }, []);\n\n const handleOnSubmit = useCallback(() => {\n setLoading(true);\n\n editor.exportHtml((data) => {\n const { html, design } = data;\n\n if (!template) {\n createEmailTemplate({\n name: name,\n subject: subject,\n template: html,\n json: design,\n agency: agencyId,\n });\n } else {\n updateEmailTemplate({\n id: template.id,\n name: name,\n subject: subject,\n template: html,\n json: design,\n });\n }\n });\n }, [name, subject, editor, agencyId, template]);\n\n const handleBlur = useCallback((e) => {\n setName(e.target.value);\n }, []);\n\n useEventSubscription(OnEmailsTemplateCreateEvent, () => {\n setLoading(false);\n });\n\n useEventSubscription(OnEmailsTemplateUpdateEvent, () => {\n setLoading(false);\n });\n\n useEventSubscription(OnEmailsTemplateCreateError, (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n });\n\n useEventSubscription(OnEmailsTemplateUpdateError, (e) => {\n setLoading(false);\n\n onErrorMixinFC(e);\n });\n\n return (\n \n {!isOpen ? null : (\n \n \n \n \n {template === null ? 'Create email template' : 'Update email template'}\n \n onOpenChange(false)}\n />\n \n \n \n \n \n \n \n \n \n setSubject(e.target.value)}\n defaultValue={subject}\n />\n \n \n \n \n \n \n \n \n Save\n \n \n \n \n )}\n \n );\n};\n\nTemplateCreator.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n agencyId: PropTypes.string.isRequired,\n template: PropTypes.object,\n onOpenChange: PropTypes.func.isRequired,\n};\n\nTemplateCreator.defaultProps = {\n template: null,\n};\n\nexport default TemplateCreator;\n","/**\n * Receives a generic tags object to embbed variables into a template\n * and formats it to the unlayer \"Email teplate editor\" specification\n *\n * @param {object} tags - The tags object\n *\n * @returns {object} The formatted merge tags object\n */\nexport function formatToMergeTags(tags) {\n const mergeTags = Object.keys(tags).reduce((acum, key) => {\n if (tags[key].tags) {\n return {\n ...acum,\n [key]: {\n name: tags[key].name,\n mergeTags: formatToMergeTags(tags[key].tags),\n },\n };\n }\n\n return {\n ...acum,\n [key]: {\n name: tags[key].name,\n value: `{{${tags[key].value}}}`,\n },\n };\n }, {});\n\n return mergeTags;\n}\n","import React, { useState, useCallback } from 'react';\nimport { useSubscription as useEventSubscription } from '@cobuildlab/react-simple-state';\nimport { Card, Table, styled, Row, Text, Pagination, Icon, Dropdown, Menu } from '@8base/boost';\nimport { IconUpdateAlt } from '../../../shared/components/ui/Icons';\nimport { YesNoDialog, CreateButton, TextEllipsis, DateBox } from 'shared/components';\nimport { deleteEmailTemplate, cloneEmailTemplate } from './email-template-actions';\nimport { useEmailTemplates } from './email-template-hooks';\nimport TemplateCreator from './components/TemplateCreator';\nimport * as Toast from '../../../shared/components/toast/Toast';\nimport { onErrorMixinFC } from '../../../shared/mixins';\nimport { useAgency } from '../../../shared/hooks/useAgency';\nimport {\n OnEmailsTemplateClonteError,\n OnEmailsTemplateClonteEvent,\n OnEmailsTemplateCreateEvent,\n OnEmailsTemplateDeleteError,\n OnEmailsTemplateDeleteEvent,\n OnEmailsTemplateUpdateEvent,\n} from './email-template-events';\n\nconst CardBody = styled.div`\n overflow: auto;\n padding: 0;\n`;\n\nconst TableBody = styled(Table.Body)`\n min-height: 470px;\n`;\n\nconst columnsSize = 'minmax(320px, 1fr) minmax(100px, 1fr) 150px';\n\nconst EmailTemplateView = () => {\n const agency = useAgency();\n const [page, setPage] = useState(1);\n const { count, items: templates, loading, fetch } = useEmailTemplates(agency.id, page);\n const [template, setTemplate] = useState(null);\n const [erase, setErase] = useState({ loading: false, open: false });\n const [clone, setClone] = useState({ loading: false, open: false });\n const [isOpenCreator, setIsOpenCreator] = useState(false);\n\n const refetch = useCallback(() => {\n if (page === 1) {\n fetch();\n } else {\n setPage(1);\n }\n }, [page, fetch]);\n\n const handleCreate = useCallback(() => {\n setTemplate(null);\n setIsOpenCreator(true);\n }, []);\n\n const handleUpdate = useCallback((template) => {\n return () => {\n setTemplate(template);\n setIsOpenCreator(true);\n };\n }, []);\n\n const handleDelete = useCallback((template, callback) => {\n return () => {\n setTemplate(template);\n setErase((state) => ({ ...state, loading: false, open: true }));\n callback();\n };\n }, []);\n\n const handleClone = useCallback((template) => {\n return () => {\n setTemplate(template);\n setClone((state) => ({ ...state, loading: false, open: true }));\n };\n }, []);\n\n const handleDeleteYes = useCallback(() => {\n setErase((state) => ({ ...state, loading: true }));\n\n deleteEmailTemplate(template.id);\n }, [template]);\n\n const handleCloneYes = useCallback(() => {\n setClone((state) => ({ ...state, loading: true }));\n\n cloneEmailTemplate(agency.id, template);\n }, [agency.id, template]);\n\n const handleClose = useCallback(() => {\n setTemplate(null);\n setErase((state) => ({ ...state, loading: false, open: false }));\n setClone((state) => ({ ...state, loading: false, open: false }));\n setIsOpenCreator(false);\n }, []);\n\n useEventSubscription(OnEmailsTemplateCreateEvent, () => {\n setIsOpenCreator(false);\n setTemplate(null);\n refetch();\n\n Toast.success('Success', 'Email template successfully created');\n });\n\n useEventSubscription(OnEmailsTemplateUpdateEvent, () => {\n setIsOpenCreator(false);\n setTemplate(null);\n refetch();\n\n Toast.success('Success', 'Email template successfully updated');\n });\n\n useEventSubscription(OnEmailsTemplateClonteEvent, () => {\n setTemplate(null);\n setClone((state) => ({ ...state, loading: false, open: false }));\n refetch();\n\n Toast.success('Success', 'Email template successfully cloned');\n });\n\n useEventSubscription(OnEmailsTemplateDeleteEvent, () => {\n setTemplate(null);\n setErase((state) => ({ ...state, loading: false, open: false }));\n refetch();\n\n Toast.success('Success', 'Email template successfully deleted');\n });\n\n useEventSubscription(OnEmailsTemplateDeleteError, (e) => {\n setErase((state) => ({ ...state, loading: false }));\n\n onErrorMixinFC(e);\n });\n\n useEventSubscription(OnEmailsTemplateClonteError, (e) => {\n setClone((state) => ({ ...state, loading: false }));\n\n onErrorMixinFC(e);\n });\n\n return (\n \n \n \n \n \n \n \n \n \n NAME\n CREATED\n ACTIONS\n \n \n {(template) => (\n \n \n \n {template.name}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {(context) => (\n \n \n Delete template\n \n \n )}\n \n \n \n \n \n )}\n \n \n \n \n \n \n
    \n
    \n \n \n \n
    \n );\n};\n\nexport default EmailTemplateView;\n","import React from 'react';\nimport ModuleSubMenu from '../../shared/components/ModuleSubMenu';\nimport { Switch, Route, Redirect } from 'react-router-dom';\nimport WorkflowAutomationView from './workflow-automation/WorkflowAutomationView';\nimport SmsTemplatesView from './sms-template/SmsTemplatesView';\nimport { Margin } from '../../shared/components';\nimport EmailTemplateView from './email-template/EmailTemplateView';\n\nconst WorkflowView = () => {\n const routes = [\n {\n name: 'Workflow Automations',\n path: '/workflow/workflow-automation',\n },\n {\n name: 'Email Templates',\n path: '/workflow/email-template',\n },\n {\n name: 'SMS Templates',\n path: '/workflow/sms-template',\n },\n ];\n\n return (\n
    \n \n \n \n \n \n \n \n \n \n
    \n );\n};\n\nexport default WorkflowView;\n","import React, { useState, useCallback } from 'react';\nimport { createEvent, useEvent } from '@cobuildlab/react-simple-state';\nimport { PrimaryBtn as PrimaryButton } from '../ui/buttons/PrimaryBtn';\nimport { Dialog, Column, Button, Row, Paragraph, Text } from '@8base/boost';\nimport logo from '../../assets/images/leadvolt-lightning.png';\nimport { log } from '@cobuildlab/pure-logger';\n\nexport const OnAppUpdate = createEvent();\n\n/**\n * App update available component\n *\n * @returns {React.ReactElement} The component to render\n */\nfunction AppUpdateAvailable() {\n const open = useEvent(OnAppUpdate);\n const [loading, setLoading] = useState(false);\n\n const handleClose = useCallback(() => {\n OnAppUpdate.dispatch(false);\n }, []);\n\n const handleRefresh = useCallback(async () => {\n setLoading(true);\n\n if (window.caches) {\n log('cache:', window.cache);\n\n const cacheNames = await window.caches.keys();\n log('caches:', cacheNames);\n\n cacheNames.forEach((cacheName) => window.caches.delete(cacheName));\n } else {\n log('no-cache:', window.cache);\n }\n\n window.location.reload();\n }, []);\n\n return (\n \n \n \n \"App\n \n New App Version\n \n \n A new version of the platform is available. Please close all other tabs of this platform\n and refresh\n \n \n \n \n \n \n Refresh\n \n \n \n \n );\n}\n\nexport default AppUpdateAvailable;\n","var _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgGoogle = function SvgGoogle(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n enableBackground: \"new 0 0 512 512\",\n height: 512,\n viewBox: \"0 0 512 512\",\n width: 512,\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"m120 256c0-25.367 6.989-49.13 19.131-69.477v-86.308h-86.308c-34.255 44.488-52.823 98.707-52.823 155.785s18.568 111.297 52.823 155.785h86.308v-86.308c-12.142-20.347-19.131-44.11-19.131-69.477z\",\n fill: \"#fbbd00\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m256 392-60 60 60 60c57.079 0 111.297-18.568 155.785-52.823v-86.216h-86.216c-20.525 12.186-44.388 19.039-69.569 19.039z\",\n fill: \"#0f9d58\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m139.131 325.477-86.308 86.308c6.782 8.808 14.167 17.243 22.158 25.235 48.352 48.351 112.639 74.98 181.019 74.98v-120c-49.624 0-93.117-26.72-116.869-66.523z\",\n fill: \"#31aa52\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m512 256c0-15.575-1.41-31.179-4.192-46.377l-2.251-12.299h-249.557v120h121.452c-11.794 23.461-29.928 42.602-51.884 55.638l86.216 86.216c8.808-6.782 17.243-14.167 25.235-22.158 48.352-48.353 74.981-112.64 74.981-181.02z\",\n fill: \"#3c79e6\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m352.167 159.833 10.606 10.606 84.853-84.852-10.606-10.606c-48.352-48.352-112.639-74.981-181.02-74.981l-60 60 60 60c36.326 0 70.479 14.146 96.167 39.833z\",\n fill: \"#cf2d48\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m256 120v-120c-68.38 0-132.667 26.629-181.02 74.98-7.991 7.991-15.376 16.426-22.158 25.235l86.308 86.308c23.753-39.803 67.246-66.523 116.87-66.523z\",\n fill: \"#eb4132\"\n }))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgGoogle, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/google.02d31de0.svg\";\nexport { ForwardRef as ReactComponent };","/* eslint-disable no-console */\n// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/),\n);\n\n/**\n * Registers service workers\n *\n * @param {object} config - The configuration object\n *\n * @returns {void}\n */\nexport default function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n console.log('register service worker running');\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\n console.log('PUBLIC_URL is on a different origin');\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n console.log('checking valid service worker');\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://goo.gl/SC7cgQ',\n );\n });\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\n/**\n * Registers valid service worker\n *\n * @param {string} swUrl - service worker url\n * @param {object} config - The configuration object\n *\n * @returns {void}\n */\nasync function registerValidSW(swUrl, config) {\n try {\n let registration = await navigator.serviceWorker.register(swUrl);\n\n //console.log('SW registration', registration);\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n //console.log('service worker installed');\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n\n config.onUpdate();\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n }\n }\n };\n };\n } catch (error) {\n console.log('error service worker', error);\n }\n}\n\n/**\n * Checks that the givenservice worker is valid\n *\n * @param {string} swUrl - Service worker url\n *\n * @returns {void}\n */\nfunction checkValidServiceWorker(swUrl) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl);\n }\n })\n .catch(() => {\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\n/**\n * Unregisters a service worker\n *\n * @returns {void}\n */\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister();\n });\n }\n}\n","var _path, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgMicrosoft = function SvgMicrosoft(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 172 172\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"nonzero\",\n stroke: \"none\",\n strokeWidth: 1,\n strokeLinecap: \"butt\",\n strokeLinejoin: \"miter\",\n strokeMiterlimit: 10,\n strokeDasharray: \"\",\n strokeDashoffset: 0,\n fontFamily: \"none\",\n fontWeight: \"none\",\n fontSize: \"none\",\n textAnchor: \"none\",\n style: {\n mixBlendMode: \"normal\"\n }\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,172v-172h172v172z\",\n fill: \"none\"\n })), _g || (_g = /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M78.83333,78.83333l-57.33333,0l0,-57.33333l57.33333,0z\",\n fill: \"#e74c3c\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M150.5,78.83333h-57.33333v-57.33333h57.33333z\",\n fill: \"#4caf50\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M150.5,150.5h-57.33333l0,-57.33333l57.33333,0z\",\n fill: \"#ffc107\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M78.83333,150.5h-57.33333v-57.33333h57.33333z\",\n fill: \"#03a9f4\"\n })))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgMicrosoft, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/microsoft.e8caf4a5.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgReply = function SvgReply(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 18,\n viewBox: \"0 0 20 18\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#384A59\",\n fillRule: \"evenodd\",\n d: \"M514.16678,822.905061 C514.16678,822.743159 514.065114,822.589352 513.909282,822.532687 C513.75345,822.467926 513.575119,822.500306 513.45512,822.621733 L505.121874,830.716825 C504.959375,830.870632 504.959375,831.129675 505.121874,831.283481 L513.45512,839.378574 C513.535119,839.459525 513.641785,839.5 513.750117,839.5 C513.80345,839.5 513.857616,839.491905 513.909282,839.46762 C514.065114,839.402859 514.16678,839.257147 514.16678,839.095245 L514.16678,833.849626 C515.971761,833.938672 523.014187,834.521518 524.183342,838.399067 C524.241675,838.59335 524.439173,838.714776 524.642504,838.682396 C524.847502,838.65811 525,838.488113 525,838.285736 C525,829.000665 516.118426,828.223536 514.16678,828.166871 L514.16678,822.905061 Z\",\n transform: \"translate(-505 -822)\"\n })));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgReply, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/reply.12b751d9.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgTrash = function SvgTrash(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 24,\n viewBox: \"0 0 18 24\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"#A5AFB6\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.5,4.5 L0.5,5.5 L17.5,5.5 L17.5,4.5 C17.5,3.4 16.605,2.5 15.5,2.5 L12.5,2.5 L12.053,1.61 C11.714,0.93 11.022,0.5 10.264,0.5 L7.736,0.5 C6.979,0.5 6.286,0.93 5.947,1.61 L5.5,2.5 L2.5,2.5 C1.396,2.5 0.5,3.4 0.5,4.5\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 5L17 5 17 4.5C17 3.67 16.327 3 15.5 3L12.5 3C12.311 3 12.138 2.89 12.053 2.72L11.606 1.83C11.35 1.32 10.836 1 10.264 1L7.736 1C7.164 1 6.651 1.32 6.395 1.83L5.947 2.72C5.862 2.89 5.69 3 5.5 3L2.5 3C1.673 3 1 3.67 1 4.5L1 5 1 5zM17.5 6L.5 6C.224 6 0 5.78 0 5.5L0 4.5C0 3.12 1.121 2 2.5 2L5.192 2 5.5 1.38C5.927.53 6.783 0 7.736 0L10.264 0C11.217 0 12.073.53 12.5 1.38L12.809 2 15.5 2C16.879 2 18 3.12 18 4.5L18 5.5C18 5.78 17.777 6 17.5 6L17.5 6zM14 20.5C14 20.78 13.777 21 13.5 21 13.224 21 13 20.78 13 20.5L13 8.5C13 8.22 13.224 8 13.5 8 13.777 8 14 8.22 14 8.5L14 20.5 14 20.5zM11 20.5C11 20.78 10.777 21 10.5 21 10.224 21 10 20.78 10 20.5L10 8.5C10 8.22 10.224 8 10.5 8 10.777 8 11 8.22 11 8.5L11 20.5 11 20.5zM8 20.5C8 20.78 7.777 21 7.5 21 7.224 21 7 20.78 7 20.5L7 8.5C7 8.22 7.224 8 7.5 8 7.777 8 8 8.22 8 8.5L8 20.5 8 20.5zM5 20.5C5 20.78 4.777 21 4.5 21 4.224 21 4 20.78 4 20.5L4 8.5C4 8.22 4.224 8 4.5 8 4.777 8 5 8.22 5 8.5L5 20.5 5 20.5zM16.5 7L1.5 7C1.224 7 1 7.22 1 7.5L1 20.5C1 22.43 2.57 24 4.5 24L13.5 24C15.43 24 17 22.43 17 20.5L17 7.5C17 7.22 16.777 7 16.5 7L16.5 7z\"\n }))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgTrash, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/trash.7428091f.svg\";\nexport { ForwardRef as ReactComponent };","var _title, _desc, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgChat = function SvgChat(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"30px\",\n height: \"25px\",\n viewBox: \"0 0 30 25\",\n ref: svgRef\n }, props), title === undefined ? _title || (_title = /*#__PURE__*/React.createElement(\"title\", null, \"chat\")) : title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _desc || (_desc = /*#__PURE__*/React.createElement(\"desc\", null, \"Created with Sketch.\")), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Symbols\",\n stroke: \"none\",\n strokeWidth: 1,\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"top-nav\",\n transform: \"translate(-1260.000000, -16.000000)\",\n fill: \"#384A59\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"chat\",\n transform: \"translate(1260.000000, 16.000000)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.814,15.26 L2.813,15.26 L2.814,15.26 L2.814,15.26 Z M10,16.5 C10,11.93 14.601,8.12 20.257,8.01 C20.409,8.01 20.552,7.94 20.644,7.82 C20.736,7.7 20.769,7.54 20.732,7.39 C19.64,3.04 15.432,0 10.5,0 C4.71,0 -1.70530257e-13,4.26 -1.70530257e-13,9.5 L0.005,9.65 C0.004,9.66 -1.70530257e-13,9.74 -1.70530257e-13,9.75 C-1.70530257e-13,11.84 0.807,13.82 2.362,15.5 L2.63,15.78 C3.008,16.17 3.425,16.53 3.874,16.86 L2.059,20.27 C1.95,20.47 1.995,20.72 2.167,20.88 C2.261,20.96 2.38,21 2.5,21 C2.599,21 2.697,20.97 2.783,20.92 L6.577,18.31 C7.57,18.67 8.633,18.89 9.739,18.97 C9.912,18.97 10.058,18.91 10.16,18.78 C10.262,18.66 10.298,18.49 10.255,18.34 C10.086,17.72 10,17.1 10,16.5 L10,16.5 Z\",\n id: \"Fill-1494\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16.5 C30,12.37 25.738,9 20.5,9 C15.262,9 11,12.37 11,16.5 C11,20.64 15.262,24 20.5,24 C20.993,24 21.508,23.97 22.079,23.89 C22.532,23.83 22.981,23.75 23.415,23.64 L26.291,24.96 C26.358,24.99 26.43,25 26.5,25 C26.621,25 26.74,24.96 26.834,24.87 C26.982,24.74 27.037,24.53 26.974,24.34 L26.327,22.42 C28.635,21.01 30,18.82 30,16.5\",\n id: \"Fill-1495\"\n }))))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgChat, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/chat.c643de05.svg\";\nexport { ForwardRef as ReactComponent };","var _title, _desc, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgNotifications = function SvgNotifications(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"25px\",\n height: \"30px\",\n viewBox: \"0 0 25 30\",\n ref: svgRef\n }, props), title === undefined ? _title || (_title = /*#__PURE__*/React.createElement(\"title\", null, \"notifications\")) : title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _desc || (_desc = /*#__PURE__*/React.createElement(\"desc\", null, \"Created with Sketch.\")), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Symbols\",\n stroke: \"none\",\n strokeWidth: 1,\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"top-nav\",\n transform: \"translate(-1207.000000, -13.000000)\",\n fill: \"#384A59\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"notifications\",\n transform: \"translate(1207.000000, 13.000000)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8902521,25.251 L22.8722521,21.743 C21.9342521,20.179 21.4782521,18.389 21.4782521,16.27 L21.4782521,13.109 C21.4782521,9.058 18.4312521,5.555 14.4782521,4.648 L14.4782521,2 C14.4782521,0.897 13.5802521,0 12.4782521,0 C11.3752521,0 10.4782521,0.897 10.4782521,2 L10.4782521,4.648 C6.52525211,5.555 3.47825211,9.058 3.47825211,13.109 L3.47825211,16.27 C3.47825211,18.39 3.02225211,20.18 2.08025211,21.751 L0.0662521067,25.251 C-0.0227478933,25.405 -0.0217478933,25.596 0.0672521067,25.75 C0.157252107,25.905 0.321252107,26 0.500252107,26 L24.4562521,26 C24.6352521,26 24.8002521,25.905 24.8892521,25.75 C24.9792521,25.596 24.9792521,25.405 24.8902521,25.251\",\n id: \"Fill-53\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.4781521,30 C14.1371521,30 15.4851521,28.656 15.4971521,27 L9.45815211,27 C9.47015211,28.656 10.8191521,30 12.4781521,30\",\n id: \"Fill-54\"\n }))))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgNotifications, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/notifications.446443e3.svg\";\nexport { ForwardRef as ReactComponent };","var _title, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgNoNotifications = function SvgNoNotifications(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"86px\",\n height: \"85px\",\n viewBox: \"0 0 86 85\",\n ref: svgRef\n }, props), title === undefined ? _title || (_title = /*#__PURE__*/React.createElement(\"title\", null, \"no-notifications-illustration\")) : title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Dashboard-/-Notifications\",\n stroke: \"none\",\n strokeWidth: 1,\n fill: \"none\",\n fillRule: \"evenodd\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Notifications---Empty\",\n transform: \"translate(-969.000000, -262.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"notifications-side\",\n transform: \"translate(709.000000, 66.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"no-ntifications\",\n transform: \"translate(120.000000, 193.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"no-notifications-illustration\",\n transform: \"translate(139.000000, 0.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(1.911111, 4.500000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"application-icons/notifications\",\n stroke: \"#DADEE3\",\n strokeWidth: 4\n }, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(0.646243, 0.000000)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M34.180167,7.80867052 C36.7136375,7.80867052 39.1546456,8.16746775 41.4699048,8.80494243 C41.5216838,8.47749642 41.5771612,8.1500504 41.5771612,7.80867052 C41.5771612,3.95943815 38.2670063,0.841734104 34.180167,0.841734104 C30.0933277,0.841734104 26.7831728,3.95943815 26.7831728,7.80867052 C26.7831728,8.1500504 26.8386502,8.47749642 26.8904292,8.80494243 C29.2056884,8.16746775 31.6466965,7.80867052 34.180167,7.80867052 L34.180167,7.80867052 Z\",\n id: \"Stroke-390\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M66.9721519,63.2525956 C63.8432234,56.7628943 56.3722592,46.1278658 56.3722592,32.193993 C56.3722592,20.0262386 49.9294772,9.9415981 38.1423669,8.10581036 C23.9290425,5.89380805 11.5242832,17.343968 11.9681029,30.9051098 C12.445209,45.4764573 4.67466659,56.5643366 1.44957711,63.2525956 C-0.196254099,66.6629109 2.46666382,70.5121433 6.44254821,70.5121433 L61.9791808,70.5121433 C65.9550652,70.5121433 68.6179831,66.6629109 66.9721519,63.2525956 L66.9721519,63.2525956 Z\",\n id: \"Stroke-392\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.52228676,63.5441618 C9.71091011,63.1923316 9.90693046,62.8300509 10.1066493,62.4573198 C13.8014479,55.6088213 19.3861785,45.2594372 19.3861785,32.192948 C19.3861785,23.7734053 23.273299,14.7756069 34.180167,14.7756069\",\n id: \"Stroke-394\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.2756583,70.5110983 C45.2756583,76.2832051 40.3085767,80.9615029 34.180167,80.9615029 C28.0517573,80.9615029 23.0846757,76.2832051 23.0846757,70.5110983\",\n id: \"Stroke-396\"\n }))), /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-11\",\n transform: \"translate(43.955556, 43.200000)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,18 C0,8.0568 8.55795556,0 19.1111111,0 C29.6680889,0 38.2222222,8.0568 38.2222222,18 C38.2222222,27.9432 29.6680889,36 19.1111111,36 C8.55795556,36 0,27.9432 0,18 Z\",\n id: \"Stroke-6654-Copy\",\n stroke: \"#FFFFFF\",\n strokeWidth: 3.96,\n fill: \"#FFFFFF\"\n }), /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-8\",\n transform: \"translate(1.911111, 1.800000)\",\n stroke: \"#DADEE3\",\n strokeWidth: 3.6\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,16.2 C0,7.25112 7.70216,0 17.2,0 C26.70128,0 34.4,7.25112 34.4,16.2 C34.4,25.14888 26.70128,32.4 17.2,32.4 C7.70216,32.4 0,25.14888 0,16.2 Z\",\n id: \"Stroke-6654\",\n fill: \"#FFFFFF\"\n }), /*#__PURE__*/React.createElement(\"line\", {\n x1: 5.038912,\n y1: 4.745952,\n x2: 29.363152,\n y2: 27.652752,\n id: \"Stroke-6656\"\n })))))))))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgNoNotifications, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/no-notifications.511498fc.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgInvitations = function SvgInvitations(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 30,\n height: 26,\n viewBox: \"0 0 30 26\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#384A59\",\n d: \"M16.1568003 12.3208003L13.2192003 12.3208003C11.0772002 12.3208003 9.05760019 13.2388003 7.58880016 14.8912004 6.18120013 16.4212004 5.38560011 18.5020004 5.32440011 20.7052005L5.32440011 24.8668006C5.32440011 25.1728006 5.56920012 25.4788006 5.93640012 25.4788006L23.5008005 25.4788006C23.8680005 25.4788006 24.1128005 25.1728006 24.1128005 24.8668006L24.1128005 20.8888005C23.9904005 16.1152004 20.4408004 12.3208003 16.1568003 12.3208003zM6.12000013 13.6672003C8.13960017 13.6672003 9.79200021 11.1580003 9.79200021 9.07720023 9.79200021 7.05760019 8.13960017 5.40520016 6.12000013 5.40520016 4.10040009 5.40520016 2.44800005 7.05760019 2.44800005 9.07720023 2.44800005 11.2192003 4.03920008 13.6672003 6.12000013 13.6672003zM10 4.88292683C10 7.6195122 12.3076923 11 15 11 17.6923077 11 20 7.6195122 20 4.88292683 20 2.2 17.7472527 0 15 0 12.2527473 0 10 2.2 10 4.88292683zM27.3440002 9.13840023C27.3440002 7.11880019 25.6916001 5.46640016 23.6720001 5.46640016 21.6524 5.46640016 20 7.11880019 20 9.13840023 20 11.2192003 21.6524 13.7284003 23.6720001 13.7284003 25.6916001 13.6672003 27.3440002 11.2192003 27.3440002 9.13840023zM0 19.7260005L0 22.0516005C0 22.4188005.306000006 22.6636005.612000013 22.6636005L4.10040009 22.6024005 4.10040009 20.8276005C4.16160009 18.5632004 4.8960001 16.4212004 6.18120013 14.7076004L5.07960011 14.7076004C3.73320008 14.7076004 2.44800005 15.2584004 1.46880003 16.2376004.550800012 17.1556004 0 18.3796004 0 19.7260005zM24.1740005 14.4628003L23.0724005 14.4628003C24.4188005 16.1152004 25.2756005 18.3184004 25.3368005 20.6440005L25.3368005 22.2964005 28.7640006 22.2352005C29.0700006 22.2352005 29.3760006 21.9292005 29.3760006 21.6232005L29.3760006 19.4200005C29.2536006 16.6660004 26.9280006 14.4016003 24.1740005 14.4628003z\"\n })));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgInvitations, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/invitations.35ef030e.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgLandline = function SvgLandline(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 172 172\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"nonzero\",\n stroke: \"none\",\n strokeWidth: 1,\n strokeLinecap: \"butt\",\n strokeLinejoin: \"miter\",\n strokeMiterlimit: 10,\n strokeDasharray: \"\",\n strokeDashoffset: 0,\n fontFamily: \"none\",\n fontWeight: \"none\",\n fontSize: \"none\",\n textAnchor: \"none\",\n style: {\n mixBlendMode: \"normal\"\n }\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,172v-172h172v172z\",\n fill: \"none\"\n })), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"#cfd7de\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M41.19938,13.90781c0,0 -7.49813,0 -15.85625,3.96406v-0.01344c-6.39625,3.03688 -11.78469,7.47125 -14.37813,11.09938c-0.76594,0.99437 -0.92719,2.33812 -0.43,3.48031c0.51063,1.15562 1.59906,1.935 2.86219,2.05594c1.24969,0.1075 2.45906,-0.48375 3.15781,-1.53188c1.23625,-1.73344 6.53063,-6.40969 11.74438,-8.88219c6.94719,-3.29219 12.9,-3.29219 12.9,-3.29219c1.23625,0.01344 2.39187,-0.63156 3.02344,-1.70656c0.61812,-1.075 0.61812,-2.39187 0,-3.46687c-0.63156,-1.075 -1.78719,-1.72 -3.02344,-1.70656zM109.60969,17.2c-7.94156,-0.02687 -17.49562,0.30906 -28.12469,1.67969c-14.12281,1.81406 -26.875,4.6225 -38.99562,8.58656c-20.58625,6.70531 -27.4125,14.57969 -29.97906,17.53594l-0.24188,0.28219c-5.07937,5.81844 1.38406,26.56594 1.43781,26.7675c1.53188,4.70312 5.41531,7.06812 8.86875,7.06812c0.69875,0 1.37063,-0.09406 2.00219,-0.28219c1.29,-0.38969 6.36938,-2.40531 13.96156,-5.41531c3.73563,-1.49156 7.04125,-2.80844 8.11625,-3.19812c2.92938,-1.075 5.14656,-4.16563 5.9125,-8.25063c0.37625,-1.90812 2.45906,-10.62906 3.80281,-16.17875c3.50719,-1.41094 13.23594,-4.87781 27.80219,-6.75906c14.55281,-1.88125 24.87281,-1.14219 28.62188,-0.7525c3.84312,6.46344 9.39281,15.8025 9.64812,16.19219c1.85438,2.83531 4.3,4.50156 6.89344,4.70312c1.16906,0.09406 4.97188,0.57781 9.17781,1.10188c7.74,0.9675 12.91344,1.59906 14.37813,1.63937c3.77594,0.06719 8.39844,-3.45344 8.73437,-9.32562c0.01344,-0.215 0.91375,-21.47313 -5.50937,-25.82688c0,0 -0.63156,-0.43 -0.99438,-0.65844c-3.99094,-2.60688 -14.17656,-8.22375 -38.10875,-8.80156c-2.28437,-0.06719 -4.74344,-0.1075 -7.40406,-0.1075zM65.36,55.04c-1.89469,0 -3.44,1.54531 -3.44,3.44v8.82844c-3.48031,3.3325 -14.82156,14.39156 -28.40687,30.2075c-11.395,13.26281 -12.9,22.53469 -12.87313,29.85813c0.02688,6.43656 3.34594,27.09 3.49375,27.96344c0.25531,1.67969 1.69313,2.9025 3.38625,2.9025h17.2c1.89469,0 3.44,-1.54531 3.44,-3.44v-3.44h82.56v3.44c0,1.89469 1.54531,3.44 3.44,3.44h17.2c1.69313,0 3.13094,-1.22281 3.38625,-2.9025c0.14781,-0.87344 3.48031,-21.56719 3.49375,-28.0575c0.01344,-7.28312 -1.49156,-16.52812 -12.87312,-29.76406c-13.58531,-15.81594 -24.92656,-26.875 -28.40688,-30.2075v-8.82844c0,-1.89469 -1.54531,-3.44 -3.44,-3.44h-10.32c-1.89469,0 -3.44,1.54531 -3.44,3.44v6.88h-20.64v-6.88c0,-1.89469 -1.54531,-3.44 -3.44,-3.44zM130.70656,65.50781c-1.46469,-0.01344 -2.78156,0.91375 -3.26531,2.28437c-0.49719,1.38406 -0.05375,2.91594 1.075,3.84313c3.01,2.48594 7.28313,3.73562 12.30875,4.04469c6.04688,0.36281 8.86875,-0.33594 11.9325,-1.505c1.77375,-0.69875 2.64719,-2.6875 1.96188,-4.46125c-0.68531,-1.77375 -2.67406,-2.66062 -4.44781,-1.97531c-2.84875,1.10188 -3.45344,1.41094 -9.01656,1.06156c-4.00437,-0.24187 -7.18906,-1.505 -8.34469,-2.4725c-0.61813,-0.52406 -1.3975,-0.81969 -2.20375,-0.81969zM61.92,86h13.76v6.88h-13.76zM82.56,86h13.76v6.88h-13.76zM103.2,86h13.76v6.88h-13.76zM61.92,99.76h13.76v6.88h-13.76zM82.56,99.76h13.76v6.88h-13.76zM103.2,99.76h13.76v6.88h-13.76zM61.92,113.52h13.76v6.88h-13.76zM82.56,113.52h13.76v6.88h-13.76zM103.2,113.52h13.76v6.88h-13.76z\"\n })))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgLandline, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/landline.6388d24f.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _g;\nvar _excluded = [\"svgRef\", \"title\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from \"react\";\nvar SvgMobilePhone = function SvgMobilePhone(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 172 172\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"nonzero\",\n stroke: \"none\",\n strokeWidth: 1,\n strokeLinecap: \"butt\",\n strokeLinejoin: \"miter\",\n strokeMiterlimit: 10,\n strokeDasharray: \"\",\n strokeDashoffset: 0,\n fontFamily: \"none\",\n fontWeight: \"none\",\n fontSize: \"none\",\n textAnchor: \"none\",\n style: {\n mixBlendMode: \"normal\"\n }\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,172v-172h172v172z\",\n fill: \"none\"\n })), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"#cfd7de\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M118.25,7.16667h-64.5c-9.89,0 -17.91667,8.02667 -17.91667,17.91667v121.83333c0,9.89 8.02667,17.91667 17.91667,17.91667h64.5c9.89,0 17.91667,-8.02667 17.91667,-17.91667v-121.83333c0,-9.89 -8.02667,-17.91667 -17.91667,-17.91667zM86,151.39583c-4.45767,0 -8.0625,-3.60483 -8.0625,-8.0625c0,-4.45767 3.60483,-8.0625 8.0625,-8.0625c4.45767,0 8.0625,3.60483 8.0625,8.0625c0,4.45767 -3.60483,8.0625 -8.0625,8.0625zM121.83333,129h-71.66667v-100.33333h71.66667z\"\n })))));\n};\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgMobilePhone, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/mobile_phone.99e2b10b.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\nimport { AppProvider } from '@8base/react-sdk';\nimport { Route, Switch, Redirect, BrowserRouter } from 'react-router-dom';\nimport { BoostProvider, AsyncContent, createTheme } from '@8base/boost';\nimport { ProtectedRoute, Layout, Session } from './shared/components';\nimport AuthClient from 'shared/auth';\nimport { AuthCallback } from './modules/auth';\nimport { DashboardView } from './modules/dashboard/DashboardView';\nimport DesignSystemView from './modules/design-system/DesignSystemView';\nimport CampaignsView from './modules/campaigns/CampaignsView';\nimport { CampaignDetailsView } from './modules/campaigns/CampaignDetailsView';\nimport Email from './modules/email/Email';\nimport Welcome from 'Welcome';\nimport LeadsView from './modules/leads/LeadsView';\nimport LeadsCsvDialogs from './modules/leads/components/LeadsCsvDialogs';\nimport { LeadTaskView } from './modules/lead-task/LeadTaskView';\nimport CalendarView from './modules/calendar/CalendarView';\nimport LeadDetailView from './modules/leads/LeadDetailsView';\nimport SettingsView from './modules/settings/SettingsView';\nimport ReportsView from './modules/reports/ReportsView';\n//import RegistrationStatus from './modules/settings/RegistrationStatus';\nimport { toast, ToastContainer } from 'react-toastify';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { loadStripe } from '@stripe/stripe-js';\nimport { BLACK, PRIMARY, TEXT_LIGHT_GRAY, GRAY_30, ICON_GRAY } from './shared/constants/colors';\nimport { ComposeEmailProvider } from './modules/email/components/ComposeEmailProvider';\nimport { rollbar } from './shared/rollbar';\nimport WorkflowView from './modules/workflow/WorkflowView';\nimport { Apollo } from 'shared/apollo/Apollo';\nimport AppUpdateAvailable, { OnAppUpdate } from './shared/components/dialog/AppUpdateAvailable';\nimport registerServiceWorker from './registerServiceWorker';\nimport { ReactComponent as GoogleIcon } from './shared/assets/images/google.svg';\nimport { ReactComponent as MicrosoftIcon } from './shared/assets/images/microsoft.svg';\nimport { ReactComponent as ReplyDefault } from './shared/assets/images/reply.svg';\nimport { ReactComponent as TrashCustom } from './shared/assets/images/trash.svg';\nimport { ReactComponent as ChatIcon } from './shared/assets/images/chat.svg';\nimport { ReactComponent as BellIcon } from './shared/assets/images/notifications.svg';\nimport { ReactComponent as NoBellIcon } from './shared/assets/images/no-notifications.svg';\nimport { ReactComponent as GroupIcon } from './shared/assets/images/invitations.svg';\nimport { ReactComponent as LandlineIcon } from './shared/assets/images/landline.svg';\nimport { ReactComponent as MobilePhoneIcon } from './shared/assets/images/mobile_phone.svg';\nimport { OnServiceWorkerRegistered } from 'modules/notifications/notifications-store';\nimport { fetchSession } from 'modules/auth/auth.actions';\n\nimport { Chart, LinearScale, CategoryScale, Tooltip } from 'chart.js';\nimport { FunnelController, TrapezoidElement } from 'chartjs-chart-funnel';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\n\n// register controller in chart.js and ensure the defaults are set\nChart.register(\n ChartDataLabels,\n FunnelController,\n TrapezoidElement,\n LinearScale,\n CategoryScale,\n Tooltip,\n);\n\nconst workspaceEndpoint = process.env.REACT_APP_WORKSPACE_ENDPOINT;\nconst stripePromise = loadStripe(process.env.REACT_APP_STRIPE_PUBLIC_KEY);\n\nconst theme = createTheme({\n /** Change the pallet of the color. */\n COLORS: {\n BLACK,\n PRIMARY,\n APP_PRIMARY: PRIMARY,\n TEXT_LIGHT_GRAY,\n GRAY_30,\n ICON_GRAY,\n },\n /** Change the custom components styles if it needed. */\n components: {\n dialog: {\n root: {\n 'div:first-child > span': {\n fontSize: '16px',\n },\n },\n },\n },\n});\n\nconst icons = {\n GoogleIcon,\n MicrosoftIcon,\n ReplyDefault,\n TrashCustom,\n ChatIcon,\n BellIcon,\n NoBellIcon,\n GroupIcon,\n LandlineIcon,\n MobilePhoneIcon,\n};\n\nclass App extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.state = {\n rollbar,\n isRegistered: undefined,\n id: undefined,\n };\n }\n\n onRequestSuccess = ({ operation }) => {\n const message = operation.getContext();\n\n if (message) {\n // eslint-disable-next-line no-console\n console.error(message);\n }\n };\n\n onRequestError = ({ graphQLErrors }) => {\n const hasGraphQLErrors = Array.isArray(graphQLErrors) && graphQLErrors.length > 0;\n\n if (hasGraphQLErrors) {\n graphQLErrors.forEach((error) => {\n // eslint-disable-next-line no-console\n console.error(error.message);\n });\n }\n };\n\n checkRegistration = async () => {\n let token;\n const request = await fetchSession();\n this.setState({ id: request?.user?.selectedAgency?.id });\n\n if (localStorage.getItem('auth')) {\n token = JSON.parse(localStorage.getItem('auth'));\n }\n if (this.state.id) {\n try {\n /*console.log(\n `FROM PROTECTED ROUTE ${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/check-brand-registration/${this.state.id}`,\n );*/\n const res = await fetch(\n `${process.env.REACT_APP_WORKSPACE_ENDPOINT}/webhook/check-brand-registration/${this.state.id}`,\n {\n method: 'get',\n headers: {\n Authorization: `Bearer ${token}`,\n },\n },\n );\n\n const resJson = await res.json();\n //console.log('resJson', resJson);\n\n return resJson?.registrationComplete;\n } catch (e) {\n console.error('error', e);\n }\n }\n };\n\n renderContent = () => {\n //console.log(restProps.location);\n //console.log('isAuthorized', isAuthorized);\n\n return (\n \n \n \n \n } />\n\n {/* (\n \n \n \n \n \n )}\n />*/}\n {/* (\n \n \n \n \n \n )}\n />*/}\n \n \n \n \n \n {/*this.state.isRegistered === false && (\n \n )*/}\n \n \n \n \n (\n \n \n \n )}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n } />\n \n \n \n );\n };\n\n render() {\n const { onRequestError, onRequestSuccess } = this;\n\n return (\n \n \n \n \n {this.renderContent}\n \n \n \n \n \n \n );\n }\n}\n\nexport default App;\n\nregisterServiceWorker({\n onUpdate: () => OnAppUpdate.dispatch(true),\n onActive: (registration) => OnServiceWorkerRegistered.dispatch(registration),\n});\n","import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport App from './App';\nimport './index.css';\nimport 'react-toastify/dist/ReactToastify.css';\nimport './shared/components/toast/toast-overrides.css';\nimport 'slick-carousel/slick/slick.css';\nimport 'slick-carousel/slick/slick-theme.css';\nimport './shared/stripe/stripe.css';\n\nReactDOM.render(, document.getElementById('root'));\n","module.exports = __webpack_public_path__ + \"static/media/filter-green.3315f2ff.svg\";","module.exports = __webpack_public_path__ + \"static/media/table-sort-grey.564afb3b.svg\";","module.exports = __webpack_public_path__ + \"static/media/trasnfer.412a0107.svg\";","module.exports = __webpack_public_path__ + \"static/media/call-green.2cae2be1.svg\";","module.exports = __webpack_public_path__ + \"static/media/Search-dark.24cea465.svg\";","module.exports = __webpack_public_path__ + \"static/media/call-phone.4c14c546.svg\";","module.exports = __webpack_public_path__ + \"static/media/chevron.277a20fa.svg\";","module.exports = __webpack_public_path__ + \"static/media/information.786198e7.svg\";","module.exports = __webpack_public_path__ + \"static/media/left-arrow.42fad3fd.svg\";","module.exports = __webpack_public_path__ + \"static/media/right-arrow.1a617758.svg\";","module.exports = __webpack_public_path__ + \"static/media/update.a0c9c7b1.svg\";","module.exports = __webpack_public_path__ + \"static/media/campaigns-gray.020c4362.svg\";","module.exports = __webpack_public_path__ + \"static/media/alert.46bdcd90.svg\";","module.exports = __webpack_public_path__ + \"static/media/create-company.cd987462.svg\";","module.exports = __webpack_public_path__ + \"static/media/Billing-information.26f4f543.svg\";","module.exports = __webpack_public_path__ + \"static/media/First-Agency-Info.d6061bd5.svg\";","module.exports = __webpack_public_path__ + \"static/media/Subscription-plan.a3383aa2.svg\";","module.exports = __webpack_public_path__ + \"static/media/chat-green.a715a0d7.svg\";","module.exports = __webpack_public_path__ + \"static/media/compose-email-green.e1645a90.svg\";","module.exports = __webpack_public_path__ + \"static/media/compose-email-white.d1b0be5b.svg\";","module.exports = __webpack_public_path__ + \"static/media/info.951fa4d2.svg\";","module.exports = __webpack_public_path__ + \"static/media/tasks-green.f91412e7.svg\";","module.exports = __webpack_public_path__ + \"static/media/inbox-green.023c0b70.svg\";","module.exports = __webpack_public_path__ + \"static/media/update-grey.af785479.svg\";","module.exports = __webpack_public_path__ + \"static/media/recording-green.ba97a9c1.svg\";","module.exports = __webpack_public_path__ + \"static/media/call-phone-green.0ebcfb99.svg\";","module.exports = __webpack_public_path__ + \"static/media/chevron-down.ca1aa3c1.svg\";","module.exports = __webpack_public_path__ + \"static/media/campaign-leads-endpoint.b6d02e4b.md\";","module.exports = __webpack_public_path__ + \"static/media/compose-email.1834ca45.svg\";","module.exports = __webpack_public_path__ + \"static/media/google.02d31de0.svg\";","module.exports = __webpack_public_path__ + \"static/media/microsoft.e8caf4a5.svg\";","module.exports = __webpack_public_path__ + \"static/media/leads.8a080321.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_drivers.1eb3e9e5.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_auto.ab658d24.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_auto_with_drivers.07aa6d8f.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_commercial_auto.c87b38d6.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_commercial_auto_with_drivers.443c116f.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_home.1a561093.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_home_with_drivers.4c3d97cb.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_life.d781ebaa.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_life_with_drivers.de743d0b.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_employee_benefits.cefe17b3.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_employee_benefits_with_drivers.4f067e51.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_general_liability.4f17379c.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_general_liability_with_drivers.297f16bb.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_workers_compensation.95386136.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_workers_compensation_with_drivers.9e3e93b6.csv\";","module.exports = __webpack_public_path__ + \"static/media/leads_ricochet.f02766c9.csv\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABzCAYAAACrQz3mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvd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