@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
|
@@ -46,11 +46,11 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
phoneNumber: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
phoneNumber: string;
|
|
50
49
|
name: string;
|
|
51
|
-
}, {
|
|
52
50
|
phoneNumber: string;
|
|
51
|
+
}, {
|
|
53
52
|
name: string;
|
|
53
|
+
phoneNumber: string;
|
|
54
54
|
}>>;
|
|
55
55
|
agentId: z.ZodNullable<z.ZodString>;
|
|
56
56
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -85,28 +85,28 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
85
85
|
lastName: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
id: string;
|
|
88
|
-
firstName: string;
|
|
89
88
|
lastName: string;
|
|
89
|
+
firstName: string;
|
|
90
90
|
}, {
|
|
91
91
|
id: string;
|
|
92
|
-
firstName: string;
|
|
93
92
|
lastName: string;
|
|
93
|
+
firstName: string;
|
|
94
94
|
}>, "many">>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
id: string;
|
|
97
96
|
name: string;
|
|
97
|
+
id: string;
|
|
98
98
|
managers?: {
|
|
99
99
|
id: string;
|
|
100
|
-
firstName: string;
|
|
101
100
|
lastName: string;
|
|
101
|
+
firstName: string;
|
|
102
102
|
}[] | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
id: string;
|
|
105
104
|
name: string;
|
|
105
|
+
id: string;
|
|
106
106
|
managers?: {
|
|
107
107
|
id: string;
|
|
108
|
-
firstName: string;
|
|
109
108
|
lastName: string;
|
|
109
|
+
firstName: string;
|
|
110
110
|
}[] | undefined;
|
|
111
111
|
}>>>;
|
|
112
112
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -115,63 +115,67 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
115
115
|
lastName: z.ZodString;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
id: string;
|
|
118
|
-
firstName: string;
|
|
119
118
|
lastName: string;
|
|
119
|
+
firstName: string;
|
|
120
120
|
}, {
|
|
121
121
|
id: string;
|
|
122
|
-
firstName: string;
|
|
123
122
|
lastName: string;
|
|
123
|
+
firstName: string;
|
|
124
124
|
}>, "many">>;
|
|
125
125
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
126
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
126
127
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
127
128
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
128
129
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
129
130
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
status: "ACTIVE" | "INACTIVE";
|
|
131
|
-
id: string;
|
|
132
|
-
firstName: string;
|
|
133
|
-
lastName: string;
|
|
134
131
|
email: string;
|
|
135
132
|
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
|
+
id: string;
|
|
135
|
+
status: "ACTIVE" | "INACTIVE";
|
|
136
|
+
lastName: string;
|
|
137
|
+
firstName: string;
|
|
136
138
|
phoneNumbers: {
|
|
137
139
|
id: string;
|
|
138
140
|
phoneNumber: string;
|
|
139
141
|
isPrimary: boolean;
|
|
140
142
|
description?: string | null | undefined;
|
|
141
143
|
}[];
|
|
142
|
-
|
|
144
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
145
|
+
officeId?: string | null | undefined;
|
|
143
146
|
office?: {
|
|
144
|
-
id: string;
|
|
145
147
|
name: string;
|
|
148
|
+
id: string;
|
|
146
149
|
managers?: {
|
|
147
150
|
id: string;
|
|
148
|
-
firstName: string;
|
|
149
151
|
lastName: string;
|
|
152
|
+
firstName: string;
|
|
150
153
|
}[] | undefined;
|
|
151
154
|
} | null | undefined;
|
|
152
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
153
|
-
officeId?: string | null | undefined;
|
|
154
155
|
canImpersonateUsers?: {
|
|
155
156
|
id: string;
|
|
156
|
-
firstName: string;
|
|
157
157
|
lastName: string;
|
|
158
|
+
firstName: string;
|
|
158
159
|
}[] | undefined;
|
|
160
|
+
dialpadUserId?: string | null | undefined;
|
|
159
161
|
deletedAt?: string | null | undefined;
|
|
160
162
|
}, {
|
|
161
|
-
status: "ACTIVE" | "INACTIVE";
|
|
162
|
-
id: string;
|
|
163
|
-
firstName: string;
|
|
164
|
-
lastName: string;
|
|
165
163
|
email: string;
|
|
166
164
|
createdAt: string | Date;
|
|
167
165
|
updatedAt: string | Date;
|
|
166
|
+
id: string;
|
|
167
|
+
status: "ACTIVE" | "INACTIVE";
|
|
168
|
+
lastName: string;
|
|
169
|
+
firstName: string;
|
|
170
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
171
|
+
officeId?: string | null | undefined;
|
|
168
172
|
office?: {
|
|
169
|
-
id: string;
|
|
170
173
|
name: string;
|
|
174
|
+
id: string;
|
|
171
175
|
managers?: {
|
|
172
176
|
id: string;
|
|
173
|
-
firstName: string;
|
|
174
177
|
lastName: string;
|
|
178
|
+
firstName: string;
|
|
175
179
|
}[] | undefined;
|
|
176
180
|
} | null | undefined;
|
|
177
181
|
phoneNumbers?: {
|
|
@@ -180,13 +184,12 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
180
184
|
description?: string | null | undefined;
|
|
181
185
|
isPrimary?: boolean | undefined;
|
|
182
186
|
}[] | undefined;
|
|
183
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
184
|
-
officeId?: string | null | undefined;
|
|
185
187
|
canImpersonateUsers?: {
|
|
186
188
|
id: string;
|
|
187
|
-
firstName: string;
|
|
188
189
|
lastName: string;
|
|
190
|
+
firstName: string;
|
|
189
191
|
}[] | undefined;
|
|
192
|
+
dialpadUserId?: string | null | undefined;
|
|
190
193
|
deletedAt?: string | Date | null | undefined;
|
|
191
194
|
}>>;
|
|
192
195
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -199,105 +202,98 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
199
202
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
200
203
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
201
204
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
id: string;
|
|
203
205
|
name: string;
|
|
204
206
|
createdAt: string;
|
|
205
207
|
updatedAt: string;
|
|
206
|
-
}, {
|
|
207
208
|
id: string;
|
|
209
|
+
}, {
|
|
208
210
|
name: string;
|
|
209
211
|
createdAt: string | Date;
|
|
210
212
|
updatedAt: string | Date;
|
|
213
|
+
id: string;
|
|
211
214
|
}>>>;
|
|
212
215
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
213
216
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
214
217
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
216
|
-
id: string;
|
|
217
218
|
createdAt: string;
|
|
218
219
|
updatedAt: string;
|
|
219
|
-
|
|
220
|
+
id: string;
|
|
221
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
220
222
|
agentId: string | null;
|
|
221
223
|
leadId: string;
|
|
222
224
|
assignedAt: string;
|
|
223
225
|
assignedBy: string | null;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
companyId: string | null;
|
|
227
|
+
agent?: {
|
|
228
|
+
email: string;
|
|
227
229
|
createdAt: string;
|
|
228
230
|
updatedAt: string;
|
|
229
|
-
} | null | undefined;
|
|
230
|
-
lead?: {
|
|
231
|
-
phoneNumber: string;
|
|
232
|
-
name: string;
|
|
233
|
-
} | undefined;
|
|
234
|
-
agent?: {
|
|
235
|
-
status: "ACTIVE" | "INACTIVE";
|
|
236
231
|
id: string;
|
|
237
|
-
|
|
232
|
+
status: "ACTIVE" | "INACTIVE";
|
|
238
233
|
lastName: string;
|
|
239
|
-
|
|
240
|
-
createdAt: string;
|
|
234
|
+
firstName: string;
|
|
241
235
|
phoneNumbers: {
|
|
242
236
|
id: string;
|
|
243
237
|
phoneNumber: string;
|
|
244
238
|
isPrimary: boolean;
|
|
245
239
|
description?: string | null | undefined;
|
|
246
240
|
}[];
|
|
247
|
-
|
|
241
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
242
|
+
officeId?: string | null | undefined;
|
|
248
243
|
office?: {
|
|
249
|
-
id: string;
|
|
250
244
|
name: string;
|
|
245
|
+
id: string;
|
|
251
246
|
managers?: {
|
|
252
247
|
id: string;
|
|
253
|
-
firstName: string;
|
|
254
248
|
lastName: string;
|
|
249
|
+
firstName: string;
|
|
255
250
|
}[] | undefined;
|
|
256
251
|
} | null | undefined;
|
|
257
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
258
|
-
officeId?: string | null | undefined;
|
|
259
252
|
canImpersonateUsers?: {
|
|
260
253
|
id: string;
|
|
261
|
-
firstName: string;
|
|
262
254
|
lastName: string;
|
|
255
|
+
firstName: string;
|
|
263
256
|
}[] | undefined;
|
|
257
|
+
dialpadUserId?: string | null | undefined;
|
|
264
258
|
deletedAt?: string | null | undefined;
|
|
265
259
|
} | undefined;
|
|
260
|
+
lead?: {
|
|
261
|
+
name: string;
|
|
262
|
+
phoneNumber: string;
|
|
263
|
+
} | undefined;
|
|
264
|
+
company?: {
|
|
265
|
+
name: string;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
id: string;
|
|
269
|
+
} | null | undefined;
|
|
266
270
|
}, {
|
|
267
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
268
|
-
id: string;
|
|
269
271
|
createdAt: string | Date;
|
|
270
272
|
updatedAt: string | Date;
|
|
271
|
-
|
|
273
|
+
id: string;
|
|
274
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
272
275
|
agentId: string | null;
|
|
273
276
|
leadId: string;
|
|
274
277
|
assignedAt: string | Date;
|
|
275
278
|
assignedBy: string | null;
|
|
276
|
-
|
|
277
|
-
id: string;
|
|
278
|
-
name: string;
|
|
279
|
-
createdAt: string | Date;
|
|
280
|
-
updatedAt: string | Date;
|
|
281
|
-
} | null | undefined;
|
|
282
|
-
lead?: {
|
|
283
|
-
phoneNumber: string;
|
|
284
|
-
name: string;
|
|
285
|
-
} | undefined;
|
|
279
|
+
companyId: string | null;
|
|
286
280
|
agent?: {
|
|
287
|
-
status: "ACTIVE" | "INACTIVE";
|
|
288
|
-
id: string;
|
|
289
|
-
firstName: string;
|
|
290
|
-
lastName: string;
|
|
291
281
|
email: string;
|
|
292
282
|
createdAt: string | Date;
|
|
293
283
|
updatedAt: string | Date;
|
|
284
|
+
id: string;
|
|
285
|
+
status: "ACTIVE" | "INACTIVE";
|
|
286
|
+
lastName: string;
|
|
287
|
+
firstName: string;
|
|
288
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
289
|
+
officeId?: string | null | undefined;
|
|
294
290
|
office?: {
|
|
295
|
-
id: string;
|
|
296
291
|
name: string;
|
|
292
|
+
id: string;
|
|
297
293
|
managers?: {
|
|
298
294
|
id: string;
|
|
299
|
-
firstName: string;
|
|
300
295
|
lastName: string;
|
|
296
|
+
firstName: string;
|
|
301
297
|
}[] | undefined;
|
|
302
298
|
} | null | undefined;
|
|
303
299
|
phoneNumbers?: {
|
|
@@ -306,15 +302,24 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
306
302
|
description?: string | null | undefined;
|
|
307
303
|
isPrimary?: boolean | undefined;
|
|
308
304
|
}[] | undefined;
|
|
309
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
310
|
-
officeId?: string | null | undefined;
|
|
311
305
|
canImpersonateUsers?: {
|
|
312
306
|
id: string;
|
|
313
|
-
firstName: string;
|
|
314
307
|
lastName: string;
|
|
308
|
+
firstName: string;
|
|
315
309
|
}[] | undefined;
|
|
310
|
+
dialpadUserId?: string | null | undefined;
|
|
316
311
|
deletedAt?: string | Date | null | undefined;
|
|
317
312
|
} | undefined;
|
|
313
|
+
lead?: {
|
|
314
|
+
name: string;
|
|
315
|
+
phoneNumber: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
company?: {
|
|
318
|
+
name: string;
|
|
319
|
+
createdAt: string | Date;
|
|
320
|
+
updatedAt: string | Date;
|
|
321
|
+
id: string;
|
|
322
|
+
} | null | undefined;
|
|
318
323
|
}>>>;
|
|
319
324
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
320
325
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -324,117 +329,110 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
324
329
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
325
330
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
331
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
id: string;
|
|
328
332
|
createdAt: string;
|
|
329
333
|
updatedAt: string;
|
|
330
|
-
|
|
334
|
+
id: string;
|
|
331
335
|
rating: CallRating;
|
|
336
|
+
notes: string | null;
|
|
332
337
|
callType: CallType;
|
|
333
338
|
leadSource: LeadSource;
|
|
334
339
|
ratingWeight: number;
|
|
335
|
-
|
|
340
|
+
assignmentId: string;
|
|
336
341
|
agentId?: string | undefined;
|
|
337
342
|
leadId?: string | undefined;
|
|
338
343
|
assignment?: {
|
|
339
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
340
|
-
id: string;
|
|
341
344
|
createdAt: string;
|
|
342
345
|
updatedAt: string;
|
|
343
|
-
|
|
346
|
+
id: string;
|
|
347
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
344
348
|
agentId: string | null;
|
|
345
349
|
leadId: string;
|
|
346
350
|
assignedAt: string;
|
|
347
351
|
assignedBy: string | null;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
companyId: string | null;
|
|
353
|
+
agent?: {
|
|
354
|
+
email: string;
|
|
351
355
|
createdAt: string;
|
|
352
356
|
updatedAt: string;
|
|
353
|
-
} | null | undefined;
|
|
354
|
-
lead?: {
|
|
355
|
-
phoneNumber: string;
|
|
356
|
-
name: string;
|
|
357
|
-
} | undefined;
|
|
358
|
-
agent?: {
|
|
359
|
-
status: "ACTIVE" | "INACTIVE";
|
|
360
357
|
id: string;
|
|
361
|
-
|
|
358
|
+
status: "ACTIVE" | "INACTIVE";
|
|
362
359
|
lastName: string;
|
|
363
|
-
|
|
364
|
-
createdAt: string;
|
|
360
|
+
firstName: string;
|
|
365
361
|
phoneNumbers: {
|
|
366
362
|
id: string;
|
|
367
363
|
phoneNumber: string;
|
|
368
364
|
isPrimary: boolean;
|
|
369
365
|
description?: string | null | undefined;
|
|
370
366
|
}[];
|
|
371
|
-
|
|
367
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
368
|
+
officeId?: string | null | undefined;
|
|
372
369
|
office?: {
|
|
373
|
-
id: string;
|
|
374
370
|
name: string;
|
|
371
|
+
id: string;
|
|
375
372
|
managers?: {
|
|
376
373
|
id: string;
|
|
377
|
-
firstName: string;
|
|
378
374
|
lastName: string;
|
|
375
|
+
firstName: string;
|
|
379
376
|
}[] | undefined;
|
|
380
377
|
} | null | undefined;
|
|
381
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
382
|
-
officeId?: string | null | undefined;
|
|
383
378
|
canImpersonateUsers?: {
|
|
384
379
|
id: string;
|
|
385
|
-
firstName: string;
|
|
386
380
|
lastName: string;
|
|
381
|
+
firstName: string;
|
|
387
382
|
}[] | undefined;
|
|
383
|
+
dialpadUserId?: string | null | undefined;
|
|
388
384
|
deletedAt?: string | null | undefined;
|
|
389
385
|
} | undefined;
|
|
386
|
+
lead?: {
|
|
387
|
+
name: string;
|
|
388
|
+
phoneNumber: string;
|
|
389
|
+
} | undefined;
|
|
390
|
+
company?: {
|
|
391
|
+
name: string;
|
|
392
|
+
createdAt: string;
|
|
393
|
+
updatedAt: string;
|
|
394
|
+
id: string;
|
|
395
|
+
} | null | undefined;
|
|
390
396
|
} | null | undefined;
|
|
391
397
|
}, {
|
|
392
|
-
id: string;
|
|
393
398
|
createdAt: string | Date;
|
|
394
399
|
updatedAt: string | Date;
|
|
395
|
-
|
|
400
|
+
id: string;
|
|
396
401
|
rating: CallRating;
|
|
402
|
+
notes: string | null;
|
|
397
403
|
callType: CallType;
|
|
398
404
|
leadSource: LeadSource;
|
|
399
405
|
ratingWeight: number;
|
|
400
|
-
|
|
406
|
+
assignmentId: string;
|
|
401
407
|
agentId?: string | undefined;
|
|
402
408
|
leadId?: string | undefined;
|
|
403
409
|
assignment?: {
|
|
404
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
405
|
-
id: string;
|
|
406
410
|
createdAt: string | Date;
|
|
407
411
|
updatedAt: string | Date;
|
|
408
|
-
|
|
412
|
+
id: string;
|
|
413
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
409
414
|
agentId: string | null;
|
|
410
415
|
leadId: string;
|
|
411
416
|
assignedAt: string | Date;
|
|
412
417
|
assignedBy: string | null;
|
|
413
|
-
|
|
414
|
-
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
createdAt: string | Date;
|
|
417
|
-
updatedAt: string | Date;
|
|
418
|
-
} | null | undefined;
|
|
419
|
-
lead?: {
|
|
420
|
-
phoneNumber: string;
|
|
421
|
-
name: string;
|
|
422
|
-
} | undefined;
|
|
418
|
+
companyId: string | null;
|
|
423
419
|
agent?: {
|
|
424
|
-
status: "ACTIVE" | "INACTIVE";
|
|
425
|
-
id: string;
|
|
426
|
-
firstName: string;
|
|
427
|
-
lastName: string;
|
|
428
420
|
email: string;
|
|
429
421
|
createdAt: string | Date;
|
|
430
422
|
updatedAt: string | Date;
|
|
423
|
+
id: string;
|
|
424
|
+
status: "ACTIVE" | "INACTIVE";
|
|
425
|
+
lastName: string;
|
|
426
|
+
firstName: string;
|
|
427
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
428
|
+
officeId?: string | null | undefined;
|
|
431
429
|
office?: {
|
|
432
|
-
id: string;
|
|
433
430
|
name: string;
|
|
431
|
+
id: string;
|
|
434
432
|
managers?: {
|
|
435
433
|
id: string;
|
|
436
|
-
firstName: string;
|
|
437
434
|
lastName: string;
|
|
435
|
+
firstName: string;
|
|
438
436
|
}[] | undefined;
|
|
439
437
|
} | null | undefined;
|
|
440
438
|
phoneNumbers?: {
|
|
@@ -443,15 +441,24 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
443
441
|
description?: string | null | undefined;
|
|
444
442
|
isPrimary?: boolean | undefined;
|
|
445
443
|
}[] | undefined;
|
|
446
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
447
|
-
officeId?: string | null | undefined;
|
|
448
444
|
canImpersonateUsers?: {
|
|
449
445
|
id: string;
|
|
450
|
-
firstName: string;
|
|
451
446
|
lastName: string;
|
|
447
|
+
firstName: string;
|
|
452
448
|
}[] | undefined;
|
|
449
|
+
dialpadUserId?: string | null | undefined;
|
|
453
450
|
deletedAt?: string | Date | null | undefined;
|
|
454
451
|
} | undefined;
|
|
452
|
+
lead?: {
|
|
453
|
+
name: string;
|
|
454
|
+
phoneNumber: string;
|
|
455
|
+
} | undefined;
|
|
456
|
+
company?: {
|
|
457
|
+
name: string;
|
|
458
|
+
createdAt: string | Date;
|
|
459
|
+
updatedAt: string | Date;
|
|
460
|
+
id: string;
|
|
461
|
+
} | null | undefined;
|
|
455
462
|
} | null | undefined;
|
|
456
463
|
}>;
|
|
457
464
|
export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
@@ -467,11 +474,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
467
474
|
name: z.ZodString;
|
|
468
475
|
phoneNumber: z.ZodString;
|
|
469
476
|
}, "strip", z.ZodTypeAny, {
|
|
470
|
-
phoneNumber: string;
|
|
471
477
|
name: string;
|
|
472
|
-
}, {
|
|
473
478
|
phoneNumber: string;
|
|
479
|
+
}, {
|
|
474
480
|
name: string;
|
|
481
|
+
phoneNumber: string;
|
|
475
482
|
}>>;
|
|
476
483
|
agentId: z.ZodNullable<z.ZodString>;
|
|
477
484
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -506,28 +513,28 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
506
513
|
lastName: z.ZodString;
|
|
507
514
|
}, "strip", z.ZodTypeAny, {
|
|
508
515
|
id: string;
|
|
509
|
-
firstName: string;
|
|
510
516
|
lastName: string;
|
|
517
|
+
firstName: string;
|
|
511
518
|
}, {
|
|
512
519
|
id: string;
|
|
513
|
-
firstName: string;
|
|
514
520
|
lastName: string;
|
|
521
|
+
firstName: string;
|
|
515
522
|
}>, "many">>;
|
|
516
523
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
id: string;
|
|
518
524
|
name: string;
|
|
525
|
+
id: string;
|
|
519
526
|
managers?: {
|
|
520
527
|
id: string;
|
|
521
|
-
firstName: string;
|
|
522
528
|
lastName: string;
|
|
529
|
+
firstName: string;
|
|
523
530
|
}[] | undefined;
|
|
524
531
|
}, {
|
|
525
|
-
id: string;
|
|
526
532
|
name: string;
|
|
533
|
+
id: string;
|
|
527
534
|
managers?: {
|
|
528
535
|
id: string;
|
|
529
|
-
firstName: string;
|
|
530
536
|
lastName: string;
|
|
537
|
+
firstName: string;
|
|
531
538
|
}[] | undefined;
|
|
532
539
|
}>>>;
|
|
533
540
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -536,63 +543,67 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
536
543
|
lastName: z.ZodString;
|
|
537
544
|
}, "strip", z.ZodTypeAny, {
|
|
538
545
|
id: string;
|
|
539
|
-
firstName: string;
|
|
540
546
|
lastName: string;
|
|
547
|
+
firstName: string;
|
|
541
548
|
}, {
|
|
542
549
|
id: string;
|
|
543
|
-
firstName: string;
|
|
544
550
|
lastName: string;
|
|
551
|
+
firstName: string;
|
|
545
552
|
}>, "many">>;
|
|
546
553
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
554
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
547
555
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
548
556
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
549
557
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
550
558
|
}, "strip", z.ZodTypeAny, {
|
|
551
|
-
status: "ACTIVE" | "INACTIVE";
|
|
552
|
-
id: string;
|
|
553
|
-
firstName: string;
|
|
554
|
-
lastName: string;
|
|
555
559
|
email: string;
|
|
556
560
|
createdAt: string;
|
|
561
|
+
updatedAt: string;
|
|
562
|
+
id: string;
|
|
563
|
+
status: "ACTIVE" | "INACTIVE";
|
|
564
|
+
lastName: string;
|
|
565
|
+
firstName: string;
|
|
557
566
|
phoneNumbers: {
|
|
558
567
|
id: string;
|
|
559
568
|
phoneNumber: string;
|
|
560
569
|
isPrimary: boolean;
|
|
561
570
|
description?: string | null | undefined;
|
|
562
571
|
}[];
|
|
563
|
-
|
|
572
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
573
|
+
officeId?: string | null | undefined;
|
|
564
574
|
office?: {
|
|
565
|
-
id: string;
|
|
566
575
|
name: string;
|
|
576
|
+
id: string;
|
|
567
577
|
managers?: {
|
|
568
578
|
id: string;
|
|
569
|
-
firstName: string;
|
|
570
579
|
lastName: string;
|
|
580
|
+
firstName: string;
|
|
571
581
|
}[] | undefined;
|
|
572
582
|
} | null | undefined;
|
|
573
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
574
|
-
officeId?: string | null | undefined;
|
|
575
583
|
canImpersonateUsers?: {
|
|
576
584
|
id: string;
|
|
577
|
-
firstName: string;
|
|
578
585
|
lastName: string;
|
|
586
|
+
firstName: string;
|
|
579
587
|
}[] | undefined;
|
|
588
|
+
dialpadUserId?: string | null | undefined;
|
|
580
589
|
deletedAt?: string | null | undefined;
|
|
581
590
|
}, {
|
|
582
|
-
status: "ACTIVE" | "INACTIVE";
|
|
583
|
-
id: string;
|
|
584
|
-
firstName: string;
|
|
585
|
-
lastName: string;
|
|
586
591
|
email: string;
|
|
587
592
|
createdAt: string | Date;
|
|
588
593
|
updatedAt: string | Date;
|
|
594
|
+
id: string;
|
|
595
|
+
status: "ACTIVE" | "INACTIVE";
|
|
596
|
+
lastName: string;
|
|
597
|
+
firstName: string;
|
|
598
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
599
|
+
officeId?: string | null | undefined;
|
|
589
600
|
office?: {
|
|
590
|
-
id: string;
|
|
591
601
|
name: string;
|
|
602
|
+
id: string;
|
|
592
603
|
managers?: {
|
|
593
604
|
id: string;
|
|
594
|
-
firstName: string;
|
|
595
605
|
lastName: string;
|
|
606
|
+
firstName: string;
|
|
596
607
|
}[] | undefined;
|
|
597
608
|
} | null | undefined;
|
|
598
609
|
phoneNumbers?: {
|
|
@@ -601,13 +612,12 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
601
612
|
description?: string | null | undefined;
|
|
602
613
|
isPrimary?: boolean | undefined;
|
|
603
614
|
}[] | undefined;
|
|
604
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
605
|
-
officeId?: string | null | undefined;
|
|
606
615
|
canImpersonateUsers?: {
|
|
607
616
|
id: string;
|
|
608
|
-
firstName: string;
|
|
609
617
|
lastName: string;
|
|
618
|
+
firstName: string;
|
|
610
619
|
}[] | undefined;
|
|
620
|
+
dialpadUserId?: string | null | undefined;
|
|
611
621
|
deletedAt?: string | Date | null | undefined;
|
|
612
622
|
}>>;
|
|
613
623
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -620,105 +630,98 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
620
630
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
621
631
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
622
632
|
}, "strip", z.ZodTypeAny, {
|
|
623
|
-
id: string;
|
|
624
633
|
name: string;
|
|
625
634
|
createdAt: string;
|
|
626
635
|
updatedAt: string;
|
|
627
|
-
}, {
|
|
628
636
|
id: string;
|
|
637
|
+
}, {
|
|
629
638
|
name: string;
|
|
630
639
|
createdAt: string | Date;
|
|
631
640
|
updatedAt: string | Date;
|
|
641
|
+
id: string;
|
|
632
642
|
}>>>;
|
|
633
643
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
634
644
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
635
645
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
637
|
-
id: string;
|
|
638
646
|
createdAt: string;
|
|
639
647
|
updatedAt: string;
|
|
640
|
-
|
|
648
|
+
id: string;
|
|
649
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
641
650
|
agentId: string | null;
|
|
642
651
|
leadId: string;
|
|
643
652
|
assignedAt: string;
|
|
644
653
|
assignedBy: string | null;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
654
|
+
companyId: string | null;
|
|
655
|
+
agent?: {
|
|
656
|
+
email: string;
|
|
648
657
|
createdAt: string;
|
|
649
658
|
updatedAt: string;
|
|
650
|
-
} | null | undefined;
|
|
651
|
-
lead?: {
|
|
652
|
-
phoneNumber: string;
|
|
653
|
-
name: string;
|
|
654
|
-
} | undefined;
|
|
655
|
-
agent?: {
|
|
656
|
-
status: "ACTIVE" | "INACTIVE";
|
|
657
659
|
id: string;
|
|
658
|
-
|
|
660
|
+
status: "ACTIVE" | "INACTIVE";
|
|
659
661
|
lastName: string;
|
|
660
|
-
|
|
661
|
-
createdAt: string;
|
|
662
|
+
firstName: string;
|
|
662
663
|
phoneNumbers: {
|
|
663
664
|
id: string;
|
|
664
665
|
phoneNumber: string;
|
|
665
666
|
isPrimary: boolean;
|
|
666
667
|
description?: string | null | undefined;
|
|
667
668
|
}[];
|
|
668
|
-
|
|
669
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
670
|
+
officeId?: string | null | undefined;
|
|
669
671
|
office?: {
|
|
670
|
-
id: string;
|
|
671
672
|
name: string;
|
|
673
|
+
id: string;
|
|
672
674
|
managers?: {
|
|
673
675
|
id: string;
|
|
674
|
-
firstName: string;
|
|
675
676
|
lastName: string;
|
|
677
|
+
firstName: string;
|
|
676
678
|
}[] | undefined;
|
|
677
679
|
} | null | undefined;
|
|
678
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
679
|
-
officeId?: string | null | undefined;
|
|
680
680
|
canImpersonateUsers?: {
|
|
681
681
|
id: string;
|
|
682
|
-
firstName: string;
|
|
683
682
|
lastName: string;
|
|
683
|
+
firstName: string;
|
|
684
684
|
}[] | undefined;
|
|
685
|
+
dialpadUserId?: string | null | undefined;
|
|
685
686
|
deletedAt?: string | null | undefined;
|
|
686
687
|
} | undefined;
|
|
688
|
+
lead?: {
|
|
689
|
+
name: string;
|
|
690
|
+
phoneNumber: string;
|
|
691
|
+
} | undefined;
|
|
692
|
+
company?: {
|
|
693
|
+
name: string;
|
|
694
|
+
createdAt: string;
|
|
695
|
+
updatedAt: string;
|
|
696
|
+
id: string;
|
|
697
|
+
} | null | undefined;
|
|
687
698
|
}, {
|
|
688
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
689
|
-
id: string;
|
|
690
699
|
createdAt: string | Date;
|
|
691
700
|
updatedAt: string | Date;
|
|
692
|
-
|
|
701
|
+
id: string;
|
|
702
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
693
703
|
agentId: string | null;
|
|
694
704
|
leadId: string;
|
|
695
705
|
assignedAt: string | Date;
|
|
696
706
|
assignedBy: string | null;
|
|
697
|
-
|
|
698
|
-
id: string;
|
|
699
|
-
name: string;
|
|
700
|
-
createdAt: string | Date;
|
|
701
|
-
updatedAt: string | Date;
|
|
702
|
-
} | null | undefined;
|
|
703
|
-
lead?: {
|
|
704
|
-
phoneNumber: string;
|
|
705
|
-
name: string;
|
|
706
|
-
} | undefined;
|
|
707
|
+
companyId: string | null;
|
|
707
708
|
agent?: {
|
|
708
|
-
status: "ACTIVE" | "INACTIVE";
|
|
709
|
-
id: string;
|
|
710
|
-
firstName: string;
|
|
711
|
-
lastName: string;
|
|
712
709
|
email: string;
|
|
713
710
|
createdAt: string | Date;
|
|
714
711
|
updatedAt: string | Date;
|
|
712
|
+
id: string;
|
|
713
|
+
status: "ACTIVE" | "INACTIVE";
|
|
714
|
+
lastName: string;
|
|
715
|
+
firstName: string;
|
|
716
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
717
|
+
officeId?: string | null | undefined;
|
|
715
718
|
office?: {
|
|
716
|
-
id: string;
|
|
717
719
|
name: string;
|
|
720
|
+
id: string;
|
|
718
721
|
managers?: {
|
|
719
722
|
id: string;
|
|
720
|
-
firstName: string;
|
|
721
723
|
lastName: string;
|
|
724
|
+
firstName: string;
|
|
722
725
|
}[] | undefined;
|
|
723
726
|
} | null | undefined;
|
|
724
727
|
phoneNumbers?: {
|
|
@@ -727,15 +730,24 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
727
730
|
description?: string | null | undefined;
|
|
728
731
|
isPrimary?: boolean | undefined;
|
|
729
732
|
}[] | undefined;
|
|
730
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
731
|
-
officeId?: string | null | undefined;
|
|
732
733
|
canImpersonateUsers?: {
|
|
733
734
|
id: string;
|
|
734
|
-
firstName: string;
|
|
735
735
|
lastName: string;
|
|
736
|
+
firstName: string;
|
|
736
737
|
}[] | undefined;
|
|
738
|
+
dialpadUserId?: string | null | undefined;
|
|
737
739
|
deletedAt?: string | Date | null | undefined;
|
|
738
740
|
} | undefined;
|
|
741
|
+
lead?: {
|
|
742
|
+
name: string;
|
|
743
|
+
phoneNumber: string;
|
|
744
|
+
} | undefined;
|
|
745
|
+
company?: {
|
|
746
|
+
name: string;
|
|
747
|
+
createdAt: string | Date;
|
|
748
|
+
updatedAt: string | Date;
|
|
749
|
+
id: string;
|
|
750
|
+
} | null | undefined;
|
|
739
751
|
}>>>;
|
|
740
752
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
741
753
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -745,117 +757,110 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
745
757
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
746
758
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
747
759
|
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
id: string;
|
|
749
760
|
createdAt: string;
|
|
750
761
|
updatedAt: string;
|
|
751
|
-
|
|
762
|
+
id: string;
|
|
752
763
|
rating: CallRating;
|
|
764
|
+
notes: string | null;
|
|
753
765
|
callType: CallType;
|
|
754
766
|
leadSource: LeadSource;
|
|
755
767
|
ratingWeight: number;
|
|
756
|
-
|
|
768
|
+
assignmentId: string;
|
|
757
769
|
agentId?: string | undefined;
|
|
758
770
|
leadId?: string | undefined;
|
|
759
771
|
assignment?: {
|
|
760
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
761
|
-
id: string;
|
|
762
772
|
createdAt: string;
|
|
763
773
|
updatedAt: string;
|
|
764
|
-
|
|
774
|
+
id: string;
|
|
775
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
765
776
|
agentId: string | null;
|
|
766
777
|
leadId: string;
|
|
767
778
|
assignedAt: string;
|
|
768
779
|
assignedBy: string | null;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
780
|
+
companyId: string | null;
|
|
781
|
+
agent?: {
|
|
782
|
+
email: string;
|
|
772
783
|
createdAt: string;
|
|
773
784
|
updatedAt: string;
|
|
774
|
-
} | null | undefined;
|
|
775
|
-
lead?: {
|
|
776
|
-
phoneNumber: string;
|
|
777
|
-
name: string;
|
|
778
|
-
} | undefined;
|
|
779
|
-
agent?: {
|
|
780
|
-
status: "ACTIVE" | "INACTIVE";
|
|
781
785
|
id: string;
|
|
782
|
-
|
|
786
|
+
status: "ACTIVE" | "INACTIVE";
|
|
783
787
|
lastName: string;
|
|
784
|
-
|
|
785
|
-
createdAt: string;
|
|
788
|
+
firstName: string;
|
|
786
789
|
phoneNumbers: {
|
|
787
790
|
id: string;
|
|
788
791
|
phoneNumber: string;
|
|
789
792
|
isPrimary: boolean;
|
|
790
793
|
description?: string | null | undefined;
|
|
791
794
|
}[];
|
|
792
|
-
|
|
795
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
796
|
+
officeId?: string | null | undefined;
|
|
793
797
|
office?: {
|
|
794
|
-
id: string;
|
|
795
798
|
name: string;
|
|
799
|
+
id: string;
|
|
796
800
|
managers?: {
|
|
797
801
|
id: string;
|
|
798
|
-
firstName: string;
|
|
799
802
|
lastName: string;
|
|
803
|
+
firstName: string;
|
|
800
804
|
}[] | undefined;
|
|
801
805
|
} | null | undefined;
|
|
802
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
803
|
-
officeId?: string | null | undefined;
|
|
804
806
|
canImpersonateUsers?: {
|
|
805
807
|
id: string;
|
|
806
|
-
firstName: string;
|
|
807
808
|
lastName: string;
|
|
809
|
+
firstName: string;
|
|
808
810
|
}[] | undefined;
|
|
811
|
+
dialpadUserId?: string | null | undefined;
|
|
809
812
|
deletedAt?: string | null | undefined;
|
|
810
813
|
} | undefined;
|
|
814
|
+
lead?: {
|
|
815
|
+
name: string;
|
|
816
|
+
phoneNumber: string;
|
|
817
|
+
} | undefined;
|
|
818
|
+
company?: {
|
|
819
|
+
name: string;
|
|
820
|
+
createdAt: string;
|
|
821
|
+
updatedAt: string;
|
|
822
|
+
id: string;
|
|
823
|
+
} | null | undefined;
|
|
811
824
|
} | null | undefined;
|
|
812
825
|
}, {
|
|
813
|
-
id: string;
|
|
814
826
|
createdAt: string | Date;
|
|
815
827
|
updatedAt: string | Date;
|
|
816
|
-
|
|
828
|
+
id: string;
|
|
817
829
|
rating: CallRating;
|
|
830
|
+
notes: string | null;
|
|
818
831
|
callType: CallType;
|
|
819
832
|
leadSource: LeadSource;
|
|
820
833
|
ratingWeight: number;
|
|
821
|
-
|
|
834
|
+
assignmentId: string;
|
|
822
835
|
agentId?: string | undefined;
|
|
823
836
|
leadId?: string | undefined;
|
|
824
837
|
assignment?: {
|
|
825
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
826
|
-
id: string;
|
|
827
838
|
createdAt: string | Date;
|
|
828
839
|
updatedAt: string | Date;
|
|
829
|
-
|
|
840
|
+
id: string;
|
|
841
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
830
842
|
agentId: string | null;
|
|
831
843
|
leadId: string;
|
|
832
844
|
assignedAt: string | Date;
|
|
833
845
|
assignedBy: string | null;
|
|
834
|
-
|
|
835
|
-
id: string;
|
|
836
|
-
name: string;
|
|
837
|
-
createdAt: string | Date;
|
|
838
|
-
updatedAt: string | Date;
|
|
839
|
-
} | null | undefined;
|
|
840
|
-
lead?: {
|
|
841
|
-
phoneNumber: string;
|
|
842
|
-
name: string;
|
|
843
|
-
} | undefined;
|
|
846
|
+
companyId: string | null;
|
|
844
847
|
agent?: {
|
|
845
|
-
status: "ACTIVE" | "INACTIVE";
|
|
846
|
-
id: string;
|
|
847
|
-
firstName: string;
|
|
848
|
-
lastName: string;
|
|
849
848
|
email: string;
|
|
850
849
|
createdAt: string | Date;
|
|
851
850
|
updatedAt: string | Date;
|
|
851
|
+
id: string;
|
|
852
|
+
status: "ACTIVE" | "INACTIVE";
|
|
853
|
+
lastName: string;
|
|
854
|
+
firstName: string;
|
|
855
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
856
|
+
officeId?: string | null | undefined;
|
|
852
857
|
office?: {
|
|
853
|
-
id: string;
|
|
854
858
|
name: string;
|
|
859
|
+
id: string;
|
|
855
860
|
managers?: {
|
|
856
861
|
id: string;
|
|
857
|
-
firstName: string;
|
|
858
862
|
lastName: string;
|
|
863
|
+
firstName: string;
|
|
859
864
|
}[] | undefined;
|
|
860
865
|
} | null | undefined;
|
|
861
866
|
phoneNumbers?: {
|
|
@@ -864,15 +869,24 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
864
869
|
description?: string | null | undefined;
|
|
865
870
|
isPrimary?: boolean | undefined;
|
|
866
871
|
}[] | undefined;
|
|
867
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
868
|
-
officeId?: string | null | undefined;
|
|
869
872
|
canImpersonateUsers?: {
|
|
870
873
|
id: string;
|
|
871
|
-
firstName: string;
|
|
872
874
|
lastName: string;
|
|
875
|
+
firstName: string;
|
|
873
876
|
}[] | undefined;
|
|
877
|
+
dialpadUserId?: string | null | undefined;
|
|
874
878
|
deletedAt?: string | Date | null | undefined;
|
|
875
879
|
} | undefined;
|
|
880
|
+
lead?: {
|
|
881
|
+
name: string;
|
|
882
|
+
phoneNumber: string;
|
|
883
|
+
} | undefined;
|
|
884
|
+
company?: {
|
|
885
|
+
name: string;
|
|
886
|
+
createdAt: string | Date;
|
|
887
|
+
updatedAt: string | Date;
|
|
888
|
+
id: string;
|
|
889
|
+
} | null | undefined;
|
|
876
890
|
} | null | undefined;
|
|
877
891
|
}>, "many">;
|
|
878
892
|
totalCount: z.ZodNumber;
|
|
@@ -883,69 +897,70 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
883
897
|
}, "strip", z.ZodTypeAny, {
|
|
884
898
|
limit: number;
|
|
885
899
|
items: {
|
|
886
|
-
id: string;
|
|
887
900
|
createdAt: string;
|
|
888
901
|
updatedAt: string;
|
|
889
|
-
|
|
902
|
+
id: string;
|
|
890
903
|
rating: CallRating;
|
|
904
|
+
notes: string | null;
|
|
891
905
|
callType: CallType;
|
|
892
906
|
leadSource: LeadSource;
|
|
893
907
|
ratingWeight: number;
|
|
894
|
-
|
|
908
|
+
assignmentId: string;
|
|
895
909
|
agentId?: string | undefined;
|
|
896
910
|
leadId?: string | undefined;
|
|
897
911
|
assignment?: {
|
|
898
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
899
|
-
id: string;
|
|
900
912
|
createdAt: string;
|
|
901
913
|
updatedAt: string;
|
|
902
|
-
|
|
914
|
+
id: string;
|
|
915
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
903
916
|
agentId: string | null;
|
|
904
917
|
leadId: string;
|
|
905
918
|
assignedAt: string;
|
|
906
919
|
assignedBy: string | null;
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
920
|
+
companyId: string | null;
|
|
921
|
+
agent?: {
|
|
922
|
+
email: string;
|
|
910
923
|
createdAt: string;
|
|
911
924
|
updatedAt: string;
|
|
912
|
-
} | null | undefined;
|
|
913
|
-
lead?: {
|
|
914
|
-
phoneNumber: string;
|
|
915
|
-
name: string;
|
|
916
|
-
} | undefined;
|
|
917
|
-
agent?: {
|
|
918
|
-
status: "ACTIVE" | "INACTIVE";
|
|
919
925
|
id: string;
|
|
920
|
-
|
|
926
|
+
status: "ACTIVE" | "INACTIVE";
|
|
921
927
|
lastName: string;
|
|
922
|
-
|
|
923
|
-
createdAt: string;
|
|
928
|
+
firstName: string;
|
|
924
929
|
phoneNumbers: {
|
|
925
930
|
id: string;
|
|
926
931
|
phoneNumber: string;
|
|
927
932
|
isPrimary: boolean;
|
|
928
933
|
description?: string | null | undefined;
|
|
929
934
|
}[];
|
|
930
|
-
|
|
935
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
936
|
+
officeId?: string | null | undefined;
|
|
931
937
|
office?: {
|
|
932
|
-
id: string;
|
|
933
938
|
name: string;
|
|
939
|
+
id: string;
|
|
934
940
|
managers?: {
|
|
935
941
|
id: string;
|
|
936
|
-
firstName: string;
|
|
937
942
|
lastName: string;
|
|
943
|
+
firstName: string;
|
|
938
944
|
}[] | undefined;
|
|
939
945
|
} | null | undefined;
|
|
940
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
941
|
-
officeId?: string | null | undefined;
|
|
942
946
|
canImpersonateUsers?: {
|
|
943
947
|
id: string;
|
|
944
|
-
firstName: string;
|
|
945
948
|
lastName: string;
|
|
949
|
+
firstName: string;
|
|
946
950
|
}[] | undefined;
|
|
951
|
+
dialpadUserId?: string | null | undefined;
|
|
947
952
|
deletedAt?: string | null | undefined;
|
|
948
953
|
} | undefined;
|
|
954
|
+
lead?: {
|
|
955
|
+
name: string;
|
|
956
|
+
phoneNumber: string;
|
|
957
|
+
} | undefined;
|
|
958
|
+
company?: {
|
|
959
|
+
name: string;
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
962
|
+
id: string;
|
|
963
|
+
} | null | undefined;
|
|
949
964
|
} | null | undefined;
|
|
950
965
|
}[];
|
|
951
966
|
totalCount: number;
|
|
@@ -955,52 +970,44 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
955
970
|
}, {
|
|
956
971
|
limit: number;
|
|
957
972
|
items: {
|
|
958
|
-
id: string;
|
|
959
973
|
createdAt: string | Date;
|
|
960
974
|
updatedAt: string | Date;
|
|
961
|
-
|
|
975
|
+
id: string;
|
|
962
976
|
rating: CallRating;
|
|
977
|
+
notes: string | null;
|
|
963
978
|
callType: CallType;
|
|
964
979
|
leadSource: LeadSource;
|
|
965
980
|
ratingWeight: number;
|
|
966
|
-
|
|
981
|
+
assignmentId: string;
|
|
967
982
|
agentId?: string | undefined;
|
|
968
983
|
leadId?: string | undefined;
|
|
969
984
|
assignment?: {
|
|
970
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
971
|
-
id: string;
|
|
972
985
|
createdAt: string | Date;
|
|
973
986
|
updatedAt: string | Date;
|
|
974
|
-
|
|
987
|
+
id: string;
|
|
988
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
975
989
|
agentId: string | null;
|
|
976
990
|
leadId: string;
|
|
977
991
|
assignedAt: string | Date;
|
|
978
992
|
assignedBy: string | null;
|
|
979
|
-
|
|
980
|
-
id: string;
|
|
981
|
-
name: string;
|
|
982
|
-
createdAt: string | Date;
|
|
983
|
-
updatedAt: string | Date;
|
|
984
|
-
} | null | undefined;
|
|
985
|
-
lead?: {
|
|
986
|
-
phoneNumber: string;
|
|
987
|
-
name: string;
|
|
988
|
-
} | undefined;
|
|
993
|
+
companyId: string | null;
|
|
989
994
|
agent?: {
|
|
990
|
-
status: "ACTIVE" | "INACTIVE";
|
|
991
|
-
id: string;
|
|
992
|
-
firstName: string;
|
|
993
|
-
lastName: string;
|
|
994
995
|
email: string;
|
|
995
996
|
createdAt: string | Date;
|
|
996
997
|
updatedAt: string | Date;
|
|
998
|
+
id: string;
|
|
999
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1000
|
+
lastName: string;
|
|
1001
|
+
firstName: string;
|
|
1002
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1003
|
+
officeId?: string | null | undefined;
|
|
997
1004
|
office?: {
|
|
998
|
-
id: string;
|
|
999
1005
|
name: string;
|
|
1006
|
+
id: string;
|
|
1000
1007
|
managers?: {
|
|
1001
1008
|
id: string;
|
|
1002
|
-
firstName: string;
|
|
1003
1009
|
lastName: string;
|
|
1010
|
+
firstName: string;
|
|
1004
1011
|
}[] | undefined;
|
|
1005
1012
|
} | null | undefined;
|
|
1006
1013
|
phoneNumbers?: {
|
|
@@ -1009,15 +1016,24 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
1009
1016
|
description?: string | null | undefined;
|
|
1010
1017
|
isPrimary?: boolean | undefined;
|
|
1011
1018
|
}[] | undefined;
|
|
1012
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1013
|
-
officeId?: string | null | undefined;
|
|
1014
1019
|
canImpersonateUsers?: {
|
|
1015
1020
|
id: string;
|
|
1016
|
-
firstName: string;
|
|
1017
1021
|
lastName: string;
|
|
1022
|
+
firstName: string;
|
|
1018
1023
|
}[] | undefined;
|
|
1024
|
+
dialpadUserId?: string | null | undefined;
|
|
1019
1025
|
deletedAt?: string | Date | null | undefined;
|
|
1020
1026
|
} | undefined;
|
|
1027
|
+
lead?: {
|
|
1028
|
+
name: string;
|
|
1029
|
+
phoneNumber: string;
|
|
1030
|
+
} | undefined;
|
|
1031
|
+
company?: {
|
|
1032
|
+
name: string;
|
|
1033
|
+
createdAt: string | Date;
|
|
1034
|
+
updatedAt: string | Date;
|
|
1035
|
+
id: string;
|
|
1036
|
+
} | null | undefined;
|
|
1021
1037
|
} | null | undefined;
|
|
1022
1038
|
}[];
|
|
1023
1039
|
totalCount: number;
|
|
@@ -1047,11 +1063,11 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1047
1063
|
name: z.ZodString;
|
|
1048
1064
|
phoneNumber: z.ZodString;
|
|
1049
1065
|
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
phoneNumber: string;
|
|
1051
1066
|
name: string;
|
|
1052
|
-
}, {
|
|
1053
1067
|
phoneNumber: string;
|
|
1068
|
+
}, {
|
|
1054
1069
|
name: string;
|
|
1070
|
+
phoneNumber: string;
|
|
1055
1071
|
}>>>;
|
|
1056
1072
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1057
1073
|
id: z.ZodString;
|
|
@@ -1076,8 +1092,8 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1076
1092
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1077
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1078
1094
|
id: string;
|
|
1079
|
-
firstName: string;
|
|
1080
1095
|
lastName: string;
|
|
1096
|
+
firstName: string;
|
|
1081
1097
|
phoneNumbers: {
|
|
1082
1098
|
id: string;
|
|
1083
1099
|
phoneNumber: string;
|
|
@@ -1087,8 +1103,8 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1087
1103
|
deletedAt?: string | null | undefined;
|
|
1088
1104
|
}, {
|
|
1089
1105
|
id: string;
|
|
1090
|
-
firstName: string;
|
|
1091
1106
|
lastName: string;
|
|
1107
|
+
firstName: string;
|
|
1092
1108
|
phoneNumbers?: {
|
|
1093
1109
|
id: string;
|
|
1094
1110
|
phoneNumber: string;
|
|
@@ -1101,38 +1117,27 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1101
1117
|
id: z.ZodString;
|
|
1102
1118
|
name: z.ZodString;
|
|
1103
1119
|
}, "strip", z.ZodTypeAny, {
|
|
1104
|
-
id: string;
|
|
1105
1120
|
name: string;
|
|
1106
|
-
}, {
|
|
1107
1121
|
id: string;
|
|
1122
|
+
}, {
|
|
1108
1123
|
name: string;
|
|
1124
|
+
id: string;
|
|
1109
1125
|
}>>>;
|
|
1110
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1111
|
-
id: string;
|
|
1112
1127
|
createdAt: string;
|
|
1113
1128
|
updatedAt: string;
|
|
1129
|
+
id: string;
|
|
1114
1130
|
agentId: string;
|
|
1115
|
-
assignmentId: string;
|
|
1116
1131
|
rating: CallRating;
|
|
1132
|
+
notes: string | null;
|
|
1117
1133
|
callType: CallType;
|
|
1118
1134
|
leadSource: LeadSource;
|
|
1119
1135
|
ratingWeight: number;
|
|
1120
|
-
|
|
1121
|
-
company?: {
|
|
1122
|
-
id: string;
|
|
1123
|
-
name: string;
|
|
1124
|
-
} | null | undefined;
|
|
1125
|
-
assignment?: {
|
|
1126
|
-
agentId: string | null;
|
|
1127
|
-
} | null | undefined;
|
|
1128
|
-
lead?: {
|
|
1129
|
-
phoneNumber: string;
|
|
1130
|
-
name: string;
|
|
1131
|
-
} | null | undefined;
|
|
1136
|
+
assignmentId: string;
|
|
1132
1137
|
agent?: {
|
|
1133
1138
|
id: string;
|
|
1134
|
-
firstName: string;
|
|
1135
1139
|
lastName: string;
|
|
1140
|
+
firstName: string;
|
|
1136
1141
|
phoneNumbers: {
|
|
1137
1142
|
id: string;
|
|
1138
1143
|
phoneNumber: string;
|
|
@@ -1141,32 +1146,32 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1141
1146
|
}[];
|
|
1142
1147
|
deletedAt?: string | null | undefined;
|
|
1143
1148
|
} | null | undefined;
|
|
1149
|
+
lead?: {
|
|
1150
|
+
name: string;
|
|
1151
|
+
phoneNumber: string;
|
|
1152
|
+
} | null | undefined;
|
|
1153
|
+
company?: {
|
|
1154
|
+
name: string;
|
|
1155
|
+
id: string;
|
|
1156
|
+
} | null | undefined;
|
|
1157
|
+
assignment?: {
|
|
1158
|
+
agentId: string | null;
|
|
1159
|
+
} | null | undefined;
|
|
1144
1160
|
}, {
|
|
1145
|
-
id: string;
|
|
1146
1161
|
createdAt: string | Date;
|
|
1147
1162
|
updatedAt: string | Date;
|
|
1163
|
+
id: string;
|
|
1148
1164
|
agentId: string;
|
|
1149
|
-
assignmentId: string;
|
|
1150
1165
|
rating: CallRating;
|
|
1166
|
+
notes: string | null;
|
|
1151
1167
|
callType: CallType;
|
|
1152
1168
|
leadSource: LeadSource;
|
|
1153
1169
|
ratingWeight: number;
|
|
1154
|
-
|
|
1155
|
-
company?: {
|
|
1156
|
-
id: string;
|
|
1157
|
-
name: string;
|
|
1158
|
-
} | null | undefined;
|
|
1159
|
-
assignment?: {
|
|
1160
|
-
agentId: string | null;
|
|
1161
|
-
} | null | undefined;
|
|
1162
|
-
lead?: {
|
|
1163
|
-
phoneNumber: string;
|
|
1164
|
-
name: string;
|
|
1165
|
-
} | null | undefined;
|
|
1170
|
+
assignmentId: string;
|
|
1166
1171
|
agent?: {
|
|
1167
1172
|
id: string;
|
|
1168
|
-
firstName: string;
|
|
1169
1173
|
lastName: string;
|
|
1174
|
+
firstName: string;
|
|
1170
1175
|
phoneNumbers?: {
|
|
1171
1176
|
id: string;
|
|
1172
1177
|
phoneNumber: string;
|
|
@@ -1175,6 +1180,17 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1175
1180
|
}[] | undefined;
|
|
1176
1181
|
deletedAt?: string | Date | null | undefined;
|
|
1177
1182
|
} | null | undefined;
|
|
1183
|
+
lead?: {
|
|
1184
|
+
name: string;
|
|
1185
|
+
phoneNumber: string;
|
|
1186
|
+
} | null | undefined;
|
|
1187
|
+
company?: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
id: string;
|
|
1190
|
+
} | null | undefined;
|
|
1191
|
+
assignment?: {
|
|
1192
|
+
agentId: string | null;
|
|
1193
|
+
} | null | undefined;
|
|
1178
1194
|
}>;
|
|
1179
1195
|
export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
1180
1196
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1199,11 +1215,11 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1199
1215
|
name: z.ZodString;
|
|
1200
1216
|
phoneNumber: z.ZodString;
|
|
1201
1217
|
}, "strip", z.ZodTypeAny, {
|
|
1202
|
-
phoneNumber: string;
|
|
1203
1218
|
name: string;
|
|
1204
|
-
}, {
|
|
1205
1219
|
phoneNumber: string;
|
|
1220
|
+
}, {
|
|
1206
1221
|
name: string;
|
|
1222
|
+
phoneNumber: string;
|
|
1207
1223
|
}>>>;
|
|
1208
1224
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1209
1225
|
id: z.ZodString;
|
|
@@ -1228,8 +1244,8 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1228
1244
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1229
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1230
1246
|
id: string;
|
|
1231
|
-
firstName: string;
|
|
1232
1247
|
lastName: string;
|
|
1248
|
+
firstName: string;
|
|
1233
1249
|
phoneNumbers: {
|
|
1234
1250
|
id: string;
|
|
1235
1251
|
phoneNumber: string;
|
|
@@ -1239,8 +1255,8 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1239
1255
|
deletedAt?: string | null | undefined;
|
|
1240
1256
|
}, {
|
|
1241
1257
|
id: string;
|
|
1242
|
-
firstName: string;
|
|
1243
1258
|
lastName: string;
|
|
1259
|
+
firstName: string;
|
|
1244
1260
|
phoneNumbers?: {
|
|
1245
1261
|
id: string;
|
|
1246
1262
|
phoneNumber: string;
|
|
@@ -1253,38 +1269,27 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1253
1269
|
id: z.ZodString;
|
|
1254
1270
|
name: z.ZodString;
|
|
1255
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1256
|
-
id: string;
|
|
1257
1272
|
name: string;
|
|
1258
|
-
}, {
|
|
1259
1273
|
id: string;
|
|
1274
|
+
}, {
|
|
1260
1275
|
name: string;
|
|
1276
|
+
id: string;
|
|
1261
1277
|
}>>>;
|
|
1262
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1263
|
-
id: string;
|
|
1264
1279
|
createdAt: string;
|
|
1265
1280
|
updatedAt: string;
|
|
1281
|
+
id: string;
|
|
1266
1282
|
agentId: string;
|
|
1267
|
-
assignmentId: string;
|
|
1268
1283
|
rating: CallRating;
|
|
1284
|
+
notes: string | null;
|
|
1269
1285
|
callType: CallType;
|
|
1270
1286
|
leadSource: LeadSource;
|
|
1271
1287
|
ratingWeight: number;
|
|
1272
|
-
|
|
1273
|
-
company?: {
|
|
1274
|
-
id: string;
|
|
1275
|
-
name: string;
|
|
1276
|
-
} | null | undefined;
|
|
1277
|
-
assignment?: {
|
|
1278
|
-
agentId: string | null;
|
|
1279
|
-
} | null | undefined;
|
|
1280
|
-
lead?: {
|
|
1281
|
-
phoneNumber: string;
|
|
1282
|
-
name: string;
|
|
1283
|
-
} | null | undefined;
|
|
1288
|
+
assignmentId: string;
|
|
1284
1289
|
agent?: {
|
|
1285
1290
|
id: string;
|
|
1286
|
-
firstName: string;
|
|
1287
1291
|
lastName: string;
|
|
1292
|
+
firstName: string;
|
|
1288
1293
|
phoneNumbers: {
|
|
1289
1294
|
id: string;
|
|
1290
1295
|
phoneNumber: string;
|
|
@@ -1293,32 +1298,32 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1293
1298
|
}[];
|
|
1294
1299
|
deletedAt?: string | null | undefined;
|
|
1295
1300
|
} | null | undefined;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
agentId: string;
|
|
1301
|
-
assignmentId: string;
|
|
1302
|
-
rating: CallRating;
|
|
1303
|
-
callType: CallType;
|
|
1304
|
-
leadSource: LeadSource;
|
|
1305
|
-
ratingWeight: number;
|
|
1306
|
-
notes: string | null;
|
|
1301
|
+
lead?: {
|
|
1302
|
+
name: string;
|
|
1303
|
+
phoneNumber: string;
|
|
1304
|
+
} | null | undefined;
|
|
1307
1305
|
company?: {
|
|
1308
|
-
id: string;
|
|
1309
1306
|
name: string;
|
|
1307
|
+
id: string;
|
|
1310
1308
|
} | null | undefined;
|
|
1311
1309
|
assignment?: {
|
|
1312
1310
|
agentId: string | null;
|
|
1313
1311
|
} | null | undefined;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1312
|
+
}, {
|
|
1313
|
+
createdAt: string | Date;
|
|
1314
|
+
updatedAt: string | Date;
|
|
1315
|
+
id: string;
|
|
1316
|
+
agentId: string;
|
|
1317
|
+
rating: CallRating;
|
|
1318
|
+
notes: string | null;
|
|
1319
|
+
callType: CallType;
|
|
1320
|
+
leadSource: LeadSource;
|
|
1321
|
+
ratingWeight: number;
|
|
1322
|
+
assignmentId: string;
|
|
1318
1323
|
agent?: {
|
|
1319
1324
|
id: string;
|
|
1320
|
-
firstName: string;
|
|
1321
1325
|
lastName: string;
|
|
1326
|
+
firstName: string;
|
|
1322
1327
|
phoneNumbers?: {
|
|
1323
1328
|
id: string;
|
|
1324
1329
|
phoneNumber: string;
|
|
@@ -1327,6 +1332,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1327
1332
|
}[] | undefined;
|
|
1328
1333
|
deletedAt?: string | Date | null | undefined;
|
|
1329
1334
|
} | null | undefined;
|
|
1335
|
+
lead?: {
|
|
1336
|
+
name: string;
|
|
1337
|
+
phoneNumber: string;
|
|
1338
|
+
} | null | undefined;
|
|
1339
|
+
company?: {
|
|
1340
|
+
name: string;
|
|
1341
|
+
id: string;
|
|
1342
|
+
} | null | undefined;
|
|
1343
|
+
assignment?: {
|
|
1344
|
+
agentId: string | null;
|
|
1345
|
+
} | null | undefined;
|
|
1330
1346
|
}>, "many">;
|
|
1331
1347
|
totalCount: z.ZodNumber;
|
|
1332
1348
|
limit: z.ZodNumber;
|
|
@@ -1336,31 +1352,20 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1336
1352
|
}, "strip", z.ZodTypeAny, {
|
|
1337
1353
|
limit: number;
|
|
1338
1354
|
items: {
|
|
1339
|
-
id: string;
|
|
1340
1355
|
createdAt: string;
|
|
1341
1356
|
updatedAt: string;
|
|
1357
|
+
id: string;
|
|
1342
1358
|
agentId: string;
|
|
1343
|
-
assignmentId: string;
|
|
1344
1359
|
rating: CallRating;
|
|
1360
|
+
notes: string | null;
|
|
1345
1361
|
callType: CallType;
|
|
1346
1362
|
leadSource: LeadSource;
|
|
1347
1363
|
ratingWeight: number;
|
|
1348
|
-
|
|
1349
|
-
company?: {
|
|
1350
|
-
id: string;
|
|
1351
|
-
name: string;
|
|
1352
|
-
} | null | undefined;
|
|
1353
|
-
assignment?: {
|
|
1354
|
-
agentId: string | null;
|
|
1355
|
-
} | null | undefined;
|
|
1356
|
-
lead?: {
|
|
1357
|
-
phoneNumber: string;
|
|
1358
|
-
name: string;
|
|
1359
|
-
} | null | undefined;
|
|
1364
|
+
assignmentId: string;
|
|
1360
1365
|
agent?: {
|
|
1361
1366
|
id: string;
|
|
1362
|
-
firstName: string;
|
|
1363
1367
|
lastName: string;
|
|
1368
|
+
firstName: string;
|
|
1364
1369
|
phoneNumbers: {
|
|
1365
1370
|
id: string;
|
|
1366
1371
|
phoneNumber: string;
|
|
@@ -1369,6 +1374,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1369
1374
|
}[];
|
|
1370
1375
|
deletedAt?: string | null | undefined;
|
|
1371
1376
|
} | null | undefined;
|
|
1377
|
+
lead?: {
|
|
1378
|
+
name: string;
|
|
1379
|
+
phoneNumber: string;
|
|
1380
|
+
} | null | undefined;
|
|
1381
|
+
company?: {
|
|
1382
|
+
name: string;
|
|
1383
|
+
id: string;
|
|
1384
|
+
} | null | undefined;
|
|
1385
|
+
assignment?: {
|
|
1386
|
+
agentId: string | null;
|
|
1387
|
+
} | null | undefined;
|
|
1372
1388
|
}[];
|
|
1373
1389
|
totalCount: number;
|
|
1374
1390
|
skip: number;
|
|
@@ -1377,31 +1393,20 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1377
1393
|
}, {
|
|
1378
1394
|
limit: number;
|
|
1379
1395
|
items: {
|
|
1380
|
-
id: string;
|
|
1381
1396
|
createdAt: string | Date;
|
|
1382
1397
|
updatedAt: string | Date;
|
|
1398
|
+
id: string;
|
|
1383
1399
|
agentId: string;
|
|
1384
|
-
assignmentId: string;
|
|
1385
1400
|
rating: CallRating;
|
|
1401
|
+
notes: string | null;
|
|
1386
1402
|
callType: CallType;
|
|
1387
1403
|
leadSource: LeadSource;
|
|
1388
1404
|
ratingWeight: number;
|
|
1389
|
-
|
|
1390
|
-
company?: {
|
|
1391
|
-
id: string;
|
|
1392
|
-
name: string;
|
|
1393
|
-
} | null | undefined;
|
|
1394
|
-
assignment?: {
|
|
1395
|
-
agentId: string | null;
|
|
1396
|
-
} | null | undefined;
|
|
1397
|
-
lead?: {
|
|
1398
|
-
phoneNumber: string;
|
|
1399
|
-
name: string;
|
|
1400
|
-
} | null | undefined;
|
|
1405
|
+
assignmentId: string;
|
|
1401
1406
|
agent?: {
|
|
1402
1407
|
id: string;
|
|
1403
|
-
firstName: string;
|
|
1404
1408
|
lastName: string;
|
|
1409
|
+
firstName: string;
|
|
1405
1410
|
phoneNumbers?: {
|
|
1406
1411
|
id: string;
|
|
1407
1412
|
phoneNumber: string;
|
|
@@ -1410,6 +1415,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1410
1415
|
}[] | undefined;
|
|
1411
1416
|
deletedAt?: string | Date | null | undefined;
|
|
1412
1417
|
} | null | undefined;
|
|
1418
|
+
lead?: {
|
|
1419
|
+
name: string;
|
|
1420
|
+
phoneNumber: string;
|
|
1421
|
+
} | null | undefined;
|
|
1422
|
+
company?: {
|
|
1423
|
+
name: string;
|
|
1424
|
+
id: string;
|
|
1425
|
+
} | null | undefined;
|
|
1426
|
+
assignment?: {
|
|
1427
|
+
agentId: string | null;
|
|
1428
|
+
} | null | undefined;
|
|
1413
1429
|
}[];
|
|
1414
1430
|
totalCount: number;
|
|
1415
1431
|
skip: number;
|
|
@@ -1422,14 +1438,14 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
1422
1438
|
notes: z.ZodOptional<z.ZodString>;
|
|
1423
1439
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1424
1440
|
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
assignmentId: string;
|
|
1426
1441
|
rating: CallRating;
|
|
1427
1442
|
callType: CallType;
|
|
1443
|
+
assignmentId: string;
|
|
1428
1444
|
notes?: string | undefined;
|
|
1429
1445
|
}, {
|
|
1430
|
-
assignmentId: string;
|
|
1431
1446
|
rating: CallRating;
|
|
1432
1447
|
callType: CallType;
|
|
1448
|
+
assignmentId: string;
|
|
1433
1449
|
notes?: string | undefined;
|
|
1434
1450
|
}>;
|
|
1435
1451
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
@@ -1483,24 +1499,24 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
1483
1499
|
order: "ASC" | "DESC";
|
|
1484
1500
|
}>, "many">>>;
|
|
1485
1501
|
}, "strip", z.ZodTypeAny, {
|
|
1486
|
-
limit: number;
|
|
1487
1502
|
page: number;
|
|
1503
|
+
limit: number;
|
|
1488
1504
|
sort?: {
|
|
1489
1505
|
field: CallHistorySortableFields;
|
|
1490
1506
|
order: "ASC" | "DESC";
|
|
1491
1507
|
}[] | null | undefined;
|
|
1492
|
-
phoneNumber?: string | undefined;
|
|
1493
1508
|
createdAt?: {
|
|
1494
1509
|
from?: string | null | undefined;
|
|
1495
1510
|
to?: string | null | undefined;
|
|
1496
1511
|
} | null | undefined;
|
|
1497
|
-
companyId?: string | undefined;
|
|
1498
1512
|
agentId?: string | undefined;
|
|
1513
|
+
phoneNumber?: string | undefined;
|
|
1499
1514
|
rating?: {
|
|
1500
1515
|
from?: CallRating | null | undefined;
|
|
1501
1516
|
to?: CallRating | null | undefined;
|
|
1502
1517
|
} | null | undefined;
|
|
1503
1518
|
callType?: CallType | undefined;
|
|
1519
|
+
companyId?: string | undefined;
|
|
1504
1520
|
leadSource?: LeadSource | undefined;
|
|
1505
1521
|
leadName?: string | undefined;
|
|
1506
1522
|
}, {
|
|
@@ -1508,20 +1524,20 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
1508
1524
|
field: CallHistorySortableFields;
|
|
1509
1525
|
order: "ASC" | "DESC";
|
|
1510
1526
|
}[] | null | undefined;
|
|
1511
|
-
phoneNumber?: string | undefined;
|
|
1512
|
-
limit?: number | undefined;
|
|
1513
|
-
page?: number | undefined;
|
|
1514
1527
|
createdAt?: {
|
|
1515
1528
|
from?: string | null | undefined;
|
|
1516
1529
|
to?: string | null | undefined;
|
|
1517
1530
|
} | null | undefined;
|
|
1518
|
-
|
|
1531
|
+
page?: number | undefined;
|
|
1532
|
+
limit?: number | undefined;
|
|
1519
1533
|
agentId?: string | undefined;
|
|
1534
|
+
phoneNumber?: string | undefined;
|
|
1520
1535
|
rating?: {
|
|
1521
1536
|
from?: unknown;
|
|
1522
1537
|
to?: unknown;
|
|
1523
1538
|
} | null | undefined;
|
|
1524
1539
|
callType?: CallType | undefined;
|
|
1540
|
+
companyId?: string | undefined;
|
|
1525
1541
|
leadSource?: LeadSource | undefined;
|
|
1526
1542
|
leadName?: string | undefined;
|
|
1527
1543
|
}>;
|
|
@@ -1559,14 +1575,14 @@ export declare const callHistoryContract: {
|
|
|
1559
1575
|
notes: z.ZodOptional<z.ZodString>;
|
|
1560
1576
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1561
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1562
|
-
assignmentId: string;
|
|
1563
1578
|
rating: CallRating;
|
|
1564
1579
|
callType: CallType;
|
|
1580
|
+
assignmentId: string;
|
|
1565
1581
|
notes?: string | undefined;
|
|
1566
1582
|
}, {
|
|
1567
|
-
assignmentId: string;
|
|
1568
1583
|
rating: CallRating;
|
|
1569
1584
|
callType: CallType;
|
|
1585
|
+
assignmentId: string;
|
|
1570
1586
|
notes?: string | undefined;
|
|
1571
1587
|
}>;
|
|
1572
1588
|
path: "/v2/call-history";
|
|
@@ -1596,7 +1612,7 @@ export declare const callHistoryContract: {
|
|
|
1596
1612
|
details?: unknown;
|
|
1597
1613
|
correlationId?: string | undefined;
|
|
1598
1614
|
}>;
|
|
1599
|
-
|
|
1615
|
+
403: z.ZodObject<{
|
|
1600
1616
|
statusCode: z.ZodNumber;
|
|
1601
1617
|
message: z.ZodString;
|
|
1602
1618
|
code: z.ZodString;
|
|
@@ -1621,7 +1637,7 @@ export declare const callHistoryContract: {
|
|
|
1621
1637
|
details?: unknown;
|
|
1622
1638
|
correlationId?: string | undefined;
|
|
1623
1639
|
}>;
|
|
1624
|
-
|
|
1640
|
+
401: z.ZodObject<{
|
|
1625
1641
|
statusCode: z.ZodNumber;
|
|
1626
1642
|
message: z.ZodString;
|
|
1627
1643
|
code: z.ZodString;
|
|
@@ -1683,11 +1699,11 @@ export declare const callHistoryContract: {
|
|
|
1683
1699
|
name: z.ZodString;
|
|
1684
1700
|
phoneNumber: z.ZodString;
|
|
1685
1701
|
}, "strip", z.ZodTypeAny, {
|
|
1686
|
-
phoneNumber: string;
|
|
1687
1702
|
name: string;
|
|
1688
|
-
}, {
|
|
1689
1703
|
phoneNumber: string;
|
|
1704
|
+
}, {
|
|
1690
1705
|
name: string;
|
|
1706
|
+
phoneNumber: string;
|
|
1691
1707
|
}>>;
|
|
1692
1708
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1693
1709
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1722,28 +1738,28 @@ export declare const callHistoryContract: {
|
|
|
1722
1738
|
lastName: z.ZodString;
|
|
1723
1739
|
}, "strip", z.ZodTypeAny, {
|
|
1724
1740
|
id: string;
|
|
1725
|
-
firstName: string;
|
|
1726
1741
|
lastName: string;
|
|
1742
|
+
firstName: string;
|
|
1727
1743
|
}, {
|
|
1728
1744
|
id: string;
|
|
1729
|
-
firstName: string;
|
|
1730
1745
|
lastName: string;
|
|
1746
|
+
firstName: string;
|
|
1731
1747
|
}>, "many">>;
|
|
1732
1748
|
}, "strip", z.ZodTypeAny, {
|
|
1733
|
-
id: string;
|
|
1734
1749
|
name: string;
|
|
1750
|
+
id: string;
|
|
1735
1751
|
managers?: {
|
|
1736
1752
|
id: string;
|
|
1737
|
-
firstName: string;
|
|
1738
1753
|
lastName: string;
|
|
1754
|
+
firstName: string;
|
|
1739
1755
|
}[] | undefined;
|
|
1740
1756
|
}, {
|
|
1741
|
-
id: string;
|
|
1742
1757
|
name: string;
|
|
1758
|
+
id: string;
|
|
1743
1759
|
managers?: {
|
|
1744
1760
|
id: string;
|
|
1745
|
-
firstName: string;
|
|
1746
1761
|
lastName: string;
|
|
1762
|
+
firstName: string;
|
|
1747
1763
|
}[] | undefined;
|
|
1748
1764
|
}>>>;
|
|
1749
1765
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1752,63 +1768,67 @@ export declare const callHistoryContract: {
|
|
|
1752
1768
|
lastName: z.ZodString;
|
|
1753
1769
|
}, "strip", z.ZodTypeAny, {
|
|
1754
1770
|
id: string;
|
|
1755
|
-
firstName: string;
|
|
1756
1771
|
lastName: string;
|
|
1772
|
+
firstName: string;
|
|
1757
1773
|
}, {
|
|
1758
1774
|
id: string;
|
|
1759
|
-
firstName: string;
|
|
1760
1775
|
lastName: string;
|
|
1776
|
+
firstName: string;
|
|
1761
1777
|
}>, "many">>;
|
|
1762
1778
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1779
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1763
1780
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1764
1781
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1765
1782
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1766
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1767
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1768
|
-
id: string;
|
|
1769
|
-
firstName: string;
|
|
1770
|
-
lastName: string;
|
|
1771
1784
|
email: string;
|
|
1772
1785
|
createdAt: string;
|
|
1786
|
+
updatedAt: string;
|
|
1787
|
+
id: string;
|
|
1788
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1789
|
+
lastName: string;
|
|
1790
|
+
firstName: string;
|
|
1773
1791
|
phoneNumbers: {
|
|
1774
1792
|
id: string;
|
|
1775
1793
|
phoneNumber: string;
|
|
1776
1794
|
isPrimary: boolean;
|
|
1777
1795
|
description?: string | null | undefined;
|
|
1778
1796
|
}[];
|
|
1779
|
-
|
|
1797
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1798
|
+
officeId?: string | null | undefined;
|
|
1780
1799
|
office?: {
|
|
1781
|
-
id: string;
|
|
1782
1800
|
name: string;
|
|
1801
|
+
id: string;
|
|
1783
1802
|
managers?: {
|
|
1784
1803
|
id: string;
|
|
1785
|
-
firstName: string;
|
|
1786
1804
|
lastName: string;
|
|
1805
|
+
firstName: string;
|
|
1787
1806
|
}[] | undefined;
|
|
1788
1807
|
} | null | undefined;
|
|
1789
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1790
|
-
officeId?: string | null | undefined;
|
|
1791
1808
|
canImpersonateUsers?: {
|
|
1792
1809
|
id: string;
|
|
1793
|
-
firstName: string;
|
|
1794
1810
|
lastName: string;
|
|
1811
|
+
firstName: string;
|
|
1795
1812
|
}[] | undefined;
|
|
1813
|
+
dialpadUserId?: string | null | undefined;
|
|
1796
1814
|
deletedAt?: string | null | undefined;
|
|
1797
1815
|
}, {
|
|
1798
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1799
|
-
id: string;
|
|
1800
|
-
firstName: string;
|
|
1801
|
-
lastName: string;
|
|
1802
1816
|
email: string;
|
|
1803
1817
|
createdAt: string | Date;
|
|
1804
1818
|
updatedAt: string | Date;
|
|
1819
|
+
id: string;
|
|
1820
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1821
|
+
lastName: string;
|
|
1822
|
+
firstName: string;
|
|
1823
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1824
|
+
officeId?: string | null | undefined;
|
|
1805
1825
|
office?: {
|
|
1806
|
-
id: string;
|
|
1807
1826
|
name: string;
|
|
1827
|
+
id: string;
|
|
1808
1828
|
managers?: {
|
|
1809
1829
|
id: string;
|
|
1810
|
-
firstName: string;
|
|
1811
1830
|
lastName: string;
|
|
1831
|
+
firstName: string;
|
|
1812
1832
|
}[] | undefined;
|
|
1813
1833
|
} | null | undefined;
|
|
1814
1834
|
phoneNumbers?: {
|
|
@@ -1817,13 +1837,12 @@ export declare const callHistoryContract: {
|
|
|
1817
1837
|
description?: string | null | undefined;
|
|
1818
1838
|
isPrimary?: boolean | undefined;
|
|
1819
1839
|
}[] | undefined;
|
|
1820
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1821
|
-
officeId?: string | null | undefined;
|
|
1822
1840
|
canImpersonateUsers?: {
|
|
1823
1841
|
id: string;
|
|
1824
|
-
firstName: string;
|
|
1825
1842
|
lastName: string;
|
|
1843
|
+
firstName: string;
|
|
1826
1844
|
}[] | undefined;
|
|
1845
|
+
dialpadUserId?: string | null | undefined;
|
|
1827
1846
|
deletedAt?: string | Date | null | undefined;
|
|
1828
1847
|
}>>;
|
|
1829
1848
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1836,105 +1855,98 @@ export declare const callHistoryContract: {
|
|
|
1836
1855
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1837
1856
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1838
1857
|
}, "strip", z.ZodTypeAny, {
|
|
1839
|
-
id: string;
|
|
1840
1858
|
name: string;
|
|
1841
1859
|
createdAt: string;
|
|
1842
1860
|
updatedAt: string;
|
|
1843
|
-
}, {
|
|
1844
1861
|
id: string;
|
|
1862
|
+
}, {
|
|
1845
1863
|
name: string;
|
|
1846
1864
|
createdAt: string | Date;
|
|
1847
1865
|
updatedAt: string | Date;
|
|
1866
|
+
id: string;
|
|
1848
1867
|
}>>>;
|
|
1849
1868
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1850
1869
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1851
1870
|
}, "strip", z.ZodTypeAny, {
|
|
1852
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1853
|
-
id: string;
|
|
1854
1871
|
createdAt: string;
|
|
1855
1872
|
updatedAt: string;
|
|
1856
|
-
|
|
1873
|
+
id: string;
|
|
1874
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1857
1875
|
agentId: string | null;
|
|
1858
1876
|
leadId: string;
|
|
1859
1877
|
assignedAt: string;
|
|
1860
1878
|
assignedBy: string | null;
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1879
|
+
companyId: string | null;
|
|
1880
|
+
agent?: {
|
|
1881
|
+
email: string;
|
|
1864
1882
|
createdAt: string;
|
|
1865
1883
|
updatedAt: string;
|
|
1866
|
-
} | null | undefined;
|
|
1867
|
-
lead?: {
|
|
1868
|
-
phoneNumber: string;
|
|
1869
|
-
name: string;
|
|
1870
|
-
} | undefined;
|
|
1871
|
-
agent?: {
|
|
1872
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1873
1884
|
id: string;
|
|
1874
|
-
|
|
1885
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1875
1886
|
lastName: string;
|
|
1876
|
-
|
|
1877
|
-
createdAt: string;
|
|
1887
|
+
firstName: string;
|
|
1878
1888
|
phoneNumbers: {
|
|
1879
1889
|
id: string;
|
|
1880
1890
|
phoneNumber: string;
|
|
1881
1891
|
isPrimary: boolean;
|
|
1882
1892
|
description?: string | null | undefined;
|
|
1883
1893
|
}[];
|
|
1884
|
-
|
|
1894
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1895
|
+
officeId?: string | null | undefined;
|
|
1885
1896
|
office?: {
|
|
1886
|
-
id: string;
|
|
1887
1897
|
name: string;
|
|
1898
|
+
id: string;
|
|
1888
1899
|
managers?: {
|
|
1889
1900
|
id: string;
|
|
1890
|
-
firstName: string;
|
|
1891
1901
|
lastName: string;
|
|
1902
|
+
firstName: string;
|
|
1892
1903
|
}[] | undefined;
|
|
1893
1904
|
} | null | undefined;
|
|
1894
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1895
|
-
officeId?: string | null | undefined;
|
|
1896
1905
|
canImpersonateUsers?: {
|
|
1897
1906
|
id: string;
|
|
1898
|
-
firstName: string;
|
|
1899
1907
|
lastName: string;
|
|
1908
|
+
firstName: string;
|
|
1900
1909
|
}[] | undefined;
|
|
1910
|
+
dialpadUserId?: string | null | undefined;
|
|
1901
1911
|
deletedAt?: string | null | undefined;
|
|
1902
1912
|
} | undefined;
|
|
1913
|
+
lead?: {
|
|
1914
|
+
name: string;
|
|
1915
|
+
phoneNumber: string;
|
|
1916
|
+
} | undefined;
|
|
1917
|
+
company?: {
|
|
1918
|
+
name: string;
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
updatedAt: string;
|
|
1921
|
+
id: string;
|
|
1922
|
+
} | null | undefined;
|
|
1903
1923
|
}, {
|
|
1904
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1905
|
-
id: string;
|
|
1906
1924
|
createdAt: string | Date;
|
|
1907
1925
|
updatedAt: string | Date;
|
|
1908
|
-
|
|
1926
|
+
id: string;
|
|
1927
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1909
1928
|
agentId: string | null;
|
|
1910
1929
|
leadId: string;
|
|
1911
1930
|
assignedAt: string | Date;
|
|
1912
1931
|
assignedBy: string | null;
|
|
1913
|
-
|
|
1914
|
-
id: string;
|
|
1915
|
-
name: string;
|
|
1916
|
-
createdAt: string | Date;
|
|
1917
|
-
updatedAt: string | Date;
|
|
1918
|
-
} | null | undefined;
|
|
1919
|
-
lead?: {
|
|
1920
|
-
phoneNumber: string;
|
|
1921
|
-
name: string;
|
|
1922
|
-
} | undefined;
|
|
1932
|
+
companyId: string | null;
|
|
1923
1933
|
agent?: {
|
|
1924
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1925
|
-
id: string;
|
|
1926
|
-
firstName: string;
|
|
1927
|
-
lastName: string;
|
|
1928
1934
|
email: string;
|
|
1929
1935
|
createdAt: string | Date;
|
|
1930
1936
|
updatedAt: string | Date;
|
|
1937
|
+
id: string;
|
|
1938
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1939
|
+
lastName: string;
|
|
1940
|
+
firstName: string;
|
|
1941
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1942
|
+
officeId?: string | null | undefined;
|
|
1931
1943
|
office?: {
|
|
1932
|
-
id: string;
|
|
1933
1944
|
name: string;
|
|
1945
|
+
id: string;
|
|
1934
1946
|
managers?: {
|
|
1935
1947
|
id: string;
|
|
1936
|
-
firstName: string;
|
|
1937
1948
|
lastName: string;
|
|
1949
|
+
firstName: string;
|
|
1938
1950
|
}[] | undefined;
|
|
1939
1951
|
} | null | undefined;
|
|
1940
1952
|
phoneNumbers?: {
|
|
@@ -1943,15 +1955,24 @@ export declare const callHistoryContract: {
|
|
|
1943
1955
|
description?: string | null | undefined;
|
|
1944
1956
|
isPrimary?: boolean | undefined;
|
|
1945
1957
|
}[] | undefined;
|
|
1946
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1947
|
-
officeId?: string | null | undefined;
|
|
1948
1958
|
canImpersonateUsers?: {
|
|
1949
1959
|
id: string;
|
|
1950
|
-
firstName: string;
|
|
1951
1960
|
lastName: string;
|
|
1961
|
+
firstName: string;
|
|
1952
1962
|
}[] | undefined;
|
|
1963
|
+
dialpadUserId?: string | null | undefined;
|
|
1953
1964
|
deletedAt?: string | Date | null | undefined;
|
|
1954
1965
|
} | undefined;
|
|
1966
|
+
lead?: {
|
|
1967
|
+
name: string;
|
|
1968
|
+
phoneNumber: string;
|
|
1969
|
+
} | undefined;
|
|
1970
|
+
company?: {
|
|
1971
|
+
name: string;
|
|
1972
|
+
createdAt: string | Date;
|
|
1973
|
+
updatedAt: string | Date;
|
|
1974
|
+
id: string;
|
|
1975
|
+
} | null | undefined;
|
|
1955
1976
|
}>>>;
|
|
1956
1977
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1957
1978
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -1961,117 +1982,110 @@ export declare const callHistoryContract: {
|
|
|
1961
1982
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1962
1983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1963
1984
|
}, "strip", z.ZodTypeAny, {
|
|
1964
|
-
id: string;
|
|
1965
1985
|
createdAt: string;
|
|
1966
1986
|
updatedAt: string;
|
|
1967
|
-
|
|
1987
|
+
id: string;
|
|
1968
1988
|
rating: CallRating;
|
|
1989
|
+
notes: string | null;
|
|
1969
1990
|
callType: CallType;
|
|
1970
1991
|
leadSource: LeadSource;
|
|
1971
1992
|
ratingWeight: number;
|
|
1972
|
-
|
|
1993
|
+
assignmentId: string;
|
|
1973
1994
|
agentId?: string | undefined;
|
|
1974
1995
|
leadId?: string | undefined;
|
|
1975
1996
|
assignment?: {
|
|
1976
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1977
|
-
id: string;
|
|
1978
1997
|
createdAt: string;
|
|
1979
1998
|
updatedAt: string;
|
|
1980
|
-
|
|
1999
|
+
id: string;
|
|
2000
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1981
2001
|
agentId: string | null;
|
|
1982
2002
|
leadId: string;
|
|
1983
2003
|
assignedAt: string;
|
|
1984
2004
|
assignedBy: string | null;
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2005
|
+
companyId: string | null;
|
|
2006
|
+
agent?: {
|
|
2007
|
+
email: string;
|
|
1988
2008
|
createdAt: string;
|
|
1989
2009
|
updatedAt: string;
|
|
1990
|
-
} | null | undefined;
|
|
1991
|
-
lead?: {
|
|
1992
|
-
phoneNumber: string;
|
|
1993
|
-
name: string;
|
|
1994
|
-
} | undefined;
|
|
1995
|
-
agent?: {
|
|
1996
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1997
2010
|
id: string;
|
|
1998
|
-
|
|
2011
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1999
2012
|
lastName: string;
|
|
2000
|
-
|
|
2001
|
-
createdAt: string;
|
|
2013
|
+
firstName: string;
|
|
2002
2014
|
phoneNumbers: {
|
|
2003
2015
|
id: string;
|
|
2004
2016
|
phoneNumber: string;
|
|
2005
2017
|
isPrimary: boolean;
|
|
2006
2018
|
description?: string | null | undefined;
|
|
2007
2019
|
}[];
|
|
2008
|
-
|
|
2020
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2021
|
+
officeId?: string | null | undefined;
|
|
2009
2022
|
office?: {
|
|
2010
|
-
id: string;
|
|
2011
2023
|
name: string;
|
|
2024
|
+
id: string;
|
|
2012
2025
|
managers?: {
|
|
2013
2026
|
id: string;
|
|
2014
|
-
firstName: string;
|
|
2015
2027
|
lastName: string;
|
|
2028
|
+
firstName: string;
|
|
2016
2029
|
}[] | undefined;
|
|
2017
2030
|
} | null | undefined;
|
|
2018
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2019
|
-
officeId?: string | null | undefined;
|
|
2020
2031
|
canImpersonateUsers?: {
|
|
2021
2032
|
id: string;
|
|
2022
|
-
firstName: string;
|
|
2023
2033
|
lastName: string;
|
|
2034
|
+
firstName: string;
|
|
2024
2035
|
}[] | undefined;
|
|
2036
|
+
dialpadUserId?: string | null | undefined;
|
|
2025
2037
|
deletedAt?: string | null | undefined;
|
|
2026
2038
|
} | undefined;
|
|
2039
|
+
lead?: {
|
|
2040
|
+
name: string;
|
|
2041
|
+
phoneNumber: string;
|
|
2042
|
+
} | undefined;
|
|
2043
|
+
company?: {
|
|
2044
|
+
name: string;
|
|
2045
|
+
createdAt: string;
|
|
2046
|
+
updatedAt: string;
|
|
2047
|
+
id: string;
|
|
2048
|
+
} | null | undefined;
|
|
2027
2049
|
} | null | undefined;
|
|
2028
2050
|
}, {
|
|
2029
|
-
id: string;
|
|
2030
2051
|
createdAt: string | Date;
|
|
2031
2052
|
updatedAt: string | Date;
|
|
2032
|
-
|
|
2053
|
+
id: string;
|
|
2033
2054
|
rating: CallRating;
|
|
2055
|
+
notes: string | null;
|
|
2034
2056
|
callType: CallType;
|
|
2035
2057
|
leadSource: LeadSource;
|
|
2036
2058
|
ratingWeight: number;
|
|
2037
|
-
|
|
2059
|
+
assignmentId: string;
|
|
2038
2060
|
agentId?: string | undefined;
|
|
2039
2061
|
leadId?: string | undefined;
|
|
2040
2062
|
assignment?: {
|
|
2041
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2042
|
-
id: string;
|
|
2043
2063
|
createdAt: string | Date;
|
|
2044
2064
|
updatedAt: string | Date;
|
|
2045
|
-
|
|
2065
|
+
id: string;
|
|
2066
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2046
2067
|
agentId: string | null;
|
|
2047
2068
|
leadId: string;
|
|
2048
2069
|
assignedAt: string | Date;
|
|
2049
2070
|
assignedBy: string | null;
|
|
2050
|
-
|
|
2051
|
-
id: string;
|
|
2052
|
-
name: string;
|
|
2053
|
-
createdAt: string | Date;
|
|
2054
|
-
updatedAt: string | Date;
|
|
2055
|
-
} | null | undefined;
|
|
2056
|
-
lead?: {
|
|
2057
|
-
phoneNumber: string;
|
|
2058
|
-
name: string;
|
|
2059
|
-
} | undefined;
|
|
2071
|
+
companyId: string | null;
|
|
2060
2072
|
agent?: {
|
|
2061
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2062
|
-
id: string;
|
|
2063
|
-
firstName: string;
|
|
2064
|
-
lastName: string;
|
|
2065
2073
|
email: string;
|
|
2066
2074
|
createdAt: string | Date;
|
|
2067
2075
|
updatedAt: string | Date;
|
|
2076
|
+
id: string;
|
|
2077
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2078
|
+
lastName: string;
|
|
2079
|
+
firstName: string;
|
|
2080
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2081
|
+
officeId?: string | null | undefined;
|
|
2068
2082
|
office?: {
|
|
2069
|
-
id: string;
|
|
2070
2083
|
name: string;
|
|
2084
|
+
id: string;
|
|
2071
2085
|
managers?: {
|
|
2072
2086
|
id: string;
|
|
2073
|
-
firstName: string;
|
|
2074
2087
|
lastName: string;
|
|
2088
|
+
firstName: string;
|
|
2075
2089
|
}[] | undefined;
|
|
2076
2090
|
} | null | undefined;
|
|
2077
2091
|
phoneNumbers?: {
|
|
@@ -2080,15 +2094,24 @@ export declare const callHistoryContract: {
|
|
|
2080
2094
|
description?: string | null | undefined;
|
|
2081
2095
|
isPrimary?: boolean | undefined;
|
|
2082
2096
|
}[] | undefined;
|
|
2083
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2084
|
-
officeId?: string | null | undefined;
|
|
2085
2097
|
canImpersonateUsers?: {
|
|
2086
2098
|
id: string;
|
|
2087
|
-
firstName: string;
|
|
2088
2099
|
lastName: string;
|
|
2100
|
+
firstName: string;
|
|
2089
2101
|
}[] | undefined;
|
|
2102
|
+
dialpadUserId?: string | null | undefined;
|
|
2090
2103
|
deletedAt?: string | Date | null | undefined;
|
|
2091
2104
|
} | undefined;
|
|
2105
|
+
lead?: {
|
|
2106
|
+
name: string;
|
|
2107
|
+
phoneNumber: string;
|
|
2108
|
+
} | undefined;
|
|
2109
|
+
company?: {
|
|
2110
|
+
name: string;
|
|
2111
|
+
createdAt: string | Date;
|
|
2112
|
+
updatedAt: string | Date;
|
|
2113
|
+
id: string;
|
|
2114
|
+
} | null | undefined;
|
|
2092
2115
|
} | null | undefined;
|
|
2093
2116
|
}>;
|
|
2094
2117
|
409: z.ZodObject<{
|
|
@@ -2119,6 +2142,9 @@ export declare const callHistoryContract: {
|
|
|
2119
2142
|
};
|
|
2120
2143
|
};
|
|
2121
2144
|
findAll: {
|
|
2145
|
+
metadata: {
|
|
2146
|
+
tags: string[];
|
|
2147
|
+
};
|
|
2122
2148
|
query: z.ZodObject<{
|
|
2123
2149
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2124
2150
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2160,24 +2186,24 @@ export declare const callHistoryContract: {
|
|
|
2160
2186
|
order: "ASC" | "DESC";
|
|
2161
2187
|
}>, "many">>>;
|
|
2162
2188
|
}, "strip", z.ZodTypeAny, {
|
|
2163
|
-
limit: number;
|
|
2164
2189
|
page: number;
|
|
2190
|
+
limit: number;
|
|
2165
2191
|
sort?: {
|
|
2166
2192
|
field: CallHistorySortableFields;
|
|
2167
2193
|
order: "ASC" | "DESC";
|
|
2168
2194
|
}[] | null | undefined;
|
|
2169
|
-
phoneNumber?: string | undefined;
|
|
2170
2195
|
createdAt?: {
|
|
2171
2196
|
from?: string | null | undefined;
|
|
2172
2197
|
to?: string | null | undefined;
|
|
2173
2198
|
} | null | undefined;
|
|
2174
|
-
companyId?: string | undefined;
|
|
2175
2199
|
agentId?: string | undefined;
|
|
2200
|
+
phoneNumber?: string | undefined;
|
|
2176
2201
|
rating?: {
|
|
2177
2202
|
from?: CallRating | null | undefined;
|
|
2178
2203
|
to?: CallRating | null | undefined;
|
|
2179
2204
|
} | null | undefined;
|
|
2180
2205
|
callType?: CallType | undefined;
|
|
2206
|
+
companyId?: string | undefined;
|
|
2181
2207
|
leadSource?: LeadSource | undefined;
|
|
2182
2208
|
leadName?: string | undefined;
|
|
2183
2209
|
}, {
|
|
@@ -2185,26 +2211,23 @@ export declare const callHistoryContract: {
|
|
|
2185
2211
|
field: CallHistorySortableFields;
|
|
2186
2212
|
order: "ASC" | "DESC";
|
|
2187
2213
|
}[] | null | undefined;
|
|
2188
|
-
phoneNumber?: string | undefined;
|
|
2189
|
-
limit?: number | undefined;
|
|
2190
|
-
page?: number | undefined;
|
|
2191
2214
|
createdAt?: {
|
|
2192
2215
|
from?: string | null | undefined;
|
|
2193
2216
|
to?: string | null | undefined;
|
|
2194
2217
|
} | null | undefined;
|
|
2195
|
-
|
|
2218
|
+
page?: number | undefined;
|
|
2219
|
+
limit?: number | undefined;
|
|
2196
2220
|
agentId?: string | undefined;
|
|
2221
|
+
phoneNumber?: string | undefined;
|
|
2197
2222
|
rating?: {
|
|
2198
2223
|
from?: unknown;
|
|
2199
2224
|
to?: unknown;
|
|
2200
2225
|
} | null | undefined;
|
|
2201
2226
|
callType?: CallType | undefined;
|
|
2227
|
+
companyId?: string | undefined;
|
|
2202
2228
|
leadSource?: LeadSource | undefined;
|
|
2203
2229
|
leadName?: string | undefined;
|
|
2204
2230
|
}>;
|
|
2205
|
-
metadata: {
|
|
2206
|
-
tags: string[];
|
|
2207
|
-
};
|
|
2208
2231
|
summary: "Get call history records";
|
|
2209
2232
|
method: "GET";
|
|
2210
2233
|
path: "/v2/call-history";
|
|
@@ -2234,7 +2257,7 @@ export declare const callHistoryContract: {
|
|
|
2234
2257
|
details?: unknown;
|
|
2235
2258
|
correlationId?: string | undefined;
|
|
2236
2259
|
}>;
|
|
2237
|
-
|
|
2260
|
+
403: z.ZodObject<{
|
|
2238
2261
|
statusCode: z.ZodNumber;
|
|
2239
2262
|
message: z.ZodString;
|
|
2240
2263
|
code: z.ZodString;
|
|
@@ -2259,7 +2282,7 @@ export declare const callHistoryContract: {
|
|
|
2259
2282
|
details?: unknown;
|
|
2260
2283
|
correlationId?: string | undefined;
|
|
2261
2284
|
}>;
|
|
2262
|
-
|
|
2285
|
+
401: z.ZodObject<{
|
|
2263
2286
|
statusCode: z.ZodNumber;
|
|
2264
2287
|
message: z.ZodString;
|
|
2265
2288
|
code: z.ZodString;
|
|
@@ -2332,11 +2355,11 @@ export declare const callHistoryContract: {
|
|
|
2332
2355
|
name: z.ZodString;
|
|
2333
2356
|
phoneNumber: z.ZodString;
|
|
2334
2357
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
-
phoneNumber: string;
|
|
2336
2358
|
name: string;
|
|
2337
|
-
}, {
|
|
2338
2359
|
phoneNumber: string;
|
|
2360
|
+
}, {
|
|
2339
2361
|
name: string;
|
|
2362
|
+
phoneNumber: string;
|
|
2340
2363
|
}>>>;
|
|
2341
2364
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2342
2365
|
id: z.ZodString;
|
|
@@ -2361,8 +2384,8 @@ export declare const callHistoryContract: {
|
|
|
2361
2384
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2362
2385
|
}, "strip", z.ZodTypeAny, {
|
|
2363
2386
|
id: string;
|
|
2364
|
-
firstName: string;
|
|
2365
2387
|
lastName: string;
|
|
2388
|
+
firstName: string;
|
|
2366
2389
|
phoneNumbers: {
|
|
2367
2390
|
id: string;
|
|
2368
2391
|
phoneNumber: string;
|
|
@@ -2372,8 +2395,8 @@ export declare const callHistoryContract: {
|
|
|
2372
2395
|
deletedAt?: string | null | undefined;
|
|
2373
2396
|
}, {
|
|
2374
2397
|
id: string;
|
|
2375
|
-
firstName: string;
|
|
2376
2398
|
lastName: string;
|
|
2399
|
+
firstName: string;
|
|
2377
2400
|
phoneNumbers?: {
|
|
2378
2401
|
id: string;
|
|
2379
2402
|
phoneNumber: string;
|
|
@@ -2386,38 +2409,27 @@ export declare const callHistoryContract: {
|
|
|
2386
2409
|
id: z.ZodString;
|
|
2387
2410
|
name: z.ZodString;
|
|
2388
2411
|
}, "strip", z.ZodTypeAny, {
|
|
2389
|
-
id: string;
|
|
2390
2412
|
name: string;
|
|
2391
|
-
}, {
|
|
2392
2413
|
id: string;
|
|
2414
|
+
}, {
|
|
2393
2415
|
name: string;
|
|
2416
|
+
id: string;
|
|
2394
2417
|
}>>>;
|
|
2395
2418
|
}, "strip", z.ZodTypeAny, {
|
|
2396
|
-
id: string;
|
|
2397
2419
|
createdAt: string;
|
|
2398
2420
|
updatedAt: string;
|
|
2421
|
+
id: string;
|
|
2399
2422
|
agentId: string;
|
|
2400
|
-
assignmentId: string;
|
|
2401
2423
|
rating: CallRating;
|
|
2424
|
+
notes: string | null;
|
|
2402
2425
|
callType: CallType;
|
|
2403
2426
|
leadSource: LeadSource;
|
|
2404
2427
|
ratingWeight: number;
|
|
2405
|
-
|
|
2406
|
-
company?: {
|
|
2407
|
-
id: string;
|
|
2408
|
-
name: string;
|
|
2409
|
-
} | null | undefined;
|
|
2410
|
-
assignment?: {
|
|
2411
|
-
agentId: string | null;
|
|
2412
|
-
} | null | undefined;
|
|
2413
|
-
lead?: {
|
|
2414
|
-
phoneNumber: string;
|
|
2415
|
-
name: string;
|
|
2416
|
-
} | null | undefined;
|
|
2428
|
+
assignmentId: string;
|
|
2417
2429
|
agent?: {
|
|
2418
2430
|
id: string;
|
|
2419
|
-
firstName: string;
|
|
2420
2431
|
lastName: string;
|
|
2432
|
+
firstName: string;
|
|
2421
2433
|
phoneNumbers: {
|
|
2422
2434
|
id: string;
|
|
2423
2435
|
phoneNumber: string;
|
|
@@ -2426,32 +2438,32 @@ export declare const callHistoryContract: {
|
|
|
2426
2438
|
}[];
|
|
2427
2439
|
deletedAt?: string | null | undefined;
|
|
2428
2440
|
} | null | undefined;
|
|
2441
|
+
lead?: {
|
|
2442
|
+
name: string;
|
|
2443
|
+
phoneNumber: string;
|
|
2444
|
+
} | null | undefined;
|
|
2445
|
+
company?: {
|
|
2446
|
+
name: string;
|
|
2447
|
+
id: string;
|
|
2448
|
+
} | null | undefined;
|
|
2449
|
+
assignment?: {
|
|
2450
|
+
agentId: string | null;
|
|
2451
|
+
} | null | undefined;
|
|
2429
2452
|
}, {
|
|
2430
|
-
id: string;
|
|
2431
2453
|
createdAt: string | Date;
|
|
2432
2454
|
updatedAt: string | Date;
|
|
2455
|
+
id: string;
|
|
2433
2456
|
agentId: string;
|
|
2434
|
-
assignmentId: string;
|
|
2435
2457
|
rating: CallRating;
|
|
2458
|
+
notes: string | null;
|
|
2436
2459
|
callType: CallType;
|
|
2437
2460
|
leadSource: LeadSource;
|
|
2438
2461
|
ratingWeight: number;
|
|
2439
|
-
|
|
2440
|
-
company?: {
|
|
2441
|
-
id: string;
|
|
2442
|
-
name: string;
|
|
2443
|
-
} | null | undefined;
|
|
2444
|
-
assignment?: {
|
|
2445
|
-
agentId: string | null;
|
|
2446
|
-
} | null | undefined;
|
|
2447
|
-
lead?: {
|
|
2448
|
-
phoneNumber: string;
|
|
2449
|
-
name: string;
|
|
2450
|
-
} | null | undefined;
|
|
2462
|
+
assignmentId: string;
|
|
2451
2463
|
agent?: {
|
|
2452
2464
|
id: string;
|
|
2453
|
-
firstName: string;
|
|
2454
2465
|
lastName: string;
|
|
2466
|
+
firstName: string;
|
|
2455
2467
|
phoneNumbers?: {
|
|
2456
2468
|
id: string;
|
|
2457
2469
|
phoneNumber: string;
|
|
@@ -2460,6 +2472,17 @@ export declare const callHistoryContract: {
|
|
|
2460
2472
|
}[] | undefined;
|
|
2461
2473
|
deletedAt?: string | Date | null | undefined;
|
|
2462
2474
|
} | null | undefined;
|
|
2475
|
+
lead?: {
|
|
2476
|
+
name: string;
|
|
2477
|
+
phoneNumber: string;
|
|
2478
|
+
} | null | undefined;
|
|
2479
|
+
company?: {
|
|
2480
|
+
name: string;
|
|
2481
|
+
id: string;
|
|
2482
|
+
} | null | undefined;
|
|
2483
|
+
assignment?: {
|
|
2484
|
+
agentId: string | null;
|
|
2485
|
+
} | null | undefined;
|
|
2463
2486
|
}>, "many">;
|
|
2464
2487
|
totalCount: z.ZodNumber;
|
|
2465
2488
|
limit: z.ZodNumber;
|
|
@@ -2469,31 +2492,20 @@ export declare const callHistoryContract: {
|
|
|
2469
2492
|
}, "strip", z.ZodTypeAny, {
|
|
2470
2493
|
limit: number;
|
|
2471
2494
|
items: {
|
|
2472
|
-
id: string;
|
|
2473
2495
|
createdAt: string;
|
|
2474
2496
|
updatedAt: string;
|
|
2497
|
+
id: string;
|
|
2475
2498
|
agentId: string;
|
|
2476
|
-
assignmentId: string;
|
|
2477
2499
|
rating: CallRating;
|
|
2500
|
+
notes: string | null;
|
|
2478
2501
|
callType: CallType;
|
|
2479
2502
|
leadSource: LeadSource;
|
|
2480
2503
|
ratingWeight: number;
|
|
2481
|
-
|
|
2482
|
-
company?: {
|
|
2483
|
-
id: string;
|
|
2484
|
-
name: string;
|
|
2485
|
-
} | null | undefined;
|
|
2486
|
-
assignment?: {
|
|
2487
|
-
agentId: string | null;
|
|
2488
|
-
} | null | undefined;
|
|
2489
|
-
lead?: {
|
|
2490
|
-
phoneNumber: string;
|
|
2491
|
-
name: string;
|
|
2492
|
-
} | null | undefined;
|
|
2504
|
+
assignmentId: string;
|
|
2493
2505
|
agent?: {
|
|
2494
2506
|
id: string;
|
|
2495
|
-
firstName: string;
|
|
2496
2507
|
lastName: string;
|
|
2508
|
+
firstName: string;
|
|
2497
2509
|
phoneNumbers: {
|
|
2498
2510
|
id: string;
|
|
2499
2511
|
phoneNumber: string;
|
|
@@ -2502,6 +2514,17 @@ export declare const callHistoryContract: {
|
|
|
2502
2514
|
}[];
|
|
2503
2515
|
deletedAt?: string | null | undefined;
|
|
2504
2516
|
} | null | undefined;
|
|
2517
|
+
lead?: {
|
|
2518
|
+
name: string;
|
|
2519
|
+
phoneNumber: string;
|
|
2520
|
+
} | null | undefined;
|
|
2521
|
+
company?: {
|
|
2522
|
+
name: string;
|
|
2523
|
+
id: string;
|
|
2524
|
+
} | null | undefined;
|
|
2525
|
+
assignment?: {
|
|
2526
|
+
agentId: string | null;
|
|
2527
|
+
} | null | undefined;
|
|
2505
2528
|
}[];
|
|
2506
2529
|
totalCount: number;
|
|
2507
2530
|
skip: number;
|
|
@@ -2510,31 +2533,20 @@ export declare const callHistoryContract: {
|
|
|
2510
2533
|
}, {
|
|
2511
2534
|
limit: number;
|
|
2512
2535
|
items: {
|
|
2513
|
-
id: string;
|
|
2514
2536
|
createdAt: string | Date;
|
|
2515
2537
|
updatedAt: string | Date;
|
|
2538
|
+
id: string;
|
|
2516
2539
|
agentId: string;
|
|
2517
|
-
assignmentId: string;
|
|
2518
2540
|
rating: CallRating;
|
|
2541
|
+
notes: string | null;
|
|
2519
2542
|
callType: CallType;
|
|
2520
2543
|
leadSource: LeadSource;
|
|
2521
2544
|
ratingWeight: number;
|
|
2522
|
-
|
|
2523
|
-
company?: {
|
|
2524
|
-
id: string;
|
|
2525
|
-
name: string;
|
|
2526
|
-
} | null | undefined;
|
|
2527
|
-
assignment?: {
|
|
2528
|
-
agentId: string | null;
|
|
2529
|
-
} | null | undefined;
|
|
2530
|
-
lead?: {
|
|
2531
|
-
phoneNumber: string;
|
|
2532
|
-
name: string;
|
|
2533
|
-
} | null | undefined;
|
|
2545
|
+
assignmentId: string;
|
|
2534
2546
|
agent?: {
|
|
2535
2547
|
id: string;
|
|
2536
|
-
firstName: string;
|
|
2537
2548
|
lastName: string;
|
|
2549
|
+
firstName: string;
|
|
2538
2550
|
phoneNumbers?: {
|
|
2539
2551
|
id: string;
|
|
2540
2552
|
phoneNumber: string;
|
|
@@ -2543,6 +2555,17 @@ export declare const callHistoryContract: {
|
|
|
2543
2555
|
}[] | undefined;
|
|
2544
2556
|
deletedAt?: string | Date | null | undefined;
|
|
2545
2557
|
} | null | undefined;
|
|
2558
|
+
lead?: {
|
|
2559
|
+
name: string;
|
|
2560
|
+
phoneNumber: string;
|
|
2561
|
+
} | null | undefined;
|
|
2562
|
+
company?: {
|
|
2563
|
+
name: string;
|
|
2564
|
+
id: string;
|
|
2565
|
+
} | null | undefined;
|
|
2566
|
+
assignment?: {
|
|
2567
|
+
agentId: string | null;
|
|
2568
|
+
} | null | undefined;
|
|
2546
2569
|
}[];
|
|
2547
2570
|
totalCount: number;
|
|
2548
2571
|
skip: number;
|
|
@@ -2591,7 +2614,7 @@ export declare const callHistoryContract: {
|
|
|
2591
2614
|
details?: unknown;
|
|
2592
2615
|
correlationId?: string | undefined;
|
|
2593
2616
|
}>;
|
|
2594
|
-
|
|
2617
|
+
403: z.ZodObject<{
|
|
2595
2618
|
statusCode: z.ZodNumber;
|
|
2596
2619
|
message: z.ZodString;
|
|
2597
2620
|
code: z.ZodString;
|
|
@@ -2616,7 +2639,7 @@ export declare const callHistoryContract: {
|
|
|
2616
2639
|
details?: unknown;
|
|
2617
2640
|
correlationId?: string | undefined;
|
|
2618
2641
|
}>;
|
|
2619
|
-
|
|
2642
|
+
401: z.ZodObject<{
|
|
2620
2643
|
statusCode: z.ZodNumber;
|
|
2621
2644
|
message: z.ZodString;
|
|
2622
2645
|
code: z.ZodString;
|
|
@@ -2678,11 +2701,11 @@ export declare const callHistoryContract: {
|
|
|
2678
2701
|
name: z.ZodString;
|
|
2679
2702
|
phoneNumber: z.ZodString;
|
|
2680
2703
|
}, "strip", z.ZodTypeAny, {
|
|
2681
|
-
phoneNumber: string;
|
|
2682
2704
|
name: string;
|
|
2683
|
-
}, {
|
|
2684
2705
|
phoneNumber: string;
|
|
2706
|
+
}, {
|
|
2685
2707
|
name: string;
|
|
2708
|
+
phoneNumber: string;
|
|
2686
2709
|
}>>;
|
|
2687
2710
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2688
2711
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2717,28 +2740,28 @@ export declare const callHistoryContract: {
|
|
|
2717
2740
|
lastName: z.ZodString;
|
|
2718
2741
|
}, "strip", z.ZodTypeAny, {
|
|
2719
2742
|
id: string;
|
|
2720
|
-
firstName: string;
|
|
2721
2743
|
lastName: string;
|
|
2744
|
+
firstName: string;
|
|
2722
2745
|
}, {
|
|
2723
2746
|
id: string;
|
|
2724
|
-
firstName: string;
|
|
2725
2747
|
lastName: string;
|
|
2748
|
+
firstName: string;
|
|
2726
2749
|
}>, "many">>;
|
|
2727
2750
|
}, "strip", z.ZodTypeAny, {
|
|
2728
|
-
id: string;
|
|
2729
2751
|
name: string;
|
|
2752
|
+
id: string;
|
|
2730
2753
|
managers?: {
|
|
2731
2754
|
id: string;
|
|
2732
|
-
firstName: string;
|
|
2733
2755
|
lastName: string;
|
|
2756
|
+
firstName: string;
|
|
2734
2757
|
}[] | undefined;
|
|
2735
2758
|
}, {
|
|
2736
|
-
id: string;
|
|
2737
2759
|
name: string;
|
|
2760
|
+
id: string;
|
|
2738
2761
|
managers?: {
|
|
2739
2762
|
id: string;
|
|
2740
|
-
firstName: string;
|
|
2741
2763
|
lastName: string;
|
|
2764
|
+
firstName: string;
|
|
2742
2765
|
}[] | undefined;
|
|
2743
2766
|
}>>>;
|
|
2744
2767
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2747,63 +2770,67 @@ export declare const callHistoryContract: {
|
|
|
2747
2770
|
lastName: z.ZodString;
|
|
2748
2771
|
}, "strip", z.ZodTypeAny, {
|
|
2749
2772
|
id: string;
|
|
2750
|
-
firstName: string;
|
|
2751
2773
|
lastName: string;
|
|
2774
|
+
firstName: string;
|
|
2752
2775
|
}, {
|
|
2753
2776
|
id: string;
|
|
2754
|
-
firstName: string;
|
|
2755
2777
|
lastName: string;
|
|
2778
|
+
firstName: string;
|
|
2756
2779
|
}>, "many">>;
|
|
2757
2780
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2781
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2758
2782
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2759
2783
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2760
2784
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2761
2785
|
}, "strip", z.ZodTypeAny, {
|
|
2762
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2763
|
-
id: string;
|
|
2764
|
-
firstName: string;
|
|
2765
|
-
lastName: string;
|
|
2766
2786
|
email: string;
|
|
2767
2787
|
createdAt: string;
|
|
2788
|
+
updatedAt: string;
|
|
2789
|
+
id: string;
|
|
2790
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2791
|
+
lastName: string;
|
|
2792
|
+
firstName: string;
|
|
2768
2793
|
phoneNumbers: {
|
|
2769
2794
|
id: string;
|
|
2770
2795
|
phoneNumber: string;
|
|
2771
2796
|
isPrimary: boolean;
|
|
2772
2797
|
description?: string | null | undefined;
|
|
2773
2798
|
}[];
|
|
2774
|
-
|
|
2799
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2800
|
+
officeId?: string | null | undefined;
|
|
2775
2801
|
office?: {
|
|
2776
|
-
id: string;
|
|
2777
2802
|
name: string;
|
|
2803
|
+
id: string;
|
|
2778
2804
|
managers?: {
|
|
2779
2805
|
id: string;
|
|
2780
|
-
firstName: string;
|
|
2781
2806
|
lastName: string;
|
|
2807
|
+
firstName: string;
|
|
2782
2808
|
}[] | undefined;
|
|
2783
2809
|
} | null | undefined;
|
|
2784
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2785
|
-
officeId?: string | null | undefined;
|
|
2786
2810
|
canImpersonateUsers?: {
|
|
2787
2811
|
id: string;
|
|
2788
|
-
firstName: string;
|
|
2789
2812
|
lastName: string;
|
|
2813
|
+
firstName: string;
|
|
2790
2814
|
}[] | undefined;
|
|
2815
|
+
dialpadUserId?: string | null | undefined;
|
|
2791
2816
|
deletedAt?: string | null | undefined;
|
|
2792
2817
|
}, {
|
|
2793
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2794
|
-
id: string;
|
|
2795
|
-
firstName: string;
|
|
2796
|
-
lastName: string;
|
|
2797
2818
|
email: string;
|
|
2798
2819
|
createdAt: string | Date;
|
|
2799
2820
|
updatedAt: string | Date;
|
|
2821
|
+
id: string;
|
|
2822
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2823
|
+
lastName: string;
|
|
2824
|
+
firstName: string;
|
|
2825
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2826
|
+
officeId?: string | null | undefined;
|
|
2800
2827
|
office?: {
|
|
2801
|
-
id: string;
|
|
2802
2828
|
name: string;
|
|
2829
|
+
id: string;
|
|
2803
2830
|
managers?: {
|
|
2804
2831
|
id: string;
|
|
2805
|
-
firstName: string;
|
|
2806
2832
|
lastName: string;
|
|
2833
|
+
firstName: string;
|
|
2807
2834
|
}[] | undefined;
|
|
2808
2835
|
} | null | undefined;
|
|
2809
2836
|
phoneNumbers?: {
|
|
@@ -2812,13 +2839,12 @@ export declare const callHistoryContract: {
|
|
|
2812
2839
|
description?: string | null | undefined;
|
|
2813
2840
|
isPrimary?: boolean | undefined;
|
|
2814
2841
|
}[] | undefined;
|
|
2815
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2816
|
-
officeId?: string | null | undefined;
|
|
2817
2842
|
canImpersonateUsers?: {
|
|
2818
2843
|
id: string;
|
|
2819
|
-
firstName: string;
|
|
2820
2844
|
lastName: string;
|
|
2845
|
+
firstName: string;
|
|
2821
2846
|
}[] | undefined;
|
|
2847
|
+
dialpadUserId?: string | null | undefined;
|
|
2822
2848
|
deletedAt?: string | Date | null | undefined;
|
|
2823
2849
|
}>>;
|
|
2824
2850
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2831,105 +2857,98 @@ export declare const callHistoryContract: {
|
|
|
2831
2857
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2832
2858
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2833
2859
|
}, "strip", z.ZodTypeAny, {
|
|
2834
|
-
id: string;
|
|
2835
2860
|
name: string;
|
|
2836
2861
|
createdAt: string;
|
|
2837
2862
|
updatedAt: string;
|
|
2838
|
-
}, {
|
|
2839
2863
|
id: string;
|
|
2864
|
+
}, {
|
|
2840
2865
|
name: string;
|
|
2841
2866
|
createdAt: string | Date;
|
|
2842
2867
|
updatedAt: string | Date;
|
|
2868
|
+
id: string;
|
|
2843
2869
|
}>>>;
|
|
2844
2870
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2845
2871
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2846
2872
|
}, "strip", z.ZodTypeAny, {
|
|
2847
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2848
|
-
id: string;
|
|
2849
2873
|
createdAt: string;
|
|
2850
2874
|
updatedAt: string;
|
|
2851
|
-
|
|
2875
|
+
id: string;
|
|
2876
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2852
2877
|
agentId: string | null;
|
|
2853
2878
|
leadId: string;
|
|
2854
2879
|
assignedAt: string;
|
|
2855
2880
|
assignedBy: string | null;
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2881
|
+
companyId: string | null;
|
|
2882
|
+
agent?: {
|
|
2883
|
+
email: string;
|
|
2859
2884
|
createdAt: string;
|
|
2860
2885
|
updatedAt: string;
|
|
2861
|
-
} | null | undefined;
|
|
2862
|
-
lead?: {
|
|
2863
|
-
phoneNumber: string;
|
|
2864
|
-
name: string;
|
|
2865
|
-
} | undefined;
|
|
2866
|
-
agent?: {
|
|
2867
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2868
2886
|
id: string;
|
|
2869
|
-
|
|
2887
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2870
2888
|
lastName: string;
|
|
2871
|
-
|
|
2872
|
-
createdAt: string;
|
|
2889
|
+
firstName: string;
|
|
2873
2890
|
phoneNumbers: {
|
|
2874
2891
|
id: string;
|
|
2875
2892
|
phoneNumber: string;
|
|
2876
2893
|
isPrimary: boolean;
|
|
2877
2894
|
description?: string | null | undefined;
|
|
2878
2895
|
}[];
|
|
2879
|
-
|
|
2896
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2897
|
+
officeId?: string | null | undefined;
|
|
2880
2898
|
office?: {
|
|
2881
|
-
id: string;
|
|
2882
2899
|
name: string;
|
|
2900
|
+
id: string;
|
|
2883
2901
|
managers?: {
|
|
2884
2902
|
id: string;
|
|
2885
|
-
firstName: string;
|
|
2886
2903
|
lastName: string;
|
|
2904
|
+
firstName: string;
|
|
2887
2905
|
}[] | undefined;
|
|
2888
2906
|
} | null | undefined;
|
|
2889
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2890
|
-
officeId?: string | null | undefined;
|
|
2891
2907
|
canImpersonateUsers?: {
|
|
2892
2908
|
id: string;
|
|
2893
|
-
firstName: string;
|
|
2894
2909
|
lastName: string;
|
|
2910
|
+
firstName: string;
|
|
2895
2911
|
}[] | undefined;
|
|
2912
|
+
dialpadUserId?: string | null | undefined;
|
|
2896
2913
|
deletedAt?: string | null | undefined;
|
|
2897
2914
|
} | undefined;
|
|
2915
|
+
lead?: {
|
|
2916
|
+
name: string;
|
|
2917
|
+
phoneNumber: string;
|
|
2918
|
+
} | undefined;
|
|
2919
|
+
company?: {
|
|
2920
|
+
name: string;
|
|
2921
|
+
createdAt: string;
|
|
2922
|
+
updatedAt: string;
|
|
2923
|
+
id: string;
|
|
2924
|
+
} | null | undefined;
|
|
2898
2925
|
}, {
|
|
2899
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2900
|
-
id: string;
|
|
2901
2926
|
createdAt: string | Date;
|
|
2902
2927
|
updatedAt: string | Date;
|
|
2903
|
-
|
|
2928
|
+
id: string;
|
|
2929
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2904
2930
|
agentId: string | null;
|
|
2905
2931
|
leadId: string;
|
|
2906
2932
|
assignedAt: string | Date;
|
|
2907
2933
|
assignedBy: string | null;
|
|
2908
|
-
|
|
2909
|
-
id: string;
|
|
2910
|
-
name: string;
|
|
2911
|
-
createdAt: string | Date;
|
|
2912
|
-
updatedAt: string | Date;
|
|
2913
|
-
} | null | undefined;
|
|
2914
|
-
lead?: {
|
|
2915
|
-
phoneNumber: string;
|
|
2916
|
-
name: string;
|
|
2917
|
-
} | undefined;
|
|
2934
|
+
companyId: string | null;
|
|
2918
2935
|
agent?: {
|
|
2919
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2920
|
-
id: string;
|
|
2921
|
-
firstName: string;
|
|
2922
|
-
lastName: string;
|
|
2923
2936
|
email: string;
|
|
2924
2937
|
createdAt: string | Date;
|
|
2925
2938
|
updatedAt: string | Date;
|
|
2939
|
+
id: string;
|
|
2940
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2941
|
+
lastName: string;
|
|
2942
|
+
firstName: string;
|
|
2943
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2944
|
+
officeId?: string | null | undefined;
|
|
2926
2945
|
office?: {
|
|
2927
|
-
id: string;
|
|
2928
2946
|
name: string;
|
|
2947
|
+
id: string;
|
|
2929
2948
|
managers?: {
|
|
2930
2949
|
id: string;
|
|
2931
|
-
firstName: string;
|
|
2932
2950
|
lastName: string;
|
|
2951
|
+
firstName: string;
|
|
2933
2952
|
}[] | undefined;
|
|
2934
2953
|
} | null | undefined;
|
|
2935
2954
|
phoneNumbers?: {
|
|
@@ -2938,15 +2957,24 @@ export declare const callHistoryContract: {
|
|
|
2938
2957
|
description?: string | null | undefined;
|
|
2939
2958
|
isPrimary?: boolean | undefined;
|
|
2940
2959
|
}[] | undefined;
|
|
2941
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2942
|
-
officeId?: string | null | undefined;
|
|
2943
2960
|
canImpersonateUsers?: {
|
|
2944
2961
|
id: string;
|
|
2945
|
-
firstName: string;
|
|
2946
2962
|
lastName: string;
|
|
2963
|
+
firstName: string;
|
|
2947
2964
|
}[] | undefined;
|
|
2965
|
+
dialpadUserId?: string | null | undefined;
|
|
2948
2966
|
deletedAt?: string | Date | null | undefined;
|
|
2949
2967
|
} | undefined;
|
|
2968
|
+
lead?: {
|
|
2969
|
+
name: string;
|
|
2970
|
+
phoneNumber: string;
|
|
2971
|
+
} | undefined;
|
|
2972
|
+
company?: {
|
|
2973
|
+
name: string;
|
|
2974
|
+
createdAt: string | Date;
|
|
2975
|
+
updatedAt: string | Date;
|
|
2976
|
+
id: string;
|
|
2977
|
+
} | null | undefined;
|
|
2950
2978
|
}>>>;
|
|
2951
2979
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2952
2980
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -2956,117 +2984,110 @@ export declare const callHistoryContract: {
|
|
|
2956
2984
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2957
2985
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2958
2986
|
}, "strip", z.ZodTypeAny, {
|
|
2959
|
-
id: string;
|
|
2960
2987
|
createdAt: string;
|
|
2961
2988
|
updatedAt: string;
|
|
2962
|
-
|
|
2989
|
+
id: string;
|
|
2963
2990
|
rating: CallRating;
|
|
2991
|
+
notes: string | null;
|
|
2964
2992
|
callType: CallType;
|
|
2965
2993
|
leadSource: LeadSource;
|
|
2966
2994
|
ratingWeight: number;
|
|
2967
|
-
|
|
2995
|
+
assignmentId: string;
|
|
2968
2996
|
agentId?: string | undefined;
|
|
2969
2997
|
leadId?: string | undefined;
|
|
2970
2998
|
assignment?: {
|
|
2971
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2972
|
-
id: string;
|
|
2973
2999
|
createdAt: string;
|
|
2974
3000
|
updatedAt: string;
|
|
2975
|
-
|
|
3001
|
+
id: string;
|
|
3002
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2976
3003
|
agentId: string | null;
|
|
2977
3004
|
leadId: string;
|
|
2978
3005
|
assignedAt: string;
|
|
2979
3006
|
assignedBy: string | null;
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
3007
|
+
companyId: string | null;
|
|
3008
|
+
agent?: {
|
|
3009
|
+
email: string;
|
|
2983
3010
|
createdAt: string;
|
|
2984
3011
|
updatedAt: string;
|
|
2985
|
-
} | null | undefined;
|
|
2986
|
-
lead?: {
|
|
2987
|
-
phoneNumber: string;
|
|
2988
|
-
name: string;
|
|
2989
|
-
} | undefined;
|
|
2990
|
-
agent?: {
|
|
2991
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2992
3012
|
id: string;
|
|
2993
|
-
|
|
3013
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2994
3014
|
lastName: string;
|
|
2995
|
-
|
|
2996
|
-
createdAt: string;
|
|
3015
|
+
firstName: string;
|
|
2997
3016
|
phoneNumbers: {
|
|
2998
3017
|
id: string;
|
|
2999
3018
|
phoneNumber: string;
|
|
3000
3019
|
isPrimary: boolean;
|
|
3001
3020
|
description?: string | null | undefined;
|
|
3002
3021
|
}[];
|
|
3003
|
-
|
|
3022
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3023
|
+
officeId?: string | null | undefined;
|
|
3004
3024
|
office?: {
|
|
3005
|
-
id: string;
|
|
3006
3025
|
name: string;
|
|
3026
|
+
id: string;
|
|
3007
3027
|
managers?: {
|
|
3008
3028
|
id: string;
|
|
3009
|
-
firstName: string;
|
|
3010
3029
|
lastName: string;
|
|
3030
|
+
firstName: string;
|
|
3011
3031
|
}[] | undefined;
|
|
3012
3032
|
} | null | undefined;
|
|
3013
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3014
|
-
officeId?: string | null | undefined;
|
|
3015
3033
|
canImpersonateUsers?: {
|
|
3016
3034
|
id: string;
|
|
3017
|
-
firstName: string;
|
|
3018
3035
|
lastName: string;
|
|
3036
|
+
firstName: string;
|
|
3019
3037
|
}[] | undefined;
|
|
3038
|
+
dialpadUserId?: string | null | undefined;
|
|
3020
3039
|
deletedAt?: string | null | undefined;
|
|
3021
3040
|
} | undefined;
|
|
3041
|
+
lead?: {
|
|
3042
|
+
name: string;
|
|
3043
|
+
phoneNumber: string;
|
|
3044
|
+
} | undefined;
|
|
3045
|
+
company?: {
|
|
3046
|
+
name: string;
|
|
3047
|
+
createdAt: string;
|
|
3048
|
+
updatedAt: string;
|
|
3049
|
+
id: string;
|
|
3050
|
+
} | null | undefined;
|
|
3022
3051
|
} | null | undefined;
|
|
3023
3052
|
}, {
|
|
3024
|
-
id: string;
|
|
3025
3053
|
createdAt: string | Date;
|
|
3026
3054
|
updatedAt: string | Date;
|
|
3027
|
-
|
|
3055
|
+
id: string;
|
|
3028
3056
|
rating: CallRating;
|
|
3057
|
+
notes: string | null;
|
|
3029
3058
|
callType: CallType;
|
|
3030
3059
|
leadSource: LeadSource;
|
|
3031
3060
|
ratingWeight: number;
|
|
3032
|
-
|
|
3061
|
+
assignmentId: string;
|
|
3033
3062
|
agentId?: string | undefined;
|
|
3034
3063
|
leadId?: string | undefined;
|
|
3035
3064
|
assignment?: {
|
|
3036
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3037
|
-
id: string;
|
|
3038
3065
|
createdAt: string | Date;
|
|
3039
3066
|
updatedAt: string | Date;
|
|
3040
|
-
|
|
3067
|
+
id: string;
|
|
3068
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3041
3069
|
agentId: string | null;
|
|
3042
3070
|
leadId: string;
|
|
3043
3071
|
assignedAt: string | Date;
|
|
3044
3072
|
assignedBy: string | null;
|
|
3045
|
-
|
|
3046
|
-
id: string;
|
|
3047
|
-
name: string;
|
|
3048
|
-
createdAt: string | Date;
|
|
3049
|
-
updatedAt: string | Date;
|
|
3050
|
-
} | null | undefined;
|
|
3051
|
-
lead?: {
|
|
3052
|
-
phoneNumber: string;
|
|
3053
|
-
name: string;
|
|
3054
|
-
} | undefined;
|
|
3073
|
+
companyId: string | null;
|
|
3055
3074
|
agent?: {
|
|
3056
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3057
|
-
id: string;
|
|
3058
|
-
firstName: string;
|
|
3059
|
-
lastName: string;
|
|
3060
3075
|
email: string;
|
|
3061
3076
|
createdAt: string | Date;
|
|
3062
3077
|
updatedAt: string | Date;
|
|
3078
|
+
id: string;
|
|
3079
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3080
|
+
lastName: string;
|
|
3081
|
+
firstName: string;
|
|
3082
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3083
|
+
officeId?: string | null | undefined;
|
|
3063
3084
|
office?: {
|
|
3064
|
-
id: string;
|
|
3065
3085
|
name: string;
|
|
3086
|
+
id: string;
|
|
3066
3087
|
managers?: {
|
|
3067
3088
|
id: string;
|
|
3068
|
-
firstName: string;
|
|
3069
3089
|
lastName: string;
|
|
3090
|
+
firstName: string;
|
|
3070
3091
|
}[] | undefined;
|
|
3071
3092
|
} | null | undefined;
|
|
3072
3093
|
phoneNumbers?: {
|
|
@@ -3075,15 +3096,24 @@ export declare const callHistoryContract: {
|
|
|
3075
3096
|
description?: string | null | undefined;
|
|
3076
3097
|
isPrimary?: boolean | undefined;
|
|
3077
3098
|
}[] | undefined;
|
|
3078
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3079
|
-
officeId?: string | null | undefined;
|
|
3080
3099
|
canImpersonateUsers?: {
|
|
3081
3100
|
id: string;
|
|
3082
|
-
firstName: string;
|
|
3083
3101
|
lastName: string;
|
|
3102
|
+
firstName: string;
|
|
3084
3103
|
}[] | undefined;
|
|
3104
|
+
dialpadUserId?: string | null | undefined;
|
|
3085
3105
|
deletedAt?: string | Date | null | undefined;
|
|
3086
3106
|
} | undefined;
|
|
3107
|
+
lead?: {
|
|
3108
|
+
name: string;
|
|
3109
|
+
phoneNumber: string;
|
|
3110
|
+
} | undefined;
|
|
3111
|
+
company?: {
|
|
3112
|
+
name: string;
|
|
3113
|
+
createdAt: string | Date;
|
|
3114
|
+
updatedAt: string | Date;
|
|
3115
|
+
id: string;
|
|
3116
|
+
} | null | undefined;
|
|
3087
3117
|
} | null | undefined;
|
|
3088
3118
|
}>;
|
|
3089
3119
|
404: z.ZodObject<{
|
|
@@ -3163,7 +3193,7 @@ export declare const callHistoryContract: {
|
|
|
3163
3193
|
details?: unknown;
|
|
3164
3194
|
correlationId?: string | undefined;
|
|
3165
3195
|
}>;
|
|
3166
|
-
|
|
3196
|
+
403: z.ZodObject<{
|
|
3167
3197
|
statusCode: z.ZodNumber;
|
|
3168
3198
|
message: z.ZodString;
|
|
3169
3199
|
code: z.ZodString;
|
|
@@ -3188,7 +3218,7 @@ export declare const callHistoryContract: {
|
|
|
3188
3218
|
details?: unknown;
|
|
3189
3219
|
correlationId?: string | undefined;
|
|
3190
3220
|
}>;
|
|
3191
|
-
|
|
3221
|
+
401: z.ZodObject<{
|
|
3192
3222
|
statusCode: z.ZodNumber;
|
|
3193
3223
|
message: z.ZodString;
|
|
3194
3224
|
code: z.ZodString;
|
|
@@ -3250,11 +3280,11 @@ export declare const callHistoryContract: {
|
|
|
3250
3280
|
name: z.ZodString;
|
|
3251
3281
|
phoneNumber: z.ZodString;
|
|
3252
3282
|
}, "strip", z.ZodTypeAny, {
|
|
3253
|
-
phoneNumber: string;
|
|
3254
3283
|
name: string;
|
|
3255
|
-
}, {
|
|
3256
3284
|
phoneNumber: string;
|
|
3285
|
+
}, {
|
|
3257
3286
|
name: string;
|
|
3287
|
+
phoneNumber: string;
|
|
3258
3288
|
}>>;
|
|
3259
3289
|
agentId: z.ZodNullable<z.ZodString>;
|
|
3260
3290
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -3289,28 +3319,28 @@ export declare const callHistoryContract: {
|
|
|
3289
3319
|
lastName: z.ZodString;
|
|
3290
3320
|
}, "strip", z.ZodTypeAny, {
|
|
3291
3321
|
id: string;
|
|
3292
|
-
firstName: string;
|
|
3293
3322
|
lastName: string;
|
|
3323
|
+
firstName: string;
|
|
3294
3324
|
}, {
|
|
3295
3325
|
id: string;
|
|
3296
|
-
firstName: string;
|
|
3297
3326
|
lastName: string;
|
|
3327
|
+
firstName: string;
|
|
3298
3328
|
}>, "many">>;
|
|
3299
3329
|
}, "strip", z.ZodTypeAny, {
|
|
3300
|
-
id: string;
|
|
3301
3330
|
name: string;
|
|
3331
|
+
id: string;
|
|
3302
3332
|
managers?: {
|
|
3303
3333
|
id: string;
|
|
3304
|
-
firstName: string;
|
|
3305
3334
|
lastName: string;
|
|
3335
|
+
firstName: string;
|
|
3306
3336
|
}[] | undefined;
|
|
3307
3337
|
}, {
|
|
3308
|
-
id: string;
|
|
3309
3338
|
name: string;
|
|
3339
|
+
id: string;
|
|
3310
3340
|
managers?: {
|
|
3311
3341
|
id: string;
|
|
3312
|
-
firstName: string;
|
|
3313
3342
|
lastName: string;
|
|
3343
|
+
firstName: string;
|
|
3314
3344
|
}[] | undefined;
|
|
3315
3345
|
}>>>;
|
|
3316
3346
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3319,63 +3349,67 @@ export declare const callHistoryContract: {
|
|
|
3319
3349
|
lastName: z.ZodString;
|
|
3320
3350
|
}, "strip", z.ZodTypeAny, {
|
|
3321
3351
|
id: string;
|
|
3322
|
-
firstName: string;
|
|
3323
3352
|
lastName: string;
|
|
3353
|
+
firstName: string;
|
|
3324
3354
|
}, {
|
|
3325
3355
|
id: string;
|
|
3326
|
-
firstName: string;
|
|
3327
3356
|
lastName: string;
|
|
3357
|
+
firstName: string;
|
|
3328
3358
|
}>, "many">>;
|
|
3329
3359
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3360
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3330
3361
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3331
3362
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3332
3363
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3333
3364
|
}, "strip", z.ZodTypeAny, {
|
|
3334
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3335
|
-
id: string;
|
|
3336
|
-
firstName: string;
|
|
3337
|
-
lastName: string;
|
|
3338
3365
|
email: string;
|
|
3339
3366
|
createdAt: string;
|
|
3367
|
+
updatedAt: string;
|
|
3368
|
+
id: string;
|
|
3369
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3370
|
+
lastName: string;
|
|
3371
|
+
firstName: string;
|
|
3340
3372
|
phoneNumbers: {
|
|
3341
3373
|
id: string;
|
|
3342
3374
|
phoneNumber: string;
|
|
3343
3375
|
isPrimary: boolean;
|
|
3344
3376
|
description?: string | null | undefined;
|
|
3345
3377
|
}[];
|
|
3346
|
-
|
|
3378
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3379
|
+
officeId?: string | null | undefined;
|
|
3347
3380
|
office?: {
|
|
3348
|
-
id: string;
|
|
3349
3381
|
name: string;
|
|
3382
|
+
id: string;
|
|
3350
3383
|
managers?: {
|
|
3351
3384
|
id: string;
|
|
3352
|
-
firstName: string;
|
|
3353
3385
|
lastName: string;
|
|
3386
|
+
firstName: string;
|
|
3354
3387
|
}[] | undefined;
|
|
3355
3388
|
} | null | undefined;
|
|
3356
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3357
|
-
officeId?: string | null | undefined;
|
|
3358
3389
|
canImpersonateUsers?: {
|
|
3359
3390
|
id: string;
|
|
3360
|
-
firstName: string;
|
|
3361
3391
|
lastName: string;
|
|
3392
|
+
firstName: string;
|
|
3362
3393
|
}[] | undefined;
|
|
3394
|
+
dialpadUserId?: string | null | undefined;
|
|
3363
3395
|
deletedAt?: string | null | undefined;
|
|
3364
3396
|
}, {
|
|
3365
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3366
|
-
id: string;
|
|
3367
|
-
firstName: string;
|
|
3368
|
-
lastName: string;
|
|
3369
3397
|
email: string;
|
|
3370
3398
|
createdAt: string | Date;
|
|
3371
3399
|
updatedAt: string | Date;
|
|
3400
|
+
id: string;
|
|
3401
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3402
|
+
lastName: string;
|
|
3403
|
+
firstName: string;
|
|
3404
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3405
|
+
officeId?: string | null | undefined;
|
|
3372
3406
|
office?: {
|
|
3373
|
-
id: string;
|
|
3374
3407
|
name: string;
|
|
3408
|
+
id: string;
|
|
3375
3409
|
managers?: {
|
|
3376
3410
|
id: string;
|
|
3377
|
-
firstName: string;
|
|
3378
3411
|
lastName: string;
|
|
3412
|
+
firstName: string;
|
|
3379
3413
|
}[] | undefined;
|
|
3380
3414
|
} | null | undefined;
|
|
3381
3415
|
phoneNumbers?: {
|
|
@@ -3384,13 +3418,12 @@ export declare const callHistoryContract: {
|
|
|
3384
3418
|
description?: string | null | undefined;
|
|
3385
3419
|
isPrimary?: boolean | undefined;
|
|
3386
3420
|
}[] | undefined;
|
|
3387
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3388
|
-
officeId?: string | null | undefined;
|
|
3389
3421
|
canImpersonateUsers?: {
|
|
3390
3422
|
id: string;
|
|
3391
|
-
firstName: string;
|
|
3392
3423
|
lastName: string;
|
|
3424
|
+
firstName: string;
|
|
3393
3425
|
}[] | undefined;
|
|
3426
|
+
dialpadUserId?: string | null | undefined;
|
|
3394
3427
|
deletedAt?: string | Date | null | undefined;
|
|
3395
3428
|
}>>;
|
|
3396
3429
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3403,105 +3436,98 @@ export declare const callHistoryContract: {
|
|
|
3403
3436
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3404
3437
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3405
3438
|
}, "strip", z.ZodTypeAny, {
|
|
3406
|
-
id: string;
|
|
3407
3439
|
name: string;
|
|
3408
3440
|
createdAt: string;
|
|
3409
3441
|
updatedAt: string;
|
|
3410
|
-
}, {
|
|
3411
3442
|
id: string;
|
|
3443
|
+
}, {
|
|
3412
3444
|
name: string;
|
|
3413
3445
|
createdAt: string | Date;
|
|
3414
3446
|
updatedAt: string | Date;
|
|
3447
|
+
id: string;
|
|
3415
3448
|
}>>>;
|
|
3416
3449
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3417
3450
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3418
3451
|
}, "strip", z.ZodTypeAny, {
|
|
3419
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3420
|
-
id: string;
|
|
3421
3452
|
createdAt: string;
|
|
3422
3453
|
updatedAt: string;
|
|
3423
|
-
|
|
3454
|
+
id: string;
|
|
3455
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3424
3456
|
agentId: string | null;
|
|
3425
3457
|
leadId: string;
|
|
3426
3458
|
assignedAt: string;
|
|
3427
3459
|
assignedBy: string | null;
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3460
|
+
companyId: string | null;
|
|
3461
|
+
agent?: {
|
|
3462
|
+
email: string;
|
|
3431
3463
|
createdAt: string;
|
|
3432
3464
|
updatedAt: string;
|
|
3433
|
-
} | null | undefined;
|
|
3434
|
-
lead?: {
|
|
3435
|
-
phoneNumber: string;
|
|
3436
|
-
name: string;
|
|
3437
|
-
} | undefined;
|
|
3438
|
-
agent?: {
|
|
3439
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3440
3465
|
id: string;
|
|
3441
|
-
|
|
3466
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3442
3467
|
lastName: string;
|
|
3443
|
-
|
|
3444
|
-
createdAt: string;
|
|
3468
|
+
firstName: string;
|
|
3445
3469
|
phoneNumbers: {
|
|
3446
3470
|
id: string;
|
|
3447
3471
|
phoneNumber: string;
|
|
3448
3472
|
isPrimary: boolean;
|
|
3449
3473
|
description?: string | null | undefined;
|
|
3450
3474
|
}[];
|
|
3451
|
-
|
|
3475
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3476
|
+
officeId?: string | null | undefined;
|
|
3452
3477
|
office?: {
|
|
3453
|
-
id: string;
|
|
3454
3478
|
name: string;
|
|
3479
|
+
id: string;
|
|
3455
3480
|
managers?: {
|
|
3456
3481
|
id: string;
|
|
3457
|
-
firstName: string;
|
|
3458
3482
|
lastName: string;
|
|
3483
|
+
firstName: string;
|
|
3459
3484
|
}[] | undefined;
|
|
3460
3485
|
} | null | undefined;
|
|
3461
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3462
|
-
officeId?: string | null | undefined;
|
|
3463
3486
|
canImpersonateUsers?: {
|
|
3464
3487
|
id: string;
|
|
3465
|
-
firstName: string;
|
|
3466
3488
|
lastName: string;
|
|
3489
|
+
firstName: string;
|
|
3467
3490
|
}[] | undefined;
|
|
3491
|
+
dialpadUserId?: string | null | undefined;
|
|
3468
3492
|
deletedAt?: string | null | undefined;
|
|
3469
3493
|
} | undefined;
|
|
3494
|
+
lead?: {
|
|
3495
|
+
name: string;
|
|
3496
|
+
phoneNumber: string;
|
|
3497
|
+
} | undefined;
|
|
3498
|
+
company?: {
|
|
3499
|
+
name: string;
|
|
3500
|
+
createdAt: string;
|
|
3501
|
+
updatedAt: string;
|
|
3502
|
+
id: string;
|
|
3503
|
+
} | null | undefined;
|
|
3470
3504
|
}, {
|
|
3471
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3472
|
-
id: string;
|
|
3473
3505
|
createdAt: string | Date;
|
|
3474
3506
|
updatedAt: string | Date;
|
|
3475
|
-
|
|
3507
|
+
id: string;
|
|
3508
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3476
3509
|
agentId: string | null;
|
|
3477
3510
|
leadId: string;
|
|
3478
3511
|
assignedAt: string | Date;
|
|
3479
3512
|
assignedBy: string | null;
|
|
3480
|
-
|
|
3481
|
-
id: string;
|
|
3482
|
-
name: string;
|
|
3483
|
-
createdAt: string | Date;
|
|
3484
|
-
updatedAt: string | Date;
|
|
3485
|
-
} | null | undefined;
|
|
3486
|
-
lead?: {
|
|
3487
|
-
phoneNumber: string;
|
|
3488
|
-
name: string;
|
|
3489
|
-
} | undefined;
|
|
3513
|
+
companyId: string | null;
|
|
3490
3514
|
agent?: {
|
|
3491
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3492
|
-
id: string;
|
|
3493
|
-
firstName: string;
|
|
3494
|
-
lastName: string;
|
|
3495
3515
|
email: string;
|
|
3496
3516
|
createdAt: string | Date;
|
|
3497
3517
|
updatedAt: string | Date;
|
|
3518
|
+
id: string;
|
|
3519
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3520
|
+
lastName: string;
|
|
3521
|
+
firstName: string;
|
|
3522
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3523
|
+
officeId?: string | null | undefined;
|
|
3498
3524
|
office?: {
|
|
3499
|
-
id: string;
|
|
3500
3525
|
name: string;
|
|
3526
|
+
id: string;
|
|
3501
3527
|
managers?: {
|
|
3502
3528
|
id: string;
|
|
3503
|
-
firstName: string;
|
|
3504
3529
|
lastName: string;
|
|
3530
|
+
firstName: string;
|
|
3505
3531
|
}[] | undefined;
|
|
3506
3532
|
} | null | undefined;
|
|
3507
3533
|
phoneNumbers?: {
|
|
@@ -3510,15 +3536,24 @@ export declare const callHistoryContract: {
|
|
|
3510
3536
|
description?: string | null | undefined;
|
|
3511
3537
|
isPrimary?: boolean | undefined;
|
|
3512
3538
|
}[] | undefined;
|
|
3513
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3514
|
-
officeId?: string | null | undefined;
|
|
3515
3539
|
canImpersonateUsers?: {
|
|
3516
3540
|
id: string;
|
|
3517
|
-
firstName: string;
|
|
3518
3541
|
lastName: string;
|
|
3542
|
+
firstName: string;
|
|
3519
3543
|
}[] | undefined;
|
|
3544
|
+
dialpadUserId?: string | null | undefined;
|
|
3520
3545
|
deletedAt?: string | Date | null | undefined;
|
|
3521
3546
|
} | undefined;
|
|
3547
|
+
lead?: {
|
|
3548
|
+
name: string;
|
|
3549
|
+
phoneNumber: string;
|
|
3550
|
+
} | undefined;
|
|
3551
|
+
company?: {
|
|
3552
|
+
name: string;
|
|
3553
|
+
createdAt: string | Date;
|
|
3554
|
+
updatedAt: string | Date;
|
|
3555
|
+
id: string;
|
|
3556
|
+
} | null | undefined;
|
|
3522
3557
|
}>>>;
|
|
3523
3558
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
3524
3559
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -3528,117 +3563,110 @@ export declare const callHistoryContract: {
|
|
|
3528
3563
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3529
3564
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3530
3565
|
}, "strip", z.ZodTypeAny, {
|
|
3531
|
-
id: string;
|
|
3532
3566
|
createdAt: string;
|
|
3533
3567
|
updatedAt: string;
|
|
3534
|
-
|
|
3568
|
+
id: string;
|
|
3535
3569
|
rating: CallRating;
|
|
3570
|
+
notes: string | null;
|
|
3536
3571
|
callType: CallType;
|
|
3537
3572
|
leadSource: LeadSource;
|
|
3538
3573
|
ratingWeight: number;
|
|
3539
|
-
|
|
3574
|
+
assignmentId: string;
|
|
3540
3575
|
agentId?: string | undefined;
|
|
3541
3576
|
leadId?: string | undefined;
|
|
3542
3577
|
assignment?: {
|
|
3543
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3544
|
-
id: string;
|
|
3545
3578
|
createdAt: string;
|
|
3546
3579
|
updatedAt: string;
|
|
3547
|
-
|
|
3580
|
+
id: string;
|
|
3581
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3548
3582
|
agentId: string | null;
|
|
3549
3583
|
leadId: string;
|
|
3550
3584
|
assignedAt: string;
|
|
3551
3585
|
assignedBy: string | null;
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3586
|
+
companyId: string | null;
|
|
3587
|
+
agent?: {
|
|
3588
|
+
email: string;
|
|
3555
3589
|
createdAt: string;
|
|
3556
3590
|
updatedAt: string;
|
|
3557
|
-
} | null | undefined;
|
|
3558
|
-
lead?: {
|
|
3559
|
-
phoneNumber: string;
|
|
3560
|
-
name: string;
|
|
3561
|
-
} | undefined;
|
|
3562
|
-
agent?: {
|
|
3563
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3564
3591
|
id: string;
|
|
3565
|
-
|
|
3592
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3566
3593
|
lastName: string;
|
|
3567
|
-
|
|
3568
|
-
createdAt: string;
|
|
3594
|
+
firstName: string;
|
|
3569
3595
|
phoneNumbers: {
|
|
3570
3596
|
id: string;
|
|
3571
3597
|
phoneNumber: string;
|
|
3572
3598
|
isPrimary: boolean;
|
|
3573
3599
|
description?: string | null | undefined;
|
|
3574
3600
|
}[];
|
|
3575
|
-
|
|
3601
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3602
|
+
officeId?: string | null | undefined;
|
|
3576
3603
|
office?: {
|
|
3577
|
-
id: string;
|
|
3578
3604
|
name: string;
|
|
3605
|
+
id: string;
|
|
3579
3606
|
managers?: {
|
|
3580
3607
|
id: string;
|
|
3581
|
-
firstName: string;
|
|
3582
3608
|
lastName: string;
|
|
3609
|
+
firstName: string;
|
|
3583
3610
|
}[] | undefined;
|
|
3584
3611
|
} | null | undefined;
|
|
3585
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3586
|
-
officeId?: string | null | undefined;
|
|
3587
3612
|
canImpersonateUsers?: {
|
|
3588
3613
|
id: string;
|
|
3589
|
-
firstName: string;
|
|
3590
3614
|
lastName: string;
|
|
3615
|
+
firstName: string;
|
|
3591
3616
|
}[] | undefined;
|
|
3617
|
+
dialpadUserId?: string | null | undefined;
|
|
3592
3618
|
deletedAt?: string | null | undefined;
|
|
3593
3619
|
} | undefined;
|
|
3620
|
+
lead?: {
|
|
3621
|
+
name: string;
|
|
3622
|
+
phoneNumber: string;
|
|
3623
|
+
} | undefined;
|
|
3624
|
+
company?: {
|
|
3625
|
+
name: string;
|
|
3626
|
+
createdAt: string;
|
|
3627
|
+
updatedAt: string;
|
|
3628
|
+
id: string;
|
|
3629
|
+
} | null | undefined;
|
|
3594
3630
|
} | null | undefined;
|
|
3595
3631
|
}, {
|
|
3596
|
-
id: string;
|
|
3597
3632
|
createdAt: string | Date;
|
|
3598
3633
|
updatedAt: string | Date;
|
|
3599
|
-
|
|
3634
|
+
id: string;
|
|
3600
3635
|
rating: CallRating;
|
|
3636
|
+
notes: string | null;
|
|
3601
3637
|
callType: CallType;
|
|
3602
3638
|
leadSource: LeadSource;
|
|
3603
3639
|
ratingWeight: number;
|
|
3604
|
-
|
|
3640
|
+
assignmentId: string;
|
|
3605
3641
|
agentId?: string | undefined;
|
|
3606
3642
|
leadId?: string | undefined;
|
|
3607
3643
|
assignment?: {
|
|
3608
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3609
|
-
id: string;
|
|
3610
3644
|
createdAt: string | Date;
|
|
3611
3645
|
updatedAt: string | Date;
|
|
3612
|
-
|
|
3646
|
+
id: string;
|
|
3647
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3613
3648
|
agentId: string | null;
|
|
3614
3649
|
leadId: string;
|
|
3615
3650
|
assignedAt: string | Date;
|
|
3616
3651
|
assignedBy: string | null;
|
|
3617
|
-
|
|
3618
|
-
id: string;
|
|
3619
|
-
name: string;
|
|
3620
|
-
createdAt: string | Date;
|
|
3621
|
-
updatedAt: string | Date;
|
|
3622
|
-
} | null | undefined;
|
|
3623
|
-
lead?: {
|
|
3624
|
-
phoneNumber: string;
|
|
3625
|
-
name: string;
|
|
3626
|
-
} | undefined;
|
|
3652
|
+
companyId: string | null;
|
|
3627
3653
|
agent?: {
|
|
3628
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3629
|
-
id: string;
|
|
3630
|
-
firstName: string;
|
|
3631
|
-
lastName: string;
|
|
3632
3654
|
email: string;
|
|
3633
3655
|
createdAt: string | Date;
|
|
3634
3656
|
updatedAt: string | Date;
|
|
3657
|
+
id: string;
|
|
3658
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3659
|
+
lastName: string;
|
|
3660
|
+
firstName: string;
|
|
3661
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3662
|
+
officeId?: string | null | undefined;
|
|
3635
3663
|
office?: {
|
|
3636
|
-
id: string;
|
|
3637
3664
|
name: string;
|
|
3665
|
+
id: string;
|
|
3638
3666
|
managers?: {
|
|
3639
3667
|
id: string;
|
|
3640
|
-
firstName: string;
|
|
3641
3668
|
lastName: string;
|
|
3669
|
+
firstName: string;
|
|
3642
3670
|
}[] | undefined;
|
|
3643
3671
|
} | null | undefined;
|
|
3644
3672
|
phoneNumbers?: {
|
|
@@ -3647,15 +3675,24 @@ export declare const callHistoryContract: {
|
|
|
3647
3675
|
description?: string | null | undefined;
|
|
3648
3676
|
isPrimary?: boolean | undefined;
|
|
3649
3677
|
}[] | undefined;
|
|
3650
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3651
|
-
officeId?: string | null | undefined;
|
|
3652
3678
|
canImpersonateUsers?: {
|
|
3653
3679
|
id: string;
|
|
3654
|
-
firstName: string;
|
|
3655
3680
|
lastName: string;
|
|
3681
|
+
firstName: string;
|
|
3656
3682
|
}[] | undefined;
|
|
3683
|
+
dialpadUserId?: string | null | undefined;
|
|
3657
3684
|
deletedAt?: string | Date | null | undefined;
|
|
3658
3685
|
} | undefined;
|
|
3686
|
+
lead?: {
|
|
3687
|
+
name: string;
|
|
3688
|
+
phoneNumber: string;
|
|
3689
|
+
} | undefined;
|
|
3690
|
+
company?: {
|
|
3691
|
+
name: string;
|
|
3692
|
+
createdAt: string | Date;
|
|
3693
|
+
updatedAt: string | Date;
|
|
3694
|
+
id: string;
|
|
3695
|
+
} | null | undefined;
|
|
3659
3696
|
} | null | undefined;
|
|
3660
3697
|
}>;
|
|
3661
3698
|
404: z.ZodObject<{
|
|
@@ -3718,7 +3755,7 @@ export declare const callHistoryContract: {
|
|
|
3718
3755
|
details?: unknown;
|
|
3719
3756
|
correlationId?: string | undefined;
|
|
3720
3757
|
}>;
|
|
3721
|
-
|
|
3758
|
+
403: z.ZodObject<{
|
|
3722
3759
|
statusCode: z.ZodNumber;
|
|
3723
3760
|
message: z.ZodString;
|
|
3724
3761
|
code: z.ZodString;
|
|
@@ -3743,7 +3780,7 @@ export declare const callHistoryContract: {
|
|
|
3743
3780
|
details?: unknown;
|
|
3744
3781
|
correlationId?: string | undefined;
|
|
3745
3782
|
}>;
|
|
3746
|
-
|
|
3783
|
+
401: z.ZodObject<{
|
|
3747
3784
|
statusCode: z.ZodNumber;
|
|
3748
3785
|
message: z.ZodString;
|
|
3749
3786
|
code: z.ZodString;
|