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