@dakkitor/api-contracts 1.1.154 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +53 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +92 -1
- package/dist/abilities/abilities.contract.spec.d.ts +2 -0
- package/dist/abilities/abilities.contract.spec.d.ts.map +1 -0
- package/dist/abilities/abilities.contract.spec.js +145 -0
- package/dist/abilities/admin-dashboard.abilities.test.d.ts +2 -0
- package/dist/abilities/admin-dashboard.abilities.test.d.ts.map +1 -0
- package/dist/abilities/admin-dashboard.abilities.test.js +33 -0
- package/dist/abilities/admin.abilities.json +19 -0
- package/dist/abilities/bot.abilities.json +13 -4
- package/dist/abilities/first-agent.abilities.json +317 -70
- package/dist/abilities/interconnection.abilities.json +75 -0
- package/dist/abilities/kpi.abilities.json +68 -0
- package/dist/abilities/office-manager.abilities.json +111 -0
- package/dist/abilities/second-agent.abilities.json +417 -43
- package/dist/abilities/team-leads.json +71 -6
- package/dist/abilities/worker-curator.abilities.json +233 -0
- package/dist/actives/actives.contract.d.ts +19379 -23651
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +517 -114
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1431 -291
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +1050 -81
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.js +115 -3
- package/dist/bookings/booking-worker-summary.spec.d.ts +2 -0
- package/dist/bookings/booking-worker-summary.spec.d.ts.map +1 -0
- package/dist/bookings/booking-worker-summary.spec.js +25 -0
- package/dist/bookings/bookings.contract.d.ts +20643 -26117
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +383 -91
- package/dist/bookings/bookings.contract.spec.d.ts +2 -0
- package/dist/bookings/bookings.contract.spec.d.ts.map +1 -0
- package/dist/bookings/bookings.contract.spec.js +11 -0
- package/dist/bookings/job-lock.spec.d.ts +2 -0
- package/dist/bookings/job-lock.spec.d.ts.map +1 -0
- package/dist/bookings/job-lock.spec.js +56 -0
- package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts +232 -0
- package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts.map +1 -0
- package/dist/bot-parse-cache/bot-parse-cache.contract.js +64 -0
- package/dist/call-history/call-history.contract.d.ts +1336 -767
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +86 -10
- package/dist/calls-feed/calls-feed.contract.d.ts +417 -0
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -0
- package/dist/calls-feed/calls-feed.contract.js +32 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +410 -226
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +35 -4
- package/dist/clients/clients.contract.d.ts +227 -73
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +45 -21
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2908 -1834
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaboration-checkings/collaboration-checkings.contract.js +14 -9
- package/dist/collaborations/collaborations.contract.d.ts +2676 -1409
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +33 -9
- package/dist/common/call-rating.schema.d.ts.map +1 -1
- package/dist/common/call-rating.schema.js +4 -2
- package/dist/common/common-schemas.d.ts +59 -11
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +55 -29
- package/dist/common/error-schemas.d.ts +2 -2
- package/dist/common/pagination-query.schema.d.ts +13 -2
- package/dist/common/pagination-query.schema.d.ts.map +1 -1
- package/dist/common/pagination-query.schema.js +21 -2
- package/dist/common/pagination-query.schema.spec.d.ts +2 -0
- package/dist/common/pagination-query.schema.spec.d.ts.map +1 -0
- package/dist/common/pagination-query.schema.spec.js +53 -0
- package/dist/companies/companies.contract.d.ts +53 -28
- package/dist/companies/companies.contract.d.ts.map +1 -1
- package/dist/companies/companies.contract.js +11 -10
- package/dist/crews/crews.contract.d.ts +1010 -196
- package/dist/crews/crews.contract.d.ts.map +1 -1
- package/dist/crews/crews.contract.js +98 -17
- package/dist/crews/crews.contract.spec.d.ts +2 -0
- package/dist/crews/crews.contract.spec.d.ts.map +1 -0
- package/dist/crews/crews.contract.spec.js +67 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +988 -59
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +127 -7
- package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts +2 -0
- package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/__tests__/disposition-reason.spec.js +40 -0
- package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts +2 -0
- package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.js +16 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +21650 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.js +921 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +51 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +2364 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.js +173 -0
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +4497 -0
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/consent-queue.contract.js +201 -0
- package/dist/curated-worker-leads/contact-history.spec.d.ts +2 -0
- package/dist/curated-worker-leads/contact-history.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/contact-history.spec.js +88 -0
- package/dist/curated-worker-leads/contact-session.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/contact-session.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/contact-session.contract.spec.js +315 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +489 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +88 -0
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +135 -0
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/curated-worker-leads.contract.js +32 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts +2 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +157 -0
- package/dist/curated-worker-leads/job-candidates.spec.d.ts +2 -0
- package/dist/curated-worker-leads/job-candidates.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +140 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +19 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +18365 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/jobs-tab.contract.js +642 -0
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +348 -0
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/lead-agent-area.contract.js +51 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +1116 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts.map +1 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.js +93 -0
- package/dist/curated-workers/curated-filter-additions.spec.d.ts +2 -0
- package/dist/curated-workers/curated-filter-additions.spec.d.ts.map +1 -0
- package/dist/curated-workers/curated-filter-additions.spec.js +17 -0
- package/dist/curated-workers/curated-job-seeking.spec.d.ts +2 -0
- package/dist/curated-workers/curated-job-seeking.spec.d.ts.map +1 -0
- package/dist/curated-workers/curated-job-seeking.spec.js +53 -0
- package/dist/curated-workers/curated-workers-id-documents.spec.d.ts +2 -0
- package/dist/curated-workers/curated-workers-id-documents.spec.d.ts.map +1 -0
- package/dist/curated-workers/curated-workers-id-documents.spec.js +38 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +6160 -1906
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +333 -51
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +10 -10
- package/dist/dashboards/agent-daily-metrics.contract.js +1 -1
- package/dist/dashboards/dashboard-widgets.contract.d.ts +3800 -496
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +527 -29
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +3132 -0
- package/dist/document-intake/document-intake.contract.d.ts.map +1 -0
- package/dist/document-intake/document-intake.contract.js +418 -0
- package/dist/export-jobs/export-jobs.contract.d.ts +3918 -0
- package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -0
- package/dist/export-jobs/export-jobs.contract.js +240 -0
- package/dist/exports-events/exports-events.schemas.d.ts +90 -0
- package/dist/exports-events/exports-events.schemas.d.ts.map +1 -0
- package/dist/exports-events/exports-events.schemas.js +56 -0
- package/dist/files/files.contract.d.ts +133 -126
- package/dist/files/files.contract.d.ts.map +1 -1
- package/dist/files/files.contract.js +8 -0
- package/dist/health/health.contract.d.ts +4 -4
- package/dist/index.d.ts +82 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -1
- package/dist/interactions/interactions.contract.d.ts +162 -0
- package/dist/interactions/interactions.contract.d.ts.map +1 -0
- package/dist/interactions/interactions.contract.js +42 -0
- package/dist/job-clusters/job-clusters.contract.d.ts +1584 -0
- package/dist/job-clusters/job-clusters.contract.d.ts.map +1 -0
- package/dist/job-clusters/job-clusters.contract.js +133 -0
- package/dist/jobs/jobs.contract.d.ts +16517 -8495
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +394 -190
- package/dist/jobs/jobs.contract.spec.d.ts +2 -0
- package/dist/jobs/jobs.contract.spec.d.ts.map +1 -0
- package/dist/jobs/jobs.contract.spec.js +70 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +75 -75
- package/dist/lead-assignments/lead-assignments.contract.d.ts +2933 -1122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +29 -7
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +328 -64
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +1 -1
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +31 -31
- package/dist/leads/leads.contract.d.ts +830 -368
- package/dist/leads/leads.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.js +106 -26
- package/dist/locations/locations.contract.d.ts +36 -36
- package/dist/notifications/notifications.contract.d.ts +1039 -0
- package/dist/notifications/notifications.contract.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.js +110 -0
- package/dist/offices/offices.contract.d.ts +210 -60
- package/dist/offices/offices.contract.d.ts.map +1 -1
- package/dist/offices/offices.contract.js +18 -4
- package/dist/outreach/__tests__/outreach-claim.test.d.ts +2 -0
- package/dist/outreach/__tests__/outreach-claim.test.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach-claim.test.js +97 -0
- package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts +2 -0
- package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach-confirm-release.test.js +98 -0
- package/dist/outreach/__tests__/outreach-routes.test.d.ts +2 -0
- package/dist/outreach/__tests__/outreach-routes.test.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +57 -0
- package/dist/outreach/__tests__/outreach.schemas.test.d.ts +2 -0
- package/dist/outreach/__tests__/outreach.schemas.test.d.ts.map +1 -0
- package/dist/outreach/__tests__/outreach.schemas.test.js +140 -0
- package/dist/outreach/outreach.contract.d.ts +809 -0
- package/dist/outreach/outreach.contract.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.js +195 -0
- package/dist/outreach/outreach.schemas.d.ts +113 -0
- package/dist/outreach/outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/outreach.schemas.js +132 -0
- package/dist/own-research/own-research.contract.d.ts +1356 -552
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +14 -3
- package/dist/postcodes/postcodes.contract.d.ts +16 -16
- package/dist/proofs/proof-category.enum.d.ts +4 -0
- package/dist/proofs/proof-category.enum.d.ts.map +1 -0
- package/dist/proofs/proof-category.enum.js +5 -0
- package/dist/proofs/proof-entity-type.enum.d.ts +4 -0
- package/dist/proofs/proof-entity-type.enum.d.ts.map +1 -0
- package/dist/proofs/proof-entity-type.enum.js +5 -0
- package/dist/proofs/proof-type.enum.d.ts +28 -0
- package/dist/proofs/proof-type.enum.d.ts.map +1 -0
- package/dist/proofs/proof-type.enum.js +14 -0
- package/dist/proofs/proofs.contract.d.ts +3009 -0
- package/dist/proofs/proofs.contract.d.ts.map +1 -0
- package/dist/proofs/proofs.contract.js +92 -0
- package/dist/proofs/proofs.dtos.d.ts +1319 -0
- package/dist/proofs/proofs.dtos.d.ts.map +1 -0
- package/dist/proofs/proofs.dtos.js +178 -0
- package/dist/qualifications/qualifications.contract.d.ts +94 -94
- package/dist/realtime/data-changed.d.ts +21 -0
- package/dist/realtime/data-changed.d.ts.map +1 -0
- package/dist/realtime/data-changed.js +37 -0
- package/dist/shared/booking-history.schema.d.ts +27 -0
- package/dist/shared/booking-history.schema.d.ts.map +1 -0
- package/dist/shared/booking-history.schema.js +22 -0
- package/dist/shared/booking-history.spec.d.ts +2 -0
- package/dist/shared/booking-history.spec.d.ts.map +1 -0
- package/dist/shared/booking-history.spec.js +44 -0
- package/dist/shared/contact-suppressions.contract.d.ts +22 -0
- package/dist/shared/contact-suppressions.contract.d.ts.map +1 -0
- package/dist/shared/contact-suppressions.contract.js +13 -0
- package/dist/shared/live-booking.schema.d.ts +57 -0
- package/dist/shared/live-booking.schema.d.ts.map +1 -0
- package/dist/shared/live-booking.schema.js +34 -0
- package/dist/shared/summary-schemas.d.ts +218 -0
- package/dist/shared/summary-schemas.d.ts.map +1 -0
- package/dist/shared/summary-schemas.js +56 -0
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts +2 -0
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts.map +1 -0
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +20 -0
- package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts +2 -0
- package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts.map +1 -0
- package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.js +41 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +43 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.js +29 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +7258 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -0
- package/dist/sheets-sync/sheets-sync.contract.js +323 -0
- package/dist/telegram/telegram.contract.d.ts +727 -0
- package/dist/telegram/telegram.contract.d.ts.map +1 -0
- package/dist/telegram/telegram.contract.js +75 -0
- package/dist/trades/trade-rate-assessment.d.ts +18 -0
- package/dist/trades/trade-rate-assessment.d.ts.map +1 -0
- package/dist/trades/trade-rate-assessment.js +46 -0
- package/dist/trades/trade-rate-assessment.spec.d.ts +2 -0
- package/dist/trades/trade-rate-assessment.spec.d.ts.map +1 -0
- package/dist/trades/trade-rate-assessment.spec.js +223 -0
- package/dist/trades/trades.contract.d.ts +111 -0
- package/dist/trades/trades.contract.d.ts.map +1 -1
- package/dist/trades/trades.contract.js +49 -1
- package/dist/trades/trades.contract.spec.d.ts +2 -0
- package/dist/trades/trades.contract.spec.d.ts.map +1 -0
- package/dist/trades/trades.contract.spec.js +173 -0
- package/dist/user-access-grants/build-user-access-grant-rules.d.ts +10 -0
- package/dist/user-access-grants/build-user-access-grant-rules.d.ts.map +1 -0
- package/dist/user-access-grants/build-user-access-grant-rules.js +69 -0
- package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts +2 -0
- package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts.map +1 -0
- package/dist/user-access-grants/build-user-access-grant-rules.spec.js +77 -0
- package/dist/user-access-grants/user-access-grant-templates.json +454 -0
- package/dist/user-access-grants/user-access-grants.contract.d.ts +3886 -0
- package/dist/user-access-grants/user-access-grants.contract.d.ts.map +1 -0
- package/dist/user-access-grants/user-access-grants.contract.js +189 -0
- package/dist/user-access-grants/user-access-grants.contract.spec.d.ts +2 -0
- package/dist/user-access-grants/user-access-grants.contract.spec.d.ts.map +1 -0
- package/dist/user-access-grants/user-access-grants.contract.spec.js +149 -0
- package/dist/users/users.contract.d.ts +1959 -349
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +222 -37
- package/dist/users/users.contract.spec.d.ts +2 -0
- package/dist/users/users.contract.spec.d.ts.map +1 -0
- package/dist/users/users.contract.spec.js +103 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +4609 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.js +409 -0
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +1511 -0
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -0
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +150 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +1106 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts.map +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.js +85 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts +2 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts.map +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.js +216 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +453 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts.map +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.js +109 -0
- package/dist/workers/do-not-contact.contract.d.ts +46 -0
- package/dist/workers/do-not-contact.contract.d.ts.map +1 -0
- package/dist/workers/do-not-contact.contract.js +41 -0
- package/dist/workers/do-not-contact.contract.spec.d.ts +2 -0
- package/dist/workers/do-not-contact.contract.spec.d.ts.map +1 -0
- package/dist/workers/do-not-contact.contract.spec.js +47 -0
- package/dist/workers/duplicate-group-worker.spec.d.ts +2 -0
- package/dist/workers/duplicate-group-worker.spec.d.ts.map +1 -0
- package/dist/workers/duplicate-group-worker.spec.js +34 -0
- package/dist/workers/filter-exact-flags.spec.d.ts +2 -0
- package/dist/workers/filter-exact-flags.spec.d.ts.map +1 -0
- package/dist/workers/filter-exact-flags.spec.js +37 -0
- package/dist/workers/worker-source-attribution.contract.spec.d.ts +2 -0
- package/dist/workers/worker-source-attribution.contract.spec.d.ts.map +1 -0
- package/dist/workers/worker-source-attribution.contract.spec.js +442 -0
- package/dist/workers/worker-source.spec.d.ts +2 -0
- package/dist/workers/worker-source.spec.d.ts.map +1 -0
- package/dist/workers/worker-source.spec.js +13 -0
- package/dist/workers/worker-status-facets.spec.d.ts +2 -0
- package/dist/workers/worker-status-facets.spec.d.ts.map +1 -0
- package/dist/workers/worker-status-facets.spec.js +34 -0
- package/dist/workers/workers.contract.d.ts +19534 -5969
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +1096 -113
- package/dist/workers/workers.contract.spec.d.ts +2 -0
- package/dist/workers/workers.contract.spec.d.ts.map +1 -0
- package/dist/workers/workers.contract.spec.js +31 -0
- package/package.json +5 -4
|
@@ -19,26 +19,50 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
19
19
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
phoneNumber: string;
|
|
23
22
|
id: string;
|
|
23
|
+
phoneNumber: string;
|
|
24
24
|
isPrimary: boolean;
|
|
25
25
|
description?: string | null | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
phoneNumber: string;
|
|
28
27
|
id: string;
|
|
28
|
+
phoneNumber: string;
|
|
29
29
|
description?: string | null | undefined;
|
|
30
30
|
isPrimary?: boolean | undefined;
|
|
31
31
|
}>, "many">>>;
|
|
32
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
32
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
33
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
34
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
35
|
id: z.ZodString;
|
|
35
36
|
name: z.ZodString;
|
|
37
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
firstName: z.ZodString;
|
|
40
|
+
lastName: z.ZodString;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
id: string;
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
}, {
|
|
46
|
+
id: string;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
}>, "many">>;
|
|
36
50
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
name: string;
|
|
38
51
|
id: string;
|
|
39
|
-
}, {
|
|
40
52
|
name: string;
|
|
53
|
+
managers?: {
|
|
54
|
+
id: string;
|
|
55
|
+
firstName: string;
|
|
56
|
+
lastName: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
}, {
|
|
41
59
|
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
managers?: {
|
|
62
|
+
id: string;
|
|
63
|
+
firstName: string;
|
|
64
|
+
lastName: string;
|
|
65
|
+
}[] | undefined;
|
|
42
66
|
}>>>;
|
|
43
67
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
68
|
id: z.ZodString;
|
|
@@ -53,25 +77,35 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
53
77
|
firstName: string;
|
|
54
78
|
lastName: string;
|
|
55
79
|
}>, "many">>;
|
|
80
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
56
81
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
57
82
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
83
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
58
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
status: "ACTIVE" | "INACTIVE";
|
|
59
86
|
id: string;
|
|
60
87
|
firstName: string;
|
|
61
88
|
lastName: string;
|
|
62
89
|
email: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
63
92
|
phoneNumbers: {
|
|
64
|
-
phoneNumber: string;
|
|
65
93
|
id: string;
|
|
94
|
+
phoneNumber: string;
|
|
66
95
|
isPrimary: boolean;
|
|
67
96
|
description?: string | null | undefined;
|
|
68
97
|
}[];
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
98
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
99
|
+
deletedAt?: string | null | undefined;
|
|
100
|
+
officeId?: string | null | undefined;
|
|
72
101
|
office?: {
|
|
73
|
-
name: string;
|
|
74
102
|
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
managers?: {
|
|
105
|
+
id: string;
|
|
106
|
+
firstName: string;
|
|
107
|
+
lastName: string;
|
|
108
|
+
}[] | undefined;
|
|
75
109
|
} | null | undefined;
|
|
76
110
|
canImpersonateUsers?: {
|
|
77
111
|
id: string;
|
|
@@ -79,22 +113,30 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
79
113
|
lastName: string;
|
|
80
114
|
}[] | undefined;
|
|
81
115
|
}, {
|
|
116
|
+
status: "ACTIVE" | "INACTIVE";
|
|
82
117
|
id: string;
|
|
83
118
|
firstName: string;
|
|
84
119
|
lastName: string;
|
|
85
120
|
email: string;
|
|
86
121
|
createdAt: string | Date;
|
|
87
122
|
updatedAt: string | Date;
|
|
123
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
88
124
|
phoneNumbers?: {
|
|
89
|
-
phoneNumber: string;
|
|
90
125
|
id: string;
|
|
126
|
+
phoneNumber: string;
|
|
91
127
|
description?: string | null | undefined;
|
|
92
128
|
isPrimary?: boolean | undefined;
|
|
93
129
|
}[] | undefined;
|
|
94
|
-
|
|
130
|
+
deletedAt?: string | Date | null | undefined;
|
|
131
|
+
officeId?: string | null | undefined;
|
|
95
132
|
office?: {
|
|
96
|
-
name: string;
|
|
97
133
|
id: string;
|
|
134
|
+
name: string;
|
|
135
|
+
managers?: {
|
|
136
|
+
id: string;
|
|
137
|
+
firstName: string;
|
|
138
|
+
lastName: string;
|
|
139
|
+
}[] | undefined;
|
|
98
140
|
} | null | undefined;
|
|
99
141
|
canImpersonateUsers?: {
|
|
100
142
|
id: string;
|
|
@@ -104,7 +146,7 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
104
146
|
}>>;
|
|
105
147
|
name: z.ZodString;
|
|
106
148
|
phoneNumber: z.ZodString;
|
|
107
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
149
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
108
150
|
callCount: z.ZodNumber;
|
|
109
151
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
110
152
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -115,13 +157,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
115
157
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
116
158
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
117
159
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
|
|
119
|
-
phoneNumber: string;
|
|
120
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
160
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
121
161
|
id: string;
|
|
122
|
-
|
|
162
|
+
name: string;
|
|
123
163
|
createdAt: string;
|
|
124
164
|
updatedAt: string;
|
|
165
|
+
phoneNumber: string;
|
|
166
|
+
agentId: string;
|
|
125
167
|
callCount: number;
|
|
126
168
|
lastCalledAt: string | null;
|
|
127
169
|
cooldownUntil: string | null;
|
|
@@ -130,22 +172,30 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
130
172
|
existsInLeadsTable: boolean;
|
|
131
173
|
originalLeadId: string | null;
|
|
132
174
|
agent?: {
|
|
175
|
+
status: "ACTIVE" | "INACTIVE";
|
|
133
176
|
id: string;
|
|
134
177
|
firstName: string;
|
|
135
178
|
lastName: string;
|
|
136
179
|
email: string;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
updatedAt: string;
|
|
137
182
|
phoneNumbers: {
|
|
138
|
-
phoneNumber: string;
|
|
139
183
|
id: string;
|
|
184
|
+
phoneNumber: string;
|
|
140
185
|
isPrimary: boolean;
|
|
141
186
|
description?: string | null | undefined;
|
|
142
187
|
}[];
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
188
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
189
|
+
deletedAt?: string | null | undefined;
|
|
190
|
+
officeId?: string | null | undefined;
|
|
146
191
|
office?: {
|
|
147
|
-
name: string;
|
|
148
192
|
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
managers?: {
|
|
195
|
+
id: string;
|
|
196
|
+
firstName: string;
|
|
197
|
+
lastName: string;
|
|
198
|
+
}[] | undefined;
|
|
149
199
|
} | null | undefined;
|
|
150
200
|
canImpersonateUsers?: {
|
|
151
201
|
id: string;
|
|
@@ -154,13 +204,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
154
204
|
}[] | undefined;
|
|
155
205
|
} | undefined;
|
|
156
206
|
}, {
|
|
157
|
-
|
|
158
|
-
phoneNumber: string;
|
|
159
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
207
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
160
208
|
id: string;
|
|
161
|
-
|
|
209
|
+
name: string;
|
|
162
210
|
createdAt: string | Date;
|
|
163
211
|
updatedAt: string | Date;
|
|
212
|
+
phoneNumber: string;
|
|
213
|
+
agentId: string;
|
|
164
214
|
callCount: number;
|
|
165
215
|
lastCalledAt: string | Date | null;
|
|
166
216
|
cooldownUntil: string | Date | null;
|
|
@@ -169,22 +219,30 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
169
219
|
existsInLeadsTable: boolean;
|
|
170
220
|
originalLeadId: string | null;
|
|
171
221
|
agent?: {
|
|
222
|
+
status: "ACTIVE" | "INACTIVE";
|
|
172
223
|
id: string;
|
|
173
224
|
firstName: string;
|
|
174
225
|
lastName: string;
|
|
175
226
|
email: string;
|
|
176
227
|
createdAt: string | Date;
|
|
177
228
|
updatedAt: string | Date;
|
|
229
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
178
230
|
phoneNumbers?: {
|
|
179
|
-
phoneNumber: string;
|
|
180
231
|
id: string;
|
|
232
|
+
phoneNumber: string;
|
|
181
233
|
description?: string | null | undefined;
|
|
182
234
|
isPrimary?: boolean | undefined;
|
|
183
235
|
}[] | undefined;
|
|
184
|
-
|
|
236
|
+
deletedAt?: string | Date | null | undefined;
|
|
237
|
+
officeId?: string | null | undefined;
|
|
185
238
|
office?: {
|
|
186
|
-
name: string;
|
|
187
239
|
id: string;
|
|
240
|
+
name: string;
|
|
241
|
+
managers?: {
|
|
242
|
+
id: string;
|
|
243
|
+
firstName: string;
|
|
244
|
+
lastName: string;
|
|
245
|
+
}[] | undefined;
|
|
188
246
|
} | null | undefined;
|
|
189
247
|
canImpersonateUsers?: {
|
|
190
248
|
id: string;
|
|
@@ -203,16 +261,16 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
203
261
|
status: z.ZodString;
|
|
204
262
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
205
263
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
name: string;
|
|
207
|
-
phoneNumber: string;
|
|
208
264
|
status: string;
|
|
209
265
|
id: string;
|
|
210
|
-
cooldownUntil: string | null;
|
|
211
|
-
}, {
|
|
212
266
|
name: string;
|
|
213
267
|
phoneNumber: string;
|
|
268
|
+
cooldownUntil: string | null;
|
|
269
|
+
}, {
|
|
214
270
|
status: string;
|
|
215
271
|
id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
phoneNumber: string;
|
|
216
274
|
cooldownUntil: string | Date | null;
|
|
217
275
|
}>>>;
|
|
218
276
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -229,26 +287,50 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
229
287
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
288
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
231
289
|
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
phoneNumber: string;
|
|
233
290
|
id: string;
|
|
291
|
+
phoneNumber: string;
|
|
234
292
|
isPrimary: boolean;
|
|
235
293
|
description?: string | null | undefined;
|
|
236
294
|
}, {
|
|
237
|
-
phoneNumber: string;
|
|
238
295
|
id: string;
|
|
296
|
+
phoneNumber: string;
|
|
239
297
|
description?: string | null | undefined;
|
|
240
298
|
isPrimary?: boolean | undefined;
|
|
241
299
|
}>, "many">>>;
|
|
242
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
300
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
301
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
302
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
244
303
|
id: z.ZodString;
|
|
245
304
|
name: z.ZodString;
|
|
305
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
firstName: z.ZodString;
|
|
308
|
+
lastName: z.ZodString;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
id: string;
|
|
311
|
+
firstName: string;
|
|
312
|
+
lastName: string;
|
|
313
|
+
}, {
|
|
314
|
+
id: string;
|
|
315
|
+
firstName: string;
|
|
316
|
+
lastName: string;
|
|
317
|
+
}>, "many">>;
|
|
246
318
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
-
name: string;
|
|
248
319
|
id: string;
|
|
249
|
-
}, {
|
|
250
320
|
name: string;
|
|
321
|
+
managers?: {
|
|
322
|
+
id: string;
|
|
323
|
+
firstName: string;
|
|
324
|
+
lastName: string;
|
|
325
|
+
}[] | undefined;
|
|
326
|
+
}, {
|
|
251
327
|
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
managers?: {
|
|
330
|
+
id: string;
|
|
331
|
+
firstName: string;
|
|
332
|
+
lastName: string;
|
|
333
|
+
}[] | undefined;
|
|
252
334
|
}>>>;
|
|
253
335
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
336
|
id: z.ZodString;
|
|
@@ -263,25 +345,35 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
263
345
|
firstName: string;
|
|
264
346
|
lastName: string;
|
|
265
347
|
}>, "many">>;
|
|
348
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
266
349
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
267
350
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
351
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
268
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
status: "ACTIVE" | "INACTIVE";
|
|
269
354
|
id: string;
|
|
270
355
|
firstName: string;
|
|
271
356
|
lastName: string;
|
|
272
357
|
email: string;
|
|
358
|
+
createdAt: string;
|
|
359
|
+
updatedAt: string;
|
|
273
360
|
phoneNumbers: {
|
|
274
|
-
phoneNumber: string;
|
|
275
361
|
id: string;
|
|
362
|
+
phoneNumber: string;
|
|
276
363
|
isPrimary: boolean;
|
|
277
364
|
description?: string | null | undefined;
|
|
278
365
|
}[];
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
366
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
367
|
+
deletedAt?: string | null | undefined;
|
|
368
|
+
officeId?: string | null | undefined;
|
|
282
369
|
office?: {
|
|
283
|
-
name: string;
|
|
284
370
|
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
managers?: {
|
|
373
|
+
id: string;
|
|
374
|
+
firstName: string;
|
|
375
|
+
lastName: string;
|
|
376
|
+
}[] | undefined;
|
|
285
377
|
} | null | undefined;
|
|
286
378
|
canImpersonateUsers?: {
|
|
287
379
|
id: string;
|
|
@@ -289,22 +381,30 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
289
381
|
lastName: string;
|
|
290
382
|
}[] | undefined;
|
|
291
383
|
}, {
|
|
384
|
+
status: "ACTIVE" | "INACTIVE";
|
|
292
385
|
id: string;
|
|
293
386
|
firstName: string;
|
|
294
387
|
lastName: string;
|
|
295
388
|
email: string;
|
|
296
389
|
createdAt: string | Date;
|
|
297
390
|
updatedAt: string | Date;
|
|
391
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
298
392
|
phoneNumbers?: {
|
|
299
|
-
phoneNumber: string;
|
|
300
393
|
id: string;
|
|
394
|
+
phoneNumber: string;
|
|
301
395
|
description?: string | null | undefined;
|
|
302
396
|
isPrimary?: boolean | undefined;
|
|
303
397
|
}[] | undefined;
|
|
304
|
-
|
|
398
|
+
deletedAt?: string | Date | null | undefined;
|
|
399
|
+
officeId?: string | null | undefined;
|
|
305
400
|
office?: {
|
|
306
|
-
name: string;
|
|
307
401
|
id: string;
|
|
402
|
+
name: string;
|
|
403
|
+
managers?: {
|
|
404
|
+
id: string;
|
|
405
|
+
firstName: string;
|
|
406
|
+
lastName: string;
|
|
407
|
+
}[] | undefined;
|
|
308
408
|
} | null | undefined;
|
|
309
409
|
canImpersonateUsers?: {
|
|
310
410
|
id: string;
|
|
@@ -314,7 +414,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
314
414
|
}>>;
|
|
315
415
|
name: z.ZodString;
|
|
316
416
|
phoneNumber: z.ZodString;
|
|
317
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
417
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
318
418
|
callCount: z.ZodNumber;
|
|
319
419
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
320
420
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -325,13 +425,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
325
425
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
426
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
327
427
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
|
|
329
|
-
phoneNumber: string;
|
|
330
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
428
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
331
429
|
id: string;
|
|
332
|
-
|
|
430
|
+
name: string;
|
|
333
431
|
createdAt: string;
|
|
334
432
|
updatedAt: string;
|
|
433
|
+
phoneNumber: string;
|
|
434
|
+
agentId: string;
|
|
335
435
|
callCount: number;
|
|
336
436
|
lastCalledAt: string | null;
|
|
337
437
|
cooldownUntil: string | null;
|
|
@@ -340,22 +440,30 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
340
440
|
existsInLeadsTable: boolean;
|
|
341
441
|
originalLeadId: string | null;
|
|
342
442
|
agent?: {
|
|
443
|
+
status: "ACTIVE" | "INACTIVE";
|
|
343
444
|
id: string;
|
|
344
445
|
firstName: string;
|
|
345
446
|
lastName: string;
|
|
346
447
|
email: string;
|
|
448
|
+
createdAt: string;
|
|
449
|
+
updatedAt: string;
|
|
347
450
|
phoneNumbers: {
|
|
348
|
-
phoneNumber: string;
|
|
349
451
|
id: string;
|
|
452
|
+
phoneNumber: string;
|
|
350
453
|
isPrimary: boolean;
|
|
351
454
|
description?: string | null | undefined;
|
|
352
455
|
}[];
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
456
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
457
|
+
deletedAt?: string | null | undefined;
|
|
458
|
+
officeId?: string | null | undefined;
|
|
356
459
|
office?: {
|
|
357
|
-
name: string;
|
|
358
460
|
id: string;
|
|
461
|
+
name: string;
|
|
462
|
+
managers?: {
|
|
463
|
+
id: string;
|
|
464
|
+
firstName: string;
|
|
465
|
+
lastName: string;
|
|
466
|
+
}[] | undefined;
|
|
359
467
|
} | null | undefined;
|
|
360
468
|
canImpersonateUsers?: {
|
|
361
469
|
id: string;
|
|
@@ -364,13 +472,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
364
472
|
}[] | undefined;
|
|
365
473
|
} | undefined;
|
|
366
474
|
}, {
|
|
367
|
-
|
|
368
|
-
phoneNumber: string;
|
|
369
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
475
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
370
476
|
id: string;
|
|
371
|
-
|
|
477
|
+
name: string;
|
|
372
478
|
createdAt: string | Date;
|
|
373
479
|
updatedAt: string | Date;
|
|
480
|
+
phoneNumber: string;
|
|
481
|
+
agentId: string;
|
|
374
482
|
callCount: number;
|
|
375
483
|
lastCalledAt: string | Date | null;
|
|
376
484
|
cooldownUntil: string | Date | null;
|
|
@@ -379,22 +487,30 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
379
487
|
existsInLeadsTable: boolean;
|
|
380
488
|
originalLeadId: string | null;
|
|
381
489
|
agent?: {
|
|
490
|
+
status: "ACTIVE" | "INACTIVE";
|
|
382
491
|
id: string;
|
|
383
492
|
firstName: string;
|
|
384
493
|
lastName: string;
|
|
385
494
|
email: string;
|
|
386
495
|
createdAt: string | Date;
|
|
387
496
|
updatedAt: string | Date;
|
|
497
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
388
498
|
phoneNumbers?: {
|
|
389
|
-
phoneNumber: string;
|
|
390
499
|
id: string;
|
|
500
|
+
phoneNumber: string;
|
|
391
501
|
description?: string | null | undefined;
|
|
392
502
|
isPrimary?: boolean | undefined;
|
|
393
503
|
}[] | undefined;
|
|
394
|
-
|
|
504
|
+
deletedAt?: string | Date | null | undefined;
|
|
505
|
+
officeId?: string | null | undefined;
|
|
395
506
|
office?: {
|
|
396
|
-
name: string;
|
|
397
507
|
id: string;
|
|
508
|
+
name: string;
|
|
509
|
+
managers?: {
|
|
510
|
+
id: string;
|
|
511
|
+
firstName: string;
|
|
512
|
+
lastName: string;
|
|
513
|
+
}[] | undefined;
|
|
398
514
|
} | null | undefined;
|
|
399
515
|
canImpersonateUsers?: {
|
|
400
516
|
id: string;
|
|
@@ -411,20 +527,20 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
411
527
|
existsInOwnResearch: boolean;
|
|
412
528
|
isOnCooldown: boolean;
|
|
413
529
|
lead?: {
|
|
414
|
-
name: string;
|
|
415
|
-
phoneNumber: string;
|
|
416
530
|
status: string;
|
|
417
531
|
id: string;
|
|
532
|
+
name: string;
|
|
533
|
+
phoneNumber: string;
|
|
418
534
|
cooldownUntil: string | null;
|
|
419
535
|
} | null | undefined;
|
|
420
536
|
ownResearchLead?: {
|
|
421
|
-
|
|
422
|
-
phoneNumber: string;
|
|
423
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
537
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
424
538
|
id: string;
|
|
425
|
-
|
|
539
|
+
name: string;
|
|
426
540
|
createdAt: string;
|
|
427
541
|
updatedAt: string;
|
|
542
|
+
phoneNumber: string;
|
|
543
|
+
agentId: string;
|
|
428
544
|
callCount: number;
|
|
429
545
|
lastCalledAt: string | null;
|
|
430
546
|
cooldownUntil: string | null;
|
|
@@ -433,22 +549,30 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
433
549
|
existsInLeadsTable: boolean;
|
|
434
550
|
originalLeadId: string | null;
|
|
435
551
|
agent?: {
|
|
552
|
+
status: "ACTIVE" | "INACTIVE";
|
|
436
553
|
id: string;
|
|
437
554
|
firstName: string;
|
|
438
555
|
lastName: string;
|
|
439
556
|
email: string;
|
|
557
|
+
createdAt: string;
|
|
558
|
+
updatedAt: string;
|
|
440
559
|
phoneNumbers: {
|
|
441
|
-
phoneNumber: string;
|
|
442
560
|
id: string;
|
|
561
|
+
phoneNumber: string;
|
|
443
562
|
isPrimary: boolean;
|
|
444
563
|
description?: string | null | undefined;
|
|
445
564
|
}[];
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
565
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
566
|
+
deletedAt?: string | null | undefined;
|
|
567
|
+
officeId?: string | null | undefined;
|
|
449
568
|
office?: {
|
|
450
|
-
name: string;
|
|
451
569
|
id: string;
|
|
570
|
+
name: string;
|
|
571
|
+
managers?: {
|
|
572
|
+
id: string;
|
|
573
|
+
firstName: string;
|
|
574
|
+
lastName: string;
|
|
575
|
+
}[] | undefined;
|
|
452
576
|
} | null | undefined;
|
|
453
577
|
canImpersonateUsers?: {
|
|
454
578
|
id: string;
|
|
@@ -463,20 +587,20 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
463
587
|
existsInOwnResearch: boolean;
|
|
464
588
|
isOnCooldown: boolean;
|
|
465
589
|
lead?: {
|
|
466
|
-
name: string;
|
|
467
|
-
phoneNumber: string;
|
|
468
590
|
status: string;
|
|
469
591
|
id: string;
|
|
592
|
+
name: string;
|
|
593
|
+
phoneNumber: string;
|
|
470
594
|
cooldownUntil: string | Date | null;
|
|
471
595
|
} | null | undefined;
|
|
472
596
|
ownResearchLead?: {
|
|
473
|
-
|
|
474
|
-
phoneNumber: string;
|
|
475
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
597
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
476
598
|
id: string;
|
|
477
|
-
|
|
599
|
+
name: string;
|
|
478
600
|
createdAt: string | Date;
|
|
479
601
|
updatedAt: string | Date;
|
|
602
|
+
phoneNumber: string;
|
|
603
|
+
agentId: string;
|
|
480
604
|
callCount: number;
|
|
481
605
|
lastCalledAt: string | Date | null;
|
|
482
606
|
cooldownUntil: string | Date | null;
|
|
@@ -485,22 +609,30 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
485
609
|
existsInLeadsTable: boolean;
|
|
486
610
|
originalLeadId: string | null;
|
|
487
611
|
agent?: {
|
|
612
|
+
status: "ACTIVE" | "INACTIVE";
|
|
488
613
|
id: string;
|
|
489
614
|
firstName: string;
|
|
490
615
|
lastName: string;
|
|
491
616
|
email: string;
|
|
492
617
|
createdAt: string | Date;
|
|
493
618
|
updatedAt: string | Date;
|
|
619
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
494
620
|
phoneNumbers?: {
|
|
495
|
-
phoneNumber: string;
|
|
496
621
|
id: string;
|
|
622
|
+
phoneNumber: string;
|
|
497
623
|
description?: string | null | undefined;
|
|
498
624
|
isPrimary?: boolean | undefined;
|
|
499
625
|
}[] | undefined;
|
|
500
|
-
|
|
626
|
+
deletedAt?: string | Date | null | undefined;
|
|
627
|
+
officeId?: string | null | undefined;
|
|
501
628
|
office?: {
|
|
502
|
-
name: string;
|
|
503
629
|
id: string;
|
|
630
|
+
name: string;
|
|
631
|
+
managers?: {
|
|
632
|
+
id: string;
|
|
633
|
+
firstName: string;
|
|
634
|
+
lastName: string;
|
|
635
|
+
}[] | undefined;
|
|
504
636
|
} | null | undefined;
|
|
505
637
|
canImpersonateUsers?: {
|
|
506
638
|
id: string;
|
|
@@ -518,7 +650,7 @@ export declare const CheckPhoneRequestSchema: z.ZodObject<{
|
|
|
518
650
|
phoneNumber: string;
|
|
519
651
|
}>;
|
|
520
652
|
export declare const RecordOwnResearchCallSchema: z.ZodObject<{
|
|
521
|
-
phoneNumber: z.
|
|
653
|
+
phoneNumber: z.ZodString;
|
|
522
654
|
name: z.ZodString;
|
|
523
655
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
524
656
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -562,26 +694,50 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
562
694
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
563
695
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
564
696
|
}, "strip", z.ZodTypeAny, {
|
|
565
|
-
phoneNumber: string;
|
|
566
697
|
id: string;
|
|
698
|
+
phoneNumber: string;
|
|
567
699
|
isPrimary: boolean;
|
|
568
700
|
description?: string | null | undefined;
|
|
569
701
|
}, {
|
|
570
|
-
phoneNumber: string;
|
|
571
702
|
id: string;
|
|
703
|
+
phoneNumber: string;
|
|
572
704
|
description?: string | null | undefined;
|
|
573
705
|
isPrimary?: boolean | undefined;
|
|
574
706
|
}>, "many">>>;
|
|
575
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
707
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
708
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
709
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
577
710
|
id: z.ZodString;
|
|
578
711
|
name: z.ZodString;
|
|
712
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
713
|
+
id: z.ZodString;
|
|
714
|
+
firstName: z.ZodString;
|
|
715
|
+
lastName: z.ZodString;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
id: string;
|
|
718
|
+
firstName: string;
|
|
719
|
+
lastName: string;
|
|
720
|
+
}, {
|
|
721
|
+
id: string;
|
|
722
|
+
firstName: string;
|
|
723
|
+
lastName: string;
|
|
724
|
+
}>, "many">>;
|
|
579
725
|
}, "strip", z.ZodTypeAny, {
|
|
580
|
-
name: string;
|
|
581
726
|
id: string;
|
|
582
|
-
}, {
|
|
583
727
|
name: string;
|
|
728
|
+
managers?: {
|
|
729
|
+
id: string;
|
|
730
|
+
firstName: string;
|
|
731
|
+
lastName: string;
|
|
732
|
+
}[] | undefined;
|
|
733
|
+
}, {
|
|
584
734
|
id: string;
|
|
735
|
+
name: string;
|
|
736
|
+
managers?: {
|
|
737
|
+
id: string;
|
|
738
|
+
firstName: string;
|
|
739
|
+
lastName: string;
|
|
740
|
+
}[] | undefined;
|
|
585
741
|
}>>>;
|
|
586
742
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
587
743
|
id: z.ZodString;
|
|
@@ -596,25 +752,35 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
596
752
|
firstName: string;
|
|
597
753
|
lastName: string;
|
|
598
754
|
}>, "many">>;
|
|
755
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
599
756
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
600
757
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
758
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
601
759
|
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
status: "ACTIVE" | "INACTIVE";
|
|
602
761
|
id: string;
|
|
603
762
|
firstName: string;
|
|
604
763
|
lastName: string;
|
|
605
764
|
email: string;
|
|
765
|
+
createdAt: string;
|
|
766
|
+
updatedAt: string;
|
|
606
767
|
phoneNumbers: {
|
|
607
|
-
phoneNumber: string;
|
|
608
768
|
id: string;
|
|
769
|
+
phoneNumber: string;
|
|
609
770
|
isPrimary: boolean;
|
|
610
771
|
description?: string | null | undefined;
|
|
611
772
|
}[];
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
773
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
774
|
+
deletedAt?: string | null | undefined;
|
|
775
|
+
officeId?: string | null | undefined;
|
|
615
776
|
office?: {
|
|
616
|
-
name: string;
|
|
617
777
|
id: string;
|
|
778
|
+
name: string;
|
|
779
|
+
managers?: {
|
|
780
|
+
id: string;
|
|
781
|
+
firstName: string;
|
|
782
|
+
lastName: string;
|
|
783
|
+
}[] | undefined;
|
|
618
784
|
} | null | undefined;
|
|
619
785
|
canImpersonateUsers?: {
|
|
620
786
|
id: string;
|
|
@@ -622,22 +788,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
622
788
|
lastName: string;
|
|
623
789
|
}[] | undefined;
|
|
624
790
|
}, {
|
|
791
|
+
status: "ACTIVE" | "INACTIVE";
|
|
625
792
|
id: string;
|
|
626
793
|
firstName: string;
|
|
627
794
|
lastName: string;
|
|
628
795
|
email: string;
|
|
629
796
|
createdAt: string | Date;
|
|
630
797
|
updatedAt: string | Date;
|
|
798
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
631
799
|
phoneNumbers?: {
|
|
632
|
-
phoneNumber: string;
|
|
633
800
|
id: string;
|
|
801
|
+
phoneNumber: string;
|
|
634
802
|
description?: string | null | undefined;
|
|
635
803
|
isPrimary?: boolean | undefined;
|
|
636
804
|
}[] | undefined;
|
|
637
|
-
|
|
805
|
+
deletedAt?: string | Date | null | undefined;
|
|
806
|
+
officeId?: string | null | undefined;
|
|
638
807
|
office?: {
|
|
639
|
-
name: string;
|
|
640
808
|
id: string;
|
|
809
|
+
name: string;
|
|
810
|
+
managers?: {
|
|
811
|
+
id: string;
|
|
812
|
+
firstName: string;
|
|
813
|
+
lastName: string;
|
|
814
|
+
}[] | undefined;
|
|
641
815
|
} | null | undefined;
|
|
642
816
|
canImpersonateUsers?: {
|
|
643
817
|
id: string;
|
|
@@ -655,13 +829,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
655
829
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
656
830
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
657
831
|
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
name: string;
|
|
659
832
|
id: string;
|
|
833
|
+
name: string;
|
|
660
834
|
createdAt: string;
|
|
661
835
|
updatedAt: string;
|
|
662
836
|
}, {
|
|
663
|
-
name: string;
|
|
664
837
|
id: string;
|
|
838
|
+
name: string;
|
|
665
839
|
createdAt: string | Date;
|
|
666
840
|
updatedAt: string | Date;
|
|
667
841
|
}>>>;
|
|
@@ -670,34 +844,38 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
670
844
|
}, "strip", z.ZodTypeAny, {
|
|
671
845
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
672
846
|
id: string;
|
|
673
|
-
leadId: string;
|
|
674
|
-
agentId: string | null;
|
|
675
847
|
createdAt: string;
|
|
676
848
|
updatedAt: string;
|
|
849
|
+
agentId: string | null;
|
|
850
|
+
leadId: string;
|
|
677
851
|
assignedAt: string;
|
|
678
852
|
assignedBy: string | null;
|
|
679
853
|
companyId: string | null;
|
|
680
|
-
lead?: {
|
|
681
|
-
name: string;
|
|
682
|
-
phoneNumber: string;
|
|
683
|
-
} | undefined;
|
|
684
854
|
agent?: {
|
|
855
|
+
status: "ACTIVE" | "INACTIVE";
|
|
685
856
|
id: string;
|
|
686
857
|
firstName: string;
|
|
687
858
|
lastName: string;
|
|
688
859
|
email: string;
|
|
860
|
+
createdAt: string;
|
|
861
|
+
updatedAt: string;
|
|
689
862
|
phoneNumbers: {
|
|
690
|
-
phoneNumber: string;
|
|
691
863
|
id: string;
|
|
864
|
+
phoneNumber: string;
|
|
692
865
|
isPrimary: boolean;
|
|
693
866
|
description?: string | null | undefined;
|
|
694
867
|
}[];
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
868
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
869
|
+
deletedAt?: string | null | undefined;
|
|
870
|
+
officeId?: string | null | undefined;
|
|
698
871
|
office?: {
|
|
699
|
-
name: string;
|
|
700
872
|
id: string;
|
|
873
|
+
name: string;
|
|
874
|
+
managers?: {
|
|
875
|
+
id: string;
|
|
876
|
+
firstName: string;
|
|
877
|
+
lastName: string;
|
|
878
|
+
}[] | undefined;
|
|
701
879
|
} | null | undefined;
|
|
702
880
|
canImpersonateUsers?: {
|
|
703
881
|
id: string;
|
|
@@ -705,43 +883,51 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
705
883
|
lastName: string;
|
|
706
884
|
}[] | undefined;
|
|
707
885
|
} | undefined;
|
|
708
|
-
|
|
886
|
+
lead?: {
|
|
709
887
|
name: string;
|
|
888
|
+
phoneNumber: string;
|
|
889
|
+
} | undefined;
|
|
890
|
+
company?: {
|
|
710
891
|
id: string;
|
|
892
|
+
name: string;
|
|
711
893
|
createdAt: string;
|
|
712
894
|
updatedAt: string;
|
|
713
895
|
} | null | undefined;
|
|
714
896
|
}, {
|
|
715
897
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
716
898
|
id: string;
|
|
717
|
-
leadId: string;
|
|
718
|
-
agentId: string | null;
|
|
719
899
|
createdAt: string | Date;
|
|
720
900
|
updatedAt: string | Date;
|
|
901
|
+
agentId: string | null;
|
|
902
|
+
leadId: string;
|
|
721
903
|
assignedAt: string | Date;
|
|
722
904
|
assignedBy: string | null;
|
|
723
905
|
companyId: string | null;
|
|
724
|
-
lead?: {
|
|
725
|
-
name: string;
|
|
726
|
-
phoneNumber: string;
|
|
727
|
-
} | undefined;
|
|
728
906
|
agent?: {
|
|
907
|
+
status: "ACTIVE" | "INACTIVE";
|
|
729
908
|
id: string;
|
|
730
909
|
firstName: string;
|
|
731
910
|
lastName: string;
|
|
732
911
|
email: string;
|
|
733
912
|
createdAt: string | Date;
|
|
734
913
|
updatedAt: string | Date;
|
|
914
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
735
915
|
phoneNumbers?: {
|
|
736
|
-
phoneNumber: string;
|
|
737
916
|
id: string;
|
|
917
|
+
phoneNumber: string;
|
|
738
918
|
description?: string | null | undefined;
|
|
739
919
|
isPrimary?: boolean | undefined;
|
|
740
920
|
}[] | undefined;
|
|
741
|
-
|
|
921
|
+
deletedAt?: string | Date | null | undefined;
|
|
922
|
+
officeId?: string | null | undefined;
|
|
742
923
|
office?: {
|
|
743
|
-
name: string;
|
|
744
924
|
id: string;
|
|
925
|
+
name: string;
|
|
926
|
+
managers?: {
|
|
927
|
+
id: string;
|
|
928
|
+
firstName: string;
|
|
929
|
+
lastName: string;
|
|
930
|
+
}[] | undefined;
|
|
745
931
|
} | null | undefined;
|
|
746
932
|
canImpersonateUsers?: {
|
|
747
933
|
id: string;
|
|
@@ -749,9 +935,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
749
935
|
lastName: string;
|
|
750
936
|
}[] | undefined;
|
|
751
937
|
} | undefined;
|
|
752
|
-
|
|
938
|
+
lead?: {
|
|
753
939
|
name: string;
|
|
940
|
+
phoneNumber: string;
|
|
941
|
+
} | undefined;
|
|
942
|
+
company?: {
|
|
754
943
|
id: string;
|
|
944
|
+
name: string;
|
|
755
945
|
createdAt: string | Date;
|
|
756
946
|
updatedAt: string | Date;
|
|
757
947
|
} | null | undefined;
|
|
@@ -770,26 +960,50 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
770
960
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
771
961
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
772
962
|
}, "strip", z.ZodTypeAny, {
|
|
773
|
-
phoneNumber: string;
|
|
774
963
|
id: string;
|
|
964
|
+
phoneNumber: string;
|
|
775
965
|
isPrimary: boolean;
|
|
776
966
|
description?: string | null | undefined;
|
|
777
967
|
}, {
|
|
778
|
-
phoneNumber: string;
|
|
779
968
|
id: string;
|
|
969
|
+
phoneNumber: string;
|
|
780
970
|
description?: string | null | undefined;
|
|
781
971
|
isPrimary?: boolean | undefined;
|
|
782
972
|
}>, "many">>>;
|
|
783
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
973
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
974
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
975
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
785
976
|
id: z.ZodString;
|
|
786
977
|
name: z.ZodString;
|
|
978
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
979
|
+
id: z.ZodString;
|
|
980
|
+
firstName: z.ZodString;
|
|
981
|
+
lastName: z.ZodString;
|
|
982
|
+
}, "strip", z.ZodTypeAny, {
|
|
983
|
+
id: string;
|
|
984
|
+
firstName: string;
|
|
985
|
+
lastName: string;
|
|
986
|
+
}, {
|
|
987
|
+
id: string;
|
|
988
|
+
firstName: string;
|
|
989
|
+
lastName: string;
|
|
990
|
+
}>, "many">>;
|
|
787
991
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
name: string;
|
|
789
992
|
id: string;
|
|
790
|
-
}, {
|
|
791
993
|
name: string;
|
|
994
|
+
managers?: {
|
|
995
|
+
id: string;
|
|
996
|
+
firstName: string;
|
|
997
|
+
lastName: string;
|
|
998
|
+
}[] | undefined;
|
|
999
|
+
}, {
|
|
792
1000
|
id: string;
|
|
1001
|
+
name: string;
|
|
1002
|
+
managers?: {
|
|
1003
|
+
id: string;
|
|
1004
|
+
firstName: string;
|
|
1005
|
+
lastName: string;
|
|
1006
|
+
}[] | undefined;
|
|
793
1007
|
}>>>;
|
|
794
1008
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
795
1009
|
id: z.ZodString;
|
|
@@ -804,25 +1018,35 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
804
1018
|
firstName: string;
|
|
805
1019
|
lastName: string;
|
|
806
1020
|
}>, "many">>;
|
|
1021
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
807
1022
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
808
1023
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1024
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
809
1025
|
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
status: "ACTIVE" | "INACTIVE";
|
|
810
1027
|
id: string;
|
|
811
1028
|
firstName: string;
|
|
812
1029
|
lastName: string;
|
|
813
1030
|
email: string;
|
|
1031
|
+
createdAt: string;
|
|
1032
|
+
updatedAt: string;
|
|
814
1033
|
phoneNumbers: {
|
|
815
|
-
phoneNumber: string;
|
|
816
1034
|
id: string;
|
|
1035
|
+
phoneNumber: string;
|
|
817
1036
|
isPrimary: boolean;
|
|
818
1037
|
description?: string | null | undefined;
|
|
819
1038
|
}[];
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
1039
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1040
|
+
deletedAt?: string | null | undefined;
|
|
1041
|
+
officeId?: string | null | undefined;
|
|
823
1042
|
office?: {
|
|
824
|
-
name: string;
|
|
825
1043
|
id: string;
|
|
1044
|
+
name: string;
|
|
1045
|
+
managers?: {
|
|
1046
|
+
id: string;
|
|
1047
|
+
firstName: string;
|
|
1048
|
+
lastName: string;
|
|
1049
|
+
}[] | undefined;
|
|
826
1050
|
} | null | undefined;
|
|
827
1051
|
canImpersonateUsers?: {
|
|
828
1052
|
id: string;
|
|
@@ -830,22 +1054,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
830
1054
|
lastName: string;
|
|
831
1055
|
}[] | undefined;
|
|
832
1056
|
}, {
|
|
1057
|
+
status: "ACTIVE" | "INACTIVE";
|
|
833
1058
|
id: string;
|
|
834
1059
|
firstName: string;
|
|
835
1060
|
lastName: string;
|
|
836
1061
|
email: string;
|
|
837
1062
|
createdAt: string | Date;
|
|
838
1063
|
updatedAt: string | Date;
|
|
1064
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
839
1065
|
phoneNumbers?: {
|
|
840
|
-
phoneNumber: string;
|
|
841
1066
|
id: string;
|
|
1067
|
+
phoneNumber: string;
|
|
842
1068
|
description?: string | null | undefined;
|
|
843
1069
|
isPrimary?: boolean | undefined;
|
|
844
1070
|
}[] | undefined;
|
|
845
|
-
|
|
1071
|
+
deletedAt?: string | Date | null | undefined;
|
|
1072
|
+
officeId?: string | null | undefined;
|
|
846
1073
|
office?: {
|
|
847
|
-
name: string;
|
|
848
1074
|
id: string;
|
|
1075
|
+
name: string;
|
|
1076
|
+
managers?: {
|
|
1077
|
+
id: string;
|
|
1078
|
+
firstName: string;
|
|
1079
|
+
lastName: string;
|
|
1080
|
+
}[] | undefined;
|
|
849
1081
|
} | null | undefined;
|
|
850
1082
|
canImpersonateUsers?: {
|
|
851
1083
|
id: string;
|
|
@@ -855,7 +1087,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
855
1087
|
}>>;
|
|
856
1088
|
name: z.ZodString;
|
|
857
1089
|
phoneNumber: z.ZodString;
|
|
858
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1090
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
859
1091
|
callCount: z.ZodNumber;
|
|
860
1092
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
861
1093
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -866,13 +1098,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
866
1098
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
867
1099
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
868
1100
|
}, "strip", z.ZodTypeAny, {
|
|
869
|
-
|
|
870
|
-
phoneNumber: string;
|
|
871
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1101
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
872
1102
|
id: string;
|
|
873
|
-
|
|
1103
|
+
name: string;
|
|
874
1104
|
createdAt: string;
|
|
875
1105
|
updatedAt: string;
|
|
1106
|
+
phoneNumber: string;
|
|
1107
|
+
agentId: string;
|
|
876
1108
|
callCount: number;
|
|
877
1109
|
lastCalledAt: string | null;
|
|
878
1110
|
cooldownUntil: string | null;
|
|
@@ -881,22 +1113,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
881
1113
|
existsInLeadsTable: boolean;
|
|
882
1114
|
originalLeadId: string | null;
|
|
883
1115
|
agent?: {
|
|
1116
|
+
status: "ACTIVE" | "INACTIVE";
|
|
884
1117
|
id: string;
|
|
885
1118
|
firstName: string;
|
|
886
1119
|
lastName: string;
|
|
887
1120
|
email: string;
|
|
1121
|
+
createdAt: string;
|
|
1122
|
+
updatedAt: string;
|
|
888
1123
|
phoneNumbers: {
|
|
889
|
-
phoneNumber: string;
|
|
890
1124
|
id: string;
|
|
1125
|
+
phoneNumber: string;
|
|
891
1126
|
isPrimary: boolean;
|
|
892
1127
|
description?: string | null | undefined;
|
|
893
1128
|
}[];
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
1129
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1130
|
+
deletedAt?: string | null | undefined;
|
|
1131
|
+
officeId?: string | null | undefined;
|
|
897
1132
|
office?: {
|
|
898
|
-
name: string;
|
|
899
1133
|
id: string;
|
|
1134
|
+
name: string;
|
|
1135
|
+
managers?: {
|
|
1136
|
+
id: string;
|
|
1137
|
+
firstName: string;
|
|
1138
|
+
lastName: string;
|
|
1139
|
+
}[] | undefined;
|
|
900
1140
|
} | null | undefined;
|
|
901
1141
|
canImpersonateUsers?: {
|
|
902
1142
|
id: string;
|
|
@@ -905,13 +1145,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
905
1145
|
}[] | undefined;
|
|
906
1146
|
} | undefined;
|
|
907
1147
|
}, {
|
|
908
|
-
|
|
909
|
-
phoneNumber: string;
|
|
910
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1148
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
911
1149
|
id: string;
|
|
912
|
-
|
|
1150
|
+
name: string;
|
|
913
1151
|
createdAt: string | Date;
|
|
914
1152
|
updatedAt: string | Date;
|
|
1153
|
+
phoneNumber: string;
|
|
1154
|
+
agentId: string;
|
|
915
1155
|
callCount: number;
|
|
916
1156
|
lastCalledAt: string | Date | null;
|
|
917
1157
|
cooldownUntil: string | Date | null;
|
|
@@ -920,22 +1160,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
920
1160
|
existsInLeadsTable: boolean;
|
|
921
1161
|
originalLeadId: string | null;
|
|
922
1162
|
agent?: {
|
|
1163
|
+
status: "ACTIVE" | "INACTIVE";
|
|
923
1164
|
id: string;
|
|
924
1165
|
firstName: string;
|
|
925
1166
|
lastName: string;
|
|
926
1167
|
email: string;
|
|
927
1168
|
createdAt: string | Date;
|
|
928
1169
|
updatedAt: string | Date;
|
|
1170
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
929
1171
|
phoneNumbers?: {
|
|
930
|
-
phoneNumber: string;
|
|
931
1172
|
id: string;
|
|
1173
|
+
phoneNumber: string;
|
|
932
1174
|
description?: string | null | undefined;
|
|
933
1175
|
isPrimary?: boolean | undefined;
|
|
934
1176
|
}[] | undefined;
|
|
935
|
-
|
|
1177
|
+
deletedAt?: string | Date | null | undefined;
|
|
1178
|
+
officeId?: string | null | undefined;
|
|
936
1179
|
office?: {
|
|
937
|
-
name: string;
|
|
938
1180
|
id: string;
|
|
1181
|
+
name: string;
|
|
1182
|
+
managers?: {
|
|
1183
|
+
id: string;
|
|
1184
|
+
firstName: string;
|
|
1185
|
+
lastName: string;
|
|
1186
|
+
}[] | undefined;
|
|
939
1187
|
} | null | undefined;
|
|
940
1188
|
canImpersonateUsers?: {
|
|
941
1189
|
id: string;
|
|
@@ -946,13 +1194,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
946
1194
|
}>;
|
|
947
1195
|
}, "strip", z.ZodTypeAny, {
|
|
948
1196
|
ownResearchLead: {
|
|
949
|
-
|
|
950
|
-
phoneNumber: string;
|
|
951
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1197
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
952
1198
|
id: string;
|
|
953
|
-
|
|
1199
|
+
name: string;
|
|
954
1200
|
createdAt: string;
|
|
955
1201
|
updatedAt: string;
|
|
1202
|
+
phoneNumber: string;
|
|
1203
|
+
agentId: string;
|
|
956
1204
|
callCount: number;
|
|
957
1205
|
lastCalledAt: string | null;
|
|
958
1206
|
cooldownUntil: string | null;
|
|
@@ -961,22 +1209,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
961
1209
|
existsInLeadsTable: boolean;
|
|
962
1210
|
originalLeadId: string | null;
|
|
963
1211
|
agent?: {
|
|
1212
|
+
status: "ACTIVE" | "INACTIVE";
|
|
964
1213
|
id: string;
|
|
965
1214
|
firstName: string;
|
|
966
1215
|
lastName: string;
|
|
967
1216
|
email: string;
|
|
1217
|
+
createdAt: string;
|
|
1218
|
+
updatedAt: string;
|
|
968
1219
|
phoneNumbers: {
|
|
969
|
-
phoneNumber: string;
|
|
970
1220
|
id: string;
|
|
1221
|
+
phoneNumber: string;
|
|
971
1222
|
isPrimary: boolean;
|
|
972
1223
|
description?: string | null | undefined;
|
|
973
1224
|
}[];
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1225
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1226
|
+
deletedAt?: string | null | undefined;
|
|
1227
|
+
officeId?: string | null | undefined;
|
|
977
1228
|
office?: {
|
|
978
|
-
name: string;
|
|
979
1229
|
id: string;
|
|
1230
|
+
name: string;
|
|
1231
|
+
managers?: {
|
|
1232
|
+
id: string;
|
|
1233
|
+
firstName: string;
|
|
1234
|
+
lastName: string;
|
|
1235
|
+
}[] | undefined;
|
|
980
1236
|
} | null | undefined;
|
|
981
1237
|
canImpersonateUsers?: {
|
|
982
1238
|
id: string;
|
|
@@ -988,34 +1244,38 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
988
1244
|
assignment?: {
|
|
989
1245
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
990
1246
|
id: string;
|
|
991
|
-
leadId: string;
|
|
992
|
-
agentId: string | null;
|
|
993
1247
|
createdAt: string;
|
|
994
1248
|
updatedAt: string;
|
|
1249
|
+
agentId: string | null;
|
|
1250
|
+
leadId: string;
|
|
995
1251
|
assignedAt: string;
|
|
996
1252
|
assignedBy: string | null;
|
|
997
1253
|
companyId: string | null;
|
|
998
|
-
lead?: {
|
|
999
|
-
name: string;
|
|
1000
|
-
phoneNumber: string;
|
|
1001
|
-
} | undefined;
|
|
1002
1254
|
agent?: {
|
|
1255
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1003
1256
|
id: string;
|
|
1004
1257
|
firstName: string;
|
|
1005
1258
|
lastName: string;
|
|
1006
1259
|
email: string;
|
|
1260
|
+
createdAt: string;
|
|
1261
|
+
updatedAt: string;
|
|
1007
1262
|
phoneNumbers: {
|
|
1008
|
-
phoneNumber: string;
|
|
1009
1263
|
id: string;
|
|
1264
|
+
phoneNumber: string;
|
|
1010
1265
|
isPrimary: boolean;
|
|
1011
1266
|
description?: string | null | undefined;
|
|
1012
1267
|
}[];
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1268
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1269
|
+
deletedAt?: string | null | undefined;
|
|
1270
|
+
officeId?: string | null | undefined;
|
|
1016
1271
|
office?: {
|
|
1017
|
-
name: string;
|
|
1018
1272
|
id: string;
|
|
1273
|
+
name: string;
|
|
1274
|
+
managers?: {
|
|
1275
|
+
id: string;
|
|
1276
|
+
firstName: string;
|
|
1277
|
+
lastName: string;
|
|
1278
|
+
}[] | undefined;
|
|
1019
1279
|
} | null | undefined;
|
|
1020
1280
|
canImpersonateUsers?: {
|
|
1021
1281
|
id: string;
|
|
@@ -1023,22 +1283,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1023
1283
|
lastName: string;
|
|
1024
1284
|
}[] | undefined;
|
|
1025
1285
|
} | undefined;
|
|
1026
|
-
|
|
1286
|
+
lead?: {
|
|
1027
1287
|
name: string;
|
|
1288
|
+
phoneNumber: string;
|
|
1289
|
+
} | undefined;
|
|
1290
|
+
company?: {
|
|
1028
1291
|
id: string;
|
|
1292
|
+
name: string;
|
|
1029
1293
|
createdAt: string;
|
|
1030
1294
|
updatedAt: string;
|
|
1031
1295
|
} | null | undefined;
|
|
1032
1296
|
} | null | undefined;
|
|
1033
1297
|
}, {
|
|
1034
1298
|
ownResearchLead: {
|
|
1035
|
-
|
|
1036
|
-
phoneNumber: string;
|
|
1037
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1299
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1038
1300
|
id: string;
|
|
1039
|
-
|
|
1301
|
+
name: string;
|
|
1040
1302
|
createdAt: string | Date;
|
|
1041
1303
|
updatedAt: string | Date;
|
|
1304
|
+
phoneNumber: string;
|
|
1305
|
+
agentId: string;
|
|
1042
1306
|
callCount: number;
|
|
1043
1307
|
lastCalledAt: string | Date | null;
|
|
1044
1308
|
cooldownUntil: string | Date | null;
|
|
@@ -1047,22 +1311,30 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1047
1311
|
existsInLeadsTable: boolean;
|
|
1048
1312
|
originalLeadId: string | null;
|
|
1049
1313
|
agent?: {
|
|
1314
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1050
1315
|
id: string;
|
|
1051
1316
|
firstName: string;
|
|
1052
1317
|
lastName: string;
|
|
1053
1318
|
email: string;
|
|
1054
1319
|
createdAt: string | Date;
|
|
1055
1320
|
updatedAt: string | Date;
|
|
1321
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1056
1322
|
phoneNumbers?: {
|
|
1057
|
-
phoneNumber: string;
|
|
1058
1323
|
id: string;
|
|
1324
|
+
phoneNumber: string;
|
|
1059
1325
|
description?: string | null | undefined;
|
|
1060
1326
|
isPrimary?: boolean | undefined;
|
|
1061
1327
|
}[] | undefined;
|
|
1062
|
-
|
|
1328
|
+
deletedAt?: string | Date | null | undefined;
|
|
1329
|
+
officeId?: string | null | undefined;
|
|
1063
1330
|
office?: {
|
|
1064
|
-
name: string;
|
|
1065
1331
|
id: string;
|
|
1332
|
+
name: string;
|
|
1333
|
+
managers?: {
|
|
1334
|
+
id: string;
|
|
1335
|
+
firstName: string;
|
|
1336
|
+
lastName: string;
|
|
1337
|
+
}[] | undefined;
|
|
1066
1338
|
} | null | undefined;
|
|
1067
1339
|
canImpersonateUsers?: {
|
|
1068
1340
|
id: string;
|
|
@@ -1074,34 +1346,38 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1074
1346
|
assignment?: {
|
|
1075
1347
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1076
1348
|
id: string;
|
|
1077
|
-
leadId: string;
|
|
1078
|
-
agentId: string | null;
|
|
1079
1349
|
createdAt: string | Date;
|
|
1080
1350
|
updatedAt: string | Date;
|
|
1351
|
+
agentId: string | null;
|
|
1352
|
+
leadId: string;
|
|
1081
1353
|
assignedAt: string | Date;
|
|
1082
1354
|
assignedBy: string | null;
|
|
1083
1355
|
companyId: string | null;
|
|
1084
|
-
lead?: {
|
|
1085
|
-
name: string;
|
|
1086
|
-
phoneNumber: string;
|
|
1087
|
-
} | undefined;
|
|
1088
1356
|
agent?: {
|
|
1357
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1089
1358
|
id: string;
|
|
1090
1359
|
firstName: string;
|
|
1091
1360
|
lastName: string;
|
|
1092
1361
|
email: string;
|
|
1093
1362
|
createdAt: string | Date;
|
|
1094
1363
|
updatedAt: string | Date;
|
|
1364
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1095
1365
|
phoneNumbers?: {
|
|
1096
|
-
phoneNumber: string;
|
|
1097
1366
|
id: string;
|
|
1367
|
+
phoneNumber: string;
|
|
1098
1368
|
description?: string | null | undefined;
|
|
1099
1369
|
isPrimary?: boolean | undefined;
|
|
1100
1370
|
}[] | undefined;
|
|
1101
|
-
|
|
1371
|
+
deletedAt?: string | Date | null | undefined;
|
|
1372
|
+
officeId?: string | null | undefined;
|
|
1102
1373
|
office?: {
|
|
1103
|
-
name: string;
|
|
1104
1374
|
id: string;
|
|
1375
|
+
name: string;
|
|
1376
|
+
managers?: {
|
|
1377
|
+
id: string;
|
|
1378
|
+
firstName: string;
|
|
1379
|
+
lastName: string;
|
|
1380
|
+
}[] | undefined;
|
|
1105
1381
|
} | null | undefined;
|
|
1106
1382
|
canImpersonateUsers?: {
|
|
1107
1383
|
id: string;
|
|
@@ -1109,9 +1385,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1109
1385
|
lastName: string;
|
|
1110
1386
|
}[] | undefined;
|
|
1111
1387
|
} | undefined;
|
|
1112
|
-
|
|
1388
|
+
lead?: {
|
|
1113
1389
|
name: string;
|
|
1390
|
+
phoneNumber: string;
|
|
1391
|
+
} | undefined;
|
|
1392
|
+
company?: {
|
|
1114
1393
|
id: string;
|
|
1394
|
+
name: string;
|
|
1115
1395
|
createdAt: string | Date;
|
|
1116
1396
|
updatedAt: string | Date;
|
|
1117
1397
|
} | null | undefined;
|
|
@@ -1142,26 +1422,50 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1142
1422
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1143
1423
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1144
1424
|
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
phoneNumber: string;
|
|
1146
1425
|
id: string;
|
|
1426
|
+
phoneNumber: string;
|
|
1147
1427
|
isPrimary: boolean;
|
|
1148
1428
|
description?: string | null | undefined;
|
|
1149
1429
|
}, {
|
|
1150
|
-
phoneNumber: string;
|
|
1151
1430
|
id: string;
|
|
1431
|
+
phoneNumber: string;
|
|
1152
1432
|
description?: string | null | undefined;
|
|
1153
1433
|
isPrimary?: boolean | undefined;
|
|
1154
1434
|
}>, "many">>>;
|
|
1155
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1435
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1436
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1156
1437
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1157
1438
|
id: z.ZodString;
|
|
1158
1439
|
name: z.ZodString;
|
|
1440
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1441
|
+
id: z.ZodString;
|
|
1442
|
+
firstName: z.ZodString;
|
|
1443
|
+
lastName: z.ZodString;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
id: string;
|
|
1446
|
+
firstName: string;
|
|
1447
|
+
lastName: string;
|
|
1448
|
+
}, {
|
|
1449
|
+
id: string;
|
|
1450
|
+
firstName: string;
|
|
1451
|
+
lastName: string;
|
|
1452
|
+
}>, "many">>;
|
|
1159
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1160
|
-
name: string;
|
|
1161
1454
|
id: string;
|
|
1162
|
-
}, {
|
|
1163
1455
|
name: string;
|
|
1456
|
+
managers?: {
|
|
1457
|
+
id: string;
|
|
1458
|
+
firstName: string;
|
|
1459
|
+
lastName: string;
|
|
1460
|
+
}[] | undefined;
|
|
1461
|
+
}, {
|
|
1164
1462
|
id: string;
|
|
1463
|
+
name: string;
|
|
1464
|
+
managers?: {
|
|
1465
|
+
id: string;
|
|
1466
|
+
firstName: string;
|
|
1467
|
+
lastName: string;
|
|
1468
|
+
}[] | undefined;
|
|
1165
1469
|
}>>>;
|
|
1166
1470
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1167
1471
|
id: z.ZodString;
|
|
@@ -1176,25 +1480,35 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1176
1480
|
firstName: string;
|
|
1177
1481
|
lastName: string;
|
|
1178
1482
|
}>, "many">>;
|
|
1483
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1179
1484
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1180
1485
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1486
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1181
1487
|
}, "strip", z.ZodTypeAny, {
|
|
1488
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1182
1489
|
id: string;
|
|
1183
1490
|
firstName: string;
|
|
1184
1491
|
lastName: string;
|
|
1185
1492
|
email: string;
|
|
1493
|
+
createdAt: string;
|
|
1494
|
+
updatedAt: string;
|
|
1186
1495
|
phoneNumbers: {
|
|
1187
|
-
phoneNumber: string;
|
|
1188
1496
|
id: string;
|
|
1497
|
+
phoneNumber: string;
|
|
1189
1498
|
isPrimary: boolean;
|
|
1190
1499
|
description?: string | null | undefined;
|
|
1191
1500
|
}[];
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1501
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1502
|
+
deletedAt?: string | null | undefined;
|
|
1503
|
+
officeId?: string | null | undefined;
|
|
1195
1504
|
office?: {
|
|
1196
|
-
name: string;
|
|
1197
1505
|
id: string;
|
|
1506
|
+
name: string;
|
|
1507
|
+
managers?: {
|
|
1508
|
+
id: string;
|
|
1509
|
+
firstName: string;
|
|
1510
|
+
lastName: string;
|
|
1511
|
+
}[] | undefined;
|
|
1198
1512
|
} | null | undefined;
|
|
1199
1513
|
canImpersonateUsers?: {
|
|
1200
1514
|
id: string;
|
|
@@ -1202,22 +1516,30 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1202
1516
|
lastName: string;
|
|
1203
1517
|
}[] | undefined;
|
|
1204
1518
|
}, {
|
|
1519
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1205
1520
|
id: string;
|
|
1206
1521
|
firstName: string;
|
|
1207
1522
|
lastName: string;
|
|
1208
1523
|
email: string;
|
|
1209
1524
|
createdAt: string | Date;
|
|
1210
1525
|
updatedAt: string | Date;
|
|
1526
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1211
1527
|
phoneNumbers?: {
|
|
1212
|
-
phoneNumber: string;
|
|
1213
1528
|
id: string;
|
|
1529
|
+
phoneNumber: string;
|
|
1214
1530
|
description?: string | null | undefined;
|
|
1215
1531
|
isPrimary?: boolean | undefined;
|
|
1216
1532
|
}[] | undefined;
|
|
1217
|
-
|
|
1533
|
+
deletedAt?: string | Date | null | undefined;
|
|
1534
|
+
officeId?: string | null | undefined;
|
|
1218
1535
|
office?: {
|
|
1219
|
-
name: string;
|
|
1220
1536
|
id: string;
|
|
1537
|
+
name: string;
|
|
1538
|
+
managers?: {
|
|
1539
|
+
id: string;
|
|
1540
|
+
firstName: string;
|
|
1541
|
+
lastName: string;
|
|
1542
|
+
}[] | undefined;
|
|
1221
1543
|
} | null | undefined;
|
|
1222
1544
|
canImpersonateUsers?: {
|
|
1223
1545
|
id: string;
|
|
@@ -1227,7 +1549,7 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1227
1549
|
}>>;
|
|
1228
1550
|
name: z.ZodString;
|
|
1229
1551
|
phoneNumber: z.ZodString;
|
|
1230
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1552
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
1231
1553
|
callCount: z.ZodNumber;
|
|
1232
1554
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1233
1555
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -1238,13 +1560,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1238
1560
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1239
1561
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1240
1562
|
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
|
|
1242
|
-
phoneNumber: string;
|
|
1243
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1563
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1244
1564
|
id: string;
|
|
1245
|
-
|
|
1565
|
+
name: string;
|
|
1246
1566
|
createdAt: string;
|
|
1247
1567
|
updatedAt: string;
|
|
1568
|
+
phoneNumber: string;
|
|
1569
|
+
agentId: string;
|
|
1248
1570
|
callCount: number;
|
|
1249
1571
|
lastCalledAt: string | null;
|
|
1250
1572
|
cooldownUntil: string | null;
|
|
@@ -1253,22 +1575,30 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1253
1575
|
existsInLeadsTable: boolean;
|
|
1254
1576
|
originalLeadId: string | null;
|
|
1255
1577
|
agent?: {
|
|
1578
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1256
1579
|
id: string;
|
|
1257
1580
|
firstName: string;
|
|
1258
1581
|
lastName: string;
|
|
1259
1582
|
email: string;
|
|
1583
|
+
createdAt: string;
|
|
1584
|
+
updatedAt: string;
|
|
1260
1585
|
phoneNumbers: {
|
|
1261
|
-
phoneNumber: string;
|
|
1262
1586
|
id: string;
|
|
1587
|
+
phoneNumber: string;
|
|
1263
1588
|
isPrimary: boolean;
|
|
1264
1589
|
description?: string | null | undefined;
|
|
1265
1590
|
}[];
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1591
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1592
|
+
deletedAt?: string | null | undefined;
|
|
1593
|
+
officeId?: string | null | undefined;
|
|
1269
1594
|
office?: {
|
|
1270
|
-
name: string;
|
|
1271
1595
|
id: string;
|
|
1596
|
+
name: string;
|
|
1597
|
+
managers?: {
|
|
1598
|
+
id: string;
|
|
1599
|
+
firstName: string;
|
|
1600
|
+
lastName: string;
|
|
1601
|
+
}[] | undefined;
|
|
1272
1602
|
} | null | undefined;
|
|
1273
1603
|
canImpersonateUsers?: {
|
|
1274
1604
|
id: string;
|
|
@@ -1277,13 +1607,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1277
1607
|
}[] | undefined;
|
|
1278
1608
|
} | undefined;
|
|
1279
1609
|
}, {
|
|
1280
|
-
|
|
1281
|
-
phoneNumber: string;
|
|
1282
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1610
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1283
1611
|
id: string;
|
|
1284
|
-
|
|
1612
|
+
name: string;
|
|
1285
1613
|
createdAt: string | Date;
|
|
1286
1614
|
updatedAt: string | Date;
|
|
1615
|
+
phoneNumber: string;
|
|
1616
|
+
agentId: string;
|
|
1287
1617
|
callCount: number;
|
|
1288
1618
|
lastCalledAt: string | Date | null;
|
|
1289
1619
|
cooldownUntil: string | Date | null;
|
|
@@ -1292,22 +1622,30 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1292
1622
|
existsInLeadsTable: boolean;
|
|
1293
1623
|
originalLeadId: string | null;
|
|
1294
1624
|
agent?: {
|
|
1625
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1295
1626
|
id: string;
|
|
1296
1627
|
firstName: string;
|
|
1297
1628
|
lastName: string;
|
|
1298
1629
|
email: string;
|
|
1299
1630
|
createdAt: string | Date;
|
|
1300
1631
|
updatedAt: string | Date;
|
|
1632
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1301
1633
|
phoneNumbers?: {
|
|
1302
|
-
phoneNumber: string;
|
|
1303
1634
|
id: string;
|
|
1635
|
+
phoneNumber: string;
|
|
1304
1636
|
description?: string | null | undefined;
|
|
1305
1637
|
isPrimary?: boolean | undefined;
|
|
1306
1638
|
}[] | undefined;
|
|
1307
|
-
|
|
1639
|
+
deletedAt?: string | Date | null | undefined;
|
|
1640
|
+
officeId?: string | null | undefined;
|
|
1308
1641
|
office?: {
|
|
1309
|
-
name: string;
|
|
1310
1642
|
id: string;
|
|
1643
|
+
name: string;
|
|
1644
|
+
managers?: {
|
|
1645
|
+
id: string;
|
|
1646
|
+
firstName: string;
|
|
1647
|
+
lastName: string;
|
|
1648
|
+
}[] | undefined;
|
|
1311
1649
|
} | null | undefined;
|
|
1312
1650
|
canImpersonateUsers?: {
|
|
1313
1651
|
id: string;
|
|
@@ -1318,13 +1656,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1318
1656
|
}>;
|
|
1319
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1320
1658
|
ownResearchLead: {
|
|
1321
|
-
|
|
1322
|
-
phoneNumber: string;
|
|
1323
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1659
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1324
1660
|
id: string;
|
|
1325
|
-
|
|
1661
|
+
name: string;
|
|
1326
1662
|
createdAt: string;
|
|
1327
1663
|
updatedAt: string;
|
|
1664
|
+
phoneNumber: string;
|
|
1665
|
+
agentId: string;
|
|
1328
1666
|
callCount: number;
|
|
1329
1667
|
lastCalledAt: string | null;
|
|
1330
1668
|
cooldownUntil: string | null;
|
|
@@ -1333,22 +1671,30 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1333
1671
|
existsInLeadsTable: boolean;
|
|
1334
1672
|
originalLeadId: string | null;
|
|
1335
1673
|
agent?: {
|
|
1674
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1336
1675
|
id: string;
|
|
1337
1676
|
firstName: string;
|
|
1338
1677
|
lastName: string;
|
|
1339
1678
|
email: string;
|
|
1679
|
+
createdAt: string;
|
|
1680
|
+
updatedAt: string;
|
|
1340
1681
|
phoneNumbers: {
|
|
1341
|
-
phoneNumber: string;
|
|
1342
1682
|
id: string;
|
|
1683
|
+
phoneNumber: string;
|
|
1343
1684
|
isPrimary: boolean;
|
|
1344
1685
|
description?: string | null | undefined;
|
|
1345
1686
|
}[];
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1687
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1688
|
+
deletedAt?: string | null | undefined;
|
|
1689
|
+
officeId?: string | null | undefined;
|
|
1349
1690
|
office?: {
|
|
1350
|
-
name: string;
|
|
1351
1691
|
id: string;
|
|
1692
|
+
name: string;
|
|
1693
|
+
managers?: {
|
|
1694
|
+
id: string;
|
|
1695
|
+
firstName: string;
|
|
1696
|
+
lastName: string;
|
|
1697
|
+
}[] | undefined;
|
|
1352
1698
|
} | null | undefined;
|
|
1353
1699
|
canImpersonateUsers?: {
|
|
1354
1700
|
id: string;
|
|
@@ -1359,13 +1705,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1359
1705
|
};
|
|
1360
1706
|
}, {
|
|
1361
1707
|
ownResearchLead: {
|
|
1362
|
-
|
|
1363
|
-
phoneNumber: string;
|
|
1364
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1708
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1365
1709
|
id: string;
|
|
1366
|
-
|
|
1710
|
+
name: string;
|
|
1367
1711
|
createdAt: string | Date;
|
|
1368
1712
|
updatedAt: string | Date;
|
|
1713
|
+
phoneNumber: string;
|
|
1714
|
+
agentId: string;
|
|
1369
1715
|
callCount: number;
|
|
1370
1716
|
lastCalledAt: string | Date | null;
|
|
1371
1717
|
cooldownUntil: string | Date | null;
|
|
@@ -1374,22 +1720,30 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1374
1720
|
existsInLeadsTable: boolean;
|
|
1375
1721
|
originalLeadId: string | null;
|
|
1376
1722
|
agent?: {
|
|
1723
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1377
1724
|
id: string;
|
|
1378
1725
|
firstName: string;
|
|
1379
1726
|
lastName: string;
|
|
1380
1727
|
email: string;
|
|
1381
1728
|
createdAt: string | Date;
|
|
1382
1729
|
updatedAt: string | Date;
|
|
1730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1383
1731
|
phoneNumbers?: {
|
|
1384
|
-
phoneNumber: string;
|
|
1385
1732
|
id: string;
|
|
1733
|
+
phoneNumber: string;
|
|
1386
1734
|
description?: string | null | undefined;
|
|
1387
1735
|
isPrimary?: boolean | undefined;
|
|
1388
1736
|
}[] | undefined;
|
|
1389
|
-
|
|
1737
|
+
deletedAt?: string | Date | null | undefined;
|
|
1738
|
+
officeId?: string | null | undefined;
|
|
1390
1739
|
office?: {
|
|
1391
|
-
name: string;
|
|
1392
1740
|
id: string;
|
|
1741
|
+
name: string;
|
|
1742
|
+
managers?: {
|
|
1743
|
+
id: string;
|
|
1744
|
+
firstName: string;
|
|
1745
|
+
lastName: string;
|
|
1746
|
+
}[] | undefined;
|
|
1393
1747
|
} | null | undefined;
|
|
1394
1748
|
canImpersonateUsers?: {
|
|
1395
1749
|
id: string;
|
|
@@ -1402,12 +1756,15 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1402
1756
|
export declare const AgentInfoResponseSchema: z.ZodObject<{
|
|
1403
1757
|
companyId: z.ZodNullable<z.ZodString>;
|
|
1404
1758
|
companyName: z.ZodNullable<z.ZodString>;
|
|
1759
|
+
isAvailable: z.ZodBoolean;
|
|
1405
1760
|
}, "strip", z.ZodTypeAny, {
|
|
1406
1761
|
companyId: string | null;
|
|
1407
1762
|
companyName: string | null;
|
|
1763
|
+
isAvailable: boolean;
|
|
1408
1764
|
}, {
|
|
1409
1765
|
companyId: string | null;
|
|
1410
1766
|
companyName: string | null;
|
|
1767
|
+
isAvailable: boolean;
|
|
1411
1768
|
}>;
|
|
1412
1769
|
export declare const OwnResearchLeadSortableFieldsSchema: z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>;
|
|
1413
1770
|
export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
@@ -1416,7 +1773,7 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1416
1773
|
} & {
|
|
1417
1774
|
name: z.ZodOptional<z.ZodString>;
|
|
1418
1775
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1419
|
-
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
1776
|
+
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>>;
|
|
1420
1777
|
minTotalCalls: z.ZodOptional<z.ZodNumber>;
|
|
1421
1778
|
lastCalledAt: z.ZodOptional<z.ZodObject<{
|
|
1422
1779
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1433,29 +1790,29 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1433
1790
|
}, "strip", z.ZodTypeAny, {
|
|
1434
1791
|
limit: number;
|
|
1435
1792
|
page: number;
|
|
1793
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1436
1794
|
name?: string | undefined;
|
|
1437
1795
|
phoneNumber?: string | undefined;
|
|
1438
|
-
|
|
1796
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1797
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1439
1798
|
lastCalledAt?: {
|
|
1440
1799
|
from?: string | null | undefined;
|
|
1441
1800
|
to?: string | null | undefined;
|
|
1442
1801
|
} | undefined;
|
|
1443
1802
|
minTotalCalls?: number | undefined;
|
|
1444
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1445
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1446
1803
|
}, {
|
|
1804
|
+
limit?: number | undefined;
|
|
1805
|
+
page?: number | undefined;
|
|
1806
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1447
1807
|
name?: string | undefined;
|
|
1448
1808
|
phoneNumber?: string | undefined;
|
|
1449
|
-
|
|
1809
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1810
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1450
1811
|
lastCalledAt?: {
|
|
1451
1812
|
from?: string | null | undefined;
|
|
1452
1813
|
to?: string | null | undefined;
|
|
1453
1814
|
} | undefined;
|
|
1454
|
-
limit?: number | undefined;
|
|
1455
|
-
page?: number | undefined;
|
|
1456
1815
|
minTotalCalls?: number | undefined;
|
|
1457
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1458
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1459
1816
|
}>;
|
|
1460
1817
|
export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
1461
1818
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1472,26 +1829,50 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1472
1829
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1473
1830
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1474
1831
|
}, "strip", z.ZodTypeAny, {
|
|
1475
|
-
phoneNumber: string;
|
|
1476
1832
|
id: string;
|
|
1833
|
+
phoneNumber: string;
|
|
1477
1834
|
isPrimary: boolean;
|
|
1478
1835
|
description?: string | null | undefined;
|
|
1479
1836
|
}, {
|
|
1480
|
-
phoneNumber: string;
|
|
1481
1837
|
id: string;
|
|
1838
|
+
phoneNumber: string;
|
|
1482
1839
|
description?: string | null | undefined;
|
|
1483
1840
|
isPrimary?: boolean | undefined;
|
|
1484
1841
|
}>, "many">>>;
|
|
1485
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1842
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1843
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1486
1844
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1487
1845
|
id: z.ZodString;
|
|
1488
1846
|
name: z.ZodString;
|
|
1847
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1848
|
+
id: z.ZodString;
|
|
1849
|
+
firstName: z.ZodString;
|
|
1850
|
+
lastName: z.ZodString;
|
|
1851
|
+
}, "strip", z.ZodTypeAny, {
|
|
1852
|
+
id: string;
|
|
1853
|
+
firstName: string;
|
|
1854
|
+
lastName: string;
|
|
1855
|
+
}, {
|
|
1856
|
+
id: string;
|
|
1857
|
+
firstName: string;
|
|
1858
|
+
lastName: string;
|
|
1859
|
+
}>, "many">>;
|
|
1489
1860
|
}, "strip", z.ZodTypeAny, {
|
|
1490
|
-
name: string;
|
|
1491
1861
|
id: string;
|
|
1492
|
-
}, {
|
|
1493
1862
|
name: string;
|
|
1863
|
+
managers?: {
|
|
1864
|
+
id: string;
|
|
1865
|
+
firstName: string;
|
|
1866
|
+
lastName: string;
|
|
1867
|
+
}[] | undefined;
|
|
1868
|
+
}, {
|
|
1494
1869
|
id: string;
|
|
1870
|
+
name: string;
|
|
1871
|
+
managers?: {
|
|
1872
|
+
id: string;
|
|
1873
|
+
firstName: string;
|
|
1874
|
+
lastName: string;
|
|
1875
|
+
}[] | undefined;
|
|
1495
1876
|
}>>>;
|
|
1496
1877
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1497
1878
|
id: z.ZodString;
|
|
@@ -1506,25 +1887,35 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1506
1887
|
firstName: string;
|
|
1507
1888
|
lastName: string;
|
|
1508
1889
|
}>, "many">>;
|
|
1890
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1509
1891
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1510
1892
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1893
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1511
1894
|
}, "strip", z.ZodTypeAny, {
|
|
1895
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1512
1896
|
id: string;
|
|
1513
1897
|
firstName: string;
|
|
1514
1898
|
lastName: string;
|
|
1515
1899
|
email: string;
|
|
1900
|
+
createdAt: string;
|
|
1901
|
+
updatedAt: string;
|
|
1516
1902
|
phoneNumbers: {
|
|
1517
|
-
phoneNumber: string;
|
|
1518
1903
|
id: string;
|
|
1904
|
+
phoneNumber: string;
|
|
1519
1905
|
isPrimary: boolean;
|
|
1520
1906
|
description?: string | null | undefined;
|
|
1521
1907
|
}[];
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1908
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1909
|
+
deletedAt?: string | null | undefined;
|
|
1910
|
+
officeId?: string | null | undefined;
|
|
1525
1911
|
office?: {
|
|
1526
|
-
name: string;
|
|
1527
1912
|
id: string;
|
|
1913
|
+
name: string;
|
|
1914
|
+
managers?: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
firstName: string;
|
|
1917
|
+
lastName: string;
|
|
1918
|
+
}[] | undefined;
|
|
1528
1919
|
} | null | undefined;
|
|
1529
1920
|
canImpersonateUsers?: {
|
|
1530
1921
|
id: string;
|
|
@@ -1532,22 +1923,30 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1532
1923
|
lastName: string;
|
|
1533
1924
|
}[] | undefined;
|
|
1534
1925
|
}, {
|
|
1926
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1535
1927
|
id: string;
|
|
1536
1928
|
firstName: string;
|
|
1537
1929
|
lastName: string;
|
|
1538
1930
|
email: string;
|
|
1539
1931
|
createdAt: string | Date;
|
|
1540
1932
|
updatedAt: string | Date;
|
|
1933
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1541
1934
|
phoneNumbers?: {
|
|
1542
|
-
phoneNumber: string;
|
|
1543
1935
|
id: string;
|
|
1936
|
+
phoneNumber: string;
|
|
1544
1937
|
description?: string | null | undefined;
|
|
1545
1938
|
isPrimary?: boolean | undefined;
|
|
1546
1939
|
}[] | undefined;
|
|
1547
|
-
|
|
1940
|
+
deletedAt?: string | Date | null | undefined;
|
|
1941
|
+
officeId?: string | null | undefined;
|
|
1548
1942
|
office?: {
|
|
1549
|
-
name: string;
|
|
1550
1943
|
id: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
managers?: {
|
|
1946
|
+
id: string;
|
|
1947
|
+
firstName: string;
|
|
1948
|
+
lastName: string;
|
|
1949
|
+
}[] | undefined;
|
|
1551
1950
|
} | null | undefined;
|
|
1552
1951
|
canImpersonateUsers?: {
|
|
1553
1952
|
id: string;
|
|
@@ -1557,7 +1956,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1557
1956
|
}>>;
|
|
1558
1957
|
name: z.ZodString;
|
|
1559
1958
|
phoneNumber: z.ZodString;
|
|
1560
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1959
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
1561
1960
|
callCount: z.ZodNumber;
|
|
1562
1961
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1563
1962
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -1568,13 +1967,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1568
1967
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1569
1968
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1570
1969
|
}, "strip", z.ZodTypeAny, {
|
|
1571
|
-
|
|
1572
|
-
phoneNumber: string;
|
|
1573
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1970
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1574
1971
|
id: string;
|
|
1575
|
-
|
|
1972
|
+
name: string;
|
|
1576
1973
|
createdAt: string;
|
|
1577
1974
|
updatedAt: string;
|
|
1975
|
+
phoneNumber: string;
|
|
1976
|
+
agentId: string;
|
|
1578
1977
|
callCount: number;
|
|
1579
1978
|
lastCalledAt: string | null;
|
|
1580
1979
|
cooldownUntil: string | null;
|
|
@@ -1583,22 +1982,30 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1583
1982
|
existsInLeadsTable: boolean;
|
|
1584
1983
|
originalLeadId: string | null;
|
|
1585
1984
|
agent?: {
|
|
1985
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1586
1986
|
id: string;
|
|
1587
1987
|
firstName: string;
|
|
1588
1988
|
lastName: string;
|
|
1589
1989
|
email: string;
|
|
1990
|
+
createdAt: string;
|
|
1991
|
+
updatedAt: string;
|
|
1590
1992
|
phoneNumbers: {
|
|
1591
|
-
phoneNumber: string;
|
|
1592
1993
|
id: string;
|
|
1994
|
+
phoneNumber: string;
|
|
1593
1995
|
isPrimary: boolean;
|
|
1594
1996
|
description?: string | null | undefined;
|
|
1595
1997
|
}[];
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1998
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1999
|
+
deletedAt?: string | null | undefined;
|
|
2000
|
+
officeId?: string | null | undefined;
|
|
1599
2001
|
office?: {
|
|
1600
|
-
name: string;
|
|
1601
2002
|
id: string;
|
|
2003
|
+
name: string;
|
|
2004
|
+
managers?: {
|
|
2005
|
+
id: string;
|
|
2006
|
+
firstName: string;
|
|
2007
|
+
lastName: string;
|
|
2008
|
+
}[] | undefined;
|
|
1602
2009
|
} | null | undefined;
|
|
1603
2010
|
canImpersonateUsers?: {
|
|
1604
2011
|
id: string;
|
|
@@ -1607,13 +2014,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1607
2014
|
}[] | undefined;
|
|
1608
2015
|
} | undefined;
|
|
1609
2016
|
}, {
|
|
1610
|
-
|
|
1611
|
-
phoneNumber: string;
|
|
1612
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2017
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1613
2018
|
id: string;
|
|
1614
|
-
|
|
2019
|
+
name: string;
|
|
1615
2020
|
createdAt: string | Date;
|
|
1616
2021
|
updatedAt: string | Date;
|
|
2022
|
+
phoneNumber: string;
|
|
2023
|
+
agentId: string;
|
|
1617
2024
|
callCount: number;
|
|
1618
2025
|
lastCalledAt: string | Date | null;
|
|
1619
2026
|
cooldownUntil: string | Date | null;
|
|
@@ -1622,22 +2029,30 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1622
2029
|
existsInLeadsTable: boolean;
|
|
1623
2030
|
originalLeadId: string | null;
|
|
1624
2031
|
agent?: {
|
|
2032
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1625
2033
|
id: string;
|
|
1626
2034
|
firstName: string;
|
|
1627
2035
|
lastName: string;
|
|
1628
2036
|
email: string;
|
|
1629
2037
|
createdAt: string | Date;
|
|
1630
2038
|
updatedAt: string | Date;
|
|
2039
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1631
2040
|
phoneNumbers?: {
|
|
1632
|
-
phoneNumber: string;
|
|
1633
2041
|
id: string;
|
|
2042
|
+
phoneNumber: string;
|
|
1634
2043
|
description?: string | null | undefined;
|
|
1635
2044
|
isPrimary?: boolean | undefined;
|
|
1636
2045
|
}[] | undefined;
|
|
1637
|
-
|
|
2046
|
+
deletedAt?: string | Date | null | undefined;
|
|
2047
|
+
officeId?: string | null | undefined;
|
|
1638
2048
|
office?: {
|
|
1639
|
-
name: string;
|
|
1640
2049
|
id: string;
|
|
2050
|
+
name: string;
|
|
2051
|
+
managers?: {
|
|
2052
|
+
id: string;
|
|
2053
|
+
firstName: string;
|
|
2054
|
+
lastName: string;
|
|
2055
|
+
}[] | undefined;
|
|
1641
2056
|
} | null | undefined;
|
|
1642
2057
|
canImpersonateUsers?: {
|
|
1643
2058
|
id: string;
|
|
@@ -1654,13 +2069,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1654
2069
|
}, "strip", z.ZodTypeAny, {
|
|
1655
2070
|
limit: number;
|
|
1656
2071
|
items: {
|
|
1657
|
-
|
|
1658
|
-
phoneNumber: string;
|
|
1659
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2072
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1660
2073
|
id: string;
|
|
1661
|
-
|
|
2074
|
+
name: string;
|
|
1662
2075
|
createdAt: string;
|
|
1663
2076
|
updatedAt: string;
|
|
2077
|
+
phoneNumber: string;
|
|
2078
|
+
agentId: string;
|
|
1664
2079
|
callCount: number;
|
|
1665
2080
|
lastCalledAt: string | null;
|
|
1666
2081
|
cooldownUntil: string | null;
|
|
@@ -1669,22 +2084,30 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1669
2084
|
existsInLeadsTable: boolean;
|
|
1670
2085
|
originalLeadId: string | null;
|
|
1671
2086
|
agent?: {
|
|
2087
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1672
2088
|
id: string;
|
|
1673
2089
|
firstName: string;
|
|
1674
2090
|
lastName: string;
|
|
1675
2091
|
email: string;
|
|
2092
|
+
createdAt: string;
|
|
2093
|
+
updatedAt: string;
|
|
1676
2094
|
phoneNumbers: {
|
|
1677
|
-
phoneNumber: string;
|
|
1678
2095
|
id: string;
|
|
2096
|
+
phoneNumber: string;
|
|
1679
2097
|
isPrimary: boolean;
|
|
1680
2098
|
description?: string | null | undefined;
|
|
1681
2099
|
}[];
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
2100
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2101
|
+
deletedAt?: string | null | undefined;
|
|
2102
|
+
officeId?: string | null | undefined;
|
|
1685
2103
|
office?: {
|
|
1686
|
-
name: string;
|
|
1687
2104
|
id: string;
|
|
2105
|
+
name: string;
|
|
2106
|
+
managers?: {
|
|
2107
|
+
id: string;
|
|
2108
|
+
firstName: string;
|
|
2109
|
+
lastName: string;
|
|
2110
|
+
}[] | undefined;
|
|
1688
2111
|
} | null | undefined;
|
|
1689
2112
|
canImpersonateUsers?: {
|
|
1690
2113
|
id: string;
|
|
@@ -1700,13 +2123,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1700
2123
|
}, {
|
|
1701
2124
|
limit: number;
|
|
1702
2125
|
items: {
|
|
1703
|
-
|
|
1704
|
-
phoneNumber: string;
|
|
1705
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2126
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1706
2127
|
id: string;
|
|
1707
|
-
|
|
2128
|
+
name: string;
|
|
1708
2129
|
createdAt: string | Date;
|
|
1709
2130
|
updatedAt: string | Date;
|
|
2131
|
+
phoneNumber: string;
|
|
2132
|
+
agentId: string;
|
|
1710
2133
|
callCount: number;
|
|
1711
2134
|
lastCalledAt: string | Date | null;
|
|
1712
2135
|
cooldownUntil: string | Date | null;
|
|
@@ -1715,22 +2138,30 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1715
2138
|
existsInLeadsTable: boolean;
|
|
1716
2139
|
originalLeadId: string | null;
|
|
1717
2140
|
agent?: {
|
|
2141
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1718
2142
|
id: string;
|
|
1719
2143
|
firstName: string;
|
|
1720
2144
|
lastName: string;
|
|
1721
2145
|
email: string;
|
|
1722
2146
|
createdAt: string | Date;
|
|
1723
2147
|
updatedAt: string | Date;
|
|
2148
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1724
2149
|
phoneNumbers?: {
|
|
1725
|
-
phoneNumber: string;
|
|
1726
2150
|
id: string;
|
|
2151
|
+
phoneNumber: string;
|
|
1727
2152
|
description?: string | null | undefined;
|
|
1728
2153
|
isPrimary?: boolean | undefined;
|
|
1729
2154
|
}[] | undefined;
|
|
1730
|
-
|
|
2155
|
+
deletedAt?: string | Date | null | undefined;
|
|
2156
|
+
officeId?: string | null | undefined;
|
|
1731
2157
|
office?: {
|
|
1732
|
-
name: string;
|
|
1733
2158
|
id: string;
|
|
2159
|
+
name: string;
|
|
2160
|
+
managers?: {
|
|
2161
|
+
id: string;
|
|
2162
|
+
firstName: string;
|
|
2163
|
+
lastName: string;
|
|
2164
|
+
}[] | undefined;
|
|
1734
2165
|
} | null | undefined;
|
|
1735
2166
|
canImpersonateUsers?: {
|
|
1736
2167
|
id: string;
|
|
@@ -1866,12 +2297,15 @@ export declare const ownResearchContract: {
|
|
|
1866
2297
|
200: z.ZodObject<{
|
|
1867
2298
|
companyId: z.ZodNullable<z.ZodString>;
|
|
1868
2299
|
companyName: z.ZodNullable<z.ZodString>;
|
|
2300
|
+
isAvailable: z.ZodBoolean;
|
|
1869
2301
|
}, "strip", z.ZodTypeAny, {
|
|
1870
2302
|
companyId: string | null;
|
|
1871
2303
|
companyName: string | null;
|
|
2304
|
+
isAvailable: boolean;
|
|
1872
2305
|
}, {
|
|
1873
2306
|
companyId: string | null;
|
|
1874
2307
|
companyName: string | null;
|
|
2308
|
+
isAvailable: boolean;
|
|
1875
2309
|
}>;
|
|
1876
2310
|
};
|
|
1877
2311
|
};
|
|
@@ -1885,7 +2319,7 @@ export declare const ownResearchContract: {
|
|
|
1885
2319
|
} & {
|
|
1886
2320
|
name: z.ZodOptional<z.ZodString>;
|
|
1887
2321
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1888
|
-
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
2322
|
+
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>>;
|
|
1889
2323
|
minTotalCalls: z.ZodOptional<z.ZodNumber>;
|
|
1890
2324
|
lastCalledAt: z.ZodOptional<z.ZodObject<{
|
|
1891
2325
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1902,29 +2336,29 @@ export declare const ownResearchContract: {
|
|
|
1902
2336
|
}, "strip", z.ZodTypeAny, {
|
|
1903
2337
|
limit: number;
|
|
1904
2338
|
page: number;
|
|
2339
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1905
2340
|
name?: string | undefined;
|
|
1906
2341
|
phoneNumber?: string | undefined;
|
|
1907
|
-
|
|
2342
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2343
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1908
2344
|
lastCalledAt?: {
|
|
1909
2345
|
from?: string | null | undefined;
|
|
1910
2346
|
to?: string | null | undefined;
|
|
1911
2347
|
} | undefined;
|
|
1912
2348
|
minTotalCalls?: number | undefined;
|
|
1913
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1914
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1915
2349
|
}, {
|
|
2350
|
+
limit?: number | undefined;
|
|
2351
|
+
page?: number | undefined;
|
|
2352
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1916
2353
|
name?: string | undefined;
|
|
1917
2354
|
phoneNumber?: string | undefined;
|
|
1918
|
-
|
|
2355
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2356
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1919
2357
|
lastCalledAt?: {
|
|
1920
2358
|
from?: string | null | undefined;
|
|
1921
2359
|
to?: string | null | undefined;
|
|
1922
2360
|
} | undefined;
|
|
1923
|
-
limit?: number | undefined;
|
|
1924
|
-
page?: number | undefined;
|
|
1925
2361
|
minTotalCalls?: number | undefined;
|
|
1926
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1927
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1928
2362
|
}>;
|
|
1929
2363
|
summary: "Get all own research leads for the current agent";
|
|
1930
2364
|
method: "GET";
|
|
@@ -2045,26 +2479,50 @@ export declare const ownResearchContract: {
|
|
|
2045
2479
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2046
2480
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2047
2481
|
}, "strip", z.ZodTypeAny, {
|
|
2048
|
-
phoneNumber: string;
|
|
2049
2482
|
id: string;
|
|
2483
|
+
phoneNumber: string;
|
|
2050
2484
|
isPrimary: boolean;
|
|
2051
2485
|
description?: string | null | undefined;
|
|
2052
2486
|
}, {
|
|
2053
|
-
phoneNumber: string;
|
|
2054
2487
|
id: string;
|
|
2488
|
+
phoneNumber: string;
|
|
2055
2489
|
description?: string | null | undefined;
|
|
2056
2490
|
isPrimary?: boolean | undefined;
|
|
2057
2491
|
}>, "many">>>;
|
|
2058
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2492
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2493
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2059
2494
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2060
2495
|
id: z.ZodString;
|
|
2061
2496
|
name: z.ZodString;
|
|
2497
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2498
|
+
id: z.ZodString;
|
|
2499
|
+
firstName: z.ZodString;
|
|
2500
|
+
lastName: z.ZodString;
|
|
2501
|
+
}, "strip", z.ZodTypeAny, {
|
|
2502
|
+
id: string;
|
|
2503
|
+
firstName: string;
|
|
2504
|
+
lastName: string;
|
|
2505
|
+
}, {
|
|
2506
|
+
id: string;
|
|
2507
|
+
firstName: string;
|
|
2508
|
+
lastName: string;
|
|
2509
|
+
}>, "many">>;
|
|
2062
2510
|
}, "strip", z.ZodTypeAny, {
|
|
2063
|
-
name: string;
|
|
2064
2511
|
id: string;
|
|
2065
|
-
}, {
|
|
2066
2512
|
name: string;
|
|
2513
|
+
managers?: {
|
|
2514
|
+
id: string;
|
|
2515
|
+
firstName: string;
|
|
2516
|
+
lastName: string;
|
|
2517
|
+
}[] | undefined;
|
|
2518
|
+
}, {
|
|
2067
2519
|
id: string;
|
|
2520
|
+
name: string;
|
|
2521
|
+
managers?: {
|
|
2522
|
+
id: string;
|
|
2523
|
+
firstName: string;
|
|
2524
|
+
lastName: string;
|
|
2525
|
+
}[] | undefined;
|
|
2068
2526
|
}>>>;
|
|
2069
2527
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2070
2528
|
id: z.ZodString;
|
|
@@ -2079,25 +2537,35 @@ export declare const ownResearchContract: {
|
|
|
2079
2537
|
firstName: string;
|
|
2080
2538
|
lastName: string;
|
|
2081
2539
|
}>, "many">>;
|
|
2540
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2082
2541
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2083
2542
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2543
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2084
2544
|
}, "strip", z.ZodTypeAny, {
|
|
2545
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2085
2546
|
id: string;
|
|
2086
2547
|
firstName: string;
|
|
2087
2548
|
lastName: string;
|
|
2088
2549
|
email: string;
|
|
2550
|
+
createdAt: string;
|
|
2551
|
+
updatedAt: string;
|
|
2089
2552
|
phoneNumbers: {
|
|
2090
|
-
phoneNumber: string;
|
|
2091
2553
|
id: string;
|
|
2554
|
+
phoneNumber: string;
|
|
2092
2555
|
isPrimary: boolean;
|
|
2093
2556
|
description?: string | null | undefined;
|
|
2094
2557
|
}[];
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2558
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2559
|
+
deletedAt?: string | null | undefined;
|
|
2560
|
+
officeId?: string | null | undefined;
|
|
2098
2561
|
office?: {
|
|
2099
|
-
name: string;
|
|
2100
2562
|
id: string;
|
|
2563
|
+
name: string;
|
|
2564
|
+
managers?: {
|
|
2565
|
+
id: string;
|
|
2566
|
+
firstName: string;
|
|
2567
|
+
lastName: string;
|
|
2568
|
+
}[] | undefined;
|
|
2101
2569
|
} | null | undefined;
|
|
2102
2570
|
canImpersonateUsers?: {
|
|
2103
2571
|
id: string;
|
|
@@ -2105,22 +2573,30 @@ export declare const ownResearchContract: {
|
|
|
2105
2573
|
lastName: string;
|
|
2106
2574
|
}[] | undefined;
|
|
2107
2575
|
}, {
|
|
2576
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2108
2577
|
id: string;
|
|
2109
2578
|
firstName: string;
|
|
2110
2579
|
lastName: string;
|
|
2111
2580
|
email: string;
|
|
2112
2581
|
createdAt: string | Date;
|
|
2113
2582
|
updatedAt: string | Date;
|
|
2583
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2114
2584
|
phoneNumbers?: {
|
|
2115
|
-
phoneNumber: string;
|
|
2116
2585
|
id: string;
|
|
2586
|
+
phoneNumber: string;
|
|
2117
2587
|
description?: string | null | undefined;
|
|
2118
2588
|
isPrimary?: boolean | undefined;
|
|
2119
2589
|
}[] | undefined;
|
|
2120
|
-
|
|
2590
|
+
deletedAt?: string | Date | null | undefined;
|
|
2591
|
+
officeId?: string | null | undefined;
|
|
2121
2592
|
office?: {
|
|
2122
|
-
name: string;
|
|
2123
2593
|
id: string;
|
|
2594
|
+
name: string;
|
|
2595
|
+
managers?: {
|
|
2596
|
+
id: string;
|
|
2597
|
+
firstName: string;
|
|
2598
|
+
lastName: string;
|
|
2599
|
+
}[] | undefined;
|
|
2124
2600
|
} | null | undefined;
|
|
2125
2601
|
canImpersonateUsers?: {
|
|
2126
2602
|
id: string;
|
|
@@ -2130,7 +2606,7 @@ export declare const ownResearchContract: {
|
|
|
2130
2606
|
}>>;
|
|
2131
2607
|
name: z.ZodString;
|
|
2132
2608
|
phoneNumber: z.ZodString;
|
|
2133
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
2609
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
2134
2610
|
callCount: z.ZodNumber;
|
|
2135
2611
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2136
2612
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -2141,13 +2617,13 @@ export declare const ownResearchContract: {
|
|
|
2141
2617
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2142
2618
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2143
2619
|
}, "strip", z.ZodTypeAny, {
|
|
2144
|
-
|
|
2145
|
-
phoneNumber: string;
|
|
2146
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2620
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2147
2621
|
id: string;
|
|
2148
|
-
|
|
2622
|
+
name: string;
|
|
2149
2623
|
createdAt: string;
|
|
2150
2624
|
updatedAt: string;
|
|
2625
|
+
phoneNumber: string;
|
|
2626
|
+
agentId: string;
|
|
2151
2627
|
callCount: number;
|
|
2152
2628
|
lastCalledAt: string | null;
|
|
2153
2629
|
cooldownUntil: string | null;
|
|
@@ -2156,22 +2632,30 @@ export declare const ownResearchContract: {
|
|
|
2156
2632
|
existsInLeadsTable: boolean;
|
|
2157
2633
|
originalLeadId: string | null;
|
|
2158
2634
|
agent?: {
|
|
2635
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2159
2636
|
id: string;
|
|
2160
2637
|
firstName: string;
|
|
2161
2638
|
lastName: string;
|
|
2162
2639
|
email: string;
|
|
2640
|
+
createdAt: string;
|
|
2641
|
+
updatedAt: string;
|
|
2163
2642
|
phoneNumbers: {
|
|
2164
|
-
phoneNumber: string;
|
|
2165
2643
|
id: string;
|
|
2644
|
+
phoneNumber: string;
|
|
2166
2645
|
isPrimary: boolean;
|
|
2167
2646
|
description?: string | null | undefined;
|
|
2168
2647
|
}[];
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2648
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2649
|
+
deletedAt?: string | null | undefined;
|
|
2650
|
+
officeId?: string | null | undefined;
|
|
2172
2651
|
office?: {
|
|
2173
|
-
name: string;
|
|
2174
2652
|
id: string;
|
|
2653
|
+
name: string;
|
|
2654
|
+
managers?: {
|
|
2655
|
+
id: string;
|
|
2656
|
+
firstName: string;
|
|
2657
|
+
lastName: string;
|
|
2658
|
+
}[] | undefined;
|
|
2175
2659
|
} | null | undefined;
|
|
2176
2660
|
canImpersonateUsers?: {
|
|
2177
2661
|
id: string;
|
|
@@ -2180,13 +2664,13 @@ export declare const ownResearchContract: {
|
|
|
2180
2664
|
}[] | undefined;
|
|
2181
2665
|
} | undefined;
|
|
2182
2666
|
}, {
|
|
2183
|
-
|
|
2184
|
-
phoneNumber: string;
|
|
2185
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2667
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2186
2668
|
id: string;
|
|
2187
|
-
|
|
2669
|
+
name: string;
|
|
2188
2670
|
createdAt: string | Date;
|
|
2189
2671
|
updatedAt: string | Date;
|
|
2672
|
+
phoneNumber: string;
|
|
2673
|
+
agentId: string;
|
|
2190
2674
|
callCount: number;
|
|
2191
2675
|
lastCalledAt: string | Date | null;
|
|
2192
2676
|
cooldownUntil: string | Date | null;
|
|
@@ -2195,22 +2679,30 @@ export declare const ownResearchContract: {
|
|
|
2195
2679
|
existsInLeadsTable: boolean;
|
|
2196
2680
|
originalLeadId: string | null;
|
|
2197
2681
|
agent?: {
|
|
2682
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2198
2683
|
id: string;
|
|
2199
2684
|
firstName: string;
|
|
2200
2685
|
lastName: string;
|
|
2201
2686
|
email: string;
|
|
2202
2687
|
createdAt: string | Date;
|
|
2203
2688
|
updatedAt: string | Date;
|
|
2689
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2204
2690
|
phoneNumbers?: {
|
|
2205
|
-
phoneNumber: string;
|
|
2206
2691
|
id: string;
|
|
2692
|
+
phoneNumber: string;
|
|
2207
2693
|
description?: string | null | undefined;
|
|
2208
2694
|
isPrimary?: boolean | undefined;
|
|
2209
2695
|
}[] | undefined;
|
|
2210
|
-
|
|
2696
|
+
deletedAt?: string | Date | null | undefined;
|
|
2697
|
+
officeId?: string | null | undefined;
|
|
2211
2698
|
office?: {
|
|
2212
|
-
name: string;
|
|
2213
2699
|
id: string;
|
|
2700
|
+
name: string;
|
|
2701
|
+
managers?: {
|
|
2702
|
+
id: string;
|
|
2703
|
+
firstName: string;
|
|
2704
|
+
lastName: string;
|
|
2705
|
+
}[] | undefined;
|
|
2214
2706
|
} | null | undefined;
|
|
2215
2707
|
canImpersonateUsers?: {
|
|
2216
2708
|
id: string;
|
|
@@ -2227,13 +2719,13 @@ export declare const ownResearchContract: {
|
|
|
2227
2719
|
}, "strip", z.ZodTypeAny, {
|
|
2228
2720
|
limit: number;
|
|
2229
2721
|
items: {
|
|
2230
|
-
|
|
2231
|
-
phoneNumber: string;
|
|
2232
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2722
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2233
2723
|
id: string;
|
|
2234
|
-
|
|
2724
|
+
name: string;
|
|
2235
2725
|
createdAt: string;
|
|
2236
2726
|
updatedAt: string;
|
|
2727
|
+
phoneNumber: string;
|
|
2728
|
+
agentId: string;
|
|
2237
2729
|
callCount: number;
|
|
2238
2730
|
lastCalledAt: string | null;
|
|
2239
2731
|
cooldownUntil: string | null;
|
|
@@ -2242,22 +2734,30 @@ export declare const ownResearchContract: {
|
|
|
2242
2734
|
existsInLeadsTable: boolean;
|
|
2243
2735
|
originalLeadId: string | null;
|
|
2244
2736
|
agent?: {
|
|
2737
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2245
2738
|
id: string;
|
|
2246
2739
|
firstName: string;
|
|
2247
2740
|
lastName: string;
|
|
2248
2741
|
email: string;
|
|
2742
|
+
createdAt: string;
|
|
2743
|
+
updatedAt: string;
|
|
2249
2744
|
phoneNumbers: {
|
|
2250
|
-
phoneNumber: string;
|
|
2251
2745
|
id: string;
|
|
2746
|
+
phoneNumber: string;
|
|
2252
2747
|
isPrimary: boolean;
|
|
2253
2748
|
description?: string | null | undefined;
|
|
2254
2749
|
}[];
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2750
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2751
|
+
deletedAt?: string | null | undefined;
|
|
2752
|
+
officeId?: string | null | undefined;
|
|
2258
2753
|
office?: {
|
|
2259
|
-
name: string;
|
|
2260
2754
|
id: string;
|
|
2755
|
+
name: string;
|
|
2756
|
+
managers?: {
|
|
2757
|
+
id: string;
|
|
2758
|
+
firstName: string;
|
|
2759
|
+
lastName: string;
|
|
2760
|
+
}[] | undefined;
|
|
2261
2761
|
} | null | undefined;
|
|
2262
2762
|
canImpersonateUsers?: {
|
|
2263
2763
|
id: string;
|
|
@@ -2273,13 +2773,13 @@ export declare const ownResearchContract: {
|
|
|
2273
2773
|
}, {
|
|
2274
2774
|
limit: number;
|
|
2275
2775
|
items: {
|
|
2276
|
-
|
|
2277
|
-
phoneNumber: string;
|
|
2278
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2776
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2279
2777
|
id: string;
|
|
2280
|
-
|
|
2778
|
+
name: string;
|
|
2281
2779
|
createdAt: string | Date;
|
|
2282
2780
|
updatedAt: string | Date;
|
|
2781
|
+
phoneNumber: string;
|
|
2782
|
+
agentId: string;
|
|
2283
2783
|
callCount: number;
|
|
2284
2784
|
lastCalledAt: string | Date | null;
|
|
2285
2785
|
cooldownUntil: string | Date | null;
|
|
@@ -2288,22 +2788,30 @@ export declare const ownResearchContract: {
|
|
|
2288
2788
|
existsInLeadsTable: boolean;
|
|
2289
2789
|
originalLeadId: string | null;
|
|
2290
2790
|
agent?: {
|
|
2791
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2291
2792
|
id: string;
|
|
2292
2793
|
firstName: string;
|
|
2293
2794
|
lastName: string;
|
|
2294
2795
|
email: string;
|
|
2295
2796
|
createdAt: string | Date;
|
|
2296
2797
|
updatedAt: string | Date;
|
|
2798
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2297
2799
|
phoneNumbers?: {
|
|
2298
|
-
phoneNumber: string;
|
|
2299
2800
|
id: string;
|
|
2801
|
+
phoneNumber: string;
|
|
2300
2802
|
description?: string | null | undefined;
|
|
2301
2803
|
isPrimary?: boolean | undefined;
|
|
2302
2804
|
}[] | undefined;
|
|
2303
|
-
|
|
2805
|
+
deletedAt?: string | Date | null | undefined;
|
|
2806
|
+
officeId?: string | null | undefined;
|
|
2304
2807
|
office?: {
|
|
2305
|
-
name: string;
|
|
2306
2808
|
id: string;
|
|
2809
|
+
name: string;
|
|
2810
|
+
managers?: {
|
|
2811
|
+
id: string;
|
|
2812
|
+
firstName: string;
|
|
2813
|
+
lastName: string;
|
|
2814
|
+
}[] | undefined;
|
|
2307
2815
|
} | null | undefined;
|
|
2308
2816
|
canImpersonateUsers?: {
|
|
2309
2817
|
id: string;
|
|
@@ -2444,16 +2952,16 @@ export declare const ownResearchContract: {
|
|
|
2444
2952
|
status: z.ZodString;
|
|
2445
2953
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2446
2954
|
}, "strip", z.ZodTypeAny, {
|
|
2447
|
-
name: string;
|
|
2448
|
-
phoneNumber: string;
|
|
2449
2955
|
status: string;
|
|
2450
2956
|
id: string;
|
|
2451
|
-
cooldownUntil: string | null;
|
|
2452
|
-
}, {
|
|
2453
2957
|
name: string;
|
|
2454
2958
|
phoneNumber: string;
|
|
2959
|
+
cooldownUntil: string | null;
|
|
2960
|
+
}, {
|
|
2455
2961
|
status: string;
|
|
2456
2962
|
id: string;
|
|
2963
|
+
name: string;
|
|
2964
|
+
phoneNumber: string;
|
|
2457
2965
|
cooldownUntil: string | Date | null;
|
|
2458
2966
|
}>>>;
|
|
2459
2967
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2470,26 +2978,50 @@ export declare const ownResearchContract: {
|
|
|
2470
2978
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2471
2979
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2472
2980
|
}, "strip", z.ZodTypeAny, {
|
|
2473
|
-
phoneNumber: string;
|
|
2474
2981
|
id: string;
|
|
2982
|
+
phoneNumber: string;
|
|
2475
2983
|
isPrimary: boolean;
|
|
2476
2984
|
description?: string | null | undefined;
|
|
2477
2985
|
}, {
|
|
2478
|
-
phoneNumber: string;
|
|
2479
2986
|
id: string;
|
|
2987
|
+
phoneNumber: string;
|
|
2480
2988
|
description?: string | null | undefined;
|
|
2481
2989
|
isPrimary?: boolean | undefined;
|
|
2482
2990
|
}>, "many">>>;
|
|
2483
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2991
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2992
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2484
2993
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2485
2994
|
id: z.ZodString;
|
|
2486
2995
|
name: z.ZodString;
|
|
2996
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2997
|
+
id: z.ZodString;
|
|
2998
|
+
firstName: z.ZodString;
|
|
2999
|
+
lastName: z.ZodString;
|
|
3000
|
+
}, "strip", z.ZodTypeAny, {
|
|
3001
|
+
id: string;
|
|
3002
|
+
firstName: string;
|
|
3003
|
+
lastName: string;
|
|
3004
|
+
}, {
|
|
3005
|
+
id: string;
|
|
3006
|
+
firstName: string;
|
|
3007
|
+
lastName: string;
|
|
3008
|
+
}>, "many">>;
|
|
2487
3009
|
}, "strip", z.ZodTypeAny, {
|
|
2488
|
-
name: string;
|
|
2489
3010
|
id: string;
|
|
2490
|
-
}, {
|
|
2491
3011
|
name: string;
|
|
3012
|
+
managers?: {
|
|
3013
|
+
id: string;
|
|
3014
|
+
firstName: string;
|
|
3015
|
+
lastName: string;
|
|
3016
|
+
}[] | undefined;
|
|
3017
|
+
}, {
|
|
2492
3018
|
id: string;
|
|
3019
|
+
name: string;
|
|
3020
|
+
managers?: {
|
|
3021
|
+
id: string;
|
|
3022
|
+
firstName: string;
|
|
3023
|
+
lastName: string;
|
|
3024
|
+
}[] | undefined;
|
|
2493
3025
|
}>>>;
|
|
2494
3026
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2495
3027
|
id: z.ZodString;
|
|
@@ -2504,25 +3036,35 @@ export declare const ownResearchContract: {
|
|
|
2504
3036
|
firstName: string;
|
|
2505
3037
|
lastName: string;
|
|
2506
3038
|
}>, "many">>;
|
|
3039
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2507
3040
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2508
3041
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3042
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2509
3043
|
}, "strip", z.ZodTypeAny, {
|
|
3044
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2510
3045
|
id: string;
|
|
2511
3046
|
firstName: string;
|
|
2512
3047
|
lastName: string;
|
|
2513
3048
|
email: string;
|
|
3049
|
+
createdAt: string;
|
|
3050
|
+
updatedAt: string;
|
|
2514
3051
|
phoneNumbers: {
|
|
2515
|
-
phoneNumber: string;
|
|
2516
3052
|
id: string;
|
|
3053
|
+
phoneNumber: string;
|
|
2517
3054
|
isPrimary: boolean;
|
|
2518
3055
|
description?: string | null | undefined;
|
|
2519
3056
|
}[];
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
3057
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3058
|
+
deletedAt?: string | null | undefined;
|
|
3059
|
+
officeId?: string | null | undefined;
|
|
2523
3060
|
office?: {
|
|
2524
|
-
name: string;
|
|
2525
3061
|
id: string;
|
|
3062
|
+
name: string;
|
|
3063
|
+
managers?: {
|
|
3064
|
+
id: string;
|
|
3065
|
+
firstName: string;
|
|
3066
|
+
lastName: string;
|
|
3067
|
+
}[] | undefined;
|
|
2526
3068
|
} | null | undefined;
|
|
2527
3069
|
canImpersonateUsers?: {
|
|
2528
3070
|
id: string;
|
|
@@ -2530,22 +3072,30 @@ export declare const ownResearchContract: {
|
|
|
2530
3072
|
lastName: string;
|
|
2531
3073
|
}[] | undefined;
|
|
2532
3074
|
}, {
|
|
3075
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2533
3076
|
id: string;
|
|
2534
3077
|
firstName: string;
|
|
2535
3078
|
lastName: string;
|
|
2536
3079
|
email: string;
|
|
2537
3080
|
createdAt: string | Date;
|
|
2538
3081
|
updatedAt: string | Date;
|
|
3082
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2539
3083
|
phoneNumbers?: {
|
|
2540
|
-
phoneNumber: string;
|
|
2541
3084
|
id: string;
|
|
3085
|
+
phoneNumber: string;
|
|
2542
3086
|
description?: string | null | undefined;
|
|
2543
3087
|
isPrimary?: boolean | undefined;
|
|
2544
3088
|
}[] | undefined;
|
|
2545
|
-
|
|
3089
|
+
deletedAt?: string | Date | null | undefined;
|
|
3090
|
+
officeId?: string | null | undefined;
|
|
2546
3091
|
office?: {
|
|
2547
|
-
name: string;
|
|
2548
3092
|
id: string;
|
|
3093
|
+
name: string;
|
|
3094
|
+
managers?: {
|
|
3095
|
+
id: string;
|
|
3096
|
+
firstName: string;
|
|
3097
|
+
lastName: string;
|
|
3098
|
+
}[] | undefined;
|
|
2549
3099
|
} | null | undefined;
|
|
2550
3100
|
canImpersonateUsers?: {
|
|
2551
3101
|
id: string;
|
|
@@ -2555,7 +3105,7 @@ export declare const ownResearchContract: {
|
|
|
2555
3105
|
}>>;
|
|
2556
3106
|
name: z.ZodString;
|
|
2557
3107
|
phoneNumber: z.ZodString;
|
|
2558
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
3108
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
2559
3109
|
callCount: z.ZodNumber;
|
|
2560
3110
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2561
3111
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -2566,13 +3116,13 @@ export declare const ownResearchContract: {
|
|
|
2566
3116
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2567
3117
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2568
3118
|
}, "strip", z.ZodTypeAny, {
|
|
2569
|
-
|
|
2570
|
-
phoneNumber: string;
|
|
2571
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3119
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2572
3120
|
id: string;
|
|
2573
|
-
|
|
3121
|
+
name: string;
|
|
2574
3122
|
createdAt: string;
|
|
2575
3123
|
updatedAt: string;
|
|
3124
|
+
phoneNumber: string;
|
|
3125
|
+
agentId: string;
|
|
2576
3126
|
callCount: number;
|
|
2577
3127
|
lastCalledAt: string | null;
|
|
2578
3128
|
cooldownUntil: string | null;
|
|
@@ -2581,22 +3131,30 @@ export declare const ownResearchContract: {
|
|
|
2581
3131
|
existsInLeadsTable: boolean;
|
|
2582
3132
|
originalLeadId: string | null;
|
|
2583
3133
|
agent?: {
|
|
3134
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2584
3135
|
id: string;
|
|
2585
3136
|
firstName: string;
|
|
2586
3137
|
lastName: string;
|
|
2587
3138
|
email: string;
|
|
3139
|
+
createdAt: string;
|
|
3140
|
+
updatedAt: string;
|
|
2588
3141
|
phoneNumbers: {
|
|
2589
|
-
phoneNumber: string;
|
|
2590
3142
|
id: string;
|
|
3143
|
+
phoneNumber: string;
|
|
2591
3144
|
isPrimary: boolean;
|
|
2592
3145
|
description?: string | null | undefined;
|
|
2593
3146
|
}[];
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
3147
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3148
|
+
deletedAt?: string | null | undefined;
|
|
3149
|
+
officeId?: string | null | undefined;
|
|
2597
3150
|
office?: {
|
|
2598
|
-
name: string;
|
|
2599
3151
|
id: string;
|
|
3152
|
+
name: string;
|
|
3153
|
+
managers?: {
|
|
3154
|
+
id: string;
|
|
3155
|
+
firstName: string;
|
|
3156
|
+
lastName: string;
|
|
3157
|
+
}[] | undefined;
|
|
2600
3158
|
} | null | undefined;
|
|
2601
3159
|
canImpersonateUsers?: {
|
|
2602
3160
|
id: string;
|
|
@@ -2605,13 +3163,13 @@ export declare const ownResearchContract: {
|
|
|
2605
3163
|
}[] | undefined;
|
|
2606
3164
|
} | undefined;
|
|
2607
3165
|
}, {
|
|
2608
|
-
|
|
2609
|
-
phoneNumber: string;
|
|
2610
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3166
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2611
3167
|
id: string;
|
|
2612
|
-
|
|
3168
|
+
name: string;
|
|
2613
3169
|
createdAt: string | Date;
|
|
2614
3170
|
updatedAt: string | Date;
|
|
3171
|
+
phoneNumber: string;
|
|
3172
|
+
agentId: string;
|
|
2615
3173
|
callCount: number;
|
|
2616
3174
|
lastCalledAt: string | Date | null;
|
|
2617
3175
|
cooldownUntil: string | Date | null;
|
|
@@ -2620,22 +3178,30 @@ export declare const ownResearchContract: {
|
|
|
2620
3178
|
existsInLeadsTable: boolean;
|
|
2621
3179
|
originalLeadId: string | null;
|
|
2622
3180
|
agent?: {
|
|
3181
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2623
3182
|
id: string;
|
|
2624
3183
|
firstName: string;
|
|
2625
3184
|
lastName: string;
|
|
2626
3185
|
email: string;
|
|
2627
3186
|
createdAt: string | Date;
|
|
2628
3187
|
updatedAt: string | Date;
|
|
3188
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2629
3189
|
phoneNumbers?: {
|
|
2630
|
-
phoneNumber: string;
|
|
2631
3190
|
id: string;
|
|
3191
|
+
phoneNumber: string;
|
|
2632
3192
|
description?: string | null | undefined;
|
|
2633
3193
|
isPrimary?: boolean | undefined;
|
|
2634
3194
|
}[] | undefined;
|
|
2635
|
-
|
|
3195
|
+
deletedAt?: string | Date | null | undefined;
|
|
3196
|
+
officeId?: string | null | undefined;
|
|
2636
3197
|
office?: {
|
|
2637
|
-
name: string;
|
|
2638
3198
|
id: string;
|
|
3199
|
+
name: string;
|
|
3200
|
+
managers?: {
|
|
3201
|
+
id: string;
|
|
3202
|
+
firstName: string;
|
|
3203
|
+
lastName: string;
|
|
3204
|
+
}[] | undefined;
|
|
2639
3205
|
} | null | undefined;
|
|
2640
3206
|
canImpersonateUsers?: {
|
|
2641
3207
|
id: string;
|
|
@@ -2652,20 +3218,20 @@ export declare const ownResearchContract: {
|
|
|
2652
3218
|
existsInOwnResearch: boolean;
|
|
2653
3219
|
isOnCooldown: boolean;
|
|
2654
3220
|
lead?: {
|
|
2655
|
-
name: string;
|
|
2656
|
-
phoneNumber: string;
|
|
2657
3221
|
status: string;
|
|
2658
3222
|
id: string;
|
|
3223
|
+
name: string;
|
|
3224
|
+
phoneNumber: string;
|
|
2659
3225
|
cooldownUntil: string | null;
|
|
2660
3226
|
} | null | undefined;
|
|
2661
3227
|
ownResearchLead?: {
|
|
2662
|
-
|
|
2663
|
-
phoneNumber: string;
|
|
2664
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3228
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2665
3229
|
id: string;
|
|
2666
|
-
|
|
3230
|
+
name: string;
|
|
2667
3231
|
createdAt: string;
|
|
2668
3232
|
updatedAt: string;
|
|
3233
|
+
phoneNumber: string;
|
|
3234
|
+
agentId: string;
|
|
2669
3235
|
callCount: number;
|
|
2670
3236
|
lastCalledAt: string | null;
|
|
2671
3237
|
cooldownUntil: string | null;
|
|
@@ -2674,22 +3240,30 @@ export declare const ownResearchContract: {
|
|
|
2674
3240
|
existsInLeadsTable: boolean;
|
|
2675
3241
|
originalLeadId: string | null;
|
|
2676
3242
|
agent?: {
|
|
3243
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2677
3244
|
id: string;
|
|
2678
3245
|
firstName: string;
|
|
2679
3246
|
lastName: string;
|
|
2680
3247
|
email: string;
|
|
3248
|
+
createdAt: string;
|
|
3249
|
+
updatedAt: string;
|
|
2681
3250
|
phoneNumbers: {
|
|
2682
|
-
phoneNumber: string;
|
|
2683
3251
|
id: string;
|
|
3252
|
+
phoneNumber: string;
|
|
2684
3253
|
isPrimary: boolean;
|
|
2685
3254
|
description?: string | null | undefined;
|
|
2686
3255
|
}[];
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
3256
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3257
|
+
deletedAt?: string | null | undefined;
|
|
3258
|
+
officeId?: string | null | undefined;
|
|
2690
3259
|
office?: {
|
|
2691
|
-
name: string;
|
|
2692
3260
|
id: string;
|
|
3261
|
+
name: string;
|
|
3262
|
+
managers?: {
|
|
3263
|
+
id: string;
|
|
3264
|
+
firstName: string;
|
|
3265
|
+
lastName: string;
|
|
3266
|
+
}[] | undefined;
|
|
2693
3267
|
} | null | undefined;
|
|
2694
3268
|
canImpersonateUsers?: {
|
|
2695
3269
|
id: string;
|
|
@@ -2704,20 +3278,20 @@ export declare const ownResearchContract: {
|
|
|
2704
3278
|
existsInOwnResearch: boolean;
|
|
2705
3279
|
isOnCooldown: boolean;
|
|
2706
3280
|
lead?: {
|
|
2707
|
-
name: string;
|
|
2708
|
-
phoneNumber: string;
|
|
2709
3281
|
status: string;
|
|
2710
3282
|
id: string;
|
|
3283
|
+
name: string;
|
|
3284
|
+
phoneNumber: string;
|
|
2711
3285
|
cooldownUntil: string | Date | null;
|
|
2712
3286
|
} | null | undefined;
|
|
2713
3287
|
ownResearchLead?: {
|
|
2714
|
-
|
|
2715
|
-
phoneNumber: string;
|
|
2716
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3288
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2717
3289
|
id: string;
|
|
2718
|
-
|
|
3290
|
+
name: string;
|
|
2719
3291
|
createdAt: string | Date;
|
|
2720
3292
|
updatedAt: string | Date;
|
|
3293
|
+
phoneNumber: string;
|
|
3294
|
+
agentId: string;
|
|
2721
3295
|
callCount: number;
|
|
2722
3296
|
lastCalledAt: string | Date | null;
|
|
2723
3297
|
cooldownUntil: string | Date | null;
|
|
@@ -2726,22 +3300,30 @@ export declare const ownResearchContract: {
|
|
|
2726
3300
|
existsInLeadsTable: boolean;
|
|
2727
3301
|
originalLeadId: string | null;
|
|
2728
3302
|
agent?: {
|
|
3303
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2729
3304
|
id: string;
|
|
2730
3305
|
firstName: string;
|
|
2731
3306
|
lastName: string;
|
|
2732
3307
|
email: string;
|
|
2733
3308
|
createdAt: string | Date;
|
|
2734
3309
|
updatedAt: string | Date;
|
|
3310
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2735
3311
|
phoneNumbers?: {
|
|
2736
|
-
phoneNumber: string;
|
|
2737
3312
|
id: string;
|
|
3313
|
+
phoneNumber: string;
|
|
2738
3314
|
description?: string | null | undefined;
|
|
2739
3315
|
isPrimary?: boolean | undefined;
|
|
2740
3316
|
}[] | undefined;
|
|
2741
|
-
|
|
3317
|
+
deletedAt?: string | Date | null | undefined;
|
|
3318
|
+
officeId?: string | null | undefined;
|
|
2742
3319
|
office?: {
|
|
2743
|
-
name: string;
|
|
2744
3320
|
id: string;
|
|
3321
|
+
name: string;
|
|
3322
|
+
managers?: {
|
|
3323
|
+
id: string;
|
|
3324
|
+
firstName: string;
|
|
3325
|
+
lastName: string;
|
|
3326
|
+
}[] | undefined;
|
|
2745
3327
|
} | null | undefined;
|
|
2746
3328
|
canImpersonateUsers?: {
|
|
2747
3329
|
id: string;
|
|
@@ -2886,26 +3468,50 @@ export declare const ownResearchContract: {
|
|
|
2886
3468
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2887
3469
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2888
3470
|
}, "strip", z.ZodTypeAny, {
|
|
2889
|
-
phoneNumber: string;
|
|
2890
3471
|
id: string;
|
|
3472
|
+
phoneNumber: string;
|
|
2891
3473
|
isPrimary: boolean;
|
|
2892
3474
|
description?: string | null | undefined;
|
|
2893
3475
|
}, {
|
|
2894
|
-
phoneNumber: string;
|
|
2895
3476
|
id: string;
|
|
3477
|
+
phoneNumber: string;
|
|
2896
3478
|
description?: string | null | undefined;
|
|
2897
3479
|
isPrimary?: boolean | undefined;
|
|
2898
3480
|
}>, "many">>>;
|
|
2899
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3481
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3482
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2900
3483
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2901
3484
|
id: z.ZodString;
|
|
2902
3485
|
name: z.ZodString;
|
|
3486
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3487
|
+
id: z.ZodString;
|
|
3488
|
+
firstName: z.ZodString;
|
|
3489
|
+
lastName: z.ZodString;
|
|
3490
|
+
}, "strip", z.ZodTypeAny, {
|
|
3491
|
+
id: string;
|
|
3492
|
+
firstName: string;
|
|
3493
|
+
lastName: string;
|
|
3494
|
+
}, {
|
|
3495
|
+
id: string;
|
|
3496
|
+
firstName: string;
|
|
3497
|
+
lastName: string;
|
|
3498
|
+
}>, "many">>;
|
|
2903
3499
|
}, "strip", z.ZodTypeAny, {
|
|
2904
|
-
name: string;
|
|
2905
3500
|
id: string;
|
|
2906
|
-
}, {
|
|
2907
3501
|
name: string;
|
|
3502
|
+
managers?: {
|
|
3503
|
+
id: string;
|
|
3504
|
+
firstName: string;
|
|
3505
|
+
lastName: string;
|
|
3506
|
+
}[] | undefined;
|
|
3507
|
+
}, {
|
|
2908
3508
|
id: string;
|
|
3509
|
+
name: string;
|
|
3510
|
+
managers?: {
|
|
3511
|
+
id: string;
|
|
3512
|
+
firstName: string;
|
|
3513
|
+
lastName: string;
|
|
3514
|
+
}[] | undefined;
|
|
2909
3515
|
}>>>;
|
|
2910
3516
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2911
3517
|
id: z.ZodString;
|
|
@@ -2920,25 +3526,35 @@ export declare const ownResearchContract: {
|
|
|
2920
3526
|
firstName: string;
|
|
2921
3527
|
lastName: string;
|
|
2922
3528
|
}>, "many">>;
|
|
3529
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2923
3530
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2924
3531
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3532
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2925
3533
|
}, "strip", z.ZodTypeAny, {
|
|
3534
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2926
3535
|
id: string;
|
|
2927
3536
|
firstName: string;
|
|
2928
3537
|
lastName: string;
|
|
2929
3538
|
email: string;
|
|
3539
|
+
createdAt: string;
|
|
3540
|
+
updatedAt: string;
|
|
2930
3541
|
phoneNumbers: {
|
|
2931
|
-
phoneNumber: string;
|
|
2932
3542
|
id: string;
|
|
3543
|
+
phoneNumber: string;
|
|
2933
3544
|
isPrimary: boolean;
|
|
2934
3545
|
description?: string | null | undefined;
|
|
2935
3546
|
}[];
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
3547
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3548
|
+
deletedAt?: string | null | undefined;
|
|
3549
|
+
officeId?: string | null | undefined;
|
|
2939
3550
|
office?: {
|
|
2940
|
-
name: string;
|
|
2941
3551
|
id: string;
|
|
3552
|
+
name: string;
|
|
3553
|
+
managers?: {
|
|
3554
|
+
id: string;
|
|
3555
|
+
firstName: string;
|
|
3556
|
+
lastName: string;
|
|
3557
|
+
}[] | undefined;
|
|
2942
3558
|
} | null | undefined;
|
|
2943
3559
|
canImpersonateUsers?: {
|
|
2944
3560
|
id: string;
|
|
@@ -2946,22 +3562,30 @@ export declare const ownResearchContract: {
|
|
|
2946
3562
|
lastName: string;
|
|
2947
3563
|
}[] | undefined;
|
|
2948
3564
|
}, {
|
|
3565
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2949
3566
|
id: string;
|
|
2950
3567
|
firstName: string;
|
|
2951
3568
|
lastName: string;
|
|
2952
3569
|
email: string;
|
|
2953
3570
|
createdAt: string | Date;
|
|
2954
3571
|
updatedAt: string | Date;
|
|
3572
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2955
3573
|
phoneNumbers?: {
|
|
2956
|
-
phoneNumber: string;
|
|
2957
3574
|
id: string;
|
|
3575
|
+
phoneNumber: string;
|
|
2958
3576
|
description?: string | null | undefined;
|
|
2959
3577
|
isPrimary?: boolean | undefined;
|
|
2960
3578
|
}[] | undefined;
|
|
2961
|
-
|
|
3579
|
+
deletedAt?: string | Date | null | undefined;
|
|
3580
|
+
officeId?: string | null | undefined;
|
|
2962
3581
|
office?: {
|
|
2963
|
-
name: string;
|
|
2964
3582
|
id: string;
|
|
3583
|
+
name: string;
|
|
3584
|
+
managers?: {
|
|
3585
|
+
id: string;
|
|
3586
|
+
firstName: string;
|
|
3587
|
+
lastName: string;
|
|
3588
|
+
}[] | undefined;
|
|
2965
3589
|
} | null | undefined;
|
|
2966
3590
|
canImpersonateUsers?: {
|
|
2967
3591
|
id: string;
|
|
@@ -2971,7 +3595,7 @@ export declare const ownResearchContract: {
|
|
|
2971
3595
|
}>>;
|
|
2972
3596
|
name: z.ZodString;
|
|
2973
3597
|
phoneNumber: z.ZodString;
|
|
2974
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
3598
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
2975
3599
|
callCount: z.ZodNumber;
|
|
2976
3600
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2977
3601
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -2982,13 +3606,13 @@ export declare const ownResearchContract: {
|
|
|
2982
3606
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2983
3607
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2984
3608
|
}, "strip", z.ZodTypeAny, {
|
|
2985
|
-
|
|
2986
|
-
phoneNumber: string;
|
|
2987
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3609
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2988
3610
|
id: string;
|
|
2989
|
-
|
|
3611
|
+
name: string;
|
|
2990
3612
|
createdAt: string;
|
|
2991
3613
|
updatedAt: string;
|
|
3614
|
+
phoneNumber: string;
|
|
3615
|
+
agentId: string;
|
|
2992
3616
|
callCount: number;
|
|
2993
3617
|
lastCalledAt: string | null;
|
|
2994
3618
|
cooldownUntil: string | null;
|
|
@@ -2997,22 +3621,30 @@ export declare const ownResearchContract: {
|
|
|
2997
3621
|
existsInLeadsTable: boolean;
|
|
2998
3622
|
originalLeadId: string | null;
|
|
2999
3623
|
agent?: {
|
|
3624
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3000
3625
|
id: string;
|
|
3001
3626
|
firstName: string;
|
|
3002
3627
|
lastName: string;
|
|
3003
3628
|
email: string;
|
|
3629
|
+
createdAt: string;
|
|
3630
|
+
updatedAt: string;
|
|
3004
3631
|
phoneNumbers: {
|
|
3005
|
-
phoneNumber: string;
|
|
3006
3632
|
id: string;
|
|
3633
|
+
phoneNumber: string;
|
|
3007
3634
|
isPrimary: boolean;
|
|
3008
3635
|
description?: string | null | undefined;
|
|
3009
3636
|
}[];
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3637
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3638
|
+
deletedAt?: string | null | undefined;
|
|
3639
|
+
officeId?: string | null | undefined;
|
|
3013
3640
|
office?: {
|
|
3014
|
-
name: string;
|
|
3015
3641
|
id: string;
|
|
3642
|
+
name: string;
|
|
3643
|
+
managers?: {
|
|
3644
|
+
id: string;
|
|
3645
|
+
firstName: string;
|
|
3646
|
+
lastName: string;
|
|
3647
|
+
}[] | undefined;
|
|
3016
3648
|
} | null | undefined;
|
|
3017
3649
|
canImpersonateUsers?: {
|
|
3018
3650
|
id: string;
|
|
@@ -3021,13 +3653,13 @@ export declare const ownResearchContract: {
|
|
|
3021
3653
|
}[] | undefined;
|
|
3022
3654
|
} | undefined;
|
|
3023
3655
|
}, {
|
|
3024
|
-
|
|
3025
|
-
phoneNumber: string;
|
|
3026
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3656
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3027
3657
|
id: string;
|
|
3028
|
-
|
|
3658
|
+
name: string;
|
|
3029
3659
|
createdAt: string | Date;
|
|
3030
3660
|
updatedAt: string | Date;
|
|
3661
|
+
phoneNumber: string;
|
|
3662
|
+
agentId: string;
|
|
3031
3663
|
callCount: number;
|
|
3032
3664
|
lastCalledAt: string | Date | null;
|
|
3033
3665
|
cooldownUntil: string | Date | null;
|
|
@@ -3036,22 +3668,30 @@ export declare const ownResearchContract: {
|
|
|
3036
3668
|
existsInLeadsTable: boolean;
|
|
3037
3669
|
originalLeadId: string | null;
|
|
3038
3670
|
agent?: {
|
|
3671
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3039
3672
|
id: string;
|
|
3040
3673
|
firstName: string;
|
|
3041
3674
|
lastName: string;
|
|
3042
3675
|
email: string;
|
|
3043
3676
|
createdAt: string | Date;
|
|
3044
3677
|
updatedAt: string | Date;
|
|
3678
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3045
3679
|
phoneNumbers?: {
|
|
3046
|
-
phoneNumber: string;
|
|
3047
3680
|
id: string;
|
|
3681
|
+
phoneNumber: string;
|
|
3048
3682
|
description?: string | null | undefined;
|
|
3049
3683
|
isPrimary?: boolean | undefined;
|
|
3050
3684
|
}[] | undefined;
|
|
3051
|
-
|
|
3685
|
+
deletedAt?: string | Date | null | undefined;
|
|
3686
|
+
officeId?: string | null | undefined;
|
|
3052
3687
|
office?: {
|
|
3053
|
-
name: string;
|
|
3054
3688
|
id: string;
|
|
3689
|
+
name: string;
|
|
3690
|
+
managers?: {
|
|
3691
|
+
id: string;
|
|
3692
|
+
firstName: string;
|
|
3693
|
+
lastName: string;
|
|
3694
|
+
}[] | undefined;
|
|
3055
3695
|
} | null | undefined;
|
|
3056
3696
|
canImpersonateUsers?: {
|
|
3057
3697
|
id: string;
|
|
@@ -3062,13 +3702,13 @@ export declare const ownResearchContract: {
|
|
|
3062
3702
|
}>;
|
|
3063
3703
|
}, "strip", z.ZodTypeAny, {
|
|
3064
3704
|
ownResearchLead: {
|
|
3065
|
-
|
|
3066
|
-
phoneNumber: string;
|
|
3067
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3705
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3068
3706
|
id: string;
|
|
3069
|
-
|
|
3707
|
+
name: string;
|
|
3070
3708
|
createdAt: string;
|
|
3071
3709
|
updatedAt: string;
|
|
3710
|
+
phoneNumber: string;
|
|
3711
|
+
agentId: string;
|
|
3072
3712
|
callCount: number;
|
|
3073
3713
|
lastCalledAt: string | null;
|
|
3074
3714
|
cooldownUntil: string | null;
|
|
@@ -3077,22 +3717,30 @@ export declare const ownResearchContract: {
|
|
|
3077
3717
|
existsInLeadsTable: boolean;
|
|
3078
3718
|
originalLeadId: string | null;
|
|
3079
3719
|
agent?: {
|
|
3720
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3080
3721
|
id: string;
|
|
3081
3722
|
firstName: string;
|
|
3082
3723
|
lastName: string;
|
|
3083
3724
|
email: string;
|
|
3725
|
+
createdAt: string;
|
|
3726
|
+
updatedAt: string;
|
|
3084
3727
|
phoneNumbers: {
|
|
3085
|
-
phoneNumber: string;
|
|
3086
3728
|
id: string;
|
|
3729
|
+
phoneNumber: string;
|
|
3087
3730
|
isPrimary: boolean;
|
|
3088
3731
|
description?: string | null | undefined;
|
|
3089
3732
|
}[];
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3733
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3734
|
+
deletedAt?: string | null | undefined;
|
|
3735
|
+
officeId?: string | null | undefined;
|
|
3093
3736
|
office?: {
|
|
3094
|
-
name: string;
|
|
3095
3737
|
id: string;
|
|
3738
|
+
name: string;
|
|
3739
|
+
managers?: {
|
|
3740
|
+
id: string;
|
|
3741
|
+
firstName: string;
|
|
3742
|
+
lastName: string;
|
|
3743
|
+
}[] | undefined;
|
|
3096
3744
|
} | null | undefined;
|
|
3097
3745
|
canImpersonateUsers?: {
|
|
3098
3746
|
id: string;
|
|
@@ -3103,13 +3751,13 @@ export declare const ownResearchContract: {
|
|
|
3103
3751
|
};
|
|
3104
3752
|
}, {
|
|
3105
3753
|
ownResearchLead: {
|
|
3106
|
-
|
|
3107
|
-
phoneNumber: string;
|
|
3108
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3754
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3109
3755
|
id: string;
|
|
3110
|
-
|
|
3756
|
+
name: string;
|
|
3111
3757
|
createdAt: string | Date;
|
|
3112
3758
|
updatedAt: string | Date;
|
|
3759
|
+
phoneNumber: string;
|
|
3760
|
+
agentId: string;
|
|
3113
3761
|
callCount: number;
|
|
3114
3762
|
lastCalledAt: string | Date | null;
|
|
3115
3763
|
cooldownUntil: string | Date | null;
|
|
@@ -3118,22 +3766,30 @@ export declare const ownResearchContract: {
|
|
|
3118
3766
|
existsInLeadsTable: boolean;
|
|
3119
3767
|
originalLeadId: string | null;
|
|
3120
3768
|
agent?: {
|
|
3769
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3121
3770
|
id: string;
|
|
3122
3771
|
firstName: string;
|
|
3123
3772
|
lastName: string;
|
|
3124
3773
|
email: string;
|
|
3125
3774
|
createdAt: string | Date;
|
|
3126
3775
|
updatedAt: string | Date;
|
|
3776
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3127
3777
|
phoneNumbers?: {
|
|
3128
|
-
phoneNumber: string;
|
|
3129
3778
|
id: string;
|
|
3779
|
+
phoneNumber: string;
|
|
3130
3780
|
description?: string | null | undefined;
|
|
3131
3781
|
isPrimary?: boolean | undefined;
|
|
3132
3782
|
}[] | undefined;
|
|
3133
|
-
|
|
3783
|
+
deletedAt?: string | Date | null | undefined;
|
|
3784
|
+
officeId?: string | null | undefined;
|
|
3134
3785
|
office?: {
|
|
3135
|
-
name: string;
|
|
3136
3786
|
id: string;
|
|
3787
|
+
name: string;
|
|
3788
|
+
managers?: {
|
|
3789
|
+
id: string;
|
|
3790
|
+
firstName: string;
|
|
3791
|
+
lastName: string;
|
|
3792
|
+
}[] | undefined;
|
|
3137
3793
|
} | null | undefined;
|
|
3138
3794
|
canImpersonateUsers?: {
|
|
3139
3795
|
id: string;
|
|
@@ -3152,7 +3808,7 @@ export declare const ownResearchContract: {
|
|
|
3152
3808
|
summary: "Record an own research call (creates lead, assignment, and call history)";
|
|
3153
3809
|
method: "POST";
|
|
3154
3810
|
body: z.ZodObject<{
|
|
3155
|
-
phoneNumber: z.
|
|
3811
|
+
phoneNumber: z.ZodString;
|
|
3156
3812
|
name: z.ZodString;
|
|
3157
3813
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
3158
3814
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -3298,26 +3954,50 @@ export declare const ownResearchContract: {
|
|
|
3298
3954
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3299
3955
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
3300
3956
|
}, "strip", z.ZodTypeAny, {
|
|
3301
|
-
phoneNumber: string;
|
|
3302
3957
|
id: string;
|
|
3958
|
+
phoneNumber: string;
|
|
3303
3959
|
isPrimary: boolean;
|
|
3304
3960
|
description?: string | null | undefined;
|
|
3305
3961
|
}, {
|
|
3306
|
-
phoneNumber: string;
|
|
3307
3962
|
id: string;
|
|
3963
|
+
phoneNumber: string;
|
|
3308
3964
|
description?: string | null | undefined;
|
|
3309
3965
|
isPrimary?: boolean | undefined;
|
|
3310
3966
|
}>, "many">>>;
|
|
3311
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3967
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3968
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3312
3969
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3313
3970
|
id: z.ZodString;
|
|
3314
3971
|
name: z.ZodString;
|
|
3972
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3973
|
+
id: z.ZodString;
|
|
3974
|
+
firstName: z.ZodString;
|
|
3975
|
+
lastName: z.ZodString;
|
|
3976
|
+
}, "strip", z.ZodTypeAny, {
|
|
3977
|
+
id: string;
|
|
3978
|
+
firstName: string;
|
|
3979
|
+
lastName: string;
|
|
3980
|
+
}, {
|
|
3981
|
+
id: string;
|
|
3982
|
+
firstName: string;
|
|
3983
|
+
lastName: string;
|
|
3984
|
+
}>, "many">>;
|
|
3315
3985
|
}, "strip", z.ZodTypeAny, {
|
|
3316
|
-
name: string;
|
|
3317
3986
|
id: string;
|
|
3318
|
-
}, {
|
|
3319
3987
|
name: string;
|
|
3988
|
+
managers?: {
|
|
3989
|
+
id: string;
|
|
3990
|
+
firstName: string;
|
|
3991
|
+
lastName: string;
|
|
3992
|
+
}[] | undefined;
|
|
3993
|
+
}, {
|
|
3320
3994
|
id: string;
|
|
3995
|
+
name: string;
|
|
3996
|
+
managers?: {
|
|
3997
|
+
id: string;
|
|
3998
|
+
firstName: string;
|
|
3999
|
+
lastName: string;
|
|
4000
|
+
}[] | undefined;
|
|
3321
4001
|
}>>>;
|
|
3322
4002
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3323
4003
|
id: z.ZodString;
|
|
@@ -3332,25 +4012,35 @@ export declare const ownResearchContract: {
|
|
|
3332
4012
|
firstName: string;
|
|
3333
4013
|
lastName: string;
|
|
3334
4014
|
}>, "many">>;
|
|
4015
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3335
4016
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3336
4017
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4018
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3337
4019
|
}, "strip", z.ZodTypeAny, {
|
|
4020
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3338
4021
|
id: string;
|
|
3339
4022
|
firstName: string;
|
|
3340
4023
|
lastName: string;
|
|
3341
4024
|
email: string;
|
|
4025
|
+
createdAt: string;
|
|
4026
|
+
updatedAt: string;
|
|
3342
4027
|
phoneNumbers: {
|
|
3343
|
-
phoneNumber: string;
|
|
3344
4028
|
id: string;
|
|
4029
|
+
phoneNumber: string;
|
|
3345
4030
|
isPrimary: boolean;
|
|
3346
4031
|
description?: string | null | undefined;
|
|
3347
4032
|
}[];
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
4033
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4034
|
+
deletedAt?: string | null | undefined;
|
|
4035
|
+
officeId?: string | null | undefined;
|
|
3351
4036
|
office?: {
|
|
3352
|
-
name: string;
|
|
3353
4037
|
id: string;
|
|
4038
|
+
name: string;
|
|
4039
|
+
managers?: {
|
|
4040
|
+
id: string;
|
|
4041
|
+
firstName: string;
|
|
4042
|
+
lastName: string;
|
|
4043
|
+
}[] | undefined;
|
|
3354
4044
|
} | null | undefined;
|
|
3355
4045
|
canImpersonateUsers?: {
|
|
3356
4046
|
id: string;
|
|
@@ -3358,22 +4048,30 @@ export declare const ownResearchContract: {
|
|
|
3358
4048
|
lastName: string;
|
|
3359
4049
|
}[] | undefined;
|
|
3360
4050
|
}, {
|
|
4051
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3361
4052
|
id: string;
|
|
3362
4053
|
firstName: string;
|
|
3363
4054
|
lastName: string;
|
|
3364
4055
|
email: string;
|
|
3365
4056
|
createdAt: string | Date;
|
|
3366
4057
|
updatedAt: string | Date;
|
|
4058
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3367
4059
|
phoneNumbers?: {
|
|
3368
|
-
phoneNumber: string;
|
|
3369
4060
|
id: string;
|
|
4061
|
+
phoneNumber: string;
|
|
3370
4062
|
description?: string | null | undefined;
|
|
3371
4063
|
isPrimary?: boolean | undefined;
|
|
3372
4064
|
}[] | undefined;
|
|
3373
|
-
|
|
4065
|
+
deletedAt?: string | Date | null | undefined;
|
|
4066
|
+
officeId?: string | null | undefined;
|
|
3374
4067
|
office?: {
|
|
3375
|
-
name: string;
|
|
3376
4068
|
id: string;
|
|
4069
|
+
name: string;
|
|
4070
|
+
managers?: {
|
|
4071
|
+
id: string;
|
|
4072
|
+
firstName: string;
|
|
4073
|
+
lastName: string;
|
|
4074
|
+
}[] | undefined;
|
|
3377
4075
|
} | null | undefined;
|
|
3378
4076
|
canImpersonateUsers?: {
|
|
3379
4077
|
id: string;
|
|
@@ -3391,13 +4089,13 @@ export declare const ownResearchContract: {
|
|
|
3391
4089
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3392
4090
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3393
4091
|
}, "strip", z.ZodTypeAny, {
|
|
3394
|
-
name: string;
|
|
3395
4092
|
id: string;
|
|
4093
|
+
name: string;
|
|
3396
4094
|
createdAt: string;
|
|
3397
4095
|
updatedAt: string;
|
|
3398
4096
|
}, {
|
|
3399
|
-
name: string;
|
|
3400
4097
|
id: string;
|
|
4098
|
+
name: string;
|
|
3401
4099
|
createdAt: string | Date;
|
|
3402
4100
|
updatedAt: string | Date;
|
|
3403
4101
|
}>>>;
|
|
@@ -3406,34 +4104,38 @@ export declare const ownResearchContract: {
|
|
|
3406
4104
|
}, "strip", z.ZodTypeAny, {
|
|
3407
4105
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3408
4106
|
id: string;
|
|
3409
|
-
leadId: string;
|
|
3410
|
-
agentId: string | null;
|
|
3411
4107
|
createdAt: string;
|
|
3412
4108
|
updatedAt: string;
|
|
4109
|
+
agentId: string | null;
|
|
4110
|
+
leadId: string;
|
|
3413
4111
|
assignedAt: string;
|
|
3414
4112
|
assignedBy: string | null;
|
|
3415
4113
|
companyId: string | null;
|
|
3416
|
-
lead?: {
|
|
3417
|
-
name: string;
|
|
3418
|
-
phoneNumber: string;
|
|
3419
|
-
} | undefined;
|
|
3420
4114
|
agent?: {
|
|
4115
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3421
4116
|
id: string;
|
|
3422
4117
|
firstName: string;
|
|
3423
4118
|
lastName: string;
|
|
3424
4119
|
email: string;
|
|
4120
|
+
createdAt: string;
|
|
4121
|
+
updatedAt: string;
|
|
3425
4122
|
phoneNumbers: {
|
|
3426
|
-
phoneNumber: string;
|
|
3427
4123
|
id: string;
|
|
4124
|
+
phoneNumber: string;
|
|
3428
4125
|
isPrimary: boolean;
|
|
3429
4126
|
description?: string | null | undefined;
|
|
3430
4127
|
}[];
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
4128
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4129
|
+
deletedAt?: string | null | undefined;
|
|
4130
|
+
officeId?: string | null | undefined;
|
|
3434
4131
|
office?: {
|
|
3435
|
-
name: string;
|
|
3436
4132
|
id: string;
|
|
4133
|
+
name: string;
|
|
4134
|
+
managers?: {
|
|
4135
|
+
id: string;
|
|
4136
|
+
firstName: string;
|
|
4137
|
+
lastName: string;
|
|
4138
|
+
}[] | undefined;
|
|
3437
4139
|
} | null | undefined;
|
|
3438
4140
|
canImpersonateUsers?: {
|
|
3439
4141
|
id: string;
|
|
@@ -3441,43 +4143,51 @@ export declare const ownResearchContract: {
|
|
|
3441
4143
|
lastName: string;
|
|
3442
4144
|
}[] | undefined;
|
|
3443
4145
|
} | undefined;
|
|
3444
|
-
|
|
4146
|
+
lead?: {
|
|
3445
4147
|
name: string;
|
|
4148
|
+
phoneNumber: string;
|
|
4149
|
+
} | undefined;
|
|
4150
|
+
company?: {
|
|
3446
4151
|
id: string;
|
|
4152
|
+
name: string;
|
|
3447
4153
|
createdAt: string;
|
|
3448
4154
|
updatedAt: string;
|
|
3449
4155
|
} | null | undefined;
|
|
3450
4156
|
}, {
|
|
3451
4157
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3452
4158
|
id: string;
|
|
3453
|
-
leadId: string;
|
|
3454
|
-
agentId: string | null;
|
|
3455
4159
|
createdAt: string | Date;
|
|
3456
4160
|
updatedAt: string | Date;
|
|
4161
|
+
agentId: string | null;
|
|
4162
|
+
leadId: string;
|
|
3457
4163
|
assignedAt: string | Date;
|
|
3458
4164
|
assignedBy: string | null;
|
|
3459
4165
|
companyId: string | null;
|
|
3460
|
-
lead?: {
|
|
3461
|
-
name: string;
|
|
3462
|
-
phoneNumber: string;
|
|
3463
|
-
} | undefined;
|
|
3464
4166
|
agent?: {
|
|
4167
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3465
4168
|
id: string;
|
|
3466
4169
|
firstName: string;
|
|
3467
4170
|
lastName: string;
|
|
3468
4171
|
email: string;
|
|
3469
4172
|
createdAt: string | Date;
|
|
3470
4173
|
updatedAt: string | Date;
|
|
4174
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3471
4175
|
phoneNumbers?: {
|
|
3472
|
-
phoneNumber: string;
|
|
3473
4176
|
id: string;
|
|
4177
|
+
phoneNumber: string;
|
|
3474
4178
|
description?: string | null | undefined;
|
|
3475
4179
|
isPrimary?: boolean | undefined;
|
|
3476
4180
|
}[] | undefined;
|
|
3477
|
-
|
|
4181
|
+
deletedAt?: string | Date | null | undefined;
|
|
4182
|
+
officeId?: string | null | undefined;
|
|
3478
4183
|
office?: {
|
|
3479
|
-
name: string;
|
|
3480
4184
|
id: string;
|
|
4185
|
+
name: string;
|
|
4186
|
+
managers?: {
|
|
4187
|
+
id: string;
|
|
4188
|
+
firstName: string;
|
|
4189
|
+
lastName: string;
|
|
4190
|
+
}[] | undefined;
|
|
3481
4191
|
} | null | undefined;
|
|
3482
4192
|
canImpersonateUsers?: {
|
|
3483
4193
|
id: string;
|
|
@@ -3485,9 +4195,13 @@ export declare const ownResearchContract: {
|
|
|
3485
4195
|
lastName: string;
|
|
3486
4196
|
}[] | undefined;
|
|
3487
4197
|
} | undefined;
|
|
3488
|
-
|
|
4198
|
+
lead?: {
|
|
3489
4199
|
name: string;
|
|
4200
|
+
phoneNumber: string;
|
|
4201
|
+
} | undefined;
|
|
4202
|
+
company?: {
|
|
3490
4203
|
id: string;
|
|
4204
|
+
name: string;
|
|
3491
4205
|
createdAt: string | Date;
|
|
3492
4206
|
updatedAt: string | Date;
|
|
3493
4207
|
} | null | undefined;
|
|
@@ -3506,26 +4220,50 @@ export declare const ownResearchContract: {
|
|
|
3506
4220
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3507
4221
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
3508
4222
|
}, "strip", z.ZodTypeAny, {
|
|
3509
|
-
phoneNumber: string;
|
|
3510
4223
|
id: string;
|
|
4224
|
+
phoneNumber: string;
|
|
3511
4225
|
isPrimary: boolean;
|
|
3512
4226
|
description?: string | null | undefined;
|
|
3513
4227
|
}, {
|
|
3514
|
-
phoneNumber: string;
|
|
3515
4228
|
id: string;
|
|
4229
|
+
phoneNumber: string;
|
|
3516
4230
|
description?: string | null | undefined;
|
|
3517
4231
|
isPrimary?: boolean | undefined;
|
|
3518
4232
|
}>, "many">>>;
|
|
3519
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
4233
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
4234
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3520
4235
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3521
4236
|
id: z.ZodString;
|
|
3522
4237
|
name: z.ZodString;
|
|
4238
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4239
|
+
id: z.ZodString;
|
|
4240
|
+
firstName: z.ZodString;
|
|
4241
|
+
lastName: z.ZodString;
|
|
4242
|
+
}, "strip", z.ZodTypeAny, {
|
|
4243
|
+
id: string;
|
|
4244
|
+
firstName: string;
|
|
4245
|
+
lastName: string;
|
|
4246
|
+
}, {
|
|
4247
|
+
id: string;
|
|
4248
|
+
firstName: string;
|
|
4249
|
+
lastName: string;
|
|
4250
|
+
}>, "many">>;
|
|
3523
4251
|
}, "strip", z.ZodTypeAny, {
|
|
3524
|
-
name: string;
|
|
3525
4252
|
id: string;
|
|
3526
|
-
}, {
|
|
3527
4253
|
name: string;
|
|
4254
|
+
managers?: {
|
|
4255
|
+
id: string;
|
|
4256
|
+
firstName: string;
|
|
4257
|
+
lastName: string;
|
|
4258
|
+
}[] | undefined;
|
|
4259
|
+
}, {
|
|
3528
4260
|
id: string;
|
|
4261
|
+
name: string;
|
|
4262
|
+
managers?: {
|
|
4263
|
+
id: string;
|
|
4264
|
+
firstName: string;
|
|
4265
|
+
lastName: string;
|
|
4266
|
+
}[] | undefined;
|
|
3529
4267
|
}>>>;
|
|
3530
4268
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3531
4269
|
id: z.ZodString;
|
|
@@ -3540,25 +4278,35 @@ export declare const ownResearchContract: {
|
|
|
3540
4278
|
firstName: string;
|
|
3541
4279
|
lastName: string;
|
|
3542
4280
|
}>, "many">>;
|
|
4281
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3543
4282
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3544
4283
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4284
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3545
4285
|
}, "strip", z.ZodTypeAny, {
|
|
4286
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3546
4287
|
id: string;
|
|
3547
4288
|
firstName: string;
|
|
3548
4289
|
lastName: string;
|
|
3549
4290
|
email: string;
|
|
4291
|
+
createdAt: string;
|
|
4292
|
+
updatedAt: string;
|
|
3550
4293
|
phoneNumbers: {
|
|
3551
|
-
phoneNumber: string;
|
|
3552
4294
|
id: string;
|
|
4295
|
+
phoneNumber: string;
|
|
3553
4296
|
isPrimary: boolean;
|
|
3554
4297
|
description?: string | null | undefined;
|
|
3555
4298
|
}[];
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
4299
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4300
|
+
deletedAt?: string | null | undefined;
|
|
4301
|
+
officeId?: string | null | undefined;
|
|
3559
4302
|
office?: {
|
|
3560
|
-
name: string;
|
|
3561
4303
|
id: string;
|
|
4304
|
+
name: string;
|
|
4305
|
+
managers?: {
|
|
4306
|
+
id: string;
|
|
4307
|
+
firstName: string;
|
|
4308
|
+
lastName: string;
|
|
4309
|
+
}[] | undefined;
|
|
3562
4310
|
} | null | undefined;
|
|
3563
4311
|
canImpersonateUsers?: {
|
|
3564
4312
|
id: string;
|
|
@@ -3566,22 +4314,30 @@ export declare const ownResearchContract: {
|
|
|
3566
4314
|
lastName: string;
|
|
3567
4315
|
}[] | undefined;
|
|
3568
4316
|
}, {
|
|
4317
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3569
4318
|
id: string;
|
|
3570
4319
|
firstName: string;
|
|
3571
4320
|
lastName: string;
|
|
3572
4321
|
email: string;
|
|
3573
4322
|
createdAt: string | Date;
|
|
3574
4323
|
updatedAt: string | Date;
|
|
4324
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3575
4325
|
phoneNumbers?: {
|
|
3576
|
-
phoneNumber: string;
|
|
3577
4326
|
id: string;
|
|
4327
|
+
phoneNumber: string;
|
|
3578
4328
|
description?: string | null | undefined;
|
|
3579
4329
|
isPrimary?: boolean | undefined;
|
|
3580
4330
|
}[] | undefined;
|
|
3581
|
-
|
|
4331
|
+
deletedAt?: string | Date | null | undefined;
|
|
4332
|
+
officeId?: string | null | undefined;
|
|
3582
4333
|
office?: {
|
|
3583
|
-
name: string;
|
|
3584
4334
|
id: string;
|
|
4335
|
+
name: string;
|
|
4336
|
+
managers?: {
|
|
4337
|
+
id: string;
|
|
4338
|
+
firstName: string;
|
|
4339
|
+
lastName: string;
|
|
4340
|
+
}[] | undefined;
|
|
3585
4341
|
} | null | undefined;
|
|
3586
4342
|
canImpersonateUsers?: {
|
|
3587
4343
|
id: string;
|
|
@@ -3591,7 +4347,7 @@ export declare const ownResearchContract: {
|
|
|
3591
4347
|
}>>;
|
|
3592
4348
|
name: z.ZodString;
|
|
3593
4349
|
phoneNumber: z.ZodString;
|
|
3594
|
-
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
4350
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
3595
4351
|
callCount: z.ZodNumber;
|
|
3596
4352
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
3597
4353
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -3602,13 +4358,13 @@ export declare const ownResearchContract: {
|
|
|
3602
4358
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3603
4359
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3604
4360
|
}, "strip", z.ZodTypeAny, {
|
|
3605
|
-
|
|
3606
|
-
phoneNumber: string;
|
|
3607
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
4361
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3608
4362
|
id: string;
|
|
3609
|
-
|
|
4363
|
+
name: string;
|
|
3610
4364
|
createdAt: string;
|
|
3611
4365
|
updatedAt: string;
|
|
4366
|
+
phoneNumber: string;
|
|
4367
|
+
agentId: string;
|
|
3612
4368
|
callCount: number;
|
|
3613
4369
|
lastCalledAt: string | null;
|
|
3614
4370
|
cooldownUntil: string | null;
|
|
@@ -3617,22 +4373,30 @@ export declare const ownResearchContract: {
|
|
|
3617
4373
|
existsInLeadsTable: boolean;
|
|
3618
4374
|
originalLeadId: string | null;
|
|
3619
4375
|
agent?: {
|
|
4376
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3620
4377
|
id: string;
|
|
3621
4378
|
firstName: string;
|
|
3622
4379
|
lastName: string;
|
|
3623
4380
|
email: string;
|
|
4381
|
+
createdAt: string;
|
|
4382
|
+
updatedAt: string;
|
|
3624
4383
|
phoneNumbers: {
|
|
3625
|
-
phoneNumber: string;
|
|
3626
4384
|
id: string;
|
|
4385
|
+
phoneNumber: string;
|
|
3627
4386
|
isPrimary: boolean;
|
|
3628
4387
|
description?: string | null | undefined;
|
|
3629
4388
|
}[];
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
4389
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4390
|
+
deletedAt?: string | null | undefined;
|
|
4391
|
+
officeId?: string | null | undefined;
|
|
3633
4392
|
office?: {
|
|
3634
|
-
name: string;
|
|
3635
4393
|
id: string;
|
|
4394
|
+
name: string;
|
|
4395
|
+
managers?: {
|
|
4396
|
+
id: string;
|
|
4397
|
+
firstName: string;
|
|
4398
|
+
lastName: string;
|
|
4399
|
+
}[] | undefined;
|
|
3636
4400
|
} | null | undefined;
|
|
3637
4401
|
canImpersonateUsers?: {
|
|
3638
4402
|
id: string;
|
|
@@ -3641,13 +4405,13 @@ export declare const ownResearchContract: {
|
|
|
3641
4405
|
}[] | undefined;
|
|
3642
4406
|
} | undefined;
|
|
3643
4407
|
}, {
|
|
3644
|
-
|
|
3645
|
-
phoneNumber: string;
|
|
3646
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
4408
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3647
4409
|
id: string;
|
|
3648
|
-
|
|
4410
|
+
name: string;
|
|
3649
4411
|
createdAt: string | Date;
|
|
3650
4412
|
updatedAt: string | Date;
|
|
4413
|
+
phoneNumber: string;
|
|
4414
|
+
agentId: string;
|
|
3651
4415
|
callCount: number;
|
|
3652
4416
|
lastCalledAt: string | Date | null;
|
|
3653
4417
|
cooldownUntil: string | Date | null;
|
|
@@ -3656,22 +4420,30 @@ export declare const ownResearchContract: {
|
|
|
3656
4420
|
existsInLeadsTable: boolean;
|
|
3657
4421
|
originalLeadId: string | null;
|
|
3658
4422
|
agent?: {
|
|
4423
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3659
4424
|
id: string;
|
|
3660
4425
|
firstName: string;
|
|
3661
4426
|
lastName: string;
|
|
3662
4427
|
email: string;
|
|
3663
4428
|
createdAt: string | Date;
|
|
3664
4429
|
updatedAt: string | Date;
|
|
4430
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3665
4431
|
phoneNumbers?: {
|
|
3666
|
-
phoneNumber: string;
|
|
3667
4432
|
id: string;
|
|
4433
|
+
phoneNumber: string;
|
|
3668
4434
|
description?: string | null | undefined;
|
|
3669
4435
|
isPrimary?: boolean | undefined;
|
|
3670
4436
|
}[] | undefined;
|
|
3671
|
-
|
|
4437
|
+
deletedAt?: string | Date | null | undefined;
|
|
4438
|
+
officeId?: string | null | undefined;
|
|
3672
4439
|
office?: {
|
|
3673
|
-
name: string;
|
|
3674
4440
|
id: string;
|
|
4441
|
+
name: string;
|
|
4442
|
+
managers?: {
|
|
4443
|
+
id: string;
|
|
4444
|
+
firstName: string;
|
|
4445
|
+
lastName: string;
|
|
4446
|
+
}[] | undefined;
|
|
3675
4447
|
} | null | undefined;
|
|
3676
4448
|
canImpersonateUsers?: {
|
|
3677
4449
|
id: string;
|
|
@@ -3682,13 +4454,13 @@ export declare const ownResearchContract: {
|
|
|
3682
4454
|
}>;
|
|
3683
4455
|
}, "strip", z.ZodTypeAny, {
|
|
3684
4456
|
ownResearchLead: {
|
|
3685
|
-
|
|
3686
|
-
phoneNumber: string;
|
|
3687
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
4457
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3688
4458
|
id: string;
|
|
3689
|
-
|
|
4459
|
+
name: string;
|
|
3690
4460
|
createdAt: string;
|
|
3691
4461
|
updatedAt: string;
|
|
4462
|
+
phoneNumber: string;
|
|
4463
|
+
agentId: string;
|
|
3692
4464
|
callCount: number;
|
|
3693
4465
|
lastCalledAt: string | null;
|
|
3694
4466
|
cooldownUntil: string | null;
|
|
@@ -3697,22 +4469,30 @@ export declare const ownResearchContract: {
|
|
|
3697
4469
|
existsInLeadsTable: boolean;
|
|
3698
4470
|
originalLeadId: string | null;
|
|
3699
4471
|
agent?: {
|
|
4472
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3700
4473
|
id: string;
|
|
3701
4474
|
firstName: string;
|
|
3702
4475
|
lastName: string;
|
|
3703
4476
|
email: string;
|
|
4477
|
+
createdAt: string;
|
|
4478
|
+
updatedAt: string;
|
|
3704
4479
|
phoneNumbers: {
|
|
3705
|
-
phoneNumber: string;
|
|
3706
4480
|
id: string;
|
|
4481
|
+
phoneNumber: string;
|
|
3707
4482
|
isPrimary: boolean;
|
|
3708
4483
|
description?: string | null | undefined;
|
|
3709
4484
|
}[];
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
4485
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4486
|
+
deletedAt?: string | null | undefined;
|
|
4487
|
+
officeId?: string | null | undefined;
|
|
3713
4488
|
office?: {
|
|
3714
|
-
name: string;
|
|
3715
4489
|
id: string;
|
|
4490
|
+
name: string;
|
|
4491
|
+
managers?: {
|
|
4492
|
+
id: string;
|
|
4493
|
+
firstName: string;
|
|
4494
|
+
lastName: string;
|
|
4495
|
+
}[] | undefined;
|
|
3716
4496
|
} | null | undefined;
|
|
3717
4497
|
canImpersonateUsers?: {
|
|
3718
4498
|
id: string;
|
|
@@ -3724,34 +4504,38 @@ export declare const ownResearchContract: {
|
|
|
3724
4504
|
assignment?: {
|
|
3725
4505
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3726
4506
|
id: string;
|
|
3727
|
-
leadId: string;
|
|
3728
|
-
agentId: string | null;
|
|
3729
4507
|
createdAt: string;
|
|
3730
4508
|
updatedAt: string;
|
|
4509
|
+
agentId: string | null;
|
|
4510
|
+
leadId: string;
|
|
3731
4511
|
assignedAt: string;
|
|
3732
4512
|
assignedBy: string | null;
|
|
3733
4513
|
companyId: string | null;
|
|
3734
|
-
lead?: {
|
|
3735
|
-
name: string;
|
|
3736
|
-
phoneNumber: string;
|
|
3737
|
-
} | undefined;
|
|
3738
4514
|
agent?: {
|
|
4515
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3739
4516
|
id: string;
|
|
3740
4517
|
firstName: string;
|
|
3741
4518
|
lastName: string;
|
|
3742
4519
|
email: string;
|
|
4520
|
+
createdAt: string;
|
|
4521
|
+
updatedAt: string;
|
|
3743
4522
|
phoneNumbers: {
|
|
3744
|
-
phoneNumber: string;
|
|
3745
4523
|
id: string;
|
|
4524
|
+
phoneNumber: string;
|
|
3746
4525
|
isPrimary: boolean;
|
|
3747
4526
|
description?: string | null | undefined;
|
|
3748
4527
|
}[];
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
4528
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4529
|
+
deletedAt?: string | null | undefined;
|
|
4530
|
+
officeId?: string | null | undefined;
|
|
3752
4531
|
office?: {
|
|
3753
|
-
name: string;
|
|
3754
4532
|
id: string;
|
|
4533
|
+
name: string;
|
|
4534
|
+
managers?: {
|
|
4535
|
+
id: string;
|
|
4536
|
+
firstName: string;
|
|
4537
|
+
lastName: string;
|
|
4538
|
+
}[] | undefined;
|
|
3755
4539
|
} | null | undefined;
|
|
3756
4540
|
canImpersonateUsers?: {
|
|
3757
4541
|
id: string;
|
|
@@ -3759,22 +4543,26 @@ export declare const ownResearchContract: {
|
|
|
3759
4543
|
lastName: string;
|
|
3760
4544
|
}[] | undefined;
|
|
3761
4545
|
} | undefined;
|
|
3762
|
-
|
|
4546
|
+
lead?: {
|
|
3763
4547
|
name: string;
|
|
4548
|
+
phoneNumber: string;
|
|
4549
|
+
} | undefined;
|
|
4550
|
+
company?: {
|
|
3764
4551
|
id: string;
|
|
4552
|
+
name: string;
|
|
3765
4553
|
createdAt: string;
|
|
3766
4554
|
updatedAt: string;
|
|
3767
4555
|
} | null | undefined;
|
|
3768
4556
|
} | null | undefined;
|
|
3769
4557
|
}, {
|
|
3770
4558
|
ownResearchLead: {
|
|
3771
|
-
|
|
3772
|
-
phoneNumber: string;
|
|
3773
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
4559
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3774
4560
|
id: string;
|
|
3775
|
-
|
|
4561
|
+
name: string;
|
|
3776
4562
|
createdAt: string | Date;
|
|
3777
4563
|
updatedAt: string | Date;
|
|
4564
|
+
phoneNumber: string;
|
|
4565
|
+
agentId: string;
|
|
3778
4566
|
callCount: number;
|
|
3779
4567
|
lastCalledAt: string | Date | null;
|
|
3780
4568
|
cooldownUntil: string | Date | null;
|
|
@@ -3783,22 +4571,30 @@ export declare const ownResearchContract: {
|
|
|
3783
4571
|
existsInLeadsTable: boolean;
|
|
3784
4572
|
originalLeadId: string | null;
|
|
3785
4573
|
agent?: {
|
|
4574
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3786
4575
|
id: string;
|
|
3787
4576
|
firstName: string;
|
|
3788
4577
|
lastName: string;
|
|
3789
4578
|
email: string;
|
|
3790
4579
|
createdAt: string | Date;
|
|
3791
4580
|
updatedAt: string | Date;
|
|
4581
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3792
4582
|
phoneNumbers?: {
|
|
3793
|
-
phoneNumber: string;
|
|
3794
4583
|
id: string;
|
|
4584
|
+
phoneNumber: string;
|
|
3795
4585
|
description?: string | null | undefined;
|
|
3796
4586
|
isPrimary?: boolean | undefined;
|
|
3797
4587
|
}[] | undefined;
|
|
3798
|
-
|
|
4588
|
+
deletedAt?: string | Date | null | undefined;
|
|
4589
|
+
officeId?: string | null | undefined;
|
|
3799
4590
|
office?: {
|
|
3800
|
-
name: string;
|
|
3801
4591
|
id: string;
|
|
4592
|
+
name: string;
|
|
4593
|
+
managers?: {
|
|
4594
|
+
id: string;
|
|
4595
|
+
firstName: string;
|
|
4596
|
+
lastName: string;
|
|
4597
|
+
}[] | undefined;
|
|
3802
4598
|
} | null | undefined;
|
|
3803
4599
|
canImpersonateUsers?: {
|
|
3804
4600
|
id: string;
|
|
@@ -3810,34 +4606,38 @@ export declare const ownResearchContract: {
|
|
|
3810
4606
|
assignment?: {
|
|
3811
4607
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3812
4608
|
id: string;
|
|
3813
|
-
leadId: string;
|
|
3814
|
-
agentId: string | null;
|
|
3815
4609
|
createdAt: string | Date;
|
|
3816
4610
|
updatedAt: string | Date;
|
|
4611
|
+
agentId: string | null;
|
|
4612
|
+
leadId: string;
|
|
3817
4613
|
assignedAt: string | Date;
|
|
3818
4614
|
assignedBy: string | null;
|
|
3819
4615
|
companyId: string | null;
|
|
3820
|
-
lead?: {
|
|
3821
|
-
name: string;
|
|
3822
|
-
phoneNumber: string;
|
|
3823
|
-
} | undefined;
|
|
3824
4616
|
agent?: {
|
|
4617
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3825
4618
|
id: string;
|
|
3826
4619
|
firstName: string;
|
|
3827
4620
|
lastName: string;
|
|
3828
4621
|
email: string;
|
|
3829
4622
|
createdAt: string | Date;
|
|
3830
4623
|
updatedAt: string | Date;
|
|
4624
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3831
4625
|
phoneNumbers?: {
|
|
3832
|
-
phoneNumber: string;
|
|
3833
4626
|
id: string;
|
|
4627
|
+
phoneNumber: string;
|
|
3834
4628
|
description?: string | null | undefined;
|
|
3835
4629
|
isPrimary?: boolean | undefined;
|
|
3836
4630
|
}[] | undefined;
|
|
3837
|
-
|
|
4631
|
+
deletedAt?: string | Date | null | undefined;
|
|
4632
|
+
officeId?: string | null | undefined;
|
|
3838
4633
|
office?: {
|
|
3839
|
-
name: string;
|
|
3840
4634
|
id: string;
|
|
4635
|
+
name: string;
|
|
4636
|
+
managers?: {
|
|
4637
|
+
id: string;
|
|
4638
|
+
firstName: string;
|
|
4639
|
+
lastName: string;
|
|
4640
|
+
}[] | undefined;
|
|
3841
4641
|
} | null | undefined;
|
|
3842
4642
|
canImpersonateUsers?: {
|
|
3843
4643
|
id: string;
|
|
@@ -3845,9 +4645,13 @@ export declare const ownResearchContract: {
|
|
|
3845
4645
|
lastName: string;
|
|
3846
4646
|
}[] | undefined;
|
|
3847
4647
|
} | undefined;
|
|
3848
|
-
|
|
4648
|
+
lead?: {
|
|
3849
4649
|
name: string;
|
|
4650
|
+
phoneNumber: string;
|
|
4651
|
+
} | undefined;
|
|
4652
|
+
company?: {
|
|
3850
4653
|
id: string;
|
|
4654
|
+
name: string;
|
|
3851
4655
|
createdAt: string | Date;
|
|
3852
4656
|
updatedAt: string | Date;
|
|
3853
4657
|
} | null | undefined;
|