@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
|
@@ -41,8 +41,8 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
41
41
|
agentId: string;
|
|
42
42
|
}>>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
id: string;
|
|
45
44
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
45
|
+
id: string;
|
|
46
46
|
name: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
@@ -61,8 +61,8 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
61
61
|
agentId: string;
|
|
62
62
|
} | null | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
id: string;
|
|
65
64
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
65
|
+
id: string;
|
|
66
66
|
name: string;
|
|
67
67
|
createdAt: string | Date;
|
|
68
68
|
updatedAt: string | Date;
|
|
@@ -103,16 +103,40 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
103
103
|
description?: string | null | undefined;
|
|
104
104
|
isPrimary?: boolean | undefined;
|
|
105
105
|
}>, "many">>>;
|
|
106
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
106
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
107
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
108
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
108
109
|
id: z.ZodString;
|
|
109
110
|
name: z.ZodString;
|
|
111
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
firstName: z.ZodString;
|
|
114
|
+
lastName: z.ZodString;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
id: string;
|
|
117
|
+
firstName: string;
|
|
118
|
+
lastName: string;
|
|
119
|
+
}, {
|
|
120
|
+
id: string;
|
|
121
|
+
firstName: string;
|
|
122
|
+
lastName: string;
|
|
123
|
+
}>, "many">>;
|
|
110
124
|
}, "strip", z.ZodTypeAny, {
|
|
111
125
|
id: string;
|
|
112
126
|
name: string;
|
|
127
|
+
managers?: {
|
|
128
|
+
id: string;
|
|
129
|
+
firstName: string;
|
|
130
|
+
lastName: string;
|
|
131
|
+
}[] | undefined;
|
|
113
132
|
}, {
|
|
114
133
|
id: string;
|
|
115
134
|
name: string;
|
|
135
|
+
managers?: {
|
|
136
|
+
id: string;
|
|
137
|
+
firstName: string;
|
|
138
|
+
lastName: string;
|
|
139
|
+
}[] | undefined;
|
|
116
140
|
}>>>;
|
|
117
141
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
142
|
id: z.ZodString;
|
|
@@ -127,25 +151,35 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
127
151
|
firstName: string;
|
|
128
152
|
lastName: string;
|
|
129
153
|
}>, "many">>;
|
|
154
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
130
155
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
131
156
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
157
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
132
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
status: "ACTIVE" | "INACTIVE";
|
|
133
160
|
id: string;
|
|
134
161
|
firstName: string;
|
|
135
162
|
lastName: string;
|
|
136
163
|
email: string;
|
|
164
|
+
createdAt: string;
|
|
165
|
+
updatedAt: string;
|
|
137
166
|
phoneNumbers: {
|
|
138
167
|
id: string;
|
|
139
168
|
phoneNumber: string;
|
|
140
169
|
isPrimary: boolean;
|
|
141
170
|
description?: string | null | undefined;
|
|
142
171
|
}[];
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
172
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
173
|
+
deletedAt?: string | null | undefined;
|
|
174
|
+
officeId?: string | null | undefined;
|
|
146
175
|
office?: {
|
|
147
176
|
id: string;
|
|
148
177
|
name: string;
|
|
178
|
+
managers?: {
|
|
179
|
+
id: string;
|
|
180
|
+
firstName: string;
|
|
181
|
+
lastName: string;
|
|
182
|
+
}[] | undefined;
|
|
149
183
|
} | null | undefined;
|
|
150
184
|
canImpersonateUsers?: {
|
|
151
185
|
id: string;
|
|
@@ -153,22 +187,30 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
153
187
|
lastName: string;
|
|
154
188
|
}[] | undefined;
|
|
155
189
|
}, {
|
|
190
|
+
status: "ACTIVE" | "INACTIVE";
|
|
156
191
|
id: string;
|
|
157
192
|
firstName: string;
|
|
158
193
|
lastName: string;
|
|
159
194
|
email: string;
|
|
160
195
|
createdAt: string | Date;
|
|
161
196
|
updatedAt: string | Date;
|
|
197
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
162
198
|
phoneNumbers?: {
|
|
163
199
|
id: string;
|
|
164
200
|
phoneNumber: string;
|
|
165
201
|
description?: string | null | undefined;
|
|
166
202
|
isPrimary?: boolean | undefined;
|
|
167
203
|
}[] | undefined;
|
|
168
|
-
|
|
204
|
+
deletedAt?: string | Date | null | undefined;
|
|
205
|
+
officeId?: string | null | undefined;
|
|
169
206
|
office?: {
|
|
170
207
|
id: string;
|
|
171
208
|
name: string;
|
|
209
|
+
managers?: {
|
|
210
|
+
id: string;
|
|
211
|
+
firstName: string;
|
|
212
|
+
lastName: string;
|
|
213
|
+
}[] | undefined;
|
|
172
214
|
} | null | undefined;
|
|
173
215
|
canImpersonateUsers?: {
|
|
174
216
|
id: string;
|
|
@@ -202,16 +244,40 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
202
244
|
description?: string | null | undefined;
|
|
203
245
|
isPrimary?: boolean | undefined;
|
|
204
246
|
}>, "many">>>;
|
|
205
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
247
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
248
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
249
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
207
250
|
id: z.ZodString;
|
|
208
251
|
name: z.ZodString;
|
|
252
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
firstName: z.ZodString;
|
|
255
|
+
lastName: z.ZodString;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
id: string;
|
|
258
|
+
firstName: string;
|
|
259
|
+
lastName: string;
|
|
260
|
+
}, {
|
|
261
|
+
id: string;
|
|
262
|
+
firstName: string;
|
|
263
|
+
lastName: string;
|
|
264
|
+
}>, "many">>;
|
|
209
265
|
}, "strip", z.ZodTypeAny, {
|
|
210
266
|
id: string;
|
|
211
267
|
name: string;
|
|
268
|
+
managers?: {
|
|
269
|
+
id: string;
|
|
270
|
+
firstName: string;
|
|
271
|
+
lastName: string;
|
|
272
|
+
}[] | undefined;
|
|
212
273
|
}, {
|
|
213
274
|
id: string;
|
|
214
275
|
name: string;
|
|
276
|
+
managers?: {
|
|
277
|
+
id: string;
|
|
278
|
+
firstName: string;
|
|
279
|
+
lastName: string;
|
|
280
|
+
}[] | undefined;
|
|
215
281
|
}>>>;
|
|
216
282
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
283
|
id: z.ZodString;
|
|
@@ -226,25 +292,35 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
226
292
|
firstName: string;
|
|
227
293
|
lastName: string;
|
|
228
294
|
}>, "many">>;
|
|
295
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
229
296
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
230
297
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
298
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
231
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
status: "ACTIVE" | "INACTIVE";
|
|
232
301
|
id: string;
|
|
233
302
|
firstName: string;
|
|
234
303
|
lastName: string;
|
|
235
304
|
email: string;
|
|
305
|
+
createdAt: string;
|
|
306
|
+
updatedAt: string;
|
|
236
307
|
phoneNumbers: {
|
|
237
308
|
id: string;
|
|
238
309
|
phoneNumber: string;
|
|
239
310
|
isPrimary: boolean;
|
|
240
311
|
description?: string | null | undefined;
|
|
241
312
|
}[];
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
313
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
314
|
+
deletedAt?: string | null | undefined;
|
|
315
|
+
officeId?: string | null | undefined;
|
|
245
316
|
office?: {
|
|
246
317
|
id: string;
|
|
247
318
|
name: string;
|
|
319
|
+
managers?: {
|
|
320
|
+
id: string;
|
|
321
|
+
firstName: string;
|
|
322
|
+
lastName: string;
|
|
323
|
+
}[] | undefined;
|
|
248
324
|
} | null | undefined;
|
|
249
325
|
canImpersonateUsers?: {
|
|
250
326
|
id: string;
|
|
@@ -252,22 +328,30 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
252
328
|
lastName: string;
|
|
253
329
|
}[] | undefined;
|
|
254
330
|
}, {
|
|
331
|
+
status: "ACTIVE" | "INACTIVE";
|
|
255
332
|
id: string;
|
|
256
333
|
firstName: string;
|
|
257
334
|
lastName: string;
|
|
258
335
|
email: string;
|
|
259
336
|
createdAt: string | Date;
|
|
260
337
|
updatedAt: string | Date;
|
|
338
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
261
339
|
phoneNumbers?: {
|
|
262
340
|
id: string;
|
|
263
341
|
phoneNumber: string;
|
|
264
342
|
description?: string | null | undefined;
|
|
265
343
|
isPrimary?: boolean | undefined;
|
|
266
344
|
}[] | undefined;
|
|
267
|
-
|
|
345
|
+
deletedAt?: string | Date | null | undefined;
|
|
346
|
+
officeId?: string | null | undefined;
|
|
268
347
|
office?: {
|
|
269
348
|
id: string;
|
|
270
349
|
name: string;
|
|
350
|
+
managers?: {
|
|
351
|
+
id: string;
|
|
352
|
+
firstName: string;
|
|
353
|
+
lastName: string;
|
|
354
|
+
}[] | undefined;
|
|
271
355
|
} | null | undefined;
|
|
272
356
|
canImpersonateUsers?: {
|
|
273
357
|
id: string;
|
|
@@ -298,16 +382,40 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
298
382
|
description?: string | null | undefined;
|
|
299
383
|
isPrimary?: boolean | undefined;
|
|
300
384
|
}>, "many">>>;
|
|
301
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
385
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
386
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
387
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
303
388
|
id: z.ZodString;
|
|
304
389
|
name: z.ZodString;
|
|
390
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
firstName: z.ZodString;
|
|
393
|
+
lastName: z.ZodString;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
id: string;
|
|
396
|
+
firstName: string;
|
|
397
|
+
lastName: string;
|
|
398
|
+
}, {
|
|
399
|
+
id: string;
|
|
400
|
+
firstName: string;
|
|
401
|
+
lastName: string;
|
|
402
|
+
}>, "many">>;
|
|
305
403
|
}, "strip", z.ZodTypeAny, {
|
|
306
404
|
id: string;
|
|
307
405
|
name: string;
|
|
406
|
+
managers?: {
|
|
407
|
+
id: string;
|
|
408
|
+
firstName: string;
|
|
409
|
+
lastName: string;
|
|
410
|
+
}[] | undefined;
|
|
308
411
|
}, {
|
|
309
412
|
id: string;
|
|
310
413
|
name: string;
|
|
414
|
+
managers?: {
|
|
415
|
+
id: string;
|
|
416
|
+
firstName: string;
|
|
417
|
+
lastName: string;
|
|
418
|
+
}[] | undefined;
|
|
311
419
|
}>>>;
|
|
312
420
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
421
|
id: z.ZodString;
|
|
@@ -322,25 +430,35 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
322
430
|
firstName: string;
|
|
323
431
|
lastName: string;
|
|
324
432
|
}>, "many">>;
|
|
433
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
325
434
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
435
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
436
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
327
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
status: "ACTIVE" | "INACTIVE";
|
|
328
439
|
id: string;
|
|
329
440
|
firstName: string;
|
|
330
441
|
lastName: string;
|
|
331
442
|
email: string;
|
|
443
|
+
createdAt: string;
|
|
444
|
+
updatedAt: string;
|
|
332
445
|
phoneNumbers: {
|
|
333
446
|
id: string;
|
|
334
447
|
phoneNumber: string;
|
|
335
448
|
isPrimary: boolean;
|
|
336
449
|
description?: string | null | undefined;
|
|
337
450
|
}[];
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
451
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
452
|
+
deletedAt?: string | null | undefined;
|
|
453
|
+
officeId?: string | null | undefined;
|
|
341
454
|
office?: {
|
|
342
455
|
id: string;
|
|
343
456
|
name: string;
|
|
457
|
+
managers?: {
|
|
458
|
+
id: string;
|
|
459
|
+
firstName: string;
|
|
460
|
+
lastName: string;
|
|
461
|
+
}[] | undefined;
|
|
344
462
|
} | null | undefined;
|
|
345
463
|
canImpersonateUsers?: {
|
|
346
464
|
id: string;
|
|
@@ -348,22 +466,30 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
348
466
|
lastName: string;
|
|
349
467
|
}[] | undefined;
|
|
350
468
|
}, {
|
|
469
|
+
status: "ACTIVE" | "INACTIVE";
|
|
351
470
|
id: string;
|
|
352
471
|
firstName: string;
|
|
353
472
|
lastName: string;
|
|
354
473
|
email: string;
|
|
355
474
|
createdAt: string | Date;
|
|
356
475
|
updatedAt: string | Date;
|
|
476
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
357
477
|
phoneNumbers?: {
|
|
358
478
|
id: string;
|
|
359
479
|
phoneNumber: string;
|
|
360
480
|
description?: string | null | undefined;
|
|
361
481
|
isPrimary?: boolean | undefined;
|
|
362
482
|
}[] | undefined;
|
|
363
|
-
|
|
483
|
+
deletedAt?: string | Date | null | undefined;
|
|
484
|
+
officeId?: string | null | undefined;
|
|
364
485
|
office?: {
|
|
365
486
|
id: string;
|
|
366
487
|
name: string;
|
|
488
|
+
managers?: {
|
|
489
|
+
id: string;
|
|
490
|
+
firstName: string;
|
|
491
|
+
lastName: string;
|
|
492
|
+
}[] | undefined;
|
|
367
493
|
} | null | undefined;
|
|
368
494
|
canImpersonateUsers?: {
|
|
369
495
|
id: string;
|
|
@@ -374,28 +500,37 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
374
500
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
375
501
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
376
502
|
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
377
504
|
id: string;
|
|
378
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
379
|
-
agentId: string;
|
|
380
505
|
createdAt: string;
|
|
381
506
|
updatedAt: string;
|
|
507
|
+
createdBy: string;
|
|
508
|
+
agentId: string;
|
|
382
509
|
agent: {
|
|
510
|
+
status: "ACTIVE" | "INACTIVE";
|
|
383
511
|
id: string;
|
|
384
512
|
firstName: string;
|
|
385
513
|
lastName: string;
|
|
386
514
|
email: string;
|
|
515
|
+
createdAt: string;
|
|
516
|
+
updatedAt: string;
|
|
387
517
|
phoneNumbers: {
|
|
388
518
|
id: string;
|
|
389
519
|
phoneNumber: string;
|
|
390
520
|
isPrimary: boolean;
|
|
391
521
|
description?: string | null | undefined;
|
|
392
522
|
}[];
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
523
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
524
|
+
deletedAt?: string | null | undefined;
|
|
525
|
+
officeId?: string | null | undefined;
|
|
396
526
|
office?: {
|
|
397
527
|
id: string;
|
|
398
528
|
name: string;
|
|
529
|
+
managers?: {
|
|
530
|
+
id: string;
|
|
531
|
+
firstName: string;
|
|
532
|
+
lastName: string;
|
|
533
|
+
}[] | undefined;
|
|
399
534
|
} | null | undefined;
|
|
400
535
|
canImpersonateUsers?: {
|
|
401
536
|
id: string;
|
|
@@ -403,9 +538,10 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
403
538
|
lastName: string;
|
|
404
539
|
}[] | undefined;
|
|
405
540
|
};
|
|
541
|
+
clientId: string;
|
|
406
542
|
client: {
|
|
407
|
-
id: string;
|
|
408
543
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
544
|
+
id: string;
|
|
409
545
|
name: string;
|
|
410
546
|
createdAt: string;
|
|
411
547
|
updatedAt: string;
|
|
@@ -424,26 +560,32 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
424
560
|
agentId: string;
|
|
425
561
|
} | null | undefined;
|
|
426
562
|
};
|
|
427
|
-
clientId: string;
|
|
428
|
-
createdBy: string;
|
|
429
563
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
430
564
|
creator: {
|
|
565
|
+
status: "ACTIVE" | "INACTIVE";
|
|
431
566
|
id: string;
|
|
432
567
|
firstName: string;
|
|
433
568
|
lastName: string;
|
|
434
569
|
email: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
updatedAt: string;
|
|
435
572
|
phoneNumbers: {
|
|
436
573
|
id: string;
|
|
437
574
|
phoneNumber: string;
|
|
438
575
|
isPrimary: boolean;
|
|
439
576
|
description?: string | null | undefined;
|
|
440
577
|
}[];
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
578
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
579
|
+
deletedAt?: string | null | undefined;
|
|
580
|
+
officeId?: string | null | undefined;
|
|
444
581
|
office?: {
|
|
445
582
|
id: string;
|
|
446
583
|
name: string;
|
|
584
|
+
managers?: {
|
|
585
|
+
id: string;
|
|
586
|
+
firstName: string;
|
|
587
|
+
lastName: string;
|
|
588
|
+
}[] | undefined;
|
|
447
589
|
} | null | undefined;
|
|
448
590
|
canImpersonateUsers?: {
|
|
449
591
|
id: string;
|
|
@@ -455,22 +597,30 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
455
597
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
456
598
|
reviewedBy?: string | null | undefined;
|
|
457
599
|
reviewer?: {
|
|
600
|
+
status: "ACTIVE" | "INACTIVE";
|
|
458
601
|
id: string;
|
|
459
602
|
firstName: string;
|
|
460
603
|
lastName: string;
|
|
461
604
|
email: string;
|
|
605
|
+
createdAt: string;
|
|
606
|
+
updatedAt: string;
|
|
462
607
|
phoneNumbers: {
|
|
463
608
|
id: string;
|
|
464
609
|
phoneNumber: string;
|
|
465
610
|
isPrimary: boolean;
|
|
466
611
|
description?: string | null | undefined;
|
|
467
612
|
}[];
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
613
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
614
|
+
deletedAt?: string | null | undefined;
|
|
615
|
+
officeId?: string | null | undefined;
|
|
471
616
|
office?: {
|
|
472
617
|
id: string;
|
|
473
618
|
name: string;
|
|
619
|
+
managers?: {
|
|
620
|
+
id: string;
|
|
621
|
+
firstName: string;
|
|
622
|
+
lastName: string;
|
|
623
|
+
}[] | undefined;
|
|
474
624
|
} | null | undefined;
|
|
475
625
|
canImpersonateUsers?: {
|
|
476
626
|
id: string;
|
|
@@ -480,28 +630,37 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
480
630
|
} | null | undefined;
|
|
481
631
|
reviewedAt?: string | null | undefined;
|
|
482
632
|
}, {
|
|
633
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
483
634
|
id: string;
|
|
484
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
485
|
-
agentId: string;
|
|
486
635
|
createdAt: string | Date;
|
|
487
636
|
updatedAt: string | Date;
|
|
637
|
+
createdBy: string;
|
|
638
|
+
agentId: string;
|
|
488
639
|
agent: {
|
|
640
|
+
status: "ACTIVE" | "INACTIVE";
|
|
489
641
|
id: string;
|
|
490
642
|
firstName: string;
|
|
491
643
|
lastName: string;
|
|
492
644
|
email: string;
|
|
493
645
|
createdAt: string | Date;
|
|
494
646
|
updatedAt: string | Date;
|
|
647
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
495
648
|
phoneNumbers?: {
|
|
496
649
|
id: string;
|
|
497
650
|
phoneNumber: string;
|
|
498
651
|
description?: string | null | undefined;
|
|
499
652
|
isPrimary?: boolean | undefined;
|
|
500
653
|
}[] | undefined;
|
|
501
|
-
|
|
654
|
+
deletedAt?: string | Date | null | undefined;
|
|
655
|
+
officeId?: string | null | undefined;
|
|
502
656
|
office?: {
|
|
503
657
|
id: string;
|
|
504
658
|
name: string;
|
|
659
|
+
managers?: {
|
|
660
|
+
id: string;
|
|
661
|
+
firstName: string;
|
|
662
|
+
lastName: string;
|
|
663
|
+
}[] | undefined;
|
|
505
664
|
} | null | undefined;
|
|
506
665
|
canImpersonateUsers?: {
|
|
507
666
|
id: string;
|
|
@@ -509,9 +668,10 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
509
668
|
lastName: string;
|
|
510
669
|
}[] | undefined;
|
|
511
670
|
};
|
|
671
|
+
clientId: string;
|
|
512
672
|
client: {
|
|
513
|
-
id: string;
|
|
514
673
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
674
|
+
id: string;
|
|
515
675
|
name: string;
|
|
516
676
|
createdAt: string | Date;
|
|
517
677
|
updatedAt: string | Date;
|
|
@@ -530,26 +690,32 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
530
690
|
agentId: string;
|
|
531
691
|
} | null | undefined;
|
|
532
692
|
};
|
|
533
|
-
clientId: string;
|
|
534
|
-
createdBy: string;
|
|
535
693
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
536
694
|
creator: {
|
|
695
|
+
status: "ACTIVE" | "INACTIVE";
|
|
537
696
|
id: string;
|
|
538
697
|
firstName: string;
|
|
539
698
|
lastName: string;
|
|
540
699
|
email: string;
|
|
541
700
|
createdAt: string | Date;
|
|
542
701
|
updatedAt: string | Date;
|
|
702
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
543
703
|
phoneNumbers?: {
|
|
544
704
|
id: string;
|
|
545
705
|
phoneNumber: string;
|
|
546
706
|
description?: string | null | undefined;
|
|
547
707
|
isPrimary?: boolean | undefined;
|
|
548
708
|
}[] | undefined;
|
|
549
|
-
|
|
709
|
+
deletedAt?: string | Date | null | undefined;
|
|
710
|
+
officeId?: string | null | undefined;
|
|
550
711
|
office?: {
|
|
551
712
|
id: string;
|
|
552
713
|
name: string;
|
|
714
|
+
managers?: {
|
|
715
|
+
id: string;
|
|
716
|
+
firstName: string;
|
|
717
|
+
lastName: string;
|
|
718
|
+
}[] | undefined;
|
|
553
719
|
} | null | undefined;
|
|
554
720
|
canImpersonateUsers?: {
|
|
555
721
|
id: string;
|
|
@@ -561,22 +727,30 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
561
727
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
562
728
|
reviewedBy?: string | null | undefined;
|
|
563
729
|
reviewer?: {
|
|
730
|
+
status: "ACTIVE" | "INACTIVE";
|
|
564
731
|
id: string;
|
|
565
732
|
firstName: string;
|
|
566
733
|
lastName: string;
|
|
567
734
|
email: string;
|
|
568
735
|
createdAt: string | Date;
|
|
569
736
|
updatedAt: string | Date;
|
|
737
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
570
738
|
phoneNumbers?: {
|
|
571
739
|
id: string;
|
|
572
740
|
phoneNumber: string;
|
|
573
741
|
description?: string | null | undefined;
|
|
574
742
|
isPrimary?: boolean | undefined;
|
|
575
743
|
}[] | undefined;
|
|
576
|
-
|
|
744
|
+
deletedAt?: string | Date | null | undefined;
|
|
745
|
+
officeId?: string | null | undefined;
|
|
577
746
|
office?: {
|
|
578
747
|
id: string;
|
|
579
748
|
name: string;
|
|
749
|
+
managers?: {
|
|
750
|
+
id: string;
|
|
751
|
+
firstName: string;
|
|
752
|
+
lastName: string;
|
|
753
|
+
}[] | undefined;
|
|
580
754
|
} | null | undefined;
|
|
581
755
|
canImpersonateUsers?: {
|
|
582
756
|
id: string;
|
|
@@ -601,17 +775,17 @@ export declare const FilterAgentClientLinkSchema: z.ZodObject<{
|
|
|
601
775
|
page: number;
|
|
602
776
|
sortBy: "createdAt";
|
|
603
777
|
sortOrder: "ASC" | "DESC";
|
|
604
|
-
status?: "
|
|
778
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
605
779
|
agentId?: string | undefined;
|
|
606
780
|
clientId?: string | undefined;
|
|
607
781
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
608
782
|
}, {
|
|
609
|
-
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
610
|
-
agentId?: string | undefined;
|
|
611
783
|
limit?: number | undefined;
|
|
612
784
|
page?: number | undefined;
|
|
785
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
613
786
|
sortBy?: "createdAt" | undefined;
|
|
614
787
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
788
|
+
agentId?: string | undefined;
|
|
615
789
|
clientId?: string | undefined;
|
|
616
790
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
617
791
|
}>;
|
|
@@ -628,12 +802,12 @@ export declare const UpdateAgentClientLinkSchema: z.ZodObject<{
|
|
|
628
802
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
629
803
|
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
630
804
|
}, "strip", z.ZodTypeAny, {
|
|
631
|
-
status?: "
|
|
805
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
632
806
|
clientId?: string | undefined;
|
|
633
807
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
634
808
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
635
809
|
}, {
|
|
636
|
-
status?: "
|
|
810
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
637
811
|
clientId?: string | undefined;
|
|
638
812
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
639
813
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
@@ -678,8 +852,8 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
678
852
|
agentId: string;
|
|
679
853
|
}>>>;
|
|
680
854
|
}, "strip", z.ZodTypeAny, {
|
|
681
|
-
id: string;
|
|
682
855
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
856
|
+
id: string;
|
|
683
857
|
name: string;
|
|
684
858
|
createdAt: string;
|
|
685
859
|
updatedAt: string;
|
|
@@ -698,8 +872,8 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
698
872
|
agentId: string;
|
|
699
873
|
} | null | undefined;
|
|
700
874
|
}, {
|
|
701
|
-
id: string;
|
|
702
875
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
876
|
+
id: string;
|
|
703
877
|
name: string;
|
|
704
878
|
createdAt: string | Date;
|
|
705
879
|
updatedAt: string | Date;
|
|
@@ -740,16 +914,40 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
740
914
|
description?: string | null | undefined;
|
|
741
915
|
isPrimary?: boolean | undefined;
|
|
742
916
|
}>, "many">>>;
|
|
743
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
917
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
918
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
919
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
745
920
|
id: z.ZodString;
|
|
746
921
|
name: z.ZodString;
|
|
922
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
923
|
+
id: z.ZodString;
|
|
924
|
+
firstName: z.ZodString;
|
|
925
|
+
lastName: z.ZodString;
|
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
|
+
id: string;
|
|
928
|
+
firstName: string;
|
|
929
|
+
lastName: string;
|
|
930
|
+
}, {
|
|
931
|
+
id: string;
|
|
932
|
+
firstName: string;
|
|
933
|
+
lastName: string;
|
|
934
|
+
}>, "many">>;
|
|
747
935
|
}, "strip", z.ZodTypeAny, {
|
|
748
936
|
id: string;
|
|
749
937
|
name: string;
|
|
938
|
+
managers?: {
|
|
939
|
+
id: string;
|
|
940
|
+
firstName: string;
|
|
941
|
+
lastName: string;
|
|
942
|
+
}[] | undefined;
|
|
750
943
|
}, {
|
|
751
944
|
id: string;
|
|
752
945
|
name: string;
|
|
946
|
+
managers?: {
|
|
947
|
+
id: string;
|
|
948
|
+
firstName: string;
|
|
949
|
+
lastName: string;
|
|
950
|
+
}[] | undefined;
|
|
753
951
|
}>>>;
|
|
754
952
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
755
953
|
id: z.ZodString;
|
|
@@ -764,25 +962,35 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
764
962
|
firstName: string;
|
|
765
963
|
lastName: string;
|
|
766
964
|
}>, "many">>;
|
|
965
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
767
966
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
768
967
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
968
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
769
969
|
}, "strip", z.ZodTypeAny, {
|
|
970
|
+
status: "ACTIVE" | "INACTIVE";
|
|
770
971
|
id: string;
|
|
771
972
|
firstName: string;
|
|
772
973
|
lastName: string;
|
|
773
974
|
email: string;
|
|
975
|
+
createdAt: string;
|
|
976
|
+
updatedAt: string;
|
|
774
977
|
phoneNumbers: {
|
|
775
978
|
id: string;
|
|
776
979
|
phoneNumber: string;
|
|
777
980
|
isPrimary: boolean;
|
|
778
981
|
description?: string | null | undefined;
|
|
779
982
|
}[];
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
983
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
984
|
+
deletedAt?: string | null | undefined;
|
|
985
|
+
officeId?: string | null | undefined;
|
|
783
986
|
office?: {
|
|
784
987
|
id: string;
|
|
785
988
|
name: string;
|
|
989
|
+
managers?: {
|
|
990
|
+
id: string;
|
|
991
|
+
firstName: string;
|
|
992
|
+
lastName: string;
|
|
993
|
+
}[] | undefined;
|
|
786
994
|
} | null | undefined;
|
|
787
995
|
canImpersonateUsers?: {
|
|
788
996
|
id: string;
|
|
@@ -790,22 +998,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
790
998
|
lastName: string;
|
|
791
999
|
}[] | undefined;
|
|
792
1000
|
}, {
|
|
1001
|
+
status: "ACTIVE" | "INACTIVE";
|
|
793
1002
|
id: string;
|
|
794
1003
|
firstName: string;
|
|
795
1004
|
lastName: string;
|
|
796
1005
|
email: string;
|
|
797
1006
|
createdAt: string | Date;
|
|
798
1007
|
updatedAt: string | Date;
|
|
1008
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
799
1009
|
phoneNumbers?: {
|
|
800
1010
|
id: string;
|
|
801
1011
|
phoneNumber: string;
|
|
802
1012
|
description?: string | null | undefined;
|
|
803
1013
|
isPrimary?: boolean | undefined;
|
|
804
1014
|
}[] | undefined;
|
|
805
|
-
|
|
1015
|
+
deletedAt?: string | Date | null | undefined;
|
|
1016
|
+
officeId?: string | null | undefined;
|
|
806
1017
|
office?: {
|
|
807
1018
|
id: string;
|
|
808
1019
|
name: string;
|
|
1020
|
+
managers?: {
|
|
1021
|
+
id: string;
|
|
1022
|
+
firstName: string;
|
|
1023
|
+
lastName: string;
|
|
1024
|
+
}[] | undefined;
|
|
809
1025
|
} | null | undefined;
|
|
810
1026
|
canImpersonateUsers?: {
|
|
811
1027
|
id: string;
|
|
@@ -839,16 +1055,40 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
839
1055
|
description?: string | null | undefined;
|
|
840
1056
|
isPrimary?: boolean | undefined;
|
|
841
1057
|
}>, "many">>>;
|
|
842
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1058
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1059
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
1060
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
844
1061
|
id: z.ZodString;
|
|
845
1062
|
name: z.ZodString;
|
|
1063
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1064
|
+
id: z.ZodString;
|
|
1065
|
+
firstName: z.ZodString;
|
|
1066
|
+
lastName: z.ZodString;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
id: string;
|
|
1069
|
+
firstName: string;
|
|
1070
|
+
lastName: string;
|
|
1071
|
+
}, {
|
|
1072
|
+
id: string;
|
|
1073
|
+
firstName: string;
|
|
1074
|
+
lastName: string;
|
|
1075
|
+
}>, "many">>;
|
|
846
1076
|
}, "strip", z.ZodTypeAny, {
|
|
847
1077
|
id: string;
|
|
848
1078
|
name: string;
|
|
1079
|
+
managers?: {
|
|
1080
|
+
id: string;
|
|
1081
|
+
firstName: string;
|
|
1082
|
+
lastName: string;
|
|
1083
|
+
}[] | undefined;
|
|
849
1084
|
}, {
|
|
850
1085
|
id: string;
|
|
851
1086
|
name: string;
|
|
1087
|
+
managers?: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
firstName: string;
|
|
1090
|
+
lastName: string;
|
|
1091
|
+
}[] | undefined;
|
|
852
1092
|
}>>>;
|
|
853
1093
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
854
1094
|
id: z.ZodString;
|
|
@@ -863,25 +1103,35 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
863
1103
|
firstName: string;
|
|
864
1104
|
lastName: string;
|
|
865
1105
|
}>, "many">>;
|
|
1106
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
866
1107
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
867
1108
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1109
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
868
1110
|
}, "strip", z.ZodTypeAny, {
|
|
1111
|
+
status: "ACTIVE" | "INACTIVE";
|
|
869
1112
|
id: string;
|
|
870
1113
|
firstName: string;
|
|
871
1114
|
lastName: string;
|
|
872
1115
|
email: string;
|
|
1116
|
+
createdAt: string;
|
|
1117
|
+
updatedAt: string;
|
|
873
1118
|
phoneNumbers: {
|
|
874
1119
|
id: string;
|
|
875
1120
|
phoneNumber: string;
|
|
876
1121
|
isPrimary: boolean;
|
|
877
1122
|
description?: string | null | undefined;
|
|
878
1123
|
}[];
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
1124
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1125
|
+
deletedAt?: string | null | undefined;
|
|
1126
|
+
officeId?: string | null | undefined;
|
|
882
1127
|
office?: {
|
|
883
1128
|
id: string;
|
|
884
1129
|
name: string;
|
|
1130
|
+
managers?: {
|
|
1131
|
+
id: string;
|
|
1132
|
+
firstName: string;
|
|
1133
|
+
lastName: string;
|
|
1134
|
+
}[] | undefined;
|
|
885
1135
|
} | null | undefined;
|
|
886
1136
|
canImpersonateUsers?: {
|
|
887
1137
|
id: string;
|
|
@@ -889,22 +1139,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
889
1139
|
lastName: string;
|
|
890
1140
|
}[] | undefined;
|
|
891
1141
|
}, {
|
|
1142
|
+
status: "ACTIVE" | "INACTIVE";
|
|
892
1143
|
id: string;
|
|
893
1144
|
firstName: string;
|
|
894
1145
|
lastName: string;
|
|
895
1146
|
email: string;
|
|
896
1147
|
createdAt: string | Date;
|
|
897
1148
|
updatedAt: string | Date;
|
|
1149
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
898
1150
|
phoneNumbers?: {
|
|
899
1151
|
id: string;
|
|
900
1152
|
phoneNumber: string;
|
|
901
1153
|
description?: string | null | undefined;
|
|
902
1154
|
isPrimary?: boolean | undefined;
|
|
903
1155
|
}[] | undefined;
|
|
904
|
-
|
|
1156
|
+
deletedAt?: string | Date | null | undefined;
|
|
1157
|
+
officeId?: string | null | undefined;
|
|
905
1158
|
office?: {
|
|
906
1159
|
id: string;
|
|
907
1160
|
name: string;
|
|
1161
|
+
managers?: {
|
|
1162
|
+
id: string;
|
|
1163
|
+
firstName: string;
|
|
1164
|
+
lastName: string;
|
|
1165
|
+
}[] | undefined;
|
|
908
1166
|
} | null | undefined;
|
|
909
1167
|
canImpersonateUsers?: {
|
|
910
1168
|
id: string;
|
|
@@ -935,16 +1193,40 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
935
1193
|
description?: string | null | undefined;
|
|
936
1194
|
isPrimary?: boolean | undefined;
|
|
937
1195
|
}>, "many">>>;
|
|
938
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1196
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1197
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
939
1198
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
940
1199
|
id: z.ZodString;
|
|
941
1200
|
name: z.ZodString;
|
|
1201
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1202
|
+
id: z.ZodString;
|
|
1203
|
+
firstName: z.ZodString;
|
|
1204
|
+
lastName: z.ZodString;
|
|
1205
|
+
}, "strip", z.ZodTypeAny, {
|
|
1206
|
+
id: string;
|
|
1207
|
+
firstName: string;
|
|
1208
|
+
lastName: string;
|
|
1209
|
+
}, {
|
|
1210
|
+
id: string;
|
|
1211
|
+
firstName: string;
|
|
1212
|
+
lastName: string;
|
|
1213
|
+
}>, "many">>;
|
|
942
1214
|
}, "strip", z.ZodTypeAny, {
|
|
943
1215
|
id: string;
|
|
944
1216
|
name: string;
|
|
1217
|
+
managers?: {
|
|
1218
|
+
id: string;
|
|
1219
|
+
firstName: string;
|
|
1220
|
+
lastName: string;
|
|
1221
|
+
}[] | undefined;
|
|
945
1222
|
}, {
|
|
946
1223
|
id: string;
|
|
947
1224
|
name: string;
|
|
1225
|
+
managers?: {
|
|
1226
|
+
id: string;
|
|
1227
|
+
firstName: string;
|
|
1228
|
+
lastName: string;
|
|
1229
|
+
}[] | undefined;
|
|
948
1230
|
}>>>;
|
|
949
1231
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
950
1232
|
id: z.ZodString;
|
|
@@ -959,25 +1241,35 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
959
1241
|
firstName: string;
|
|
960
1242
|
lastName: string;
|
|
961
1243
|
}>, "many">>;
|
|
1244
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
962
1245
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
963
1246
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1247
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
964
1248
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
+
status: "ACTIVE" | "INACTIVE";
|
|
965
1250
|
id: string;
|
|
966
1251
|
firstName: string;
|
|
967
1252
|
lastName: string;
|
|
968
1253
|
email: string;
|
|
1254
|
+
createdAt: string;
|
|
1255
|
+
updatedAt: string;
|
|
969
1256
|
phoneNumbers: {
|
|
970
1257
|
id: string;
|
|
971
1258
|
phoneNumber: string;
|
|
972
1259
|
isPrimary: boolean;
|
|
973
1260
|
description?: string | null | undefined;
|
|
974
1261
|
}[];
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1262
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1263
|
+
deletedAt?: string | null | undefined;
|
|
1264
|
+
officeId?: string | null | undefined;
|
|
978
1265
|
office?: {
|
|
979
1266
|
id: string;
|
|
980
1267
|
name: string;
|
|
1268
|
+
managers?: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
firstName: string;
|
|
1271
|
+
lastName: string;
|
|
1272
|
+
}[] | undefined;
|
|
981
1273
|
} | null | undefined;
|
|
982
1274
|
canImpersonateUsers?: {
|
|
983
1275
|
id: string;
|
|
@@ -985,22 +1277,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
985
1277
|
lastName: string;
|
|
986
1278
|
}[] | undefined;
|
|
987
1279
|
}, {
|
|
1280
|
+
status: "ACTIVE" | "INACTIVE";
|
|
988
1281
|
id: string;
|
|
989
1282
|
firstName: string;
|
|
990
1283
|
lastName: string;
|
|
991
1284
|
email: string;
|
|
992
1285
|
createdAt: string | Date;
|
|
993
1286
|
updatedAt: string | Date;
|
|
1287
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
994
1288
|
phoneNumbers?: {
|
|
995
1289
|
id: string;
|
|
996
1290
|
phoneNumber: string;
|
|
997
1291
|
description?: string | null | undefined;
|
|
998
1292
|
isPrimary?: boolean | undefined;
|
|
999
1293
|
}[] | undefined;
|
|
1000
|
-
|
|
1294
|
+
deletedAt?: string | Date | null | undefined;
|
|
1295
|
+
officeId?: string | null | undefined;
|
|
1001
1296
|
office?: {
|
|
1002
1297
|
id: string;
|
|
1003
1298
|
name: string;
|
|
1299
|
+
managers?: {
|
|
1300
|
+
id: string;
|
|
1301
|
+
firstName: string;
|
|
1302
|
+
lastName: string;
|
|
1303
|
+
}[] | undefined;
|
|
1004
1304
|
} | null | undefined;
|
|
1005
1305
|
canImpersonateUsers?: {
|
|
1006
1306
|
id: string;
|
|
@@ -1011,28 +1311,37 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1011
1311
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1012
1312
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1013
1313
|
}, "strip", z.ZodTypeAny, {
|
|
1314
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
1014
1315
|
id: string;
|
|
1015
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1016
|
-
agentId: string;
|
|
1017
1316
|
createdAt: string;
|
|
1018
1317
|
updatedAt: string;
|
|
1318
|
+
createdBy: string;
|
|
1319
|
+
agentId: string;
|
|
1019
1320
|
agent: {
|
|
1321
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1020
1322
|
id: string;
|
|
1021
1323
|
firstName: string;
|
|
1022
1324
|
lastName: string;
|
|
1023
1325
|
email: string;
|
|
1326
|
+
createdAt: string;
|
|
1327
|
+
updatedAt: string;
|
|
1024
1328
|
phoneNumbers: {
|
|
1025
1329
|
id: string;
|
|
1026
1330
|
phoneNumber: string;
|
|
1027
1331
|
isPrimary: boolean;
|
|
1028
1332
|
description?: string | null | undefined;
|
|
1029
1333
|
}[];
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1334
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1335
|
+
deletedAt?: string | null | undefined;
|
|
1336
|
+
officeId?: string | null | undefined;
|
|
1033
1337
|
office?: {
|
|
1034
1338
|
id: string;
|
|
1035
1339
|
name: string;
|
|
1340
|
+
managers?: {
|
|
1341
|
+
id: string;
|
|
1342
|
+
firstName: string;
|
|
1343
|
+
lastName: string;
|
|
1344
|
+
}[] | undefined;
|
|
1036
1345
|
} | null | undefined;
|
|
1037
1346
|
canImpersonateUsers?: {
|
|
1038
1347
|
id: string;
|
|
@@ -1040,9 +1349,10 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1040
1349
|
lastName: string;
|
|
1041
1350
|
}[] | undefined;
|
|
1042
1351
|
};
|
|
1352
|
+
clientId: string;
|
|
1043
1353
|
client: {
|
|
1044
|
-
id: string;
|
|
1045
1354
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1355
|
+
id: string;
|
|
1046
1356
|
name: string;
|
|
1047
1357
|
createdAt: string;
|
|
1048
1358
|
updatedAt: string;
|
|
@@ -1061,26 +1371,32 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1061
1371
|
agentId: string;
|
|
1062
1372
|
} | null | undefined;
|
|
1063
1373
|
};
|
|
1064
|
-
clientId: string;
|
|
1065
|
-
createdBy: string;
|
|
1066
1374
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1067
1375
|
creator: {
|
|
1376
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1068
1377
|
id: string;
|
|
1069
1378
|
firstName: string;
|
|
1070
1379
|
lastName: string;
|
|
1071
1380
|
email: string;
|
|
1381
|
+
createdAt: string;
|
|
1382
|
+
updatedAt: string;
|
|
1072
1383
|
phoneNumbers: {
|
|
1073
1384
|
id: string;
|
|
1074
1385
|
phoneNumber: string;
|
|
1075
1386
|
isPrimary: boolean;
|
|
1076
1387
|
description?: string | null | undefined;
|
|
1077
1388
|
}[];
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1389
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1390
|
+
deletedAt?: string | null | undefined;
|
|
1391
|
+
officeId?: string | null | undefined;
|
|
1081
1392
|
office?: {
|
|
1082
1393
|
id: string;
|
|
1083
1394
|
name: string;
|
|
1395
|
+
managers?: {
|
|
1396
|
+
id: string;
|
|
1397
|
+
firstName: string;
|
|
1398
|
+
lastName: string;
|
|
1399
|
+
}[] | undefined;
|
|
1084
1400
|
} | null | undefined;
|
|
1085
1401
|
canImpersonateUsers?: {
|
|
1086
1402
|
id: string;
|
|
@@ -1092,22 +1408,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1092
1408
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1093
1409
|
reviewedBy?: string | null | undefined;
|
|
1094
1410
|
reviewer?: {
|
|
1411
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1095
1412
|
id: string;
|
|
1096
1413
|
firstName: string;
|
|
1097
1414
|
lastName: string;
|
|
1098
1415
|
email: string;
|
|
1416
|
+
createdAt: string;
|
|
1417
|
+
updatedAt: string;
|
|
1099
1418
|
phoneNumbers: {
|
|
1100
1419
|
id: string;
|
|
1101
1420
|
phoneNumber: string;
|
|
1102
1421
|
isPrimary: boolean;
|
|
1103
1422
|
description?: string | null | undefined;
|
|
1104
1423
|
}[];
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1424
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1425
|
+
deletedAt?: string | null | undefined;
|
|
1426
|
+
officeId?: string | null | undefined;
|
|
1108
1427
|
office?: {
|
|
1109
1428
|
id: string;
|
|
1110
1429
|
name: string;
|
|
1430
|
+
managers?: {
|
|
1431
|
+
id: string;
|
|
1432
|
+
firstName: string;
|
|
1433
|
+
lastName: string;
|
|
1434
|
+
}[] | undefined;
|
|
1111
1435
|
} | null | undefined;
|
|
1112
1436
|
canImpersonateUsers?: {
|
|
1113
1437
|
id: string;
|
|
@@ -1117,28 +1441,37 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1117
1441
|
} | null | undefined;
|
|
1118
1442
|
reviewedAt?: string | null | undefined;
|
|
1119
1443
|
}, {
|
|
1444
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
1120
1445
|
id: string;
|
|
1121
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1122
|
-
agentId: string;
|
|
1123
1446
|
createdAt: string | Date;
|
|
1124
1447
|
updatedAt: string | Date;
|
|
1448
|
+
createdBy: string;
|
|
1449
|
+
agentId: string;
|
|
1125
1450
|
agent: {
|
|
1451
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1126
1452
|
id: string;
|
|
1127
1453
|
firstName: string;
|
|
1128
1454
|
lastName: string;
|
|
1129
1455
|
email: string;
|
|
1130
1456
|
createdAt: string | Date;
|
|
1131
1457
|
updatedAt: string | Date;
|
|
1458
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1132
1459
|
phoneNumbers?: {
|
|
1133
1460
|
id: string;
|
|
1134
1461
|
phoneNumber: string;
|
|
1135
1462
|
description?: string | null | undefined;
|
|
1136
1463
|
isPrimary?: boolean | undefined;
|
|
1137
1464
|
}[] | undefined;
|
|
1138
|
-
|
|
1465
|
+
deletedAt?: string | Date | null | undefined;
|
|
1466
|
+
officeId?: string | null | undefined;
|
|
1139
1467
|
office?: {
|
|
1140
1468
|
id: string;
|
|
1141
1469
|
name: string;
|
|
1470
|
+
managers?: {
|
|
1471
|
+
id: string;
|
|
1472
|
+
firstName: string;
|
|
1473
|
+
lastName: string;
|
|
1474
|
+
}[] | undefined;
|
|
1142
1475
|
} | null | undefined;
|
|
1143
1476
|
canImpersonateUsers?: {
|
|
1144
1477
|
id: string;
|
|
@@ -1146,9 +1479,10 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1146
1479
|
lastName: string;
|
|
1147
1480
|
}[] | undefined;
|
|
1148
1481
|
};
|
|
1482
|
+
clientId: string;
|
|
1149
1483
|
client: {
|
|
1150
|
-
id: string;
|
|
1151
1484
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1485
|
+
id: string;
|
|
1152
1486
|
name: string;
|
|
1153
1487
|
createdAt: string | Date;
|
|
1154
1488
|
updatedAt: string | Date;
|
|
@@ -1167,26 +1501,32 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1167
1501
|
agentId: string;
|
|
1168
1502
|
} | null | undefined;
|
|
1169
1503
|
};
|
|
1170
|
-
clientId: string;
|
|
1171
|
-
createdBy: string;
|
|
1172
1504
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1173
1505
|
creator: {
|
|
1506
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1174
1507
|
id: string;
|
|
1175
1508
|
firstName: string;
|
|
1176
1509
|
lastName: string;
|
|
1177
1510
|
email: string;
|
|
1178
1511
|
createdAt: string | Date;
|
|
1179
1512
|
updatedAt: string | Date;
|
|
1513
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1180
1514
|
phoneNumbers?: {
|
|
1181
1515
|
id: string;
|
|
1182
1516
|
phoneNumber: string;
|
|
1183
1517
|
description?: string | null | undefined;
|
|
1184
1518
|
isPrimary?: boolean | undefined;
|
|
1185
1519
|
}[] | undefined;
|
|
1186
|
-
|
|
1520
|
+
deletedAt?: string | Date | null | undefined;
|
|
1521
|
+
officeId?: string | null | undefined;
|
|
1187
1522
|
office?: {
|
|
1188
1523
|
id: string;
|
|
1189
1524
|
name: string;
|
|
1525
|
+
managers?: {
|
|
1526
|
+
id: string;
|
|
1527
|
+
firstName: string;
|
|
1528
|
+
lastName: string;
|
|
1529
|
+
}[] | undefined;
|
|
1190
1530
|
} | null | undefined;
|
|
1191
1531
|
canImpersonateUsers?: {
|
|
1192
1532
|
id: string;
|
|
@@ -1198,22 +1538,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1198
1538
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1199
1539
|
reviewedBy?: string | null | undefined;
|
|
1200
1540
|
reviewer?: {
|
|
1541
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1201
1542
|
id: string;
|
|
1202
1543
|
firstName: string;
|
|
1203
1544
|
lastName: string;
|
|
1204
1545
|
email: string;
|
|
1205
1546
|
createdAt: string | Date;
|
|
1206
1547
|
updatedAt: string | Date;
|
|
1548
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1207
1549
|
phoneNumbers?: {
|
|
1208
1550
|
id: string;
|
|
1209
1551
|
phoneNumber: string;
|
|
1210
1552
|
description?: string | null | undefined;
|
|
1211
1553
|
isPrimary?: boolean | undefined;
|
|
1212
1554
|
}[] | undefined;
|
|
1213
|
-
|
|
1555
|
+
deletedAt?: string | Date | null | undefined;
|
|
1556
|
+
officeId?: string | null | undefined;
|
|
1214
1557
|
office?: {
|
|
1215
1558
|
id: string;
|
|
1216
1559
|
name: string;
|
|
1560
|
+
managers?: {
|
|
1561
|
+
id: string;
|
|
1562
|
+
firstName: string;
|
|
1563
|
+
lastName: string;
|
|
1564
|
+
}[] | undefined;
|
|
1217
1565
|
} | null | undefined;
|
|
1218
1566
|
canImpersonateUsers?: {
|
|
1219
1567
|
id: string;
|
|
@@ -1231,28 +1579,37 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1231
1579
|
}, "strip", z.ZodTypeAny, {
|
|
1232
1580
|
limit: number;
|
|
1233
1581
|
items: {
|
|
1582
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
1234
1583
|
id: string;
|
|
1235
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1236
|
-
agentId: string;
|
|
1237
1584
|
createdAt: string;
|
|
1238
1585
|
updatedAt: string;
|
|
1586
|
+
createdBy: string;
|
|
1587
|
+
agentId: string;
|
|
1239
1588
|
agent: {
|
|
1589
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1240
1590
|
id: string;
|
|
1241
1591
|
firstName: string;
|
|
1242
1592
|
lastName: string;
|
|
1243
1593
|
email: string;
|
|
1594
|
+
createdAt: string;
|
|
1595
|
+
updatedAt: string;
|
|
1244
1596
|
phoneNumbers: {
|
|
1245
1597
|
id: string;
|
|
1246
1598
|
phoneNumber: string;
|
|
1247
1599
|
isPrimary: boolean;
|
|
1248
1600
|
description?: string | null | undefined;
|
|
1249
1601
|
}[];
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1602
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1603
|
+
deletedAt?: string | null | undefined;
|
|
1604
|
+
officeId?: string | null | undefined;
|
|
1253
1605
|
office?: {
|
|
1254
1606
|
id: string;
|
|
1255
1607
|
name: string;
|
|
1608
|
+
managers?: {
|
|
1609
|
+
id: string;
|
|
1610
|
+
firstName: string;
|
|
1611
|
+
lastName: string;
|
|
1612
|
+
}[] | undefined;
|
|
1256
1613
|
} | null | undefined;
|
|
1257
1614
|
canImpersonateUsers?: {
|
|
1258
1615
|
id: string;
|
|
@@ -1260,9 +1617,10 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1260
1617
|
lastName: string;
|
|
1261
1618
|
}[] | undefined;
|
|
1262
1619
|
};
|
|
1620
|
+
clientId: string;
|
|
1263
1621
|
client: {
|
|
1264
|
-
id: string;
|
|
1265
1622
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1623
|
+
id: string;
|
|
1266
1624
|
name: string;
|
|
1267
1625
|
createdAt: string;
|
|
1268
1626
|
updatedAt: string;
|
|
@@ -1281,26 +1639,32 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1281
1639
|
agentId: string;
|
|
1282
1640
|
} | null | undefined;
|
|
1283
1641
|
};
|
|
1284
|
-
clientId: string;
|
|
1285
|
-
createdBy: string;
|
|
1286
1642
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1287
1643
|
creator: {
|
|
1644
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1288
1645
|
id: string;
|
|
1289
1646
|
firstName: string;
|
|
1290
1647
|
lastName: string;
|
|
1291
1648
|
email: string;
|
|
1649
|
+
createdAt: string;
|
|
1650
|
+
updatedAt: string;
|
|
1292
1651
|
phoneNumbers: {
|
|
1293
1652
|
id: string;
|
|
1294
1653
|
phoneNumber: string;
|
|
1295
1654
|
isPrimary: boolean;
|
|
1296
1655
|
description?: string | null | undefined;
|
|
1297
1656
|
}[];
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1657
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1658
|
+
deletedAt?: string | null | undefined;
|
|
1659
|
+
officeId?: string | null | undefined;
|
|
1301
1660
|
office?: {
|
|
1302
1661
|
id: string;
|
|
1303
1662
|
name: string;
|
|
1663
|
+
managers?: {
|
|
1664
|
+
id: string;
|
|
1665
|
+
firstName: string;
|
|
1666
|
+
lastName: string;
|
|
1667
|
+
}[] | undefined;
|
|
1304
1668
|
} | null | undefined;
|
|
1305
1669
|
canImpersonateUsers?: {
|
|
1306
1670
|
id: string;
|
|
@@ -1312,22 +1676,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1312
1676
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1313
1677
|
reviewedBy?: string | null | undefined;
|
|
1314
1678
|
reviewer?: {
|
|
1679
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1315
1680
|
id: string;
|
|
1316
1681
|
firstName: string;
|
|
1317
1682
|
lastName: string;
|
|
1318
1683
|
email: string;
|
|
1684
|
+
createdAt: string;
|
|
1685
|
+
updatedAt: string;
|
|
1319
1686
|
phoneNumbers: {
|
|
1320
1687
|
id: string;
|
|
1321
1688
|
phoneNumber: string;
|
|
1322
1689
|
isPrimary: boolean;
|
|
1323
1690
|
description?: string | null | undefined;
|
|
1324
1691
|
}[];
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1692
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1693
|
+
deletedAt?: string | null | undefined;
|
|
1694
|
+
officeId?: string | null | undefined;
|
|
1328
1695
|
office?: {
|
|
1329
1696
|
id: string;
|
|
1330
1697
|
name: string;
|
|
1698
|
+
managers?: {
|
|
1699
|
+
id: string;
|
|
1700
|
+
firstName: string;
|
|
1701
|
+
lastName: string;
|
|
1702
|
+
}[] | undefined;
|
|
1331
1703
|
} | null | undefined;
|
|
1332
1704
|
canImpersonateUsers?: {
|
|
1333
1705
|
id: string;
|
|
@@ -1344,28 +1716,37 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1344
1716
|
}, {
|
|
1345
1717
|
limit: number;
|
|
1346
1718
|
items: {
|
|
1719
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
1347
1720
|
id: string;
|
|
1348
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1349
|
-
agentId: string;
|
|
1350
1721
|
createdAt: string | Date;
|
|
1351
1722
|
updatedAt: string | Date;
|
|
1723
|
+
createdBy: string;
|
|
1724
|
+
agentId: string;
|
|
1352
1725
|
agent: {
|
|
1726
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1353
1727
|
id: string;
|
|
1354
1728
|
firstName: string;
|
|
1355
1729
|
lastName: string;
|
|
1356
1730
|
email: string;
|
|
1357
1731
|
createdAt: string | Date;
|
|
1358
1732
|
updatedAt: string | Date;
|
|
1733
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1359
1734
|
phoneNumbers?: {
|
|
1360
1735
|
id: string;
|
|
1361
1736
|
phoneNumber: string;
|
|
1362
1737
|
description?: string | null | undefined;
|
|
1363
1738
|
isPrimary?: boolean | undefined;
|
|
1364
1739
|
}[] | undefined;
|
|
1365
|
-
|
|
1740
|
+
deletedAt?: string | Date | null | undefined;
|
|
1741
|
+
officeId?: string | null | undefined;
|
|
1366
1742
|
office?: {
|
|
1367
1743
|
id: string;
|
|
1368
1744
|
name: string;
|
|
1745
|
+
managers?: {
|
|
1746
|
+
id: string;
|
|
1747
|
+
firstName: string;
|
|
1748
|
+
lastName: string;
|
|
1749
|
+
}[] | undefined;
|
|
1369
1750
|
} | null | undefined;
|
|
1370
1751
|
canImpersonateUsers?: {
|
|
1371
1752
|
id: string;
|
|
@@ -1373,9 +1754,10 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1373
1754
|
lastName: string;
|
|
1374
1755
|
}[] | undefined;
|
|
1375
1756
|
};
|
|
1757
|
+
clientId: string;
|
|
1376
1758
|
client: {
|
|
1377
|
-
id: string;
|
|
1378
1759
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1760
|
+
id: string;
|
|
1379
1761
|
name: string;
|
|
1380
1762
|
createdAt: string | Date;
|
|
1381
1763
|
updatedAt: string | Date;
|
|
@@ -1394,26 +1776,32 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1394
1776
|
agentId: string;
|
|
1395
1777
|
} | null | undefined;
|
|
1396
1778
|
};
|
|
1397
|
-
clientId: string;
|
|
1398
|
-
createdBy: string;
|
|
1399
1779
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1400
1780
|
creator: {
|
|
1781
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1401
1782
|
id: string;
|
|
1402
1783
|
firstName: string;
|
|
1403
1784
|
lastName: string;
|
|
1404
1785
|
email: string;
|
|
1405
1786
|
createdAt: string | Date;
|
|
1406
1787
|
updatedAt: string | Date;
|
|
1788
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1407
1789
|
phoneNumbers?: {
|
|
1408
1790
|
id: string;
|
|
1409
1791
|
phoneNumber: string;
|
|
1410
1792
|
description?: string | null | undefined;
|
|
1411
1793
|
isPrimary?: boolean | undefined;
|
|
1412
1794
|
}[] | undefined;
|
|
1413
|
-
|
|
1795
|
+
deletedAt?: string | Date | null | undefined;
|
|
1796
|
+
officeId?: string | null | undefined;
|
|
1414
1797
|
office?: {
|
|
1415
1798
|
id: string;
|
|
1416
1799
|
name: string;
|
|
1800
|
+
managers?: {
|
|
1801
|
+
id: string;
|
|
1802
|
+
firstName: string;
|
|
1803
|
+
lastName: string;
|
|
1804
|
+
}[] | undefined;
|
|
1417
1805
|
} | null | undefined;
|
|
1418
1806
|
canImpersonateUsers?: {
|
|
1419
1807
|
id: string;
|
|
@@ -1425,22 +1813,30 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
1425
1813
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1426
1814
|
reviewedBy?: string | null | undefined;
|
|
1427
1815
|
reviewer?: {
|
|
1816
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1428
1817
|
id: string;
|
|
1429
1818
|
firstName: string;
|
|
1430
1819
|
lastName: string;
|
|
1431
1820
|
email: string;
|
|
1432
1821
|
createdAt: string | Date;
|
|
1433
1822
|
updatedAt: string | Date;
|
|
1823
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1434
1824
|
phoneNumbers?: {
|
|
1435
1825
|
id: string;
|
|
1436
1826
|
phoneNumber: string;
|
|
1437
1827
|
description?: string | null | undefined;
|
|
1438
1828
|
isPrimary?: boolean | undefined;
|
|
1439
1829
|
}[] | undefined;
|
|
1440
|
-
|
|
1830
|
+
deletedAt?: string | Date | null | undefined;
|
|
1831
|
+
officeId?: string | null | undefined;
|
|
1441
1832
|
office?: {
|
|
1442
1833
|
id: string;
|
|
1443
1834
|
name: string;
|
|
1835
|
+
managers?: {
|
|
1836
|
+
id: string;
|
|
1837
|
+
firstName: string;
|
|
1838
|
+
lastName: string;
|
|
1839
|
+
}[] | undefined;
|
|
1444
1840
|
} | null | undefined;
|
|
1445
1841
|
canImpersonateUsers?: {
|
|
1446
1842
|
id: string;
|
|
@@ -1463,6 +1859,9 @@ export type ApplyChanges = z.infer<typeof ApplyChangesSchema>;
|
|
|
1463
1859
|
export type PaginatedAgentClientLinkResponse = z.infer<typeof PaginatedAgentClientLinkResponseSchema>;
|
|
1464
1860
|
export declare const agentClientLinksContract: {
|
|
1465
1861
|
findAll: {
|
|
1862
|
+
metadata: {
|
|
1863
|
+
tags: string[];
|
|
1864
|
+
};
|
|
1466
1865
|
query: z.ZodObject<{
|
|
1467
1866
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1468
1867
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1478,23 +1877,20 @@ export declare const agentClientLinksContract: {
|
|
|
1478
1877
|
page: number;
|
|
1479
1878
|
sortBy: "createdAt";
|
|
1480
1879
|
sortOrder: "ASC" | "DESC";
|
|
1481
|
-
status?: "
|
|
1880
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
1482
1881
|
agentId?: string | undefined;
|
|
1483
1882
|
clientId?: string | undefined;
|
|
1484
1883
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
1485
1884
|
}, {
|
|
1486
|
-
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
1487
|
-
agentId?: string | undefined;
|
|
1488
1885
|
limit?: number | undefined;
|
|
1489
1886
|
page?: number | undefined;
|
|
1887
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
1490
1888
|
sortBy?: "createdAt" | undefined;
|
|
1491
1889
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1890
|
+
agentId?: string | undefined;
|
|
1492
1891
|
clientId?: string | undefined;
|
|
1493
1892
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
1494
1893
|
}>;
|
|
1495
|
-
metadata: {
|
|
1496
|
-
tags: string[];
|
|
1497
|
-
};
|
|
1498
1894
|
summary: "Get all agent-client links";
|
|
1499
1895
|
method: "GET";
|
|
1500
1896
|
path: "/v2/agent-client-links";
|
|
@@ -1638,8 +2034,8 @@ export declare const agentClientLinksContract: {
|
|
|
1638
2034
|
agentId: string;
|
|
1639
2035
|
}>>>;
|
|
1640
2036
|
}, "strip", z.ZodTypeAny, {
|
|
1641
|
-
id: string;
|
|
1642
2037
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2038
|
+
id: string;
|
|
1643
2039
|
name: string;
|
|
1644
2040
|
createdAt: string;
|
|
1645
2041
|
updatedAt: string;
|
|
@@ -1658,8 +2054,8 @@ export declare const agentClientLinksContract: {
|
|
|
1658
2054
|
agentId: string;
|
|
1659
2055
|
} | null | undefined;
|
|
1660
2056
|
}, {
|
|
1661
|
-
id: string;
|
|
1662
2057
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2058
|
+
id: string;
|
|
1663
2059
|
name: string;
|
|
1664
2060
|
createdAt: string | Date;
|
|
1665
2061
|
updatedAt: string | Date;
|
|
@@ -1700,16 +2096,40 @@ export declare const agentClientLinksContract: {
|
|
|
1700
2096
|
description?: string | null | undefined;
|
|
1701
2097
|
isPrimary?: boolean | undefined;
|
|
1702
2098
|
}>, "many">>>;
|
|
1703
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2099
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2100
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1704
2101
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1705
2102
|
id: z.ZodString;
|
|
1706
2103
|
name: z.ZodString;
|
|
2104
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2105
|
+
id: z.ZodString;
|
|
2106
|
+
firstName: z.ZodString;
|
|
2107
|
+
lastName: z.ZodString;
|
|
2108
|
+
}, "strip", z.ZodTypeAny, {
|
|
2109
|
+
id: string;
|
|
2110
|
+
firstName: string;
|
|
2111
|
+
lastName: string;
|
|
2112
|
+
}, {
|
|
2113
|
+
id: string;
|
|
2114
|
+
firstName: string;
|
|
2115
|
+
lastName: string;
|
|
2116
|
+
}>, "many">>;
|
|
1707
2117
|
}, "strip", z.ZodTypeAny, {
|
|
1708
2118
|
id: string;
|
|
1709
2119
|
name: string;
|
|
2120
|
+
managers?: {
|
|
2121
|
+
id: string;
|
|
2122
|
+
firstName: string;
|
|
2123
|
+
lastName: string;
|
|
2124
|
+
}[] | undefined;
|
|
1710
2125
|
}, {
|
|
1711
2126
|
id: string;
|
|
1712
2127
|
name: string;
|
|
2128
|
+
managers?: {
|
|
2129
|
+
id: string;
|
|
2130
|
+
firstName: string;
|
|
2131
|
+
lastName: string;
|
|
2132
|
+
}[] | undefined;
|
|
1713
2133
|
}>>>;
|
|
1714
2134
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1715
2135
|
id: z.ZodString;
|
|
@@ -1724,25 +2144,35 @@ export declare const agentClientLinksContract: {
|
|
|
1724
2144
|
firstName: string;
|
|
1725
2145
|
lastName: string;
|
|
1726
2146
|
}>, "many">>;
|
|
2147
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1727
2148
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1728
2149
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2150
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1729
2151
|
}, "strip", z.ZodTypeAny, {
|
|
2152
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1730
2153
|
id: string;
|
|
1731
2154
|
firstName: string;
|
|
1732
2155
|
lastName: string;
|
|
1733
2156
|
email: string;
|
|
2157
|
+
createdAt: string;
|
|
2158
|
+
updatedAt: string;
|
|
1734
2159
|
phoneNumbers: {
|
|
1735
2160
|
id: string;
|
|
1736
2161
|
phoneNumber: string;
|
|
1737
2162
|
isPrimary: boolean;
|
|
1738
2163
|
description?: string | null | undefined;
|
|
1739
2164
|
}[];
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
2165
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2166
|
+
deletedAt?: string | null | undefined;
|
|
2167
|
+
officeId?: string | null | undefined;
|
|
1743
2168
|
office?: {
|
|
1744
2169
|
id: string;
|
|
1745
2170
|
name: string;
|
|
2171
|
+
managers?: {
|
|
2172
|
+
id: string;
|
|
2173
|
+
firstName: string;
|
|
2174
|
+
lastName: string;
|
|
2175
|
+
}[] | undefined;
|
|
1746
2176
|
} | null | undefined;
|
|
1747
2177
|
canImpersonateUsers?: {
|
|
1748
2178
|
id: string;
|
|
@@ -1750,22 +2180,30 @@ export declare const agentClientLinksContract: {
|
|
|
1750
2180
|
lastName: string;
|
|
1751
2181
|
}[] | undefined;
|
|
1752
2182
|
}, {
|
|
2183
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1753
2184
|
id: string;
|
|
1754
2185
|
firstName: string;
|
|
1755
2186
|
lastName: string;
|
|
1756
2187
|
email: string;
|
|
1757
2188
|
createdAt: string | Date;
|
|
1758
2189
|
updatedAt: string | Date;
|
|
2190
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1759
2191
|
phoneNumbers?: {
|
|
1760
2192
|
id: string;
|
|
1761
2193
|
phoneNumber: string;
|
|
1762
2194
|
description?: string | null | undefined;
|
|
1763
2195
|
isPrimary?: boolean | undefined;
|
|
1764
2196
|
}[] | undefined;
|
|
1765
|
-
|
|
2197
|
+
deletedAt?: string | Date | null | undefined;
|
|
2198
|
+
officeId?: string | null | undefined;
|
|
1766
2199
|
office?: {
|
|
1767
2200
|
id: string;
|
|
1768
2201
|
name: string;
|
|
2202
|
+
managers?: {
|
|
2203
|
+
id: string;
|
|
2204
|
+
firstName: string;
|
|
2205
|
+
lastName: string;
|
|
2206
|
+
}[] | undefined;
|
|
1769
2207
|
} | null | undefined;
|
|
1770
2208
|
canImpersonateUsers?: {
|
|
1771
2209
|
id: string;
|
|
@@ -1799,16 +2237,40 @@ export declare const agentClientLinksContract: {
|
|
|
1799
2237
|
description?: string | null | undefined;
|
|
1800
2238
|
isPrimary?: boolean | undefined;
|
|
1801
2239
|
}>, "many">>>;
|
|
1802
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2240
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2241
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1803
2242
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1804
2243
|
id: z.ZodString;
|
|
1805
2244
|
name: z.ZodString;
|
|
2245
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2246
|
+
id: z.ZodString;
|
|
2247
|
+
firstName: z.ZodString;
|
|
2248
|
+
lastName: z.ZodString;
|
|
2249
|
+
}, "strip", z.ZodTypeAny, {
|
|
2250
|
+
id: string;
|
|
2251
|
+
firstName: string;
|
|
2252
|
+
lastName: string;
|
|
2253
|
+
}, {
|
|
2254
|
+
id: string;
|
|
2255
|
+
firstName: string;
|
|
2256
|
+
lastName: string;
|
|
2257
|
+
}>, "many">>;
|
|
1806
2258
|
}, "strip", z.ZodTypeAny, {
|
|
1807
2259
|
id: string;
|
|
1808
2260
|
name: string;
|
|
2261
|
+
managers?: {
|
|
2262
|
+
id: string;
|
|
2263
|
+
firstName: string;
|
|
2264
|
+
lastName: string;
|
|
2265
|
+
}[] | undefined;
|
|
1809
2266
|
}, {
|
|
1810
2267
|
id: string;
|
|
1811
2268
|
name: string;
|
|
2269
|
+
managers?: {
|
|
2270
|
+
id: string;
|
|
2271
|
+
firstName: string;
|
|
2272
|
+
lastName: string;
|
|
2273
|
+
}[] | undefined;
|
|
1812
2274
|
}>>>;
|
|
1813
2275
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1814
2276
|
id: z.ZodString;
|
|
@@ -1823,25 +2285,35 @@ export declare const agentClientLinksContract: {
|
|
|
1823
2285
|
firstName: string;
|
|
1824
2286
|
lastName: string;
|
|
1825
2287
|
}>, "many">>;
|
|
2288
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1826
2289
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1827
2290
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2291
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1828
2292
|
}, "strip", z.ZodTypeAny, {
|
|
2293
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1829
2294
|
id: string;
|
|
1830
2295
|
firstName: string;
|
|
1831
2296
|
lastName: string;
|
|
1832
2297
|
email: string;
|
|
2298
|
+
createdAt: string;
|
|
2299
|
+
updatedAt: string;
|
|
1833
2300
|
phoneNumbers: {
|
|
1834
2301
|
id: string;
|
|
1835
2302
|
phoneNumber: string;
|
|
1836
2303
|
isPrimary: boolean;
|
|
1837
2304
|
description?: string | null | undefined;
|
|
1838
2305
|
}[];
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
2306
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2307
|
+
deletedAt?: string | null | undefined;
|
|
2308
|
+
officeId?: string | null | undefined;
|
|
1842
2309
|
office?: {
|
|
1843
2310
|
id: string;
|
|
1844
2311
|
name: string;
|
|
2312
|
+
managers?: {
|
|
2313
|
+
id: string;
|
|
2314
|
+
firstName: string;
|
|
2315
|
+
lastName: string;
|
|
2316
|
+
}[] | undefined;
|
|
1845
2317
|
} | null | undefined;
|
|
1846
2318
|
canImpersonateUsers?: {
|
|
1847
2319
|
id: string;
|
|
@@ -1849,22 +2321,30 @@ export declare const agentClientLinksContract: {
|
|
|
1849
2321
|
lastName: string;
|
|
1850
2322
|
}[] | undefined;
|
|
1851
2323
|
}, {
|
|
2324
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1852
2325
|
id: string;
|
|
1853
2326
|
firstName: string;
|
|
1854
2327
|
lastName: string;
|
|
1855
2328
|
email: string;
|
|
1856
2329
|
createdAt: string | Date;
|
|
1857
2330
|
updatedAt: string | Date;
|
|
2331
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1858
2332
|
phoneNumbers?: {
|
|
1859
2333
|
id: string;
|
|
1860
2334
|
phoneNumber: string;
|
|
1861
2335
|
description?: string | null | undefined;
|
|
1862
2336
|
isPrimary?: boolean | undefined;
|
|
1863
2337
|
}[] | undefined;
|
|
1864
|
-
|
|
2338
|
+
deletedAt?: string | Date | null | undefined;
|
|
2339
|
+
officeId?: string | null | undefined;
|
|
1865
2340
|
office?: {
|
|
1866
2341
|
id: string;
|
|
1867
2342
|
name: string;
|
|
2343
|
+
managers?: {
|
|
2344
|
+
id: string;
|
|
2345
|
+
firstName: string;
|
|
2346
|
+
lastName: string;
|
|
2347
|
+
}[] | undefined;
|
|
1868
2348
|
} | null | undefined;
|
|
1869
2349
|
canImpersonateUsers?: {
|
|
1870
2350
|
id: string;
|
|
@@ -1895,16 +2375,40 @@ export declare const agentClientLinksContract: {
|
|
|
1895
2375
|
description?: string | null | undefined;
|
|
1896
2376
|
isPrimary?: boolean | undefined;
|
|
1897
2377
|
}>, "many">>>;
|
|
1898
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2378
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2379
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1899
2380
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1900
2381
|
id: z.ZodString;
|
|
1901
2382
|
name: z.ZodString;
|
|
2383
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2384
|
+
id: z.ZodString;
|
|
2385
|
+
firstName: z.ZodString;
|
|
2386
|
+
lastName: z.ZodString;
|
|
2387
|
+
}, "strip", z.ZodTypeAny, {
|
|
2388
|
+
id: string;
|
|
2389
|
+
firstName: string;
|
|
2390
|
+
lastName: string;
|
|
2391
|
+
}, {
|
|
2392
|
+
id: string;
|
|
2393
|
+
firstName: string;
|
|
2394
|
+
lastName: string;
|
|
2395
|
+
}>, "many">>;
|
|
1902
2396
|
}, "strip", z.ZodTypeAny, {
|
|
1903
2397
|
id: string;
|
|
1904
2398
|
name: string;
|
|
2399
|
+
managers?: {
|
|
2400
|
+
id: string;
|
|
2401
|
+
firstName: string;
|
|
2402
|
+
lastName: string;
|
|
2403
|
+
}[] | undefined;
|
|
1905
2404
|
}, {
|
|
1906
2405
|
id: string;
|
|
1907
2406
|
name: string;
|
|
2407
|
+
managers?: {
|
|
2408
|
+
id: string;
|
|
2409
|
+
firstName: string;
|
|
2410
|
+
lastName: string;
|
|
2411
|
+
}[] | undefined;
|
|
1908
2412
|
}>>>;
|
|
1909
2413
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1910
2414
|
id: z.ZodString;
|
|
@@ -1919,25 +2423,35 @@ export declare const agentClientLinksContract: {
|
|
|
1919
2423
|
firstName: string;
|
|
1920
2424
|
lastName: string;
|
|
1921
2425
|
}>, "many">>;
|
|
2426
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1922
2427
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1923
2428
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2429
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1924
2430
|
}, "strip", z.ZodTypeAny, {
|
|
2431
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1925
2432
|
id: string;
|
|
1926
2433
|
firstName: string;
|
|
1927
2434
|
lastName: string;
|
|
1928
2435
|
email: string;
|
|
2436
|
+
createdAt: string;
|
|
2437
|
+
updatedAt: string;
|
|
1929
2438
|
phoneNumbers: {
|
|
1930
2439
|
id: string;
|
|
1931
2440
|
phoneNumber: string;
|
|
1932
2441
|
isPrimary: boolean;
|
|
1933
2442
|
description?: string | null | undefined;
|
|
1934
2443
|
}[];
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2444
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2445
|
+
deletedAt?: string | null | undefined;
|
|
2446
|
+
officeId?: string | null | undefined;
|
|
1938
2447
|
office?: {
|
|
1939
2448
|
id: string;
|
|
1940
2449
|
name: string;
|
|
2450
|
+
managers?: {
|
|
2451
|
+
id: string;
|
|
2452
|
+
firstName: string;
|
|
2453
|
+
lastName: string;
|
|
2454
|
+
}[] | undefined;
|
|
1941
2455
|
} | null | undefined;
|
|
1942
2456
|
canImpersonateUsers?: {
|
|
1943
2457
|
id: string;
|
|
@@ -1945,22 +2459,30 @@ export declare const agentClientLinksContract: {
|
|
|
1945
2459
|
lastName: string;
|
|
1946
2460
|
}[] | undefined;
|
|
1947
2461
|
}, {
|
|
2462
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1948
2463
|
id: string;
|
|
1949
2464
|
firstName: string;
|
|
1950
2465
|
lastName: string;
|
|
1951
2466
|
email: string;
|
|
1952
2467
|
createdAt: string | Date;
|
|
1953
2468
|
updatedAt: string | Date;
|
|
2469
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1954
2470
|
phoneNumbers?: {
|
|
1955
2471
|
id: string;
|
|
1956
2472
|
phoneNumber: string;
|
|
1957
2473
|
description?: string | null | undefined;
|
|
1958
2474
|
isPrimary?: boolean | undefined;
|
|
1959
2475
|
}[] | undefined;
|
|
1960
|
-
|
|
2476
|
+
deletedAt?: string | Date | null | undefined;
|
|
2477
|
+
officeId?: string | null | undefined;
|
|
1961
2478
|
office?: {
|
|
1962
2479
|
id: string;
|
|
1963
2480
|
name: string;
|
|
2481
|
+
managers?: {
|
|
2482
|
+
id: string;
|
|
2483
|
+
firstName: string;
|
|
2484
|
+
lastName: string;
|
|
2485
|
+
}[] | undefined;
|
|
1964
2486
|
} | null | undefined;
|
|
1965
2487
|
canImpersonateUsers?: {
|
|
1966
2488
|
id: string;
|
|
@@ -1971,28 +2493,37 @@ export declare const agentClientLinksContract: {
|
|
|
1971
2493
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1972
2494
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1973
2495
|
}, "strip", z.ZodTypeAny, {
|
|
2496
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
1974
2497
|
id: string;
|
|
1975
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1976
|
-
agentId: string;
|
|
1977
2498
|
createdAt: string;
|
|
1978
2499
|
updatedAt: string;
|
|
2500
|
+
createdBy: string;
|
|
2501
|
+
agentId: string;
|
|
1979
2502
|
agent: {
|
|
2503
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1980
2504
|
id: string;
|
|
1981
2505
|
firstName: string;
|
|
1982
2506
|
lastName: string;
|
|
1983
2507
|
email: string;
|
|
2508
|
+
createdAt: string;
|
|
2509
|
+
updatedAt: string;
|
|
1984
2510
|
phoneNumbers: {
|
|
1985
2511
|
id: string;
|
|
1986
2512
|
phoneNumber: string;
|
|
1987
2513
|
isPrimary: boolean;
|
|
1988
2514
|
description?: string | null | undefined;
|
|
1989
2515
|
}[];
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2516
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2517
|
+
deletedAt?: string | null | undefined;
|
|
2518
|
+
officeId?: string | null | undefined;
|
|
1993
2519
|
office?: {
|
|
1994
2520
|
id: string;
|
|
1995
2521
|
name: string;
|
|
2522
|
+
managers?: {
|
|
2523
|
+
id: string;
|
|
2524
|
+
firstName: string;
|
|
2525
|
+
lastName: string;
|
|
2526
|
+
}[] | undefined;
|
|
1996
2527
|
} | null | undefined;
|
|
1997
2528
|
canImpersonateUsers?: {
|
|
1998
2529
|
id: string;
|
|
@@ -2000,9 +2531,10 @@ export declare const agentClientLinksContract: {
|
|
|
2000
2531
|
lastName: string;
|
|
2001
2532
|
}[] | undefined;
|
|
2002
2533
|
};
|
|
2534
|
+
clientId: string;
|
|
2003
2535
|
client: {
|
|
2004
|
-
id: string;
|
|
2005
2536
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2537
|
+
id: string;
|
|
2006
2538
|
name: string;
|
|
2007
2539
|
createdAt: string;
|
|
2008
2540
|
updatedAt: string;
|
|
@@ -2021,26 +2553,32 @@ export declare const agentClientLinksContract: {
|
|
|
2021
2553
|
agentId: string;
|
|
2022
2554
|
} | null | undefined;
|
|
2023
2555
|
};
|
|
2024
|
-
clientId: string;
|
|
2025
|
-
createdBy: string;
|
|
2026
2556
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2027
2557
|
creator: {
|
|
2558
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2028
2559
|
id: string;
|
|
2029
2560
|
firstName: string;
|
|
2030
2561
|
lastName: string;
|
|
2031
2562
|
email: string;
|
|
2563
|
+
createdAt: string;
|
|
2564
|
+
updatedAt: string;
|
|
2032
2565
|
phoneNumbers: {
|
|
2033
2566
|
id: string;
|
|
2034
2567
|
phoneNumber: string;
|
|
2035
2568
|
isPrimary: boolean;
|
|
2036
2569
|
description?: string | null | undefined;
|
|
2037
2570
|
}[];
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2571
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2572
|
+
deletedAt?: string | null | undefined;
|
|
2573
|
+
officeId?: string | null | undefined;
|
|
2041
2574
|
office?: {
|
|
2042
2575
|
id: string;
|
|
2043
2576
|
name: string;
|
|
2577
|
+
managers?: {
|
|
2578
|
+
id: string;
|
|
2579
|
+
firstName: string;
|
|
2580
|
+
lastName: string;
|
|
2581
|
+
}[] | undefined;
|
|
2044
2582
|
} | null | undefined;
|
|
2045
2583
|
canImpersonateUsers?: {
|
|
2046
2584
|
id: string;
|
|
@@ -2052,22 +2590,30 @@ export declare const agentClientLinksContract: {
|
|
|
2052
2590
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2053
2591
|
reviewedBy?: string | null | undefined;
|
|
2054
2592
|
reviewer?: {
|
|
2593
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2055
2594
|
id: string;
|
|
2056
2595
|
firstName: string;
|
|
2057
2596
|
lastName: string;
|
|
2058
2597
|
email: string;
|
|
2598
|
+
createdAt: string;
|
|
2599
|
+
updatedAt: string;
|
|
2059
2600
|
phoneNumbers: {
|
|
2060
2601
|
id: string;
|
|
2061
2602
|
phoneNumber: string;
|
|
2062
2603
|
isPrimary: boolean;
|
|
2063
2604
|
description?: string | null | undefined;
|
|
2064
2605
|
}[];
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2606
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2607
|
+
deletedAt?: string | null | undefined;
|
|
2608
|
+
officeId?: string | null | undefined;
|
|
2068
2609
|
office?: {
|
|
2069
2610
|
id: string;
|
|
2070
2611
|
name: string;
|
|
2612
|
+
managers?: {
|
|
2613
|
+
id: string;
|
|
2614
|
+
firstName: string;
|
|
2615
|
+
lastName: string;
|
|
2616
|
+
}[] | undefined;
|
|
2071
2617
|
} | null | undefined;
|
|
2072
2618
|
canImpersonateUsers?: {
|
|
2073
2619
|
id: string;
|
|
@@ -2077,28 +2623,37 @@ export declare const agentClientLinksContract: {
|
|
|
2077
2623
|
} | null | undefined;
|
|
2078
2624
|
reviewedAt?: string | null | undefined;
|
|
2079
2625
|
}, {
|
|
2626
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
2080
2627
|
id: string;
|
|
2081
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2082
|
-
agentId: string;
|
|
2083
2628
|
createdAt: string | Date;
|
|
2084
2629
|
updatedAt: string | Date;
|
|
2630
|
+
createdBy: string;
|
|
2631
|
+
agentId: string;
|
|
2085
2632
|
agent: {
|
|
2633
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2086
2634
|
id: string;
|
|
2087
2635
|
firstName: string;
|
|
2088
2636
|
lastName: string;
|
|
2089
2637
|
email: string;
|
|
2090
2638
|
createdAt: string | Date;
|
|
2091
2639
|
updatedAt: string | Date;
|
|
2640
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2092
2641
|
phoneNumbers?: {
|
|
2093
2642
|
id: string;
|
|
2094
2643
|
phoneNumber: string;
|
|
2095
2644
|
description?: string | null | undefined;
|
|
2096
2645
|
isPrimary?: boolean | undefined;
|
|
2097
2646
|
}[] | undefined;
|
|
2098
|
-
|
|
2647
|
+
deletedAt?: string | Date | null | undefined;
|
|
2648
|
+
officeId?: string | null | undefined;
|
|
2099
2649
|
office?: {
|
|
2100
2650
|
id: string;
|
|
2101
2651
|
name: string;
|
|
2652
|
+
managers?: {
|
|
2653
|
+
id: string;
|
|
2654
|
+
firstName: string;
|
|
2655
|
+
lastName: string;
|
|
2656
|
+
}[] | undefined;
|
|
2102
2657
|
} | null | undefined;
|
|
2103
2658
|
canImpersonateUsers?: {
|
|
2104
2659
|
id: string;
|
|
@@ -2106,9 +2661,10 @@ export declare const agentClientLinksContract: {
|
|
|
2106
2661
|
lastName: string;
|
|
2107
2662
|
}[] | undefined;
|
|
2108
2663
|
};
|
|
2664
|
+
clientId: string;
|
|
2109
2665
|
client: {
|
|
2110
|
-
id: string;
|
|
2111
2666
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2667
|
+
id: string;
|
|
2112
2668
|
name: string;
|
|
2113
2669
|
createdAt: string | Date;
|
|
2114
2670
|
updatedAt: string | Date;
|
|
@@ -2127,26 +2683,32 @@ export declare const agentClientLinksContract: {
|
|
|
2127
2683
|
agentId: string;
|
|
2128
2684
|
} | null | undefined;
|
|
2129
2685
|
};
|
|
2130
|
-
clientId: string;
|
|
2131
|
-
createdBy: string;
|
|
2132
2686
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2133
2687
|
creator: {
|
|
2688
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2134
2689
|
id: string;
|
|
2135
2690
|
firstName: string;
|
|
2136
2691
|
lastName: string;
|
|
2137
2692
|
email: string;
|
|
2138
2693
|
createdAt: string | Date;
|
|
2139
2694
|
updatedAt: string | Date;
|
|
2695
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2140
2696
|
phoneNumbers?: {
|
|
2141
2697
|
id: string;
|
|
2142
2698
|
phoneNumber: string;
|
|
2143
2699
|
description?: string | null | undefined;
|
|
2144
2700
|
isPrimary?: boolean | undefined;
|
|
2145
2701
|
}[] | undefined;
|
|
2146
|
-
|
|
2702
|
+
deletedAt?: string | Date | null | undefined;
|
|
2703
|
+
officeId?: string | null | undefined;
|
|
2147
2704
|
office?: {
|
|
2148
2705
|
id: string;
|
|
2149
2706
|
name: string;
|
|
2707
|
+
managers?: {
|
|
2708
|
+
id: string;
|
|
2709
|
+
firstName: string;
|
|
2710
|
+
lastName: string;
|
|
2711
|
+
}[] | undefined;
|
|
2150
2712
|
} | null | undefined;
|
|
2151
2713
|
canImpersonateUsers?: {
|
|
2152
2714
|
id: string;
|
|
@@ -2158,22 +2720,30 @@ export declare const agentClientLinksContract: {
|
|
|
2158
2720
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2159
2721
|
reviewedBy?: string | null | undefined;
|
|
2160
2722
|
reviewer?: {
|
|
2723
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2161
2724
|
id: string;
|
|
2162
2725
|
firstName: string;
|
|
2163
2726
|
lastName: string;
|
|
2164
2727
|
email: string;
|
|
2165
2728
|
createdAt: string | Date;
|
|
2166
2729
|
updatedAt: string | Date;
|
|
2730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2167
2731
|
phoneNumbers?: {
|
|
2168
2732
|
id: string;
|
|
2169
2733
|
phoneNumber: string;
|
|
2170
2734
|
description?: string | null | undefined;
|
|
2171
2735
|
isPrimary?: boolean | undefined;
|
|
2172
2736
|
}[] | undefined;
|
|
2173
|
-
|
|
2737
|
+
deletedAt?: string | Date | null | undefined;
|
|
2738
|
+
officeId?: string | null | undefined;
|
|
2174
2739
|
office?: {
|
|
2175
2740
|
id: string;
|
|
2176
2741
|
name: string;
|
|
2742
|
+
managers?: {
|
|
2743
|
+
id: string;
|
|
2744
|
+
firstName: string;
|
|
2745
|
+
lastName: string;
|
|
2746
|
+
}[] | undefined;
|
|
2177
2747
|
} | null | undefined;
|
|
2178
2748
|
canImpersonateUsers?: {
|
|
2179
2749
|
id: string;
|
|
@@ -2191,28 +2761,37 @@ export declare const agentClientLinksContract: {
|
|
|
2191
2761
|
}, "strip", z.ZodTypeAny, {
|
|
2192
2762
|
limit: number;
|
|
2193
2763
|
items: {
|
|
2764
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
2194
2765
|
id: string;
|
|
2195
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2196
|
-
agentId: string;
|
|
2197
2766
|
createdAt: string;
|
|
2198
2767
|
updatedAt: string;
|
|
2768
|
+
createdBy: string;
|
|
2769
|
+
agentId: string;
|
|
2199
2770
|
agent: {
|
|
2771
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2200
2772
|
id: string;
|
|
2201
2773
|
firstName: string;
|
|
2202
2774
|
lastName: string;
|
|
2203
2775
|
email: string;
|
|
2776
|
+
createdAt: string;
|
|
2777
|
+
updatedAt: string;
|
|
2204
2778
|
phoneNumbers: {
|
|
2205
2779
|
id: string;
|
|
2206
2780
|
phoneNumber: string;
|
|
2207
2781
|
isPrimary: boolean;
|
|
2208
2782
|
description?: string | null | undefined;
|
|
2209
2783
|
}[];
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2784
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2785
|
+
deletedAt?: string | null | undefined;
|
|
2786
|
+
officeId?: string | null | undefined;
|
|
2213
2787
|
office?: {
|
|
2214
2788
|
id: string;
|
|
2215
2789
|
name: string;
|
|
2790
|
+
managers?: {
|
|
2791
|
+
id: string;
|
|
2792
|
+
firstName: string;
|
|
2793
|
+
lastName: string;
|
|
2794
|
+
}[] | undefined;
|
|
2216
2795
|
} | null | undefined;
|
|
2217
2796
|
canImpersonateUsers?: {
|
|
2218
2797
|
id: string;
|
|
@@ -2220,9 +2799,10 @@ export declare const agentClientLinksContract: {
|
|
|
2220
2799
|
lastName: string;
|
|
2221
2800
|
}[] | undefined;
|
|
2222
2801
|
};
|
|
2802
|
+
clientId: string;
|
|
2223
2803
|
client: {
|
|
2224
|
-
id: string;
|
|
2225
2804
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2805
|
+
id: string;
|
|
2226
2806
|
name: string;
|
|
2227
2807
|
createdAt: string;
|
|
2228
2808
|
updatedAt: string;
|
|
@@ -2241,26 +2821,32 @@ export declare const agentClientLinksContract: {
|
|
|
2241
2821
|
agentId: string;
|
|
2242
2822
|
} | null | undefined;
|
|
2243
2823
|
};
|
|
2244
|
-
clientId: string;
|
|
2245
|
-
createdBy: string;
|
|
2246
2824
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2247
2825
|
creator: {
|
|
2826
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2248
2827
|
id: string;
|
|
2249
2828
|
firstName: string;
|
|
2250
2829
|
lastName: string;
|
|
2251
2830
|
email: string;
|
|
2831
|
+
createdAt: string;
|
|
2832
|
+
updatedAt: string;
|
|
2252
2833
|
phoneNumbers: {
|
|
2253
2834
|
id: string;
|
|
2254
2835
|
phoneNumber: string;
|
|
2255
2836
|
isPrimary: boolean;
|
|
2256
2837
|
description?: string | null | undefined;
|
|
2257
2838
|
}[];
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2839
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2840
|
+
deletedAt?: string | null | undefined;
|
|
2841
|
+
officeId?: string | null | undefined;
|
|
2261
2842
|
office?: {
|
|
2262
2843
|
id: string;
|
|
2263
2844
|
name: string;
|
|
2845
|
+
managers?: {
|
|
2846
|
+
id: string;
|
|
2847
|
+
firstName: string;
|
|
2848
|
+
lastName: string;
|
|
2849
|
+
}[] | undefined;
|
|
2264
2850
|
} | null | undefined;
|
|
2265
2851
|
canImpersonateUsers?: {
|
|
2266
2852
|
id: string;
|
|
@@ -2272,22 +2858,30 @@ export declare const agentClientLinksContract: {
|
|
|
2272
2858
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2273
2859
|
reviewedBy?: string | null | undefined;
|
|
2274
2860
|
reviewer?: {
|
|
2861
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2275
2862
|
id: string;
|
|
2276
2863
|
firstName: string;
|
|
2277
2864
|
lastName: string;
|
|
2278
2865
|
email: string;
|
|
2866
|
+
createdAt: string;
|
|
2867
|
+
updatedAt: string;
|
|
2279
2868
|
phoneNumbers: {
|
|
2280
2869
|
id: string;
|
|
2281
2870
|
phoneNumber: string;
|
|
2282
2871
|
isPrimary: boolean;
|
|
2283
2872
|
description?: string | null | undefined;
|
|
2284
2873
|
}[];
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2874
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2875
|
+
deletedAt?: string | null | undefined;
|
|
2876
|
+
officeId?: string | null | undefined;
|
|
2288
2877
|
office?: {
|
|
2289
2878
|
id: string;
|
|
2290
2879
|
name: string;
|
|
2880
|
+
managers?: {
|
|
2881
|
+
id: string;
|
|
2882
|
+
firstName: string;
|
|
2883
|
+
lastName: string;
|
|
2884
|
+
}[] | undefined;
|
|
2291
2885
|
} | null | undefined;
|
|
2292
2886
|
canImpersonateUsers?: {
|
|
2293
2887
|
id: string;
|
|
@@ -2304,28 +2898,37 @@ export declare const agentClientLinksContract: {
|
|
|
2304
2898
|
}, {
|
|
2305
2899
|
limit: number;
|
|
2306
2900
|
items: {
|
|
2901
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
2307
2902
|
id: string;
|
|
2308
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2309
|
-
agentId: string;
|
|
2310
2903
|
createdAt: string | Date;
|
|
2311
2904
|
updatedAt: string | Date;
|
|
2905
|
+
createdBy: string;
|
|
2906
|
+
agentId: string;
|
|
2312
2907
|
agent: {
|
|
2908
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2313
2909
|
id: string;
|
|
2314
2910
|
firstName: string;
|
|
2315
2911
|
lastName: string;
|
|
2316
2912
|
email: string;
|
|
2317
2913
|
createdAt: string | Date;
|
|
2318
2914
|
updatedAt: string | Date;
|
|
2915
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2319
2916
|
phoneNumbers?: {
|
|
2320
2917
|
id: string;
|
|
2321
2918
|
phoneNumber: string;
|
|
2322
2919
|
description?: string | null | undefined;
|
|
2323
2920
|
isPrimary?: boolean | undefined;
|
|
2324
2921
|
}[] | undefined;
|
|
2325
|
-
|
|
2922
|
+
deletedAt?: string | Date | null | undefined;
|
|
2923
|
+
officeId?: string | null | undefined;
|
|
2326
2924
|
office?: {
|
|
2327
2925
|
id: string;
|
|
2328
2926
|
name: string;
|
|
2927
|
+
managers?: {
|
|
2928
|
+
id: string;
|
|
2929
|
+
firstName: string;
|
|
2930
|
+
lastName: string;
|
|
2931
|
+
}[] | undefined;
|
|
2329
2932
|
} | null | undefined;
|
|
2330
2933
|
canImpersonateUsers?: {
|
|
2331
2934
|
id: string;
|
|
@@ -2333,9 +2936,10 @@ export declare const agentClientLinksContract: {
|
|
|
2333
2936
|
lastName: string;
|
|
2334
2937
|
}[] | undefined;
|
|
2335
2938
|
};
|
|
2939
|
+
clientId: string;
|
|
2336
2940
|
client: {
|
|
2337
|
-
id: string;
|
|
2338
2941
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2942
|
+
id: string;
|
|
2339
2943
|
name: string;
|
|
2340
2944
|
createdAt: string | Date;
|
|
2341
2945
|
updatedAt: string | Date;
|
|
@@ -2354,26 +2958,32 @@ export declare const agentClientLinksContract: {
|
|
|
2354
2958
|
agentId: string;
|
|
2355
2959
|
} | null | undefined;
|
|
2356
2960
|
};
|
|
2357
|
-
clientId: string;
|
|
2358
|
-
createdBy: string;
|
|
2359
2961
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2360
2962
|
creator: {
|
|
2963
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2361
2964
|
id: string;
|
|
2362
2965
|
firstName: string;
|
|
2363
2966
|
lastName: string;
|
|
2364
2967
|
email: string;
|
|
2365
2968
|
createdAt: string | Date;
|
|
2366
2969
|
updatedAt: string | Date;
|
|
2970
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2367
2971
|
phoneNumbers?: {
|
|
2368
2972
|
id: string;
|
|
2369
2973
|
phoneNumber: string;
|
|
2370
2974
|
description?: string | null | undefined;
|
|
2371
2975
|
isPrimary?: boolean | undefined;
|
|
2372
2976
|
}[] | undefined;
|
|
2373
|
-
|
|
2977
|
+
deletedAt?: string | Date | null | undefined;
|
|
2978
|
+
officeId?: string | null | undefined;
|
|
2374
2979
|
office?: {
|
|
2375
2980
|
id: string;
|
|
2376
2981
|
name: string;
|
|
2982
|
+
managers?: {
|
|
2983
|
+
id: string;
|
|
2984
|
+
firstName: string;
|
|
2985
|
+
lastName: string;
|
|
2986
|
+
}[] | undefined;
|
|
2377
2987
|
} | null | undefined;
|
|
2378
2988
|
canImpersonateUsers?: {
|
|
2379
2989
|
id: string;
|
|
@@ -2385,22 +2995,30 @@ export declare const agentClientLinksContract: {
|
|
|
2385
2995
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2386
2996
|
reviewedBy?: string | null | undefined;
|
|
2387
2997
|
reviewer?: {
|
|
2998
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2388
2999
|
id: string;
|
|
2389
3000
|
firstName: string;
|
|
2390
3001
|
lastName: string;
|
|
2391
3002
|
email: string;
|
|
2392
3003
|
createdAt: string | Date;
|
|
2393
3004
|
updatedAt: string | Date;
|
|
3005
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2394
3006
|
phoneNumbers?: {
|
|
2395
3007
|
id: string;
|
|
2396
3008
|
phoneNumber: string;
|
|
2397
3009
|
description?: string | null | undefined;
|
|
2398
3010
|
isPrimary?: boolean | undefined;
|
|
2399
3011
|
}[] | undefined;
|
|
2400
|
-
|
|
3012
|
+
deletedAt?: string | Date | null | undefined;
|
|
3013
|
+
officeId?: string | null | undefined;
|
|
2401
3014
|
office?: {
|
|
2402
3015
|
id: string;
|
|
2403
3016
|
name: string;
|
|
3017
|
+
managers?: {
|
|
3018
|
+
id: string;
|
|
3019
|
+
firstName: string;
|
|
3020
|
+
lastName: string;
|
|
3021
|
+
}[] | undefined;
|
|
2404
3022
|
} | null | undefined;
|
|
2405
3023
|
canImpersonateUsers?: {
|
|
2406
3024
|
id: string;
|
|
@@ -2570,8 +3188,8 @@ export declare const agentClientLinksContract: {
|
|
|
2570
3188
|
agentId: string;
|
|
2571
3189
|
}>>>;
|
|
2572
3190
|
}, "strip", z.ZodTypeAny, {
|
|
2573
|
-
id: string;
|
|
2574
3191
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
3192
|
+
id: string;
|
|
2575
3193
|
name: string;
|
|
2576
3194
|
createdAt: string;
|
|
2577
3195
|
updatedAt: string;
|
|
@@ -2590,8 +3208,8 @@ export declare const agentClientLinksContract: {
|
|
|
2590
3208
|
agentId: string;
|
|
2591
3209
|
} | null | undefined;
|
|
2592
3210
|
}, {
|
|
2593
|
-
id: string;
|
|
2594
3211
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
3212
|
+
id: string;
|
|
2595
3213
|
name: string;
|
|
2596
3214
|
createdAt: string | Date;
|
|
2597
3215
|
updatedAt: string | Date;
|
|
@@ -2632,16 +3250,40 @@ export declare const agentClientLinksContract: {
|
|
|
2632
3250
|
description?: string | null | undefined;
|
|
2633
3251
|
isPrimary?: boolean | undefined;
|
|
2634
3252
|
}>, "many">>>;
|
|
2635
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3253
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3254
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2636
3255
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2637
3256
|
id: z.ZodString;
|
|
2638
3257
|
name: z.ZodString;
|
|
3258
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3259
|
+
id: z.ZodString;
|
|
3260
|
+
firstName: z.ZodString;
|
|
3261
|
+
lastName: z.ZodString;
|
|
3262
|
+
}, "strip", z.ZodTypeAny, {
|
|
3263
|
+
id: string;
|
|
3264
|
+
firstName: string;
|
|
3265
|
+
lastName: string;
|
|
3266
|
+
}, {
|
|
3267
|
+
id: string;
|
|
3268
|
+
firstName: string;
|
|
3269
|
+
lastName: string;
|
|
3270
|
+
}>, "many">>;
|
|
2639
3271
|
}, "strip", z.ZodTypeAny, {
|
|
2640
3272
|
id: string;
|
|
2641
3273
|
name: string;
|
|
3274
|
+
managers?: {
|
|
3275
|
+
id: string;
|
|
3276
|
+
firstName: string;
|
|
3277
|
+
lastName: string;
|
|
3278
|
+
}[] | undefined;
|
|
2642
3279
|
}, {
|
|
2643
3280
|
id: string;
|
|
2644
3281
|
name: string;
|
|
3282
|
+
managers?: {
|
|
3283
|
+
id: string;
|
|
3284
|
+
firstName: string;
|
|
3285
|
+
lastName: string;
|
|
3286
|
+
}[] | undefined;
|
|
2645
3287
|
}>>>;
|
|
2646
3288
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2647
3289
|
id: z.ZodString;
|
|
@@ -2656,25 +3298,35 @@ export declare const agentClientLinksContract: {
|
|
|
2656
3298
|
firstName: string;
|
|
2657
3299
|
lastName: string;
|
|
2658
3300
|
}>, "many">>;
|
|
3301
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2659
3302
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2660
3303
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3304
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2661
3305
|
}, "strip", z.ZodTypeAny, {
|
|
3306
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2662
3307
|
id: string;
|
|
2663
3308
|
firstName: string;
|
|
2664
3309
|
lastName: string;
|
|
2665
3310
|
email: string;
|
|
3311
|
+
createdAt: string;
|
|
3312
|
+
updatedAt: string;
|
|
2666
3313
|
phoneNumbers: {
|
|
2667
3314
|
id: string;
|
|
2668
3315
|
phoneNumber: string;
|
|
2669
3316
|
isPrimary: boolean;
|
|
2670
3317
|
description?: string | null | undefined;
|
|
2671
3318
|
}[];
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
3319
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3320
|
+
deletedAt?: string | null | undefined;
|
|
3321
|
+
officeId?: string | null | undefined;
|
|
2675
3322
|
office?: {
|
|
2676
3323
|
id: string;
|
|
2677
3324
|
name: string;
|
|
3325
|
+
managers?: {
|
|
3326
|
+
id: string;
|
|
3327
|
+
firstName: string;
|
|
3328
|
+
lastName: string;
|
|
3329
|
+
}[] | undefined;
|
|
2678
3330
|
} | null | undefined;
|
|
2679
3331
|
canImpersonateUsers?: {
|
|
2680
3332
|
id: string;
|
|
@@ -2682,22 +3334,30 @@ export declare const agentClientLinksContract: {
|
|
|
2682
3334
|
lastName: string;
|
|
2683
3335
|
}[] | undefined;
|
|
2684
3336
|
}, {
|
|
3337
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2685
3338
|
id: string;
|
|
2686
3339
|
firstName: string;
|
|
2687
3340
|
lastName: string;
|
|
2688
3341
|
email: string;
|
|
2689
3342
|
createdAt: string | Date;
|
|
2690
3343
|
updatedAt: string | Date;
|
|
3344
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2691
3345
|
phoneNumbers?: {
|
|
2692
3346
|
id: string;
|
|
2693
3347
|
phoneNumber: string;
|
|
2694
3348
|
description?: string | null | undefined;
|
|
2695
3349
|
isPrimary?: boolean | undefined;
|
|
2696
3350
|
}[] | undefined;
|
|
2697
|
-
|
|
3351
|
+
deletedAt?: string | Date | null | undefined;
|
|
3352
|
+
officeId?: string | null | undefined;
|
|
2698
3353
|
office?: {
|
|
2699
3354
|
id: string;
|
|
2700
3355
|
name: string;
|
|
3356
|
+
managers?: {
|
|
3357
|
+
id: string;
|
|
3358
|
+
firstName: string;
|
|
3359
|
+
lastName: string;
|
|
3360
|
+
}[] | undefined;
|
|
2701
3361
|
} | null | undefined;
|
|
2702
3362
|
canImpersonateUsers?: {
|
|
2703
3363
|
id: string;
|
|
@@ -2731,16 +3391,40 @@ export declare const agentClientLinksContract: {
|
|
|
2731
3391
|
description?: string | null | undefined;
|
|
2732
3392
|
isPrimary?: boolean | undefined;
|
|
2733
3393
|
}>, "many">>>;
|
|
2734
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3394
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3395
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2735
3396
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2736
3397
|
id: z.ZodString;
|
|
2737
3398
|
name: z.ZodString;
|
|
3399
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3400
|
+
id: z.ZodString;
|
|
3401
|
+
firstName: z.ZodString;
|
|
3402
|
+
lastName: z.ZodString;
|
|
3403
|
+
}, "strip", z.ZodTypeAny, {
|
|
3404
|
+
id: string;
|
|
3405
|
+
firstName: string;
|
|
3406
|
+
lastName: string;
|
|
3407
|
+
}, {
|
|
3408
|
+
id: string;
|
|
3409
|
+
firstName: string;
|
|
3410
|
+
lastName: string;
|
|
3411
|
+
}>, "many">>;
|
|
2738
3412
|
}, "strip", z.ZodTypeAny, {
|
|
2739
3413
|
id: string;
|
|
2740
3414
|
name: string;
|
|
3415
|
+
managers?: {
|
|
3416
|
+
id: string;
|
|
3417
|
+
firstName: string;
|
|
3418
|
+
lastName: string;
|
|
3419
|
+
}[] | undefined;
|
|
2741
3420
|
}, {
|
|
2742
3421
|
id: string;
|
|
2743
3422
|
name: string;
|
|
3423
|
+
managers?: {
|
|
3424
|
+
id: string;
|
|
3425
|
+
firstName: string;
|
|
3426
|
+
lastName: string;
|
|
3427
|
+
}[] | undefined;
|
|
2744
3428
|
}>>>;
|
|
2745
3429
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2746
3430
|
id: z.ZodString;
|
|
@@ -2755,25 +3439,35 @@ export declare const agentClientLinksContract: {
|
|
|
2755
3439
|
firstName: string;
|
|
2756
3440
|
lastName: string;
|
|
2757
3441
|
}>, "many">>;
|
|
3442
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2758
3443
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2759
3444
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3445
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2760
3446
|
}, "strip", z.ZodTypeAny, {
|
|
3447
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2761
3448
|
id: string;
|
|
2762
3449
|
firstName: string;
|
|
2763
3450
|
lastName: string;
|
|
2764
3451
|
email: string;
|
|
3452
|
+
createdAt: string;
|
|
3453
|
+
updatedAt: string;
|
|
2765
3454
|
phoneNumbers: {
|
|
2766
3455
|
id: string;
|
|
2767
3456
|
phoneNumber: string;
|
|
2768
3457
|
isPrimary: boolean;
|
|
2769
3458
|
description?: string | null | undefined;
|
|
2770
3459
|
}[];
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
3460
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3461
|
+
deletedAt?: string | null | undefined;
|
|
3462
|
+
officeId?: string | null | undefined;
|
|
2774
3463
|
office?: {
|
|
2775
3464
|
id: string;
|
|
2776
3465
|
name: string;
|
|
3466
|
+
managers?: {
|
|
3467
|
+
id: string;
|
|
3468
|
+
firstName: string;
|
|
3469
|
+
lastName: string;
|
|
3470
|
+
}[] | undefined;
|
|
2777
3471
|
} | null | undefined;
|
|
2778
3472
|
canImpersonateUsers?: {
|
|
2779
3473
|
id: string;
|
|
@@ -2781,22 +3475,30 @@ export declare const agentClientLinksContract: {
|
|
|
2781
3475
|
lastName: string;
|
|
2782
3476
|
}[] | undefined;
|
|
2783
3477
|
}, {
|
|
3478
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2784
3479
|
id: string;
|
|
2785
3480
|
firstName: string;
|
|
2786
3481
|
lastName: string;
|
|
2787
3482
|
email: string;
|
|
2788
3483
|
createdAt: string | Date;
|
|
2789
3484
|
updatedAt: string | Date;
|
|
3485
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2790
3486
|
phoneNumbers?: {
|
|
2791
3487
|
id: string;
|
|
2792
3488
|
phoneNumber: string;
|
|
2793
3489
|
description?: string | null | undefined;
|
|
2794
3490
|
isPrimary?: boolean | undefined;
|
|
2795
3491
|
}[] | undefined;
|
|
2796
|
-
|
|
3492
|
+
deletedAt?: string | Date | null | undefined;
|
|
3493
|
+
officeId?: string | null | undefined;
|
|
2797
3494
|
office?: {
|
|
2798
3495
|
id: string;
|
|
2799
3496
|
name: string;
|
|
3497
|
+
managers?: {
|
|
3498
|
+
id: string;
|
|
3499
|
+
firstName: string;
|
|
3500
|
+
lastName: string;
|
|
3501
|
+
}[] | undefined;
|
|
2800
3502
|
} | null | undefined;
|
|
2801
3503
|
canImpersonateUsers?: {
|
|
2802
3504
|
id: string;
|
|
@@ -2827,16 +3529,40 @@ export declare const agentClientLinksContract: {
|
|
|
2827
3529
|
description?: string | null | undefined;
|
|
2828
3530
|
isPrimary?: boolean | undefined;
|
|
2829
3531
|
}>, "many">>>;
|
|
2830
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3532
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3533
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2831
3534
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2832
3535
|
id: z.ZodString;
|
|
2833
3536
|
name: z.ZodString;
|
|
3537
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3538
|
+
id: z.ZodString;
|
|
3539
|
+
firstName: z.ZodString;
|
|
3540
|
+
lastName: z.ZodString;
|
|
3541
|
+
}, "strip", z.ZodTypeAny, {
|
|
3542
|
+
id: string;
|
|
3543
|
+
firstName: string;
|
|
3544
|
+
lastName: string;
|
|
3545
|
+
}, {
|
|
3546
|
+
id: string;
|
|
3547
|
+
firstName: string;
|
|
3548
|
+
lastName: string;
|
|
3549
|
+
}>, "many">>;
|
|
2834
3550
|
}, "strip", z.ZodTypeAny, {
|
|
2835
3551
|
id: string;
|
|
2836
3552
|
name: string;
|
|
3553
|
+
managers?: {
|
|
3554
|
+
id: string;
|
|
3555
|
+
firstName: string;
|
|
3556
|
+
lastName: string;
|
|
3557
|
+
}[] | undefined;
|
|
2837
3558
|
}, {
|
|
2838
3559
|
id: string;
|
|
2839
3560
|
name: string;
|
|
3561
|
+
managers?: {
|
|
3562
|
+
id: string;
|
|
3563
|
+
firstName: string;
|
|
3564
|
+
lastName: string;
|
|
3565
|
+
}[] | undefined;
|
|
2840
3566
|
}>>>;
|
|
2841
3567
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2842
3568
|
id: z.ZodString;
|
|
@@ -2851,25 +3577,35 @@ export declare const agentClientLinksContract: {
|
|
|
2851
3577
|
firstName: string;
|
|
2852
3578
|
lastName: string;
|
|
2853
3579
|
}>, "many">>;
|
|
3580
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2854
3581
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2855
3582
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3583
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2856
3584
|
}, "strip", z.ZodTypeAny, {
|
|
3585
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2857
3586
|
id: string;
|
|
2858
3587
|
firstName: string;
|
|
2859
3588
|
lastName: string;
|
|
2860
3589
|
email: string;
|
|
3590
|
+
createdAt: string;
|
|
3591
|
+
updatedAt: string;
|
|
2861
3592
|
phoneNumbers: {
|
|
2862
3593
|
id: string;
|
|
2863
3594
|
phoneNumber: string;
|
|
2864
3595
|
isPrimary: boolean;
|
|
2865
3596
|
description?: string | null | undefined;
|
|
2866
3597
|
}[];
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
3598
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3599
|
+
deletedAt?: string | null | undefined;
|
|
3600
|
+
officeId?: string | null | undefined;
|
|
2870
3601
|
office?: {
|
|
2871
3602
|
id: string;
|
|
2872
3603
|
name: string;
|
|
3604
|
+
managers?: {
|
|
3605
|
+
id: string;
|
|
3606
|
+
firstName: string;
|
|
3607
|
+
lastName: string;
|
|
3608
|
+
}[] | undefined;
|
|
2873
3609
|
} | null | undefined;
|
|
2874
3610
|
canImpersonateUsers?: {
|
|
2875
3611
|
id: string;
|
|
@@ -2877,22 +3613,30 @@ export declare const agentClientLinksContract: {
|
|
|
2877
3613
|
lastName: string;
|
|
2878
3614
|
}[] | undefined;
|
|
2879
3615
|
}, {
|
|
3616
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2880
3617
|
id: string;
|
|
2881
3618
|
firstName: string;
|
|
2882
3619
|
lastName: string;
|
|
2883
3620
|
email: string;
|
|
2884
3621
|
createdAt: string | Date;
|
|
2885
3622
|
updatedAt: string | Date;
|
|
3623
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2886
3624
|
phoneNumbers?: {
|
|
2887
3625
|
id: string;
|
|
2888
3626
|
phoneNumber: string;
|
|
2889
3627
|
description?: string | null | undefined;
|
|
2890
3628
|
isPrimary?: boolean | undefined;
|
|
2891
3629
|
}[] | undefined;
|
|
2892
|
-
|
|
3630
|
+
deletedAt?: string | Date | null | undefined;
|
|
3631
|
+
officeId?: string | null | undefined;
|
|
2893
3632
|
office?: {
|
|
2894
3633
|
id: string;
|
|
2895
3634
|
name: string;
|
|
3635
|
+
managers?: {
|
|
3636
|
+
id: string;
|
|
3637
|
+
firstName: string;
|
|
3638
|
+
lastName: string;
|
|
3639
|
+
}[] | undefined;
|
|
2896
3640
|
} | null | undefined;
|
|
2897
3641
|
canImpersonateUsers?: {
|
|
2898
3642
|
id: string;
|
|
@@ -2903,28 +3647,37 @@ export declare const agentClientLinksContract: {
|
|
|
2903
3647
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2904
3648
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2905
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
2906
3651
|
id: string;
|
|
2907
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2908
|
-
agentId: string;
|
|
2909
3652
|
createdAt: string;
|
|
2910
3653
|
updatedAt: string;
|
|
3654
|
+
createdBy: string;
|
|
3655
|
+
agentId: string;
|
|
2911
3656
|
agent: {
|
|
3657
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2912
3658
|
id: string;
|
|
2913
3659
|
firstName: string;
|
|
2914
3660
|
lastName: string;
|
|
2915
3661
|
email: string;
|
|
3662
|
+
createdAt: string;
|
|
3663
|
+
updatedAt: string;
|
|
2916
3664
|
phoneNumbers: {
|
|
2917
3665
|
id: string;
|
|
2918
3666
|
phoneNumber: string;
|
|
2919
3667
|
isPrimary: boolean;
|
|
2920
3668
|
description?: string | null | undefined;
|
|
2921
3669
|
}[];
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
3670
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3671
|
+
deletedAt?: string | null | undefined;
|
|
3672
|
+
officeId?: string | null | undefined;
|
|
2925
3673
|
office?: {
|
|
2926
3674
|
id: string;
|
|
2927
3675
|
name: string;
|
|
3676
|
+
managers?: {
|
|
3677
|
+
id: string;
|
|
3678
|
+
firstName: string;
|
|
3679
|
+
lastName: string;
|
|
3680
|
+
}[] | undefined;
|
|
2928
3681
|
} | null | undefined;
|
|
2929
3682
|
canImpersonateUsers?: {
|
|
2930
3683
|
id: string;
|
|
@@ -2932,9 +3685,10 @@ export declare const agentClientLinksContract: {
|
|
|
2932
3685
|
lastName: string;
|
|
2933
3686
|
}[] | undefined;
|
|
2934
3687
|
};
|
|
3688
|
+
clientId: string;
|
|
2935
3689
|
client: {
|
|
2936
|
-
id: string;
|
|
2937
3690
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
3691
|
+
id: string;
|
|
2938
3692
|
name: string;
|
|
2939
3693
|
createdAt: string;
|
|
2940
3694
|
updatedAt: string;
|
|
@@ -2953,26 +3707,32 @@ export declare const agentClientLinksContract: {
|
|
|
2953
3707
|
agentId: string;
|
|
2954
3708
|
} | null | undefined;
|
|
2955
3709
|
};
|
|
2956
|
-
clientId: string;
|
|
2957
|
-
createdBy: string;
|
|
2958
3710
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2959
3711
|
creator: {
|
|
3712
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2960
3713
|
id: string;
|
|
2961
3714
|
firstName: string;
|
|
2962
3715
|
lastName: string;
|
|
2963
3716
|
email: string;
|
|
3717
|
+
createdAt: string;
|
|
3718
|
+
updatedAt: string;
|
|
2964
3719
|
phoneNumbers: {
|
|
2965
3720
|
id: string;
|
|
2966
3721
|
phoneNumber: string;
|
|
2967
3722
|
isPrimary: boolean;
|
|
2968
3723
|
description?: string | null | undefined;
|
|
2969
3724
|
}[];
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
3725
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3726
|
+
deletedAt?: string | null | undefined;
|
|
3727
|
+
officeId?: string | null | undefined;
|
|
2973
3728
|
office?: {
|
|
2974
3729
|
id: string;
|
|
2975
3730
|
name: string;
|
|
3731
|
+
managers?: {
|
|
3732
|
+
id: string;
|
|
3733
|
+
firstName: string;
|
|
3734
|
+
lastName: string;
|
|
3735
|
+
}[] | undefined;
|
|
2976
3736
|
} | null | undefined;
|
|
2977
3737
|
canImpersonateUsers?: {
|
|
2978
3738
|
id: string;
|
|
@@ -2984,22 +3744,30 @@ export declare const agentClientLinksContract: {
|
|
|
2984
3744
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2985
3745
|
reviewedBy?: string | null | undefined;
|
|
2986
3746
|
reviewer?: {
|
|
3747
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2987
3748
|
id: string;
|
|
2988
3749
|
firstName: string;
|
|
2989
3750
|
lastName: string;
|
|
2990
3751
|
email: string;
|
|
3752
|
+
createdAt: string;
|
|
3753
|
+
updatedAt: string;
|
|
2991
3754
|
phoneNumbers: {
|
|
2992
3755
|
id: string;
|
|
2993
3756
|
phoneNumber: string;
|
|
2994
3757
|
isPrimary: boolean;
|
|
2995
3758
|
description?: string | null | undefined;
|
|
2996
3759
|
}[];
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3760
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3761
|
+
deletedAt?: string | null | undefined;
|
|
3762
|
+
officeId?: string | null | undefined;
|
|
3000
3763
|
office?: {
|
|
3001
3764
|
id: string;
|
|
3002
3765
|
name: string;
|
|
3766
|
+
managers?: {
|
|
3767
|
+
id: string;
|
|
3768
|
+
firstName: string;
|
|
3769
|
+
lastName: string;
|
|
3770
|
+
}[] | undefined;
|
|
3003
3771
|
} | null | undefined;
|
|
3004
3772
|
canImpersonateUsers?: {
|
|
3005
3773
|
id: string;
|
|
@@ -3009,28 +3777,37 @@ export declare const agentClientLinksContract: {
|
|
|
3009
3777
|
} | null | undefined;
|
|
3010
3778
|
reviewedAt?: string | null | undefined;
|
|
3011
3779
|
}, {
|
|
3780
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
3012
3781
|
id: string;
|
|
3013
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
3014
|
-
agentId: string;
|
|
3015
3782
|
createdAt: string | Date;
|
|
3016
3783
|
updatedAt: string | Date;
|
|
3784
|
+
createdBy: string;
|
|
3785
|
+
agentId: string;
|
|
3017
3786
|
agent: {
|
|
3787
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3018
3788
|
id: string;
|
|
3019
3789
|
firstName: string;
|
|
3020
3790
|
lastName: string;
|
|
3021
3791
|
email: string;
|
|
3022
3792
|
createdAt: string | Date;
|
|
3023
3793
|
updatedAt: string | Date;
|
|
3794
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3024
3795
|
phoneNumbers?: {
|
|
3025
3796
|
id: string;
|
|
3026
3797
|
phoneNumber: string;
|
|
3027
3798
|
description?: string | null | undefined;
|
|
3028
3799
|
isPrimary?: boolean | undefined;
|
|
3029
3800
|
}[] | undefined;
|
|
3030
|
-
|
|
3801
|
+
deletedAt?: string | Date | null | undefined;
|
|
3802
|
+
officeId?: string | null | undefined;
|
|
3031
3803
|
office?: {
|
|
3032
3804
|
id: string;
|
|
3033
3805
|
name: string;
|
|
3806
|
+
managers?: {
|
|
3807
|
+
id: string;
|
|
3808
|
+
firstName: string;
|
|
3809
|
+
lastName: string;
|
|
3810
|
+
}[] | undefined;
|
|
3034
3811
|
} | null | undefined;
|
|
3035
3812
|
canImpersonateUsers?: {
|
|
3036
3813
|
id: string;
|
|
@@ -3038,9 +3815,10 @@ export declare const agentClientLinksContract: {
|
|
|
3038
3815
|
lastName: string;
|
|
3039
3816
|
}[] | undefined;
|
|
3040
3817
|
};
|
|
3818
|
+
clientId: string;
|
|
3041
3819
|
client: {
|
|
3042
|
-
id: string;
|
|
3043
3820
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
3821
|
+
id: string;
|
|
3044
3822
|
name: string;
|
|
3045
3823
|
createdAt: string | Date;
|
|
3046
3824
|
updatedAt: string | Date;
|
|
@@ -3059,26 +3837,32 @@ export declare const agentClientLinksContract: {
|
|
|
3059
3837
|
agentId: string;
|
|
3060
3838
|
} | null | undefined;
|
|
3061
3839
|
};
|
|
3062
|
-
clientId: string;
|
|
3063
|
-
createdBy: string;
|
|
3064
3840
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
3065
3841
|
creator: {
|
|
3842
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3066
3843
|
id: string;
|
|
3067
3844
|
firstName: string;
|
|
3068
3845
|
lastName: string;
|
|
3069
3846
|
email: string;
|
|
3070
3847
|
createdAt: string | Date;
|
|
3071
3848
|
updatedAt: string | Date;
|
|
3849
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3072
3850
|
phoneNumbers?: {
|
|
3073
3851
|
id: string;
|
|
3074
3852
|
phoneNumber: string;
|
|
3075
3853
|
description?: string | null | undefined;
|
|
3076
3854
|
isPrimary?: boolean | undefined;
|
|
3077
3855
|
}[] | undefined;
|
|
3078
|
-
|
|
3856
|
+
deletedAt?: string | Date | null | undefined;
|
|
3857
|
+
officeId?: string | null | undefined;
|
|
3079
3858
|
office?: {
|
|
3080
3859
|
id: string;
|
|
3081
3860
|
name: string;
|
|
3861
|
+
managers?: {
|
|
3862
|
+
id: string;
|
|
3863
|
+
firstName: string;
|
|
3864
|
+
lastName: string;
|
|
3865
|
+
}[] | undefined;
|
|
3082
3866
|
} | null | undefined;
|
|
3083
3867
|
canImpersonateUsers?: {
|
|
3084
3868
|
id: string;
|
|
@@ -3090,22 +3874,30 @@ export declare const agentClientLinksContract: {
|
|
|
3090
3874
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
3091
3875
|
reviewedBy?: string | null | undefined;
|
|
3092
3876
|
reviewer?: {
|
|
3877
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3093
3878
|
id: string;
|
|
3094
3879
|
firstName: string;
|
|
3095
3880
|
lastName: string;
|
|
3096
3881
|
email: string;
|
|
3097
3882
|
createdAt: string | Date;
|
|
3098
3883
|
updatedAt: string | Date;
|
|
3884
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3099
3885
|
phoneNumbers?: {
|
|
3100
3886
|
id: string;
|
|
3101
3887
|
phoneNumber: string;
|
|
3102
3888
|
description?: string | null | undefined;
|
|
3103
3889
|
isPrimary?: boolean | undefined;
|
|
3104
3890
|
}[] | undefined;
|
|
3105
|
-
|
|
3891
|
+
deletedAt?: string | Date | null | undefined;
|
|
3892
|
+
officeId?: string | null | undefined;
|
|
3106
3893
|
office?: {
|
|
3107
3894
|
id: string;
|
|
3108
3895
|
name: string;
|
|
3896
|
+
managers?: {
|
|
3897
|
+
id: string;
|
|
3898
|
+
firstName: string;
|
|
3899
|
+
lastName: string;
|
|
3900
|
+
}[] | undefined;
|
|
3109
3901
|
} | null | undefined;
|
|
3110
3902
|
canImpersonateUsers?: {
|
|
3111
3903
|
id: string;
|
|
@@ -3302,8 +4094,8 @@ export declare const agentClientLinksContract: {
|
|
|
3302
4094
|
agentId: string;
|
|
3303
4095
|
}>>>;
|
|
3304
4096
|
}, "strip", z.ZodTypeAny, {
|
|
3305
|
-
id: string;
|
|
3306
4097
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
4098
|
+
id: string;
|
|
3307
4099
|
name: string;
|
|
3308
4100
|
createdAt: string;
|
|
3309
4101
|
updatedAt: string;
|
|
@@ -3322,8 +4114,8 @@ export declare const agentClientLinksContract: {
|
|
|
3322
4114
|
agentId: string;
|
|
3323
4115
|
} | null | undefined;
|
|
3324
4116
|
}, {
|
|
3325
|
-
id: string;
|
|
3326
4117
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
4118
|
+
id: string;
|
|
3327
4119
|
name: string;
|
|
3328
4120
|
createdAt: string | Date;
|
|
3329
4121
|
updatedAt: string | Date;
|
|
@@ -3364,16 +4156,40 @@ export declare const agentClientLinksContract: {
|
|
|
3364
4156
|
description?: string | null | undefined;
|
|
3365
4157
|
isPrimary?: boolean | undefined;
|
|
3366
4158
|
}>, "many">>>;
|
|
3367
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
4159
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
4160
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3368
4161
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3369
4162
|
id: z.ZodString;
|
|
3370
4163
|
name: z.ZodString;
|
|
4164
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4165
|
+
id: z.ZodString;
|
|
4166
|
+
firstName: z.ZodString;
|
|
4167
|
+
lastName: z.ZodString;
|
|
4168
|
+
}, "strip", z.ZodTypeAny, {
|
|
4169
|
+
id: string;
|
|
4170
|
+
firstName: string;
|
|
4171
|
+
lastName: string;
|
|
4172
|
+
}, {
|
|
4173
|
+
id: string;
|
|
4174
|
+
firstName: string;
|
|
4175
|
+
lastName: string;
|
|
4176
|
+
}>, "many">>;
|
|
3371
4177
|
}, "strip", z.ZodTypeAny, {
|
|
3372
4178
|
id: string;
|
|
3373
4179
|
name: string;
|
|
4180
|
+
managers?: {
|
|
4181
|
+
id: string;
|
|
4182
|
+
firstName: string;
|
|
4183
|
+
lastName: string;
|
|
4184
|
+
}[] | undefined;
|
|
3374
4185
|
}, {
|
|
3375
4186
|
id: string;
|
|
3376
4187
|
name: string;
|
|
4188
|
+
managers?: {
|
|
4189
|
+
id: string;
|
|
4190
|
+
firstName: string;
|
|
4191
|
+
lastName: string;
|
|
4192
|
+
}[] | undefined;
|
|
3377
4193
|
}>>>;
|
|
3378
4194
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3379
4195
|
id: z.ZodString;
|
|
@@ -3388,25 +4204,35 @@ export declare const agentClientLinksContract: {
|
|
|
3388
4204
|
firstName: string;
|
|
3389
4205
|
lastName: string;
|
|
3390
4206
|
}>, "many">>;
|
|
4207
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3391
4208
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3392
4209
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4210
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3393
4211
|
}, "strip", z.ZodTypeAny, {
|
|
4212
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3394
4213
|
id: string;
|
|
3395
4214
|
firstName: string;
|
|
3396
4215
|
lastName: string;
|
|
3397
4216
|
email: string;
|
|
4217
|
+
createdAt: string;
|
|
4218
|
+
updatedAt: string;
|
|
3398
4219
|
phoneNumbers: {
|
|
3399
4220
|
id: string;
|
|
3400
4221
|
phoneNumber: string;
|
|
3401
4222
|
isPrimary: boolean;
|
|
3402
4223
|
description?: string | null | undefined;
|
|
3403
4224
|
}[];
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
4225
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4226
|
+
deletedAt?: string | null | undefined;
|
|
4227
|
+
officeId?: string | null | undefined;
|
|
3407
4228
|
office?: {
|
|
3408
4229
|
id: string;
|
|
3409
4230
|
name: string;
|
|
4231
|
+
managers?: {
|
|
4232
|
+
id: string;
|
|
4233
|
+
firstName: string;
|
|
4234
|
+
lastName: string;
|
|
4235
|
+
}[] | undefined;
|
|
3410
4236
|
} | null | undefined;
|
|
3411
4237
|
canImpersonateUsers?: {
|
|
3412
4238
|
id: string;
|
|
@@ -3414,22 +4240,30 @@ export declare const agentClientLinksContract: {
|
|
|
3414
4240
|
lastName: string;
|
|
3415
4241
|
}[] | undefined;
|
|
3416
4242
|
}, {
|
|
4243
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3417
4244
|
id: string;
|
|
3418
4245
|
firstName: string;
|
|
3419
4246
|
lastName: string;
|
|
3420
4247
|
email: string;
|
|
3421
4248
|
createdAt: string | Date;
|
|
3422
4249
|
updatedAt: string | Date;
|
|
4250
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3423
4251
|
phoneNumbers?: {
|
|
3424
4252
|
id: string;
|
|
3425
4253
|
phoneNumber: string;
|
|
3426
4254
|
description?: string | null | undefined;
|
|
3427
4255
|
isPrimary?: boolean | undefined;
|
|
3428
4256
|
}[] | undefined;
|
|
3429
|
-
|
|
4257
|
+
deletedAt?: string | Date | null | undefined;
|
|
4258
|
+
officeId?: string | null | undefined;
|
|
3430
4259
|
office?: {
|
|
3431
4260
|
id: string;
|
|
3432
4261
|
name: string;
|
|
4262
|
+
managers?: {
|
|
4263
|
+
id: string;
|
|
4264
|
+
firstName: string;
|
|
4265
|
+
lastName: string;
|
|
4266
|
+
}[] | undefined;
|
|
3433
4267
|
} | null | undefined;
|
|
3434
4268
|
canImpersonateUsers?: {
|
|
3435
4269
|
id: string;
|
|
@@ -3463,16 +4297,40 @@ export declare const agentClientLinksContract: {
|
|
|
3463
4297
|
description?: string | null | undefined;
|
|
3464
4298
|
isPrimary?: boolean | undefined;
|
|
3465
4299
|
}>, "many">>>;
|
|
3466
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
4300
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
4301
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3467
4302
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3468
4303
|
id: z.ZodString;
|
|
3469
4304
|
name: z.ZodString;
|
|
4305
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4306
|
+
id: z.ZodString;
|
|
4307
|
+
firstName: z.ZodString;
|
|
4308
|
+
lastName: z.ZodString;
|
|
4309
|
+
}, "strip", z.ZodTypeAny, {
|
|
4310
|
+
id: string;
|
|
4311
|
+
firstName: string;
|
|
4312
|
+
lastName: string;
|
|
4313
|
+
}, {
|
|
4314
|
+
id: string;
|
|
4315
|
+
firstName: string;
|
|
4316
|
+
lastName: string;
|
|
4317
|
+
}>, "many">>;
|
|
3470
4318
|
}, "strip", z.ZodTypeAny, {
|
|
3471
4319
|
id: string;
|
|
3472
4320
|
name: string;
|
|
4321
|
+
managers?: {
|
|
4322
|
+
id: string;
|
|
4323
|
+
firstName: string;
|
|
4324
|
+
lastName: string;
|
|
4325
|
+
}[] | undefined;
|
|
3473
4326
|
}, {
|
|
3474
4327
|
id: string;
|
|
3475
4328
|
name: string;
|
|
4329
|
+
managers?: {
|
|
4330
|
+
id: string;
|
|
4331
|
+
firstName: string;
|
|
4332
|
+
lastName: string;
|
|
4333
|
+
}[] | undefined;
|
|
3476
4334
|
}>>>;
|
|
3477
4335
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3478
4336
|
id: z.ZodString;
|
|
@@ -3487,25 +4345,35 @@ export declare const agentClientLinksContract: {
|
|
|
3487
4345
|
firstName: string;
|
|
3488
4346
|
lastName: string;
|
|
3489
4347
|
}>, "many">>;
|
|
4348
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3490
4349
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3491
4350
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4351
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3492
4352
|
}, "strip", z.ZodTypeAny, {
|
|
4353
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3493
4354
|
id: string;
|
|
3494
4355
|
firstName: string;
|
|
3495
4356
|
lastName: string;
|
|
3496
4357
|
email: string;
|
|
4358
|
+
createdAt: string;
|
|
4359
|
+
updatedAt: string;
|
|
3497
4360
|
phoneNumbers: {
|
|
3498
4361
|
id: string;
|
|
3499
4362
|
phoneNumber: string;
|
|
3500
4363
|
isPrimary: boolean;
|
|
3501
4364
|
description?: string | null | undefined;
|
|
3502
4365
|
}[];
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
4366
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4367
|
+
deletedAt?: string | null | undefined;
|
|
4368
|
+
officeId?: string | null | undefined;
|
|
3506
4369
|
office?: {
|
|
3507
4370
|
id: string;
|
|
3508
4371
|
name: string;
|
|
4372
|
+
managers?: {
|
|
4373
|
+
id: string;
|
|
4374
|
+
firstName: string;
|
|
4375
|
+
lastName: string;
|
|
4376
|
+
}[] | undefined;
|
|
3509
4377
|
} | null | undefined;
|
|
3510
4378
|
canImpersonateUsers?: {
|
|
3511
4379
|
id: string;
|
|
@@ -3513,22 +4381,30 @@ export declare const agentClientLinksContract: {
|
|
|
3513
4381
|
lastName: string;
|
|
3514
4382
|
}[] | undefined;
|
|
3515
4383
|
}, {
|
|
4384
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3516
4385
|
id: string;
|
|
3517
4386
|
firstName: string;
|
|
3518
4387
|
lastName: string;
|
|
3519
4388
|
email: string;
|
|
3520
4389
|
createdAt: string | Date;
|
|
3521
4390
|
updatedAt: string | Date;
|
|
4391
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3522
4392
|
phoneNumbers?: {
|
|
3523
4393
|
id: string;
|
|
3524
4394
|
phoneNumber: string;
|
|
3525
4395
|
description?: string | null | undefined;
|
|
3526
4396
|
isPrimary?: boolean | undefined;
|
|
3527
4397
|
}[] | undefined;
|
|
3528
|
-
|
|
4398
|
+
deletedAt?: string | Date | null | undefined;
|
|
4399
|
+
officeId?: string | null | undefined;
|
|
3529
4400
|
office?: {
|
|
3530
4401
|
id: string;
|
|
3531
4402
|
name: string;
|
|
4403
|
+
managers?: {
|
|
4404
|
+
id: string;
|
|
4405
|
+
firstName: string;
|
|
4406
|
+
lastName: string;
|
|
4407
|
+
}[] | undefined;
|
|
3532
4408
|
} | null | undefined;
|
|
3533
4409
|
canImpersonateUsers?: {
|
|
3534
4410
|
id: string;
|
|
@@ -3559,16 +4435,40 @@ export declare const agentClientLinksContract: {
|
|
|
3559
4435
|
description?: string | null | undefined;
|
|
3560
4436
|
isPrimary?: boolean | undefined;
|
|
3561
4437
|
}>, "many">>>;
|
|
3562
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
4438
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
4439
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3563
4440
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3564
4441
|
id: z.ZodString;
|
|
3565
4442
|
name: z.ZodString;
|
|
4443
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4444
|
+
id: z.ZodString;
|
|
4445
|
+
firstName: z.ZodString;
|
|
4446
|
+
lastName: z.ZodString;
|
|
4447
|
+
}, "strip", z.ZodTypeAny, {
|
|
4448
|
+
id: string;
|
|
4449
|
+
firstName: string;
|
|
4450
|
+
lastName: string;
|
|
4451
|
+
}, {
|
|
4452
|
+
id: string;
|
|
4453
|
+
firstName: string;
|
|
4454
|
+
lastName: string;
|
|
4455
|
+
}>, "many">>;
|
|
3566
4456
|
}, "strip", z.ZodTypeAny, {
|
|
3567
4457
|
id: string;
|
|
3568
4458
|
name: string;
|
|
4459
|
+
managers?: {
|
|
4460
|
+
id: string;
|
|
4461
|
+
firstName: string;
|
|
4462
|
+
lastName: string;
|
|
4463
|
+
}[] | undefined;
|
|
3569
4464
|
}, {
|
|
3570
4465
|
id: string;
|
|
3571
4466
|
name: string;
|
|
4467
|
+
managers?: {
|
|
4468
|
+
id: string;
|
|
4469
|
+
firstName: string;
|
|
4470
|
+
lastName: string;
|
|
4471
|
+
}[] | undefined;
|
|
3572
4472
|
}>>>;
|
|
3573
4473
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3574
4474
|
id: z.ZodString;
|
|
@@ -3583,25 +4483,35 @@ export declare const agentClientLinksContract: {
|
|
|
3583
4483
|
firstName: string;
|
|
3584
4484
|
lastName: string;
|
|
3585
4485
|
}>, "many">>;
|
|
4486
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3586
4487
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3587
4488
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4489
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3588
4490
|
}, "strip", z.ZodTypeAny, {
|
|
4491
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3589
4492
|
id: string;
|
|
3590
4493
|
firstName: string;
|
|
3591
4494
|
lastName: string;
|
|
3592
4495
|
email: string;
|
|
4496
|
+
createdAt: string;
|
|
4497
|
+
updatedAt: string;
|
|
3593
4498
|
phoneNumbers: {
|
|
3594
4499
|
id: string;
|
|
3595
4500
|
phoneNumber: string;
|
|
3596
4501
|
isPrimary: boolean;
|
|
3597
4502
|
description?: string | null | undefined;
|
|
3598
4503
|
}[];
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
4504
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4505
|
+
deletedAt?: string | null | undefined;
|
|
4506
|
+
officeId?: string | null | undefined;
|
|
3602
4507
|
office?: {
|
|
3603
4508
|
id: string;
|
|
3604
4509
|
name: string;
|
|
4510
|
+
managers?: {
|
|
4511
|
+
id: string;
|
|
4512
|
+
firstName: string;
|
|
4513
|
+
lastName: string;
|
|
4514
|
+
}[] | undefined;
|
|
3605
4515
|
} | null | undefined;
|
|
3606
4516
|
canImpersonateUsers?: {
|
|
3607
4517
|
id: string;
|
|
@@ -3609,22 +4519,30 @@ export declare const agentClientLinksContract: {
|
|
|
3609
4519
|
lastName: string;
|
|
3610
4520
|
}[] | undefined;
|
|
3611
4521
|
}, {
|
|
4522
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3612
4523
|
id: string;
|
|
3613
4524
|
firstName: string;
|
|
3614
4525
|
lastName: string;
|
|
3615
4526
|
email: string;
|
|
3616
4527
|
createdAt: string | Date;
|
|
3617
4528
|
updatedAt: string | Date;
|
|
4529
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3618
4530
|
phoneNumbers?: {
|
|
3619
4531
|
id: string;
|
|
3620
4532
|
phoneNumber: string;
|
|
3621
4533
|
description?: string | null | undefined;
|
|
3622
4534
|
isPrimary?: boolean | undefined;
|
|
3623
4535
|
}[] | undefined;
|
|
3624
|
-
|
|
4536
|
+
deletedAt?: string | Date | null | undefined;
|
|
4537
|
+
officeId?: string | null | undefined;
|
|
3625
4538
|
office?: {
|
|
3626
4539
|
id: string;
|
|
3627
4540
|
name: string;
|
|
4541
|
+
managers?: {
|
|
4542
|
+
id: string;
|
|
4543
|
+
firstName: string;
|
|
4544
|
+
lastName: string;
|
|
4545
|
+
}[] | undefined;
|
|
3628
4546
|
} | null | undefined;
|
|
3629
4547
|
canImpersonateUsers?: {
|
|
3630
4548
|
id: string;
|
|
@@ -3635,28 +4553,37 @@ export declare const agentClientLinksContract: {
|
|
|
3635
4553
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3636
4554
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3637
4555
|
}, "strip", z.ZodTypeAny, {
|
|
4556
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
3638
4557
|
id: string;
|
|
3639
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
3640
|
-
agentId: string;
|
|
3641
4558
|
createdAt: string;
|
|
3642
4559
|
updatedAt: string;
|
|
4560
|
+
createdBy: string;
|
|
4561
|
+
agentId: string;
|
|
3643
4562
|
agent: {
|
|
4563
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3644
4564
|
id: string;
|
|
3645
4565
|
firstName: string;
|
|
3646
4566
|
lastName: string;
|
|
3647
4567
|
email: string;
|
|
4568
|
+
createdAt: string;
|
|
4569
|
+
updatedAt: string;
|
|
3648
4570
|
phoneNumbers: {
|
|
3649
4571
|
id: string;
|
|
3650
4572
|
phoneNumber: string;
|
|
3651
4573
|
isPrimary: boolean;
|
|
3652
4574
|
description?: string | null | undefined;
|
|
3653
4575
|
}[];
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
4576
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4577
|
+
deletedAt?: string | null | undefined;
|
|
4578
|
+
officeId?: string | null | undefined;
|
|
3657
4579
|
office?: {
|
|
3658
4580
|
id: string;
|
|
3659
4581
|
name: string;
|
|
4582
|
+
managers?: {
|
|
4583
|
+
id: string;
|
|
4584
|
+
firstName: string;
|
|
4585
|
+
lastName: string;
|
|
4586
|
+
}[] | undefined;
|
|
3660
4587
|
} | null | undefined;
|
|
3661
4588
|
canImpersonateUsers?: {
|
|
3662
4589
|
id: string;
|
|
@@ -3664,9 +4591,10 @@ export declare const agentClientLinksContract: {
|
|
|
3664
4591
|
lastName: string;
|
|
3665
4592
|
}[] | undefined;
|
|
3666
4593
|
};
|
|
4594
|
+
clientId: string;
|
|
3667
4595
|
client: {
|
|
3668
|
-
id: string;
|
|
3669
4596
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
4597
|
+
id: string;
|
|
3670
4598
|
name: string;
|
|
3671
4599
|
createdAt: string;
|
|
3672
4600
|
updatedAt: string;
|
|
@@ -3685,26 +4613,32 @@ export declare const agentClientLinksContract: {
|
|
|
3685
4613
|
agentId: string;
|
|
3686
4614
|
} | null | undefined;
|
|
3687
4615
|
};
|
|
3688
|
-
clientId: string;
|
|
3689
|
-
createdBy: string;
|
|
3690
4616
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
3691
4617
|
creator: {
|
|
4618
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3692
4619
|
id: string;
|
|
3693
4620
|
firstName: string;
|
|
3694
4621
|
lastName: string;
|
|
3695
4622
|
email: string;
|
|
4623
|
+
createdAt: string;
|
|
4624
|
+
updatedAt: string;
|
|
3696
4625
|
phoneNumbers: {
|
|
3697
4626
|
id: string;
|
|
3698
4627
|
phoneNumber: string;
|
|
3699
4628
|
isPrimary: boolean;
|
|
3700
4629
|
description?: string | null | undefined;
|
|
3701
4630
|
}[];
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
4631
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4632
|
+
deletedAt?: string | null | undefined;
|
|
4633
|
+
officeId?: string | null | undefined;
|
|
3705
4634
|
office?: {
|
|
3706
4635
|
id: string;
|
|
3707
4636
|
name: string;
|
|
4637
|
+
managers?: {
|
|
4638
|
+
id: string;
|
|
4639
|
+
firstName: string;
|
|
4640
|
+
lastName: string;
|
|
4641
|
+
}[] | undefined;
|
|
3708
4642
|
} | null | undefined;
|
|
3709
4643
|
canImpersonateUsers?: {
|
|
3710
4644
|
id: string;
|
|
@@ -3716,22 +4650,30 @@ export declare const agentClientLinksContract: {
|
|
|
3716
4650
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
3717
4651
|
reviewedBy?: string | null | undefined;
|
|
3718
4652
|
reviewer?: {
|
|
4653
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3719
4654
|
id: string;
|
|
3720
4655
|
firstName: string;
|
|
3721
4656
|
lastName: string;
|
|
3722
4657
|
email: string;
|
|
4658
|
+
createdAt: string;
|
|
4659
|
+
updatedAt: string;
|
|
3723
4660
|
phoneNumbers: {
|
|
3724
4661
|
id: string;
|
|
3725
4662
|
phoneNumber: string;
|
|
3726
4663
|
isPrimary: boolean;
|
|
3727
4664
|
description?: string | null | undefined;
|
|
3728
4665
|
}[];
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
4666
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4667
|
+
deletedAt?: string | null | undefined;
|
|
4668
|
+
officeId?: string | null | undefined;
|
|
3732
4669
|
office?: {
|
|
3733
4670
|
id: string;
|
|
3734
4671
|
name: string;
|
|
4672
|
+
managers?: {
|
|
4673
|
+
id: string;
|
|
4674
|
+
firstName: string;
|
|
4675
|
+
lastName: string;
|
|
4676
|
+
}[] | undefined;
|
|
3735
4677
|
} | null | undefined;
|
|
3736
4678
|
canImpersonateUsers?: {
|
|
3737
4679
|
id: string;
|
|
@@ -3741,28 +4683,37 @@ export declare const agentClientLinksContract: {
|
|
|
3741
4683
|
} | null | undefined;
|
|
3742
4684
|
reviewedAt?: string | null | undefined;
|
|
3743
4685
|
}, {
|
|
4686
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
3744
4687
|
id: string;
|
|
3745
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
3746
|
-
agentId: string;
|
|
3747
4688
|
createdAt: string | Date;
|
|
3748
4689
|
updatedAt: string | Date;
|
|
4690
|
+
createdBy: string;
|
|
4691
|
+
agentId: string;
|
|
3749
4692
|
agent: {
|
|
4693
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3750
4694
|
id: string;
|
|
3751
4695
|
firstName: string;
|
|
3752
4696
|
lastName: string;
|
|
3753
4697
|
email: string;
|
|
3754
4698
|
createdAt: string | Date;
|
|
3755
4699
|
updatedAt: string | Date;
|
|
4700
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3756
4701
|
phoneNumbers?: {
|
|
3757
4702
|
id: string;
|
|
3758
4703
|
phoneNumber: string;
|
|
3759
4704
|
description?: string | null | undefined;
|
|
3760
4705
|
isPrimary?: boolean | undefined;
|
|
3761
4706
|
}[] | undefined;
|
|
3762
|
-
|
|
4707
|
+
deletedAt?: string | Date | null | undefined;
|
|
4708
|
+
officeId?: string | null | undefined;
|
|
3763
4709
|
office?: {
|
|
3764
4710
|
id: string;
|
|
3765
4711
|
name: string;
|
|
4712
|
+
managers?: {
|
|
4713
|
+
id: string;
|
|
4714
|
+
firstName: string;
|
|
4715
|
+
lastName: string;
|
|
4716
|
+
}[] | undefined;
|
|
3766
4717
|
} | null | undefined;
|
|
3767
4718
|
canImpersonateUsers?: {
|
|
3768
4719
|
id: string;
|
|
@@ -3770,9 +4721,10 @@ export declare const agentClientLinksContract: {
|
|
|
3770
4721
|
lastName: string;
|
|
3771
4722
|
}[] | undefined;
|
|
3772
4723
|
};
|
|
4724
|
+
clientId: string;
|
|
3773
4725
|
client: {
|
|
3774
|
-
id: string;
|
|
3775
4726
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
4727
|
+
id: string;
|
|
3776
4728
|
name: string;
|
|
3777
4729
|
createdAt: string | Date;
|
|
3778
4730
|
updatedAt: string | Date;
|
|
@@ -3791,26 +4743,32 @@ export declare const agentClientLinksContract: {
|
|
|
3791
4743
|
agentId: string;
|
|
3792
4744
|
} | null | undefined;
|
|
3793
4745
|
};
|
|
3794
|
-
clientId: string;
|
|
3795
|
-
createdBy: string;
|
|
3796
4746
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
3797
4747
|
creator: {
|
|
4748
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3798
4749
|
id: string;
|
|
3799
4750
|
firstName: string;
|
|
3800
4751
|
lastName: string;
|
|
3801
4752
|
email: string;
|
|
3802
4753
|
createdAt: string | Date;
|
|
3803
4754
|
updatedAt: string | Date;
|
|
4755
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3804
4756
|
phoneNumbers?: {
|
|
3805
4757
|
id: string;
|
|
3806
4758
|
phoneNumber: string;
|
|
3807
4759
|
description?: string | null | undefined;
|
|
3808
4760
|
isPrimary?: boolean | undefined;
|
|
3809
4761
|
}[] | undefined;
|
|
3810
|
-
|
|
4762
|
+
deletedAt?: string | Date | null | undefined;
|
|
4763
|
+
officeId?: string | null | undefined;
|
|
3811
4764
|
office?: {
|
|
3812
4765
|
id: string;
|
|
3813
4766
|
name: string;
|
|
4767
|
+
managers?: {
|
|
4768
|
+
id: string;
|
|
4769
|
+
firstName: string;
|
|
4770
|
+
lastName: string;
|
|
4771
|
+
}[] | undefined;
|
|
3814
4772
|
} | null | undefined;
|
|
3815
4773
|
canImpersonateUsers?: {
|
|
3816
4774
|
id: string;
|
|
@@ -3822,22 +4780,30 @@ export declare const agentClientLinksContract: {
|
|
|
3822
4780
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
3823
4781
|
reviewedBy?: string | null | undefined;
|
|
3824
4782
|
reviewer?: {
|
|
4783
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3825
4784
|
id: string;
|
|
3826
4785
|
firstName: string;
|
|
3827
4786
|
lastName: string;
|
|
3828
4787
|
email: string;
|
|
3829
4788
|
createdAt: string | Date;
|
|
3830
4789
|
updatedAt: string | Date;
|
|
4790
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3831
4791
|
phoneNumbers?: {
|
|
3832
4792
|
id: string;
|
|
3833
4793
|
phoneNumber: string;
|
|
3834
4794
|
description?: string | null | undefined;
|
|
3835
4795
|
isPrimary?: boolean | undefined;
|
|
3836
4796
|
}[] | undefined;
|
|
3837
|
-
|
|
4797
|
+
deletedAt?: string | Date | null | undefined;
|
|
4798
|
+
officeId?: string | null | undefined;
|
|
3838
4799
|
office?: {
|
|
3839
4800
|
id: string;
|
|
3840
4801
|
name: string;
|
|
4802
|
+
managers?: {
|
|
4803
|
+
id: string;
|
|
4804
|
+
firstName: string;
|
|
4805
|
+
lastName: string;
|
|
4806
|
+
}[] | undefined;
|
|
3841
4807
|
} | null | undefined;
|
|
3842
4808
|
canImpersonateUsers?: {
|
|
3843
4809
|
id: string;
|
|
@@ -3893,12 +4859,12 @@ export declare const agentClientLinksContract: {
|
|
|
3893
4859
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3894
4860
|
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
3895
4861
|
}, "strip", z.ZodTypeAny, {
|
|
3896
|
-
status?: "
|
|
4862
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
3897
4863
|
clientId?: string | undefined;
|
|
3898
4864
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
3899
4865
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
3900
4866
|
}, {
|
|
3901
|
-
status?: "
|
|
4867
|
+
status?: "REJECTED" | "APPROVED" | "PENDING_REVIEW" | undefined;
|
|
3902
4868
|
clientId?: string | undefined;
|
|
3903
4869
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
3904
4870
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
@@ -4043,8 +5009,8 @@ export declare const agentClientLinksContract: {
|
|
|
4043
5009
|
agentId: string;
|
|
4044
5010
|
}>>>;
|
|
4045
5011
|
}, "strip", z.ZodTypeAny, {
|
|
4046
|
-
id: string;
|
|
4047
5012
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
5013
|
+
id: string;
|
|
4048
5014
|
name: string;
|
|
4049
5015
|
createdAt: string;
|
|
4050
5016
|
updatedAt: string;
|
|
@@ -4063,8 +5029,8 @@ export declare const agentClientLinksContract: {
|
|
|
4063
5029
|
agentId: string;
|
|
4064
5030
|
} | null | undefined;
|
|
4065
5031
|
}, {
|
|
4066
|
-
id: string;
|
|
4067
5032
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
5033
|
+
id: string;
|
|
4068
5034
|
name: string;
|
|
4069
5035
|
createdAt: string | Date;
|
|
4070
5036
|
updatedAt: string | Date;
|
|
@@ -4105,16 +5071,40 @@ export declare const agentClientLinksContract: {
|
|
|
4105
5071
|
description?: string | null | undefined;
|
|
4106
5072
|
isPrimary?: boolean | undefined;
|
|
4107
5073
|
}>, "many">>>;
|
|
4108
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
5074
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
5075
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4109
5076
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4110
5077
|
id: z.ZodString;
|
|
4111
5078
|
name: z.ZodString;
|
|
5079
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5080
|
+
id: z.ZodString;
|
|
5081
|
+
firstName: z.ZodString;
|
|
5082
|
+
lastName: z.ZodString;
|
|
5083
|
+
}, "strip", z.ZodTypeAny, {
|
|
5084
|
+
id: string;
|
|
5085
|
+
firstName: string;
|
|
5086
|
+
lastName: string;
|
|
5087
|
+
}, {
|
|
5088
|
+
id: string;
|
|
5089
|
+
firstName: string;
|
|
5090
|
+
lastName: string;
|
|
5091
|
+
}>, "many">>;
|
|
4112
5092
|
}, "strip", z.ZodTypeAny, {
|
|
4113
5093
|
id: string;
|
|
4114
5094
|
name: string;
|
|
5095
|
+
managers?: {
|
|
5096
|
+
id: string;
|
|
5097
|
+
firstName: string;
|
|
5098
|
+
lastName: string;
|
|
5099
|
+
}[] | undefined;
|
|
4115
5100
|
}, {
|
|
4116
5101
|
id: string;
|
|
4117
5102
|
name: string;
|
|
5103
|
+
managers?: {
|
|
5104
|
+
id: string;
|
|
5105
|
+
firstName: string;
|
|
5106
|
+
lastName: string;
|
|
5107
|
+
}[] | undefined;
|
|
4118
5108
|
}>>>;
|
|
4119
5109
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4120
5110
|
id: z.ZodString;
|
|
@@ -4129,25 +5119,35 @@ export declare const agentClientLinksContract: {
|
|
|
4129
5119
|
firstName: string;
|
|
4130
5120
|
lastName: string;
|
|
4131
5121
|
}>, "many">>;
|
|
5122
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4132
5123
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4133
5124
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5125
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4134
5126
|
}, "strip", z.ZodTypeAny, {
|
|
5127
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4135
5128
|
id: string;
|
|
4136
5129
|
firstName: string;
|
|
4137
5130
|
lastName: string;
|
|
4138
5131
|
email: string;
|
|
5132
|
+
createdAt: string;
|
|
5133
|
+
updatedAt: string;
|
|
4139
5134
|
phoneNumbers: {
|
|
4140
5135
|
id: string;
|
|
4141
5136
|
phoneNumber: string;
|
|
4142
5137
|
isPrimary: boolean;
|
|
4143
5138
|
description?: string | null | undefined;
|
|
4144
5139
|
}[];
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
5140
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5141
|
+
deletedAt?: string | null | undefined;
|
|
5142
|
+
officeId?: string | null | undefined;
|
|
4148
5143
|
office?: {
|
|
4149
5144
|
id: string;
|
|
4150
5145
|
name: string;
|
|
5146
|
+
managers?: {
|
|
5147
|
+
id: string;
|
|
5148
|
+
firstName: string;
|
|
5149
|
+
lastName: string;
|
|
5150
|
+
}[] | undefined;
|
|
4151
5151
|
} | null | undefined;
|
|
4152
5152
|
canImpersonateUsers?: {
|
|
4153
5153
|
id: string;
|
|
@@ -4155,22 +5155,30 @@ export declare const agentClientLinksContract: {
|
|
|
4155
5155
|
lastName: string;
|
|
4156
5156
|
}[] | undefined;
|
|
4157
5157
|
}, {
|
|
5158
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4158
5159
|
id: string;
|
|
4159
5160
|
firstName: string;
|
|
4160
5161
|
lastName: string;
|
|
4161
5162
|
email: string;
|
|
4162
5163
|
createdAt: string | Date;
|
|
4163
5164
|
updatedAt: string | Date;
|
|
5165
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4164
5166
|
phoneNumbers?: {
|
|
4165
5167
|
id: string;
|
|
4166
5168
|
phoneNumber: string;
|
|
4167
5169
|
description?: string | null | undefined;
|
|
4168
5170
|
isPrimary?: boolean | undefined;
|
|
4169
5171
|
}[] | undefined;
|
|
4170
|
-
|
|
5172
|
+
deletedAt?: string | Date | null | undefined;
|
|
5173
|
+
officeId?: string | null | undefined;
|
|
4171
5174
|
office?: {
|
|
4172
5175
|
id: string;
|
|
4173
5176
|
name: string;
|
|
5177
|
+
managers?: {
|
|
5178
|
+
id: string;
|
|
5179
|
+
firstName: string;
|
|
5180
|
+
lastName: string;
|
|
5181
|
+
}[] | undefined;
|
|
4174
5182
|
} | null | undefined;
|
|
4175
5183
|
canImpersonateUsers?: {
|
|
4176
5184
|
id: string;
|
|
@@ -4204,16 +5212,40 @@ export declare const agentClientLinksContract: {
|
|
|
4204
5212
|
description?: string | null | undefined;
|
|
4205
5213
|
isPrimary?: boolean | undefined;
|
|
4206
5214
|
}>, "many">>>;
|
|
4207
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
5215
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
5216
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4208
5217
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4209
5218
|
id: z.ZodString;
|
|
4210
5219
|
name: z.ZodString;
|
|
5220
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5221
|
+
id: z.ZodString;
|
|
5222
|
+
firstName: z.ZodString;
|
|
5223
|
+
lastName: z.ZodString;
|
|
5224
|
+
}, "strip", z.ZodTypeAny, {
|
|
5225
|
+
id: string;
|
|
5226
|
+
firstName: string;
|
|
5227
|
+
lastName: string;
|
|
5228
|
+
}, {
|
|
5229
|
+
id: string;
|
|
5230
|
+
firstName: string;
|
|
5231
|
+
lastName: string;
|
|
5232
|
+
}>, "many">>;
|
|
4211
5233
|
}, "strip", z.ZodTypeAny, {
|
|
4212
5234
|
id: string;
|
|
4213
5235
|
name: string;
|
|
5236
|
+
managers?: {
|
|
5237
|
+
id: string;
|
|
5238
|
+
firstName: string;
|
|
5239
|
+
lastName: string;
|
|
5240
|
+
}[] | undefined;
|
|
4214
5241
|
}, {
|
|
4215
5242
|
id: string;
|
|
4216
5243
|
name: string;
|
|
5244
|
+
managers?: {
|
|
5245
|
+
id: string;
|
|
5246
|
+
firstName: string;
|
|
5247
|
+
lastName: string;
|
|
5248
|
+
}[] | undefined;
|
|
4217
5249
|
}>>>;
|
|
4218
5250
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4219
5251
|
id: z.ZodString;
|
|
@@ -4228,25 +5260,35 @@ export declare const agentClientLinksContract: {
|
|
|
4228
5260
|
firstName: string;
|
|
4229
5261
|
lastName: string;
|
|
4230
5262
|
}>, "many">>;
|
|
5263
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4231
5264
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4232
5265
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5266
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4233
5267
|
}, "strip", z.ZodTypeAny, {
|
|
5268
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4234
5269
|
id: string;
|
|
4235
5270
|
firstName: string;
|
|
4236
5271
|
lastName: string;
|
|
4237
5272
|
email: string;
|
|
5273
|
+
createdAt: string;
|
|
5274
|
+
updatedAt: string;
|
|
4238
5275
|
phoneNumbers: {
|
|
4239
5276
|
id: string;
|
|
4240
5277
|
phoneNumber: string;
|
|
4241
5278
|
isPrimary: boolean;
|
|
4242
5279
|
description?: string | null | undefined;
|
|
4243
5280
|
}[];
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
5281
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5282
|
+
deletedAt?: string | null | undefined;
|
|
5283
|
+
officeId?: string | null | undefined;
|
|
4247
5284
|
office?: {
|
|
4248
5285
|
id: string;
|
|
4249
5286
|
name: string;
|
|
5287
|
+
managers?: {
|
|
5288
|
+
id: string;
|
|
5289
|
+
firstName: string;
|
|
5290
|
+
lastName: string;
|
|
5291
|
+
}[] | undefined;
|
|
4250
5292
|
} | null | undefined;
|
|
4251
5293
|
canImpersonateUsers?: {
|
|
4252
5294
|
id: string;
|
|
@@ -4254,22 +5296,30 @@ export declare const agentClientLinksContract: {
|
|
|
4254
5296
|
lastName: string;
|
|
4255
5297
|
}[] | undefined;
|
|
4256
5298
|
}, {
|
|
5299
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4257
5300
|
id: string;
|
|
4258
5301
|
firstName: string;
|
|
4259
5302
|
lastName: string;
|
|
4260
5303
|
email: string;
|
|
4261
5304
|
createdAt: string | Date;
|
|
4262
5305
|
updatedAt: string | Date;
|
|
5306
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4263
5307
|
phoneNumbers?: {
|
|
4264
5308
|
id: string;
|
|
4265
5309
|
phoneNumber: string;
|
|
4266
5310
|
description?: string | null | undefined;
|
|
4267
5311
|
isPrimary?: boolean | undefined;
|
|
4268
5312
|
}[] | undefined;
|
|
4269
|
-
|
|
5313
|
+
deletedAt?: string | Date | null | undefined;
|
|
5314
|
+
officeId?: string | null | undefined;
|
|
4270
5315
|
office?: {
|
|
4271
5316
|
id: string;
|
|
4272
5317
|
name: string;
|
|
5318
|
+
managers?: {
|
|
5319
|
+
id: string;
|
|
5320
|
+
firstName: string;
|
|
5321
|
+
lastName: string;
|
|
5322
|
+
}[] | undefined;
|
|
4273
5323
|
} | null | undefined;
|
|
4274
5324
|
canImpersonateUsers?: {
|
|
4275
5325
|
id: string;
|
|
@@ -4300,16 +5350,40 @@ export declare const agentClientLinksContract: {
|
|
|
4300
5350
|
description?: string | null | undefined;
|
|
4301
5351
|
isPrimary?: boolean | undefined;
|
|
4302
5352
|
}>, "many">>>;
|
|
4303
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
5353
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
5354
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4304
5355
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4305
5356
|
id: z.ZodString;
|
|
4306
5357
|
name: z.ZodString;
|
|
5358
|
+
managers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5359
|
+
id: z.ZodString;
|
|
5360
|
+
firstName: z.ZodString;
|
|
5361
|
+
lastName: z.ZodString;
|
|
5362
|
+
}, "strip", z.ZodTypeAny, {
|
|
5363
|
+
id: string;
|
|
5364
|
+
firstName: string;
|
|
5365
|
+
lastName: string;
|
|
5366
|
+
}, {
|
|
5367
|
+
id: string;
|
|
5368
|
+
firstName: string;
|
|
5369
|
+
lastName: string;
|
|
5370
|
+
}>, "many">>;
|
|
4307
5371
|
}, "strip", z.ZodTypeAny, {
|
|
4308
5372
|
id: string;
|
|
4309
5373
|
name: string;
|
|
5374
|
+
managers?: {
|
|
5375
|
+
id: string;
|
|
5376
|
+
firstName: string;
|
|
5377
|
+
lastName: string;
|
|
5378
|
+
}[] | undefined;
|
|
4310
5379
|
}, {
|
|
4311
5380
|
id: string;
|
|
4312
5381
|
name: string;
|
|
5382
|
+
managers?: {
|
|
5383
|
+
id: string;
|
|
5384
|
+
firstName: string;
|
|
5385
|
+
lastName: string;
|
|
5386
|
+
}[] | undefined;
|
|
4313
5387
|
}>>>;
|
|
4314
5388
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4315
5389
|
id: z.ZodString;
|
|
@@ -4324,25 +5398,35 @@ export declare const agentClientLinksContract: {
|
|
|
4324
5398
|
firstName: string;
|
|
4325
5399
|
lastName: string;
|
|
4326
5400
|
}>, "many">>;
|
|
5401
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4327
5402
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4328
5403
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
5404
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4329
5405
|
}, "strip", z.ZodTypeAny, {
|
|
5406
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4330
5407
|
id: string;
|
|
4331
5408
|
firstName: string;
|
|
4332
5409
|
lastName: string;
|
|
4333
5410
|
email: string;
|
|
5411
|
+
createdAt: string;
|
|
5412
|
+
updatedAt: string;
|
|
4334
5413
|
phoneNumbers: {
|
|
4335
5414
|
id: string;
|
|
4336
5415
|
phoneNumber: string;
|
|
4337
5416
|
isPrimary: boolean;
|
|
4338
5417
|
description?: string | null | undefined;
|
|
4339
5418
|
}[];
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
5419
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5420
|
+
deletedAt?: string | null | undefined;
|
|
5421
|
+
officeId?: string | null | undefined;
|
|
4343
5422
|
office?: {
|
|
4344
5423
|
id: string;
|
|
4345
5424
|
name: string;
|
|
5425
|
+
managers?: {
|
|
5426
|
+
id: string;
|
|
5427
|
+
firstName: string;
|
|
5428
|
+
lastName: string;
|
|
5429
|
+
}[] | undefined;
|
|
4346
5430
|
} | null | undefined;
|
|
4347
5431
|
canImpersonateUsers?: {
|
|
4348
5432
|
id: string;
|
|
@@ -4350,22 +5434,30 @@ export declare const agentClientLinksContract: {
|
|
|
4350
5434
|
lastName: string;
|
|
4351
5435
|
}[] | undefined;
|
|
4352
5436
|
}, {
|
|
5437
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4353
5438
|
id: string;
|
|
4354
5439
|
firstName: string;
|
|
4355
5440
|
lastName: string;
|
|
4356
5441
|
email: string;
|
|
4357
5442
|
createdAt: string | Date;
|
|
4358
5443
|
updatedAt: string | Date;
|
|
5444
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4359
5445
|
phoneNumbers?: {
|
|
4360
5446
|
id: string;
|
|
4361
5447
|
phoneNumber: string;
|
|
4362
5448
|
description?: string | null | undefined;
|
|
4363
5449
|
isPrimary?: boolean | undefined;
|
|
4364
5450
|
}[] | undefined;
|
|
4365
|
-
|
|
5451
|
+
deletedAt?: string | Date | null | undefined;
|
|
5452
|
+
officeId?: string | null | undefined;
|
|
4366
5453
|
office?: {
|
|
4367
5454
|
id: string;
|
|
4368
5455
|
name: string;
|
|
5456
|
+
managers?: {
|
|
5457
|
+
id: string;
|
|
5458
|
+
firstName: string;
|
|
5459
|
+
lastName: string;
|
|
5460
|
+
}[] | undefined;
|
|
4369
5461
|
} | null | undefined;
|
|
4370
5462
|
canImpersonateUsers?: {
|
|
4371
5463
|
id: string;
|
|
@@ -4376,28 +5468,37 @@ export declare const agentClientLinksContract: {
|
|
|
4376
5468
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4377
5469
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4378
5470
|
}, "strip", z.ZodTypeAny, {
|
|
5471
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
4379
5472
|
id: string;
|
|
4380
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
4381
|
-
agentId: string;
|
|
4382
5473
|
createdAt: string;
|
|
4383
5474
|
updatedAt: string;
|
|
5475
|
+
createdBy: string;
|
|
5476
|
+
agentId: string;
|
|
4384
5477
|
agent: {
|
|
5478
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4385
5479
|
id: string;
|
|
4386
5480
|
firstName: string;
|
|
4387
5481
|
lastName: string;
|
|
4388
5482
|
email: string;
|
|
5483
|
+
createdAt: string;
|
|
5484
|
+
updatedAt: string;
|
|
4389
5485
|
phoneNumbers: {
|
|
4390
5486
|
id: string;
|
|
4391
5487
|
phoneNumber: string;
|
|
4392
5488
|
isPrimary: boolean;
|
|
4393
5489
|
description?: string | null | undefined;
|
|
4394
5490
|
}[];
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
5491
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5492
|
+
deletedAt?: string | null | undefined;
|
|
5493
|
+
officeId?: string | null | undefined;
|
|
4398
5494
|
office?: {
|
|
4399
5495
|
id: string;
|
|
4400
5496
|
name: string;
|
|
5497
|
+
managers?: {
|
|
5498
|
+
id: string;
|
|
5499
|
+
firstName: string;
|
|
5500
|
+
lastName: string;
|
|
5501
|
+
}[] | undefined;
|
|
4401
5502
|
} | null | undefined;
|
|
4402
5503
|
canImpersonateUsers?: {
|
|
4403
5504
|
id: string;
|
|
@@ -4405,9 +5506,10 @@ export declare const agentClientLinksContract: {
|
|
|
4405
5506
|
lastName: string;
|
|
4406
5507
|
}[] | undefined;
|
|
4407
5508
|
};
|
|
5509
|
+
clientId: string;
|
|
4408
5510
|
client: {
|
|
4409
|
-
id: string;
|
|
4410
5511
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
5512
|
+
id: string;
|
|
4411
5513
|
name: string;
|
|
4412
5514
|
createdAt: string;
|
|
4413
5515
|
updatedAt: string;
|
|
@@ -4426,26 +5528,32 @@ export declare const agentClientLinksContract: {
|
|
|
4426
5528
|
agentId: string;
|
|
4427
5529
|
} | null | undefined;
|
|
4428
5530
|
};
|
|
4429
|
-
clientId: string;
|
|
4430
|
-
createdBy: string;
|
|
4431
5531
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
4432
5532
|
creator: {
|
|
5533
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4433
5534
|
id: string;
|
|
4434
5535
|
firstName: string;
|
|
4435
5536
|
lastName: string;
|
|
4436
5537
|
email: string;
|
|
5538
|
+
createdAt: string;
|
|
5539
|
+
updatedAt: string;
|
|
4437
5540
|
phoneNumbers: {
|
|
4438
5541
|
id: string;
|
|
4439
5542
|
phoneNumber: string;
|
|
4440
5543
|
isPrimary: boolean;
|
|
4441
5544
|
description?: string | null | undefined;
|
|
4442
5545
|
}[];
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
5546
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5547
|
+
deletedAt?: string | null | undefined;
|
|
5548
|
+
officeId?: string | null | undefined;
|
|
4446
5549
|
office?: {
|
|
4447
5550
|
id: string;
|
|
4448
5551
|
name: string;
|
|
5552
|
+
managers?: {
|
|
5553
|
+
id: string;
|
|
5554
|
+
firstName: string;
|
|
5555
|
+
lastName: string;
|
|
5556
|
+
}[] | undefined;
|
|
4449
5557
|
} | null | undefined;
|
|
4450
5558
|
canImpersonateUsers?: {
|
|
4451
5559
|
id: string;
|
|
@@ -4457,22 +5565,30 @@ export declare const agentClientLinksContract: {
|
|
|
4457
5565
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
4458
5566
|
reviewedBy?: string | null | undefined;
|
|
4459
5567
|
reviewer?: {
|
|
5568
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4460
5569
|
id: string;
|
|
4461
5570
|
firstName: string;
|
|
4462
5571
|
lastName: string;
|
|
4463
5572
|
email: string;
|
|
5573
|
+
createdAt: string;
|
|
5574
|
+
updatedAt: string;
|
|
4464
5575
|
phoneNumbers: {
|
|
4465
5576
|
id: string;
|
|
4466
5577
|
phoneNumber: string;
|
|
4467
5578
|
isPrimary: boolean;
|
|
4468
5579
|
description?: string | null | undefined;
|
|
4469
5580
|
}[];
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
5581
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
5582
|
+
deletedAt?: string | null | undefined;
|
|
5583
|
+
officeId?: string | null | undefined;
|
|
4473
5584
|
office?: {
|
|
4474
5585
|
id: string;
|
|
4475
5586
|
name: string;
|
|
5587
|
+
managers?: {
|
|
5588
|
+
id: string;
|
|
5589
|
+
firstName: string;
|
|
5590
|
+
lastName: string;
|
|
5591
|
+
}[] | undefined;
|
|
4476
5592
|
} | null | undefined;
|
|
4477
5593
|
canImpersonateUsers?: {
|
|
4478
5594
|
id: string;
|
|
@@ -4482,28 +5598,37 @@ export declare const agentClientLinksContract: {
|
|
|
4482
5598
|
} | null | undefined;
|
|
4483
5599
|
reviewedAt?: string | null | undefined;
|
|
4484
5600
|
}, {
|
|
5601
|
+
status: "REJECTED" | "APPROVED" | "PENDING_REVIEW";
|
|
4485
5602
|
id: string;
|
|
4486
|
-
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
4487
|
-
agentId: string;
|
|
4488
5603
|
createdAt: string | Date;
|
|
4489
5604
|
updatedAt: string | Date;
|
|
5605
|
+
createdBy: string;
|
|
5606
|
+
agentId: string;
|
|
4490
5607
|
agent: {
|
|
5608
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4491
5609
|
id: string;
|
|
4492
5610
|
firstName: string;
|
|
4493
5611
|
lastName: string;
|
|
4494
5612
|
email: string;
|
|
4495
5613
|
createdAt: string | Date;
|
|
4496
5614
|
updatedAt: string | Date;
|
|
5615
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4497
5616
|
phoneNumbers?: {
|
|
4498
5617
|
id: string;
|
|
4499
5618
|
phoneNumber: string;
|
|
4500
5619
|
description?: string | null | undefined;
|
|
4501
5620
|
isPrimary?: boolean | undefined;
|
|
4502
5621
|
}[] | undefined;
|
|
4503
|
-
|
|
5622
|
+
deletedAt?: string | Date | null | undefined;
|
|
5623
|
+
officeId?: string | null | undefined;
|
|
4504
5624
|
office?: {
|
|
4505
5625
|
id: string;
|
|
4506
5626
|
name: string;
|
|
5627
|
+
managers?: {
|
|
5628
|
+
id: string;
|
|
5629
|
+
firstName: string;
|
|
5630
|
+
lastName: string;
|
|
5631
|
+
}[] | undefined;
|
|
4507
5632
|
} | null | undefined;
|
|
4508
5633
|
canImpersonateUsers?: {
|
|
4509
5634
|
id: string;
|
|
@@ -4511,9 +5636,10 @@ export declare const agentClientLinksContract: {
|
|
|
4511
5636
|
lastName: string;
|
|
4512
5637
|
}[] | undefined;
|
|
4513
5638
|
};
|
|
5639
|
+
clientId: string;
|
|
4514
5640
|
client: {
|
|
4515
|
-
id: string;
|
|
4516
5641
|
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
5642
|
+
id: string;
|
|
4517
5643
|
name: string;
|
|
4518
5644
|
createdAt: string | Date;
|
|
4519
5645
|
updatedAt: string | Date;
|
|
@@ -4532,26 +5658,32 @@ export declare const agentClientLinksContract: {
|
|
|
4532
5658
|
agentId: string;
|
|
4533
5659
|
} | null | undefined;
|
|
4534
5660
|
};
|
|
4535
|
-
clientId: string;
|
|
4536
|
-
createdBy: string;
|
|
4537
5661
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
4538
5662
|
creator: {
|
|
5663
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4539
5664
|
id: string;
|
|
4540
5665
|
firstName: string;
|
|
4541
5666
|
lastName: string;
|
|
4542
5667
|
email: string;
|
|
4543
5668
|
createdAt: string | Date;
|
|
4544
5669
|
updatedAt: string | Date;
|
|
5670
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4545
5671
|
phoneNumbers?: {
|
|
4546
5672
|
id: string;
|
|
4547
5673
|
phoneNumber: string;
|
|
4548
5674
|
description?: string | null | undefined;
|
|
4549
5675
|
isPrimary?: boolean | undefined;
|
|
4550
5676
|
}[] | undefined;
|
|
4551
|
-
|
|
5677
|
+
deletedAt?: string | Date | null | undefined;
|
|
5678
|
+
officeId?: string | null | undefined;
|
|
4552
5679
|
office?: {
|
|
4553
5680
|
id: string;
|
|
4554
5681
|
name: string;
|
|
5682
|
+
managers?: {
|
|
5683
|
+
id: string;
|
|
5684
|
+
firstName: string;
|
|
5685
|
+
lastName: string;
|
|
5686
|
+
}[] | undefined;
|
|
4555
5687
|
} | null | undefined;
|
|
4556
5688
|
canImpersonateUsers?: {
|
|
4557
5689
|
id: string;
|
|
@@ -4563,22 +5695,30 @@ export declare const agentClientLinksContract: {
|
|
|
4563
5695
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
4564
5696
|
reviewedBy?: string | null | undefined;
|
|
4565
5697
|
reviewer?: {
|
|
5698
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4566
5699
|
id: string;
|
|
4567
5700
|
firstName: string;
|
|
4568
5701
|
lastName: string;
|
|
4569
5702
|
email: string;
|
|
4570
5703
|
createdAt: string | Date;
|
|
4571
5704
|
updatedAt: string | Date;
|
|
5705
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
4572
5706
|
phoneNumbers?: {
|
|
4573
5707
|
id: string;
|
|
4574
5708
|
phoneNumber: string;
|
|
4575
5709
|
description?: string | null | undefined;
|
|
4576
5710
|
isPrimary?: boolean | undefined;
|
|
4577
5711
|
}[] | undefined;
|
|
4578
|
-
|
|
5712
|
+
deletedAt?: string | Date | null | undefined;
|
|
5713
|
+
officeId?: string | null | undefined;
|
|
4579
5714
|
office?: {
|
|
4580
5715
|
id: string;
|
|
4581
5716
|
name: string;
|
|
5717
|
+
managers?: {
|
|
5718
|
+
id: string;
|
|
5719
|
+
firstName: string;
|
|
5720
|
+
lastName: string;
|
|
5721
|
+
}[] | undefined;
|
|
4582
5722
|
} | null | undefined;
|
|
4583
5723
|
canImpersonateUsers?: {
|
|
4584
5724
|
id: string;
|