@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
|
@@ -12,25 +12,25 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
|
|
|
12
12
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
13
13
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
id: string;
|
|
16
15
|
name: string;
|
|
17
16
|
createdAt: string;
|
|
18
17
|
updatedAt: string;
|
|
19
|
-
}, {
|
|
20
18
|
id: string;
|
|
19
|
+
}, {
|
|
21
20
|
name: string;
|
|
22
21
|
createdAt: string | Date;
|
|
23
22
|
updatedAt: string | Date;
|
|
23
|
+
id: string;
|
|
24
24
|
}>>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
27
27
|
agentId: string;
|
|
28
28
|
companyId?: string | null | undefined;
|
|
29
29
|
company?: {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
32
31
|
createdAt: string;
|
|
33
32
|
updatedAt: string;
|
|
33
|
+
id: string;
|
|
34
34
|
} | null | undefined;
|
|
35
35
|
leadDistributionConfigId?: string | null | undefined;
|
|
36
36
|
}, {
|
|
@@ -38,10 +38,10 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
|
|
|
38
38
|
agentId: string;
|
|
39
39
|
companyId?: string | null | undefined;
|
|
40
40
|
company?: {
|
|
41
|
-
id: string;
|
|
42
41
|
name: string;
|
|
43
42
|
createdAt: string | Date;
|
|
44
43
|
updatedAt: string | Date;
|
|
44
|
+
id: string;
|
|
45
45
|
} | null | undefined;
|
|
46
46
|
leadDistributionConfigId?: string | null | undefined;
|
|
47
47
|
}>;
|
|
@@ -55,12 +55,12 @@ export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNu
|
|
|
55
55
|
mediumMinWeight: z.ZodNumber;
|
|
56
56
|
highMinWeight: z.ZodNumber;
|
|
57
57
|
isActive: z.ZodBoolean;
|
|
58
|
-
}, "
|
|
59
|
-
id: string;
|
|
58
|
+
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
60
59
|
name: string;
|
|
61
|
-
}, {
|
|
62
60
|
id: string;
|
|
61
|
+
}, {
|
|
63
62
|
name: string;
|
|
63
|
+
id: string;
|
|
64
64
|
}>>>;
|
|
65
65
|
export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
66
66
|
agentId: z.ZodString;
|
|
@@ -73,15 +73,15 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
73
73
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
74
74
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
id: string;
|
|
77
76
|
name: string;
|
|
78
77
|
createdAt: string;
|
|
79
78
|
updatedAt: string;
|
|
80
|
-
}, {
|
|
81
79
|
id: string;
|
|
80
|
+
}, {
|
|
82
81
|
name: string;
|
|
83
82
|
createdAt: string | Date;
|
|
84
83
|
updatedAt: string | Date;
|
|
84
|
+
id: string;
|
|
85
85
|
}>>>;
|
|
86
86
|
} & {
|
|
87
87
|
id: z.ZodString;
|
|
@@ -117,28 +117,28 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
117
117
|
lastName: z.ZodString;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
id: string;
|
|
120
|
-
firstName: string;
|
|
121
120
|
lastName: string;
|
|
121
|
+
firstName: string;
|
|
122
122
|
}, {
|
|
123
123
|
id: string;
|
|
124
|
-
firstName: string;
|
|
125
124
|
lastName: string;
|
|
125
|
+
firstName: string;
|
|
126
126
|
}>, "many">>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
id: string;
|
|
129
128
|
name: string;
|
|
129
|
+
id: string;
|
|
130
130
|
managers?: {
|
|
131
131
|
id: string;
|
|
132
|
-
firstName: string;
|
|
133
132
|
lastName: string;
|
|
133
|
+
firstName: string;
|
|
134
134
|
}[] | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
id: string;
|
|
137
136
|
name: string;
|
|
137
|
+
id: string;
|
|
138
138
|
managers?: {
|
|
139
139
|
id: string;
|
|
140
|
-
firstName: string;
|
|
141
140
|
lastName: string;
|
|
141
|
+
firstName: string;
|
|
142
142
|
}[] | undefined;
|
|
143
143
|
}>>>;
|
|
144
144
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -147,63 +147,67 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
147
147
|
lastName: z.ZodString;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
id: string;
|
|
150
|
-
firstName: string;
|
|
151
150
|
lastName: string;
|
|
151
|
+
firstName: string;
|
|
152
152
|
}, {
|
|
153
153
|
id: string;
|
|
154
|
-
firstName: string;
|
|
155
154
|
lastName: string;
|
|
155
|
+
firstName: string;
|
|
156
156
|
}>, "many">>;
|
|
157
157
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
158
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
158
159
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
159
160
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
160
161
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
161
162
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
status: "ACTIVE" | "INACTIVE";
|
|
163
|
-
id: string;
|
|
164
|
-
firstName: string;
|
|
165
|
-
lastName: string;
|
|
166
163
|
email: string;
|
|
167
164
|
createdAt: string;
|
|
165
|
+
updatedAt: string;
|
|
166
|
+
id: string;
|
|
167
|
+
status: "ACTIVE" | "INACTIVE";
|
|
168
|
+
lastName: string;
|
|
169
|
+
firstName: string;
|
|
168
170
|
phoneNumbers: {
|
|
169
171
|
id: string;
|
|
170
172
|
phoneNumber: string;
|
|
171
173
|
isPrimary: boolean;
|
|
172
174
|
description?: string | null | undefined;
|
|
173
175
|
}[];
|
|
174
|
-
|
|
176
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
177
|
+
officeId?: string | null | undefined;
|
|
175
178
|
office?: {
|
|
176
|
-
id: string;
|
|
177
179
|
name: string;
|
|
180
|
+
id: string;
|
|
178
181
|
managers?: {
|
|
179
182
|
id: string;
|
|
180
|
-
firstName: string;
|
|
181
183
|
lastName: string;
|
|
184
|
+
firstName: string;
|
|
182
185
|
}[] | undefined;
|
|
183
186
|
} | null | undefined;
|
|
184
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
185
|
-
officeId?: string | null | undefined;
|
|
186
187
|
canImpersonateUsers?: {
|
|
187
188
|
id: string;
|
|
188
|
-
firstName: string;
|
|
189
189
|
lastName: string;
|
|
190
|
+
firstName: string;
|
|
190
191
|
}[] | undefined;
|
|
192
|
+
dialpadUserId?: string | null | undefined;
|
|
191
193
|
deletedAt?: string | null | undefined;
|
|
192
194
|
}, {
|
|
193
|
-
status: "ACTIVE" | "INACTIVE";
|
|
194
|
-
id: string;
|
|
195
|
-
firstName: string;
|
|
196
|
-
lastName: string;
|
|
197
195
|
email: string;
|
|
198
196
|
createdAt: string | Date;
|
|
199
197
|
updatedAt: string | Date;
|
|
198
|
+
id: string;
|
|
199
|
+
status: "ACTIVE" | "INACTIVE";
|
|
200
|
+
lastName: string;
|
|
201
|
+
firstName: string;
|
|
202
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
203
|
+
officeId?: string | null | undefined;
|
|
200
204
|
office?: {
|
|
201
|
-
id: string;
|
|
202
205
|
name: string;
|
|
206
|
+
id: string;
|
|
203
207
|
managers?: {
|
|
204
208
|
id: string;
|
|
205
|
-
firstName: string;
|
|
206
209
|
lastName: string;
|
|
210
|
+
firstName: string;
|
|
207
211
|
}[] | undefined;
|
|
208
212
|
} | null | undefined;
|
|
209
213
|
phoneNumbers?: {
|
|
@@ -212,13 +216,12 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
212
216
|
description?: string | null | undefined;
|
|
213
217
|
isPrimary?: boolean | undefined;
|
|
214
218
|
}[] | undefined;
|
|
215
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
216
|
-
officeId?: string | null | undefined;
|
|
217
219
|
canImpersonateUsers?: {
|
|
218
220
|
id: string;
|
|
219
|
-
firstName: string;
|
|
220
221
|
lastName: string;
|
|
222
|
+
firstName: string;
|
|
221
223
|
}[] | undefined;
|
|
224
|
+
dialpadUserId?: string | null | undefined;
|
|
222
225
|
deletedAt?: string | Date | null | undefined;
|
|
223
226
|
}>;
|
|
224
227
|
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
@@ -231,80 +234,83 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
231
234
|
mediumMinWeight: z.ZodNumber;
|
|
232
235
|
highMinWeight: z.ZodNumber;
|
|
233
236
|
isActive: z.ZodBoolean;
|
|
234
|
-
}, "
|
|
235
|
-
id: string;
|
|
237
|
+
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
236
238
|
name: string;
|
|
237
|
-
}, {
|
|
238
239
|
id: string;
|
|
240
|
+
}, {
|
|
239
241
|
name: string;
|
|
242
|
+
id: string;
|
|
240
243
|
}>>>;
|
|
241
244
|
}, "strip", z.ZodTypeAny, {
|
|
242
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
243
245
|
id: string;
|
|
246
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
244
247
|
agentId: string;
|
|
245
248
|
agent: {
|
|
246
|
-
status: "ACTIVE" | "INACTIVE";
|
|
247
|
-
id: string;
|
|
248
|
-
firstName: string;
|
|
249
|
-
lastName: string;
|
|
250
249
|
email: string;
|
|
251
250
|
createdAt: string;
|
|
251
|
+
updatedAt: string;
|
|
252
|
+
id: string;
|
|
253
|
+
status: "ACTIVE" | "INACTIVE";
|
|
254
|
+
lastName: string;
|
|
255
|
+
firstName: string;
|
|
252
256
|
phoneNumbers: {
|
|
253
257
|
id: string;
|
|
254
258
|
phoneNumber: string;
|
|
255
259
|
isPrimary: boolean;
|
|
256
260
|
description?: string | null | undefined;
|
|
257
261
|
}[];
|
|
258
|
-
|
|
262
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
263
|
+
officeId?: string | null | undefined;
|
|
259
264
|
office?: {
|
|
260
|
-
id: string;
|
|
261
265
|
name: string;
|
|
266
|
+
id: string;
|
|
262
267
|
managers?: {
|
|
263
268
|
id: string;
|
|
264
|
-
firstName: string;
|
|
265
269
|
lastName: string;
|
|
270
|
+
firstName: string;
|
|
266
271
|
}[] | undefined;
|
|
267
272
|
} | null | undefined;
|
|
268
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
269
|
-
officeId?: string | null | undefined;
|
|
270
273
|
canImpersonateUsers?: {
|
|
271
274
|
id: string;
|
|
272
|
-
firstName: string;
|
|
273
275
|
lastName: string;
|
|
276
|
+
firstName: string;
|
|
274
277
|
}[] | undefined;
|
|
278
|
+
dialpadUserId?: string | null | undefined;
|
|
275
279
|
deletedAt?: string | null | undefined;
|
|
276
280
|
};
|
|
277
281
|
companyId?: string | null | undefined;
|
|
278
282
|
company?: {
|
|
279
|
-
id: string;
|
|
280
283
|
name: string;
|
|
281
284
|
createdAt: string;
|
|
282
285
|
updatedAt: string;
|
|
286
|
+
id: string;
|
|
283
287
|
} | null | undefined;
|
|
284
288
|
leadDistributionConfigId?: string | null | undefined;
|
|
285
289
|
leadDistributionConfig?: {
|
|
286
|
-
id: string;
|
|
287
290
|
name: string;
|
|
291
|
+
id: string;
|
|
288
292
|
} | null | undefined;
|
|
289
293
|
}, {
|
|
290
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
291
294
|
id: string;
|
|
295
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
292
296
|
agentId: string;
|
|
293
297
|
agent: {
|
|
294
|
-
status: "ACTIVE" | "INACTIVE";
|
|
295
|
-
id: string;
|
|
296
|
-
firstName: string;
|
|
297
|
-
lastName: string;
|
|
298
298
|
email: string;
|
|
299
299
|
createdAt: string | Date;
|
|
300
300
|
updatedAt: string | Date;
|
|
301
|
+
id: string;
|
|
302
|
+
status: "ACTIVE" | "INACTIVE";
|
|
303
|
+
lastName: string;
|
|
304
|
+
firstName: string;
|
|
305
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
306
|
+
officeId?: string | null | undefined;
|
|
301
307
|
office?: {
|
|
302
|
-
id: string;
|
|
303
308
|
name: string;
|
|
309
|
+
id: string;
|
|
304
310
|
managers?: {
|
|
305
311
|
id: string;
|
|
306
|
-
firstName: string;
|
|
307
312
|
lastName: string;
|
|
313
|
+
firstName: string;
|
|
308
314
|
}[] | undefined;
|
|
309
315
|
} | null | undefined;
|
|
310
316
|
phoneNumbers?: {
|
|
@@ -313,26 +319,25 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
313
319
|
description?: string | null | undefined;
|
|
314
320
|
isPrimary?: boolean | undefined;
|
|
315
321
|
}[] | undefined;
|
|
316
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
317
|
-
officeId?: string | null | undefined;
|
|
318
322
|
canImpersonateUsers?: {
|
|
319
323
|
id: string;
|
|
320
|
-
firstName: string;
|
|
321
324
|
lastName: string;
|
|
325
|
+
firstName: string;
|
|
322
326
|
}[] | undefined;
|
|
327
|
+
dialpadUserId?: string | null | undefined;
|
|
323
328
|
deletedAt?: string | Date | null | undefined;
|
|
324
329
|
};
|
|
325
330
|
companyId?: string | null | undefined;
|
|
326
331
|
company?: {
|
|
327
|
-
id: string;
|
|
328
332
|
name: string;
|
|
329
333
|
createdAt: string | Date;
|
|
330
334
|
updatedAt: string | Date;
|
|
335
|
+
id: string;
|
|
331
336
|
} | null | undefined;
|
|
332
337
|
leadDistributionConfigId?: string | null | undefined;
|
|
333
338
|
leadDistributionConfig?: {
|
|
334
|
-
id: string;
|
|
335
339
|
name: string;
|
|
340
|
+
id: string;
|
|
336
341
|
} | null | undefined;
|
|
337
342
|
}>;
|
|
338
343
|
export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
|
|
@@ -373,18 +378,18 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
|
|
|
373
378
|
leadDistributionConfigId: z.ZodOptional<z.ZodString>;
|
|
374
379
|
companyId: z.ZodOptional<z.ZodString>;
|
|
375
380
|
}, "strip", z.ZodTypeAny, {
|
|
376
|
-
limit: number;
|
|
377
381
|
page: number;
|
|
382
|
+
limit: number;
|
|
378
383
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
379
|
-
companyId?: string | undefined;
|
|
380
384
|
agentId?: string | undefined;
|
|
385
|
+
companyId?: string | undefined;
|
|
381
386
|
leadDistributionConfigId?: string | undefined;
|
|
382
387
|
}, {
|
|
383
|
-
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
384
|
-
limit?: number | undefined;
|
|
385
388
|
page?: number | undefined;
|
|
386
|
-
|
|
389
|
+
limit?: number | undefined;
|
|
390
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
387
391
|
agentId?: string | undefined;
|
|
392
|
+
companyId?: string | undefined;
|
|
388
393
|
leadDistributionConfigId?: string | undefined;
|
|
389
394
|
}>;
|
|
390
395
|
export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
@@ -399,15 +404,15 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
399
404
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
400
405
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
401
406
|
}, "strip", z.ZodTypeAny, {
|
|
402
|
-
id: string;
|
|
403
407
|
name: string;
|
|
404
408
|
createdAt: string;
|
|
405
409
|
updatedAt: string;
|
|
406
|
-
}, {
|
|
407
410
|
id: string;
|
|
411
|
+
}, {
|
|
408
412
|
name: string;
|
|
409
413
|
createdAt: string | Date;
|
|
410
414
|
updatedAt: string | Date;
|
|
415
|
+
id: string;
|
|
411
416
|
}>>>;
|
|
412
417
|
} & {
|
|
413
418
|
id: z.ZodString;
|
|
@@ -443,28 +448,28 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
443
448
|
lastName: z.ZodString;
|
|
444
449
|
}, "strip", z.ZodTypeAny, {
|
|
445
450
|
id: string;
|
|
446
|
-
firstName: string;
|
|
447
451
|
lastName: string;
|
|
452
|
+
firstName: string;
|
|
448
453
|
}, {
|
|
449
454
|
id: string;
|
|
450
|
-
firstName: string;
|
|
451
455
|
lastName: string;
|
|
456
|
+
firstName: string;
|
|
452
457
|
}>, "many">>;
|
|
453
458
|
}, "strip", z.ZodTypeAny, {
|
|
454
|
-
id: string;
|
|
455
459
|
name: string;
|
|
460
|
+
id: string;
|
|
456
461
|
managers?: {
|
|
457
462
|
id: string;
|
|
458
|
-
firstName: string;
|
|
459
463
|
lastName: string;
|
|
464
|
+
firstName: string;
|
|
460
465
|
}[] | undefined;
|
|
461
466
|
}, {
|
|
462
|
-
id: string;
|
|
463
467
|
name: string;
|
|
468
|
+
id: string;
|
|
464
469
|
managers?: {
|
|
465
470
|
id: string;
|
|
466
|
-
firstName: string;
|
|
467
471
|
lastName: string;
|
|
472
|
+
firstName: string;
|
|
468
473
|
}[] | undefined;
|
|
469
474
|
}>>>;
|
|
470
475
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -473,63 +478,67 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
473
478
|
lastName: z.ZodString;
|
|
474
479
|
}, "strip", z.ZodTypeAny, {
|
|
475
480
|
id: string;
|
|
476
|
-
firstName: string;
|
|
477
481
|
lastName: string;
|
|
482
|
+
firstName: string;
|
|
478
483
|
}, {
|
|
479
484
|
id: string;
|
|
480
|
-
firstName: string;
|
|
481
485
|
lastName: string;
|
|
486
|
+
firstName: string;
|
|
482
487
|
}>, "many">>;
|
|
483
488
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
489
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
484
490
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
485
491
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
486
492
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
487
493
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
status: "ACTIVE" | "INACTIVE";
|
|
489
|
-
id: string;
|
|
490
|
-
firstName: string;
|
|
491
|
-
lastName: string;
|
|
492
494
|
email: string;
|
|
493
495
|
createdAt: string;
|
|
496
|
+
updatedAt: string;
|
|
497
|
+
id: string;
|
|
498
|
+
status: "ACTIVE" | "INACTIVE";
|
|
499
|
+
lastName: string;
|
|
500
|
+
firstName: string;
|
|
494
501
|
phoneNumbers: {
|
|
495
502
|
id: string;
|
|
496
503
|
phoneNumber: string;
|
|
497
504
|
isPrimary: boolean;
|
|
498
505
|
description?: string | null | undefined;
|
|
499
506
|
}[];
|
|
500
|
-
|
|
507
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
508
|
+
officeId?: string | null | undefined;
|
|
501
509
|
office?: {
|
|
502
|
-
id: string;
|
|
503
510
|
name: string;
|
|
511
|
+
id: string;
|
|
504
512
|
managers?: {
|
|
505
513
|
id: string;
|
|
506
|
-
firstName: string;
|
|
507
514
|
lastName: string;
|
|
515
|
+
firstName: string;
|
|
508
516
|
}[] | undefined;
|
|
509
517
|
} | null | undefined;
|
|
510
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
511
|
-
officeId?: string | null | undefined;
|
|
512
518
|
canImpersonateUsers?: {
|
|
513
519
|
id: string;
|
|
514
|
-
firstName: string;
|
|
515
520
|
lastName: string;
|
|
521
|
+
firstName: string;
|
|
516
522
|
}[] | undefined;
|
|
523
|
+
dialpadUserId?: string | null | undefined;
|
|
517
524
|
deletedAt?: string | null | undefined;
|
|
518
525
|
}, {
|
|
519
|
-
status: "ACTIVE" | "INACTIVE";
|
|
520
|
-
id: string;
|
|
521
|
-
firstName: string;
|
|
522
|
-
lastName: string;
|
|
523
526
|
email: string;
|
|
524
527
|
createdAt: string | Date;
|
|
525
528
|
updatedAt: string | Date;
|
|
529
|
+
id: string;
|
|
530
|
+
status: "ACTIVE" | "INACTIVE";
|
|
531
|
+
lastName: string;
|
|
532
|
+
firstName: string;
|
|
533
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
534
|
+
officeId?: string | null | undefined;
|
|
526
535
|
office?: {
|
|
527
|
-
id: string;
|
|
528
536
|
name: string;
|
|
537
|
+
id: string;
|
|
529
538
|
managers?: {
|
|
530
539
|
id: string;
|
|
531
|
-
firstName: string;
|
|
532
540
|
lastName: string;
|
|
541
|
+
firstName: string;
|
|
533
542
|
}[] | undefined;
|
|
534
543
|
} | null | undefined;
|
|
535
544
|
phoneNumbers?: {
|
|
@@ -538,13 +547,12 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
538
547
|
description?: string | null | undefined;
|
|
539
548
|
isPrimary?: boolean | undefined;
|
|
540
549
|
}[] | undefined;
|
|
541
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
542
|
-
officeId?: string | null | undefined;
|
|
543
550
|
canImpersonateUsers?: {
|
|
544
551
|
id: string;
|
|
545
|
-
firstName: string;
|
|
546
552
|
lastName: string;
|
|
553
|
+
firstName: string;
|
|
547
554
|
}[] | undefined;
|
|
555
|
+
dialpadUserId?: string | null | undefined;
|
|
548
556
|
deletedAt?: string | Date | null | undefined;
|
|
549
557
|
}>;
|
|
550
558
|
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
@@ -557,80 +565,83 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
557
565
|
mediumMinWeight: z.ZodNumber;
|
|
558
566
|
highMinWeight: z.ZodNumber;
|
|
559
567
|
isActive: z.ZodBoolean;
|
|
560
|
-
}, "
|
|
561
|
-
id: string;
|
|
568
|
+
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
562
569
|
name: string;
|
|
563
|
-
}, {
|
|
564
570
|
id: string;
|
|
571
|
+
}, {
|
|
565
572
|
name: string;
|
|
573
|
+
id: string;
|
|
566
574
|
}>>>;
|
|
567
575
|
}, "strip", z.ZodTypeAny, {
|
|
568
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
569
576
|
id: string;
|
|
577
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
570
578
|
agentId: string;
|
|
571
579
|
agent: {
|
|
572
|
-
status: "ACTIVE" | "INACTIVE";
|
|
573
|
-
id: string;
|
|
574
|
-
firstName: string;
|
|
575
|
-
lastName: string;
|
|
576
580
|
email: string;
|
|
577
581
|
createdAt: string;
|
|
582
|
+
updatedAt: string;
|
|
583
|
+
id: string;
|
|
584
|
+
status: "ACTIVE" | "INACTIVE";
|
|
585
|
+
lastName: string;
|
|
586
|
+
firstName: string;
|
|
578
587
|
phoneNumbers: {
|
|
579
588
|
id: string;
|
|
580
589
|
phoneNumber: string;
|
|
581
590
|
isPrimary: boolean;
|
|
582
591
|
description?: string | null | undefined;
|
|
583
592
|
}[];
|
|
584
|
-
|
|
593
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
594
|
+
officeId?: string | null | undefined;
|
|
585
595
|
office?: {
|
|
586
|
-
id: string;
|
|
587
596
|
name: string;
|
|
597
|
+
id: string;
|
|
588
598
|
managers?: {
|
|
589
599
|
id: string;
|
|
590
|
-
firstName: string;
|
|
591
600
|
lastName: string;
|
|
601
|
+
firstName: string;
|
|
592
602
|
}[] | undefined;
|
|
593
603
|
} | null | undefined;
|
|
594
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
595
|
-
officeId?: string | null | undefined;
|
|
596
604
|
canImpersonateUsers?: {
|
|
597
605
|
id: string;
|
|
598
|
-
firstName: string;
|
|
599
606
|
lastName: string;
|
|
607
|
+
firstName: string;
|
|
600
608
|
}[] | undefined;
|
|
609
|
+
dialpadUserId?: string | null | undefined;
|
|
601
610
|
deletedAt?: string | null | undefined;
|
|
602
611
|
};
|
|
603
612
|
companyId?: string | null | undefined;
|
|
604
613
|
company?: {
|
|
605
|
-
id: string;
|
|
606
614
|
name: string;
|
|
607
615
|
createdAt: string;
|
|
608
616
|
updatedAt: string;
|
|
617
|
+
id: string;
|
|
609
618
|
} | null | undefined;
|
|
610
619
|
leadDistributionConfigId?: string | null | undefined;
|
|
611
620
|
leadDistributionConfig?: {
|
|
612
|
-
id: string;
|
|
613
621
|
name: string;
|
|
622
|
+
id: string;
|
|
614
623
|
} | null | undefined;
|
|
615
624
|
}, {
|
|
616
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
617
625
|
id: string;
|
|
626
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
618
627
|
agentId: string;
|
|
619
628
|
agent: {
|
|
620
|
-
status: "ACTIVE" | "INACTIVE";
|
|
621
|
-
id: string;
|
|
622
|
-
firstName: string;
|
|
623
|
-
lastName: string;
|
|
624
629
|
email: string;
|
|
625
630
|
createdAt: string | Date;
|
|
626
631
|
updatedAt: string | Date;
|
|
632
|
+
id: string;
|
|
633
|
+
status: "ACTIVE" | "INACTIVE";
|
|
634
|
+
lastName: string;
|
|
635
|
+
firstName: string;
|
|
636
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
637
|
+
officeId?: string | null | undefined;
|
|
627
638
|
office?: {
|
|
628
|
-
id: string;
|
|
629
639
|
name: string;
|
|
640
|
+
id: string;
|
|
630
641
|
managers?: {
|
|
631
642
|
id: string;
|
|
632
|
-
firstName: string;
|
|
633
643
|
lastName: string;
|
|
644
|
+
firstName: string;
|
|
634
645
|
}[] | undefined;
|
|
635
646
|
} | null | undefined;
|
|
636
647
|
phoneNumbers?: {
|
|
@@ -639,26 +650,25 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
639
650
|
description?: string | null | undefined;
|
|
640
651
|
isPrimary?: boolean | undefined;
|
|
641
652
|
}[] | undefined;
|
|
642
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
643
|
-
officeId?: string | null | undefined;
|
|
644
653
|
canImpersonateUsers?: {
|
|
645
654
|
id: string;
|
|
646
|
-
firstName: string;
|
|
647
655
|
lastName: string;
|
|
656
|
+
firstName: string;
|
|
648
657
|
}[] | undefined;
|
|
658
|
+
dialpadUserId?: string | null | undefined;
|
|
649
659
|
deletedAt?: string | Date | null | undefined;
|
|
650
660
|
};
|
|
651
661
|
companyId?: string | null | undefined;
|
|
652
662
|
company?: {
|
|
653
|
-
id: string;
|
|
654
663
|
name: string;
|
|
655
664
|
createdAt: string | Date;
|
|
656
665
|
updatedAt: string | Date;
|
|
666
|
+
id: string;
|
|
657
667
|
} | null | undefined;
|
|
658
668
|
leadDistributionConfigId?: string | null | undefined;
|
|
659
669
|
leadDistributionConfig?: {
|
|
660
|
-
id: string;
|
|
661
670
|
name: string;
|
|
671
|
+
id: string;
|
|
662
672
|
} | null | undefined;
|
|
663
673
|
}>, "many">;
|
|
664
674
|
totalCount: z.ZodNumber;
|
|
@@ -669,52 +679,53 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
669
679
|
}, "strip", z.ZodTypeAny, {
|
|
670
680
|
limit: number;
|
|
671
681
|
items: {
|
|
672
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
673
682
|
id: string;
|
|
683
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
674
684
|
agentId: string;
|
|
675
685
|
agent: {
|
|
676
|
-
status: "ACTIVE" | "INACTIVE";
|
|
677
|
-
id: string;
|
|
678
|
-
firstName: string;
|
|
679
|
-
lastName: string;
|
|
680
686
|
email: string;
|
|
681
687
|
createdAt: string;
|
|
688
|
+
updatedAt: string;
|
|
689
|
+
id: string;
|
|
690
|
+
status: "ACTIVE" | "INACTIVE";
|
|
691
|
+
lastName: string;
|
|
692
|
+
firstName: string;
|
|
682
693
|
phoneNumbers: {
|
|
683
694
|
id: string;
|
|
684
695
|
phoneNumber: string;
|
|
685
696
|
isPrimary: boolean;
|
|
686
697
|
description?: string | null | undefined;
|
|
687
698
|
}[];
|
|
688
|
-
|
|
699
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
700
|
+
officeId?: string | null | undefined;
|
|
689
701
|
office?: {
|
|
690
|
-
id: string;
|
|
691
702
|
name: string;
|
|
703
|
+
id: string;
|
|
692
704
|
managers?: {
|
|
693
705
|
id: string;
|
|
694
|
-
firstName: string;
|
|
695
706
|
lastName: string;
|
|
707
|
+
firstName: string;
|
|
696
708
|
}[] | undefined;
|
|
697
709
|
} | null | undefined;
|
|
698
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
699
|
-
officeId?: string | null | undefined;
|
|
700
710
|
canImpersonateUsers?: {
|
|
701
711
|
id: string;
|
|
702
|
-
firstName: string;
|
|
703
712
|
lastName: string;
|
|
713
|
+
firstName: string;
|
|
704
714
|
}[] | undefined;
|
|
715
|
+
dialpadUserId?: string | null | undefined;
|
|
705
716
|
deletedAt?: string | null | undefined;
|
|
706
717
|
};
|
|
707
718
|
companyId?: string | null | undefined;
|
|
708
719
|
company?: {
|
|
709
|
-
id: string;
|
|
710
720
|
name: string;
|
|
711
721
|
createdAt: string;
|
|
712
722
|
updatedAt: string;
|
|
723
|
+
id: string;
|
|
713
724
|
} | null | undefined;
|
|
714
725
|
leadDistributionConfigId?: string | null | undefined;
|
|
715
726
|
leadDistributionConfig?: {
|
|
716
|
-
id: string;
|
|
717
727
|
name: string;
|
|
728
|
+
id: string;
|
|
718
729
|
} | null | undefined;
|
|
719
730
|
}[];
|
|
720
731
|
totalCount: number;
|
|
@@ -724,24 +735,26 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
724
735
|
}, {
|
|
725
736
|
limit: number;
|
|
726
737
|
items: {
|
|
727
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
728
738
|
id: string;
|
|
739
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
729
740
|
agentId: string;
|
|
730
741
|
agent: {
|
|
731
|
-
status: "ACTIVE" | "INACTIVE";
|
|
732
|
-
id: string;
|
|
733
|
-
firstName: string;
|
|
734
|
-
lastName: string;
|
|
735
742
|
email: string;
|
|
736
743
|
createdAt: string | Date;
|
|
737
744
|
updatedAt: string | Date;
|
|
745
|
+
id: string;
|
|
746
|
+
status: "ACTIVE" | "INACTIVE";
|
|
747
|
+
lastName: string;
|
|
748
|
+
firstName: string;
|
|
749
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
750
|
+
officeId?: string | null | undefined;
|
|
738
751
|
office?: {
|
|
739
|
-
id: string;
|
|
740
752
|
name: string;
|
|
753
|
+
id: string;
|
|
741
754
|
managers?: {
|
|
742
755
|
id: string;
|
|
743
|
-
firstName: string;
|
|
744
756
|
lastName: string;
|
|
757
|
+
firstName: string;
|
|
745
758
|
}[] | undefined;
|
|
746
759
|
} | null | undefined;
|
|
747
760
|
phoneNumbers?: {
|
|
@@ -750,26 +763,25 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
750
763
|
description?: string | null | undefined;
|
|
751
764
|
isPrimary?: boolean | undefined;
|
|
752
765
|
}[] | undefined;
|
|
753
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
754
|
-
officeId?: string | null | undefined;
|
|
755
766
|
canImpersonateUsers?: {
|
|
756
767
|
id: string;
|
|
757
|
-
firstName: string;
|
|
758
768
|
lastName: string;
|
|
769
|
+
firstName: string;
|
|
759
770
|
}[] | undefined;
|
|
771
|
+
dialpadUserId?: string | null | undefined;
|
|
760
772
|
deletedAt?: string | Date | null | undefined;
|
|
761
773
|
};
|
|
762
774
|
companyId?: string | null | undefined;
|
|
763
775
|
company?: {
|
|
764
|
-
id: string;
|
|
765
776
|
name: string;
|
|
766
777
|
createdAt: string | Date;
|
|
767
778
|
updatedAt: string | Date;
|
|
779
|
+
id: string;
|
|
768
780
|
} | null | undefined;
|
|
769
781
|
leadDistributionConfigId?: string | null | undefined;
|
|
770
782
|
leadDistributionConfig?: {
|
|
771
|
-
id: string;
|
|
772
783
|
name: string;
|
|
784
|
+
id: string;
|
|
773
785
|
} | null | undefined;
|
|
774
786
|
}[];
|
|
775
787
|
totalCount: number;
|
|
@@ -847,6 +859,9 @@ export type AgentLeadDistributionConfigRef = z.infer<typeof AgentLeadDistributio
|
|
|
847
859
|
export type BatchResult = z.infer<typeof BatchResultSchema>;
|
|
848
860
|
export declare const agentLeadDistributionContract: {
|
|
849
861
|
findAll: {
|
|
862
|
+
metadata: {
|
|
863
|
+
tags: string[];
|
|
864
|
+
};
|
|
850
865
|
query: z.ZodObject<{
|
|
851
866
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
852
867
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -856,23 +871,20 @@ export declare const agentLeadDistributionContract: {
|
|
|
856
871
|
leadDistributionConfigId: z.ZodOptional<z.ZodString>;
|
|
857
872
|
companyId: z.ZodOptional<z.ZodString>;
|
|
858
873
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
-
limit: number;
|
|
860
874
|
page: number;
|
|
875
|
+
limit: number;
|
|
861
876
|
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
862
|
-
companyId?: string | undefined;
|
|
863
877
|
agentId?: string | undefined;
|
|
878
|
+
companyId?: string | undefined;
|
|
864
879
|
leadDistributionConfigId?: string | undefined;
|
|
865
880
|
}, {
|
|
866
|
-
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
867
|
-
limit?: number | undefined;
|
|
868
881
|
page?: number | undefined;
|
|
869
|
-
|
|
882
|
+
limit?: number | undefined;
|
|
883
|
+
status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
|
|
870
884
|
agentId?: string | undefined;
|
|
885
|
+
companyId?: string | undefined;
|
|
871
886
|
leadDistributionConfigId?: string | undefined;
|
|
872
887
|
}>;
|
|
873
|
-
metadata: {
|
|
874
|
-
tags: string[];
|
|
875
|
-
};
|
|
876
888
|
summary: "List all agent lead distribution records";
|
|
877
889
|
method: "GET";
|
|
878
890
|
path: "/v2/agent-lead-distribution";
|
|
@@ -964,15 +976,15 @@ export declare const agentLeadDistributionContract: {
|
|
|
964
976
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
965
977
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
966
978
|
}, "strip", z.ZodTypeAny, {
|
|
967
|
-
id: string;
|
|
968
979
|
name: string;
|
|
969
980
|
createdAt: string;
|
|
970
981
|
updatedAt: string;
|
|
971
|
-
}, {
|
|
972
982
|
id: string;
|
|
983
|
+
}, {
|
|
973
984
|
name: string;
|
|
974
985
|
createdAt: string | Date;
|
|
975
986
|
updatedAt: string | Date;
|
|
987
|
+
id: string;
|
|
976
988
|
}>>>;
|
|
977
989
|
} & {
|
|
978
990
|
id: z.ZodString;
|
|
@@ -1008,28 +1020,28 @@ export declare const agentLeadDistributionContract: {
|
|
|
1008
1020
|
lastName: z.ZodString;
|
|
1009
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1010
1022
|
id: string;
|
|
1011
|
-
firstName: string;
|
|
1012
1023
|
lastName: string;
|
|
1024
|
+
firstName: string;
|
|
1013
1025
|
}, {
|
|
1014
1026
|
id: string;
|
|
1015
|
-
firstName: string;
|
|
1016
1027
|
lastName: string;
|
|
1028
|
+
firstName: string;
|
|
1017
1029
|
}>, "many">>;
|
|
1018
1030
|
}, "strip", z.ZodTypeAny, {
|
|
1019
|
-
id: string;
|
|
1020
1031
|
name: string;
|
|
1032
|
+
id: string;
|
|
1021
1033
|
managers?: {
|
|
1022
1034
|
id: string;
|
|
1023
|
-
firstName: string;
|
|
1024
1035
|
lastName: string;
|
|
1036
|
+
firstName: string;
|
|
1025
1037
|
}[] | undefined;
|
|
1026
1038
|
}, {
|
|
1027
|
-
id: string;
|
|
1028
1039
|
name: string;
|
|
1040
|
+
id: string;
|
|
1029
1041
|
managers?: {
|
|
1030
1042
|
id: string;
|
|
1031
|
-
firstName: string;
|
|
1032
1043
|
lastName: string;
|
|
1044
|
+
firstName: string;
|
|
1033
1045
|
}[] | undefined;
|
|
1034
1046
|
}>>>;
|
|
1035
1047
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1038,63 +1050,67 @@ export declare const agentLeadDistributionContract: {
|
|
|
1038
1050
|
lastName: z.ZodString;
|
|
1039
1051
|
}, "strip", z.ZodTypeAny, {
|
|
1040
1052
|
id: string;
|
|
1041
|
-
firstName: string;
|
|
1042
1053
|
lastName: string;
|
|
1054
|
+
firstName: string;
|
|
1043
1055
|
}, {
|
|
1044
1056
|
id: string;
|
|
1045
|
-
firstName: string;
|
|
1046
1057
|
lastName: string;
|
|
1058
|
+
firstName: string;
|
|
1047
1059
|
}>, "many">>;
|
|
1048
1060
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1061
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1049
1062
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1050
1063
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1051
1064
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1052
1065
|
}, "strip", z.ZodTypeAny, {
|
|
1053
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1054
|
-
id: string;
|
|
1055
|
-
firstName: string;
|
|
1056
|
-
lastName: string;
|
|
1057
1066
|
email: string;
|
|
1058
1067
|
createdAt: string;
|
|
1068
|
+
updatedAt: string;
|
|
1069
|
+
id: string;
|
|
1070
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1071
|
+
lastName: string;
|
|
1072
|
+
firstName: string;
|
|
1059
1073
|
phoneNumbers: {
|
|
1060
1074
|
id: string;
|
|
1061
1075
|
phoneNumber: string;
|
|
1062
1076
|
isPrimary: boolean;
|
|
1063
1077
|
description?: string | null | undefined;
|
|
1064
1078
|
}[];
|
|
1065
|
-
|
|
1079
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1080
|
+
officeId?: string | null | undefined;
|
|
1066
1081
|
office?: {
|
|
1067
|
-
id: string;
|
|
1068
1082
|
name: string;
|
|
1083
|
+
id: string;
|
|
1069
1084
|
managers?: {
|
|
1070
1085
|
id: string;
|
|
1071
|
-
firstName: string;
|
|
1072
1086
|
lastName: string;
|
|
1087
|
+
firstName: string;
|
|
1073
1088
|
}[] | undefined;
|
|
1074
1089
|
} | null | undefined;
|
|
1075
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1076
|
-
officeId?: string | null | undefined;
|
|
1077
1090
|
canImpersonateUsers?: {
|
|
1078
1091
|
id: string;
|
|
1079
|
-
firstName: string;
|
|
1080
1092
|
lastName: string;
|
|
1093
|
+
firstName: string;
|
|
1081
1094
|
}[] | undefined;
|
|
1095
|
+
dialpadUserId?: string | null | undefined;
|
|
1082
1096
|
deletedAt?: string | null | undefined;
|
|
1083
1097
|
}, {
|
|
1084
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1085
|
-
id: string;
|
|
1086
|
-
firstName: string;
|
|
1087
|
-
lastName: string;
|
|
1088
1098
|
email: string;
|
|
1089
1099
|
createdAt: string | Date;
|
|
1090
1100
|
updatedAt: string | Date;
|
|
1101
|
+
id: string;
|
|
1102
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1103
|
+
lastName: string;
|
|
1104
|
+
firstName: string;
|
|
1105
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1106
|
+
officeId?: string | null | undefined;
|
|
1091
1107
|
office?: {
|
|
1092
|
-
id: string;
|
|
1093
1108
|
name: string;
|
|
1109
|
+
id: string;
|
|
1094
1110
|
managers?: {
|
|
1095
1111
|
id: string;
|
|
1096
|
-
firstName: string;
|
|
1097
1112
|
lastName: string;
|
|
1113
|
+
firstName: string;
|
|
1098
1114
|
}[] | undefined;
|
|
1099
1115
|
} | null | undefined;
|
|
1100
1116
|
phoneNumbers?: {
|
|
@@ -1103,13 +1119,12 @@ export declare const agentLeadDistributionContract: {
|
|
|
1103
1119
|
description?: string | null | undefined;
|
|
1104
1120
|
isPrimary?: boolean | undefined;
|
|
1105
1121
|
}[] | undefined;
|
|
1106
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1107
|
-
officeId?: string | null | undefined;
|
|
1108
1122
|
canImpersonateUsers?: {
|
|
1109
1123
|
id: string;
|
|
1110
|
-
firstName: string;
|
|
1111
1124
|
lastName: string;
|
|
1125
|
+
firstName: string;
|
|
1112
1126
|
}[] | undefined;
|
|
1127
|
+
dialpadUserId?: string | null | undefined;
|
|
1113
1128
|
deletedAt?: string | Date | null | undefined;
|
|
1114
1129
|
}>;
|
|
1115
1130
|
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
@@ -1122,80 +1137,83 @@ export declare const agentLeadDistributionContract: {
|
|
|
1122
1137
|
mediumMinWeight: z.ZodNumber;
|
|
1123
1138
|
highMinWeight: z.ZodNumber;
|
|
1124
1139
|
isActive: z.ZodBoolean;
|
|
1125
|
-
}, "
|
|
1126
|
-
id: string;
|
|
1140
|
+
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
1127
1141
|
name: string;
|
|
1128
|
-
}, {
|
|
1129
1142
|
id: string;
|
|
1143
|
+
}, {
|
|
1130
1144
|
name: string;
|
|
1145
|
+
id: string;
|
|
1131
1146
|
}>>>;
|
|
1132
1147
|
}, "strip", z.ZodTypeAny, {
|
|
1133
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1134
1148
|
id: string;
|
|
1149
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1135
1150
|
agentId: string;
|
|
1136
1151
|
agent: {
|
|
1137
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1138
|
-
id: string;
|
|
1139
|
-
firstName: string;
|
|
1140
|
-
lastName: string;
|
|
1141
1152
|
email: string;
|
|
1142
1153
|
createdAt: string;
|
|
1154
|
+
updatedAt: string;
|
|
1155
|
+
id: string;
|
|
1156
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1157
|
+
lastName: string;
|
|
1158
|
+
firstName: string;
|
|
1143
1159
|
phoneNumbers: {
|
|
1144
1160
|
id: string;
|
|
1145
1161
|
phoneNumber: string;
|
|
1146
1162
|
isPrimary: boolean;
|
|
1147
1163
|
description?: string | null | undefined;
|
|
1148
1164
|
}[];
|
|
1149
|
-
|
|
1165
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1166
|
+
officeId?: string | null | undefined;
|
|
1150
1167
|
office?: {
|
|
1151
|
-
id: string;
|
|
1152
1168
|
name: string;
|
|
1169
|
+
id: string;
|
|
1153
1170
|
managers?: {
|
|
1154
1171
|
id: string;
|
|
1155
|
-
firstName: string;
|
|
1156
1172
|
lastName: string;
|
|
1173
|
+
firstName: string;
|
|
1157
1174
|
}[] | undefined;
|
|
1158
1175
|
} | null | undefined;
|
|
1159
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1160
|
-
officeId?: string | null | undefined;
|
|
1161
1176
|
canImpersonateUsers?: {
|
|
1162
1177
|
id: string;
|
|
1163
|
-
firstName: string;
|
|
1164
1178
|
lastName: string;
|
|
1179
|
+
firstName: string;
|
|
1165
1180
|
}[] | undefined;
|
|
1181
|
+
dialpadUserId?: string | null | undefined;
|
|
1166
1182
|
deletedAt?: string | null | undefined;
|
|
1167
1183
|
};
|
|
1168
1184
|
companyId?: string | null | undefined;
|
|
1169
1185
|
company?: {
|
|
1170
|
-
id: string;
|
|
1171
1186
|
name: string;
|
|
1172
1187
|
createdAt: string;
|
|
1173
1188
|
updatedAt: string;
|
|
1189
|
+
id: string;
|
|
1174
1190
|
} | null | undefined;
|
|
1175
1191
|
leadDistributionConfigId?: string | null | undefined;
|
|
1176
1192
|
leadDistributionConfig?: {
|
|
1177
|
-
id: string;
|
|
1178
1193
|
name: string;
|
|
1194
|
+
id: string;
|
|
1179
1195
|
} | null | undefined;
|
|
1180
1196
|
}, {
|
|
1181
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1182
1197
|
id: string;
|
|
1198
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1183
1199
|
agentId: string;
|
|
1184
1200
|
agent: {
|
|
1185
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1186
|
-
id: string;
|
|
1187
|
-
firstName: string;
|
|
1188
|
-
lastName: string;
|
|
1189
1201
|
email: string;
|
|
1190
1202
|
createdAt: string | Date;
|
|
1191
1203
|
updatedAt: string | Date;
|
|
1204
|
+
id: string;
|
|
1205
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1206
|
+
lastName: string;
|
|
1207
|
+
firstName: string;
|
|
1208
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1209
|
+
officeId?: string | null | undefined;
|
|
1192
1210
|
office?: {
|
|
1193
|
-
id: string;
|
|
1194
1211
|
name: string;
|
|
1212
|
+
id: string;
|
|
1195
1213
|
managers?: {
|
|
1196
1214
|
id: string;
|
|
1197
|
-
firstName: string;
|
|
1198
1215
|
lastName: string;
|
|
1216
|
+
firstName: string;
|
|
1199
1217
|
}[] | undefined;
|
|
1200
1218
|
} | null | undefined;
|
|
1201
1219
|
phoneNumbers?: {
|
|
@@ -1204,26 +1222,25 @@ export declare const agentLeadDistributionContract: {
|
|
|
1204
1222
|
description?: string | null | undefined;
|
|
1205
1223
|
isPrimary?: boolean | undefined;
|
|
1206
1224
|
}[] | undefined;
|
|
1207
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1208
|
-
officeId?: string | null | undefined;
|
|
1209
1225
|
canImpersonateUsers?: {
|
|
1210
1226
|
id: string;
|
|
1211
|
-
firstName: string;
|
|
1212
1227
|
lastName: string;
|
|
1228
|
+
firstName: string;
|
|
1213
1229
|
}[] | undefined;
|
|
1230
|
+
dialpadUserId?: string | null | undefined;
|
|
1214
1231
|
deletedAt?: string | Date | null | undefined;
|
|
1215
1232
|
};
|
|
1216
1233
|
companyId?: string | null | undefined;
|
|
1217
1234
|
company?: {
|
|
1218
|
-
id: string;
|
|
1219
1235
|
name: string;
|
|
1220
1236
|
createdAt: string | Date;
|
|
1221
1237
|
updatedAt: string | Date;
|
|
1238
|
+
id: string;
|
|
1222
1239
|
} | null | undefined;
|
|
1223
1240
|
leadDistributionConfigId?: string | null | undefined;
|
|
1224
1241
|
leadDistributionConfig?: {
|
|
1225
|
-
id: string;
|
|
1226
1242
|
name: string;
|
|
1243
|
+
id: string;
|
|
1227
1244
|
} | null | undefined;
|
|
1228
1245
|
}>, "many">;
|
|
1229
1246
|
totalCount: z.ZodNumber;
|
|
@@ -1234,52 +1251,53 @@ export declare const agentLeadDistributionContract: {
|
|
|
1234
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1235
1252
|
limit: number;
|
|
1236
1253
|
items: {
|
|
1237
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1238
1254
|
id: string;
|
|
1255
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1239
1256
|
agentId: string;
|
|
1240
1257
|
agent: {
|
|
1241
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1242
|
-
id: string;
|
|
1243
|
-
firstName: string;
|
|
1244
|
-
lastName: string;
|
|
1245
1258
|
email: string;
|
|
1246
1259
|
createdAt: string;
|
|
1260
|
+
updatedAt: string;
|
|
1261
|
+
id: string;
|
|
1262
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1263
|
+
lastName: string;
|
|
1264
|
+
firstName: string;
|
|
1247
1265
|
phoneNumbers: {
|
|
1248
1266
|
id: string;
|
|
1249
1267
|
phoneNumber: string;
|
|
1250
1268
|
isPrimary: boolean;
|
|
1251
1269
|
description?: string | null | undefined;
|
|
1252
1270
|
}[];
|
|
1253
|
-
|
|
1271
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1272
|
+
officeId?: string | null | undefined;
|
|
1254
1273
|
office?: {
|
|
1255
|
-
id: string;
|
|
1256
1274
|
name: string;
|
|
1275
|
+
id: string;
|
|
1257
1276
|
managers?: {
|
|
1258
1277
|
id: string;
|
|
1259
|
-
firstName: string;
|
|
1260
1278
|
lastName: string;
|
|
1279
|
+
firstName: string;
|
|
1261
1280
|
}[] | undefined;
|
|
1262
1281
|
} | null | undefined;
|
|
1263
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1264
|
-
officeId?: string | null | undefined;
|
|
1265
1282
|
canImpersonateUsers?: {
|
|
1266
1283
|
id: string;
|
|
1267
|
-
firstName: string;
|
|
1268
1284
|
lastName: string;
|
|
1285
|
+
firstName: string;
|
|
1269
1286
|
}[] | undefined;
|
|
1287
|
+
dialpadUserId?: string | null | undefined;
|
|
1270
1288
|
deletedAt?: string | null | undefined;
|
|
1271
1289
|
};
|
|
1272
1290
|
companyId?: string | null | undefined;
|
|
1273
1291
|
company?: {
|
|
1274
|
-
id: string;
|
|
1275
1292
|
name: string;
|
|
1276
1293
|
createdAt: string;
|
|
1277
1294
|
updatedAt: string;
|
|
1295
|
+
id: string;
|
|
1278
1296
|
} | null | undefined;
|
|
1279
1297
|
leadDistributionConfigId?: string | null | undefined;
|
|
1280
1298
|
leadDistributionConfig?: {
|
|
1281
|
-
id: string;
|
|
1282
1299
|
name: string;
|
|
1300
|
+
id: string;
|
|
1283
1301
|
} | null | undefined;
|
|
1284
1302
|
}[];
|
|
1285
1303
|
totalCount: number;
|
|
@@ -1289,24 +1307,26 @@ export declare const agentLeadDistributionContract: {
|
|
|
1289
1307
|
}, {
|
|
1290
1308
|
limit: number;
|
|
1291
1309
|
items: {
|
|
1292
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1293
1310
|
id: string;
|
|
1311
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1294
1312
|
agentId: string;
|
|
1295
1313
|
agent: {
|
|
1296
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1297
|
-
id: string;
|
|
1298
|
-
firstName: string;
|
|
1299
|
-
lastName: string;
|
|
1300
1314
|
email: string;
|
|
1301
1315
|
createdAt: string | Date;
|
|
1302
1316
|
updatedAt: string | Date;
|
|
1317
|
+
id: string;
|
|
1318
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1319
|
+
lastName: string;
|
|
1320
|
+
firstName: string;
|
|
1321
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1322
|
+
officeId?: string | null | undefined;
|
|
1303
1323
|
office?: {
|
|
1304
|
-
id: string;
|
|
1305
1324
|
name: string;
|
|
1325
|
+
id: string;
|
|
1306
1326
|
managers?: {
|
|
1307
1327
|
id: string;
|
|
1308
|
-
firstName: string;
|
|
1309
1328
|
lastName: string;
|
|
1329
|
+
firstName: string;
|
|
1310
1330
|
}[] | undefined;
|
|
1311
1331
|
} | null | undefined;
|
|
1312
1332
|
phoneNumbers?: {
|
|
@@ -1315,26 +1335,25 @@ export declare const agentLeadDistributionContract: {
|
|
|
1315
1335
|
description?: string | null | undefined;
|
|
1316
1336
|
isPrimary?: boolean | undefined;
|
|
1317
1337
|
}[] | undefined;
|
|
1318
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1319
|
-
officeId?: string | null | undefined;
|
|
1320
1338
|
canImpersonateUsers?: {
|
|
1321
1339
|
id: string;
|
|
1322
|
-
firstName: string;
|
|
1323
1340
|
lastName: string;
|
|
1341
|
+
firstName: string;
|
|
1324
1342
|
}[] | undefined;
|
|
1343
|
+
dialpadUserId?: string | null | undefined;
|
|
1325
1344
|
deletedAt?: string | Date | null | undefined;
|
|
1326
1345
|
};
|
|
1327
1346
|
companyId?: string | null | undefined;
|
|
1328
1347
|
company?: {
|
|
1329
|
-
id: string;
|
|
1330
1348
|
name: string;
|
|
1331
1349
|
createdAt: string | Date;
|
|
1332
1350
|
updatedAt: string | Date;
|
|
1351
|
+
id: string;
|
|
1333
1352
|
} | null | undefined;
|
|
1334
1353
|
leadDistributionConfigId?: string | null | undefined;
|
|
1335
1354
|
leadDistributionConfig?: {
|
|
1336
|
-
id: string;
|
|
1337
1355
|
name: string;
|
|
1356
|
+
id: string;
|
|
1338
1357
|
} | null | undefined;
|
|
1339
1358
|
}[];
|
|
1340
1359
|
totalCount: number;
|
|
@@ -1470,15 +1489,15 @@ export declare const agentLeadDistributionContract: {
|
|
|
1470
1489
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1471
1490
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1472
1491
|
}, "strip", z.ZodTypeAny, {
|
|
1473
|
-
id: string;
|
|
1474
1492
|
name: string;
|
|
1475
1493
|
createdAt: string;
|
|
1476
1494
|
updatedAt: string;
|
|
1477
|
-
}, {
|
|
1478
1495
|
id: string;
|
|
1496
|
+
}, {
|
|
1479
1497
|
name: string;
|
|
1480
1498
|
createdAt: string | Date;
|
|
1481
1499
|
updatedAt: string | Date;
|
|
1500
|
+
id: string;
|
|
1482
1501
|
}>>>;
|
|
1483
1502
|
} & {
|
|
1484
1503
|
id: z.ZodString;
|
|
@@ -1514,28 +1533,28 @@ export declare const agentLeadDistributionContract: {
|
|
|
1514
1533
|
lastName: z.ZodString;
|
|
1515
1534
|
}, "strip", z.ZodTypeAny, {
|
|
1516
1535
|
id: string;
|
|
1517
|
-
firstName: string;
|
|
1518
1536
|
lastName: string;
|
|
1537
|
+
firstName: string;
|
|
1519
1538
|
}, {
|
|
1520
1539
|
id: string;
|
|
1521
|
-
firstName: string;
|
|
1522
1540
|
lastName: string;
|
|
1541
|
+
firstName: string;
|
|
1523
1542
|
}>, "many">>;
|
|
1524
1543
|
}, "strip", z.ZodTypeAny, {
|
|
1525
|
-
id: string;
|
|
1526
1544
|
name: string;
|
|
1545
|
+
id: string;
|
|
1527
1546
|
managers?: {
|
|
1528
1547
|
id: string;
|
|
1529
|
-
firstName: string;
|
|
1530
1548
|
lastName: string;
|
|
1549
|
+
firstName: string;
|
|
1531
1550
|
}[] | undefined;
|
|
1532
1551
|
}, {
|
|
1533
|
-
id: string;
|
|
1534
1552
|
name: string;
|
|
1553
|
+
id: string;
|
|
1535
1554
|
managers?: {
|
|
1536
1555
|
id: string;
|
|
1537
|
-
firstName: string;
|
|
1538
1556
|
lastName: string;
|
|
1557
|
+
firstName: string;
|
|
1539
1558
|
}[] | undefined;
|
|
1540
1559
|
}>>>;
|
|
1541
1560
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1544,63 +1563,67 @@ export declare const agentLeadDistributionContract: {
|
|
|
1544
1563
|
lastName: z.ZodString;
|
|
1545
1564
|
}, "strip", z.ZodTypeAny, {
|
|
1546
1565
|
id: string;
|
|
1547
|
-
firstName: string;
|
|
1548
1566
|
lastName: string;
|
|
1567
|
+
firstName: string;
|
|
1549
1568
|
}, {
|
|
1550
1569
|
id: string;
|
|
1551
|
-
firstName: string;
|
|
1552
1570
|
lastName: string;
|
|
1571
|
+
firstName: string;
|
|
1553
1572
|
}>, "many">>;
|
|
1554
1573
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1574
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1555
1575
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1556
1576
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1557
1577
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1558
1578
|
}, "strip", z.ZodTypeAny, {
|
|
1559
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1560
|
-
id: string;
|
|
1561
|
-
firstName: string;
|
|
1562
|
-
lastName: string;
|
|
1563
1579
|
email: string;
|
|
1564
1580
|
createdAt: string;
|
|
1581
|
+
updatedAt: string;
|
|
1582
|
+
id: string;
|
|
1583
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1584
|
+
lastName: string;
|
|
1585
|
+
firstName: string;
|
|
1565
1586
|
phoneNumbers: {
|
|
1566
1587
|
id: string;
|
|
1567
1588
|
phoneNumber: string;
|
|
1568
1589
|
isPrimary: boolean;
|
|
1569
1590
|
description?: string | null | undefined;
|
|
1570
1591
|
}[];
|
|
1571
|
-
|
|
1592
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1593
|
+
officeId?: string | null | undefined;
|
|
1572
1594
|
office?: {
|
|
1573
|
-
id: string;
|
|
1574
1595
|
name: string;
|
|
1596
|
+
id: string;
|
|
1575
1597
|
managers?: {
|
|
1576
1598
|
id: string;
|
|
1577
|
-
firstName: string;
|
|
1578
1599
|
lastName: string;
|
|
1600
|
+
firstName: string;
|
|
1579
1601
|
}[] | undefined;
|
|
1580
1602
|
} | null | undefined;
|
|
1581
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1582
|
-
officeId?: string | null | undefined;
|
|
1583
1603
|
canImpersonateUsers?: {
|
|
1584
1604
|
id: string;
|
|
1585
|
-
firstName: string;
|
|
1586
1605
|
lastName: string;
|
|
1606
|
+
firstName: string;
|
|
1587
1607
|
}[] | undefined;
|
|
1608
|
+
dialpadUserId?: string | null | undefined;
|
|
1588
1609
|
deletedAt?: string | null | undefined;
|
|
1589
1610
|
}, {
|
|
1590
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1591
|
-
id: string;
|
|
1592
|
-
firstName: string;
|
|
1593
|
-
lastName: string;
|
|
1594
1611
|
email: string;
|
|
1595
1612
|
createdAt: string | Date;
|
|
1596
1613
|
updatedAt: string | Date;
|
|
1614
|
+
id: string;
|
|
1615
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1616
|
+
lastName: string;
|
|
1617
|
+
firstName: string;
|
|
1618
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1619
|
+
officeId?: string | null | undefined;
|
|
1597
1620
|
office?: {
|
|
1598
|
-
id: string;
|
|
1599
1621
|
name: string;
|
|
1622
|
+
id: string;
|
|
1600
1623
|
managers?: {
|
|
1601
1624
|
id: string;
|
|
1602
|
-
firstName: string;
|
|
1603
1625
|
lastName: string;
|
|
1626
|
+
firstName: string;
|
|
1604
1627
|
}[] | undefined;
|
|
1605
1628
|
} | null | undefined;
|
|
1606
1629
|
phoneNumbers?: {
|
|
@@ -1609,13 +1632,12 @@ export declare const agentLeadDistributionContract: {
|
|
|
1609
1632
|
description?: string | null | undefined;
|
|
1610
1633
|
isPrimary?: boolean | undefined;
|
|
1611
1634
|
}[] | undefined;
|
|
1612
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1613
|
-
officeId?: string | null | undefined;
|
|
1614
1635
|
canImpersonateUsers?: {
|
|
1615
1636
|
id: string;
|
|
1616
|
-
firstName: string;
|
|
1617
1637
|
lastName: string;
|
|
1638
|
+
firstName: string;
|
|
1618
1639
|
}[] | undefined;
|
|
1640
|
+
dialpadUserId?: string | null | undefined;
|
|
1619
1641
|
deletedAt?: string | Date | null | undefined;
|
|
1620
1642
|
}>;
|
|
1621
1643
|
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
@@ -1628,80 +1650,83 @@ export declare const agentLeadDistributionContract: {
|
|
|
1628
1650
|
mediumMinWeight: z.ZodNumber;
|
|
1629
1651
|
highMinWeight: z.ZodNumber;
|
|
1630
1652
|
isActive: z.ZodBoolean;
|
|
1631
|
-
}, "
|
|
1632
|
-
id: string;
|
|
1653
|
+
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
1633
1654
|
name: string;
|
|
1634
|
-
}, {
|
|
1635
1655
|
id: string;
|
|
1656
|
+
}, {
|
|
1636
1657
|
name: string;
|
|
1658
|
+
id: string;
|
|
1637
1659
|
}>>>;
|
|
1638
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1639
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1640
1661
|
id: string;
|
|
1662
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1641
1663
|
agentId: string;
|
|
1642
1664
|
agent: {
|
|
1643
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1644
|
-
id: string;
|
|
1645
|
-
firstName: string;
|
|
1646
|
-
lastName: string;
|
|
1647
1665
|
email: string;
|
|
1648
1666
|
createdAt: string;
|
|
1667
|
+
updatedAt: string;
|
|
1668
|
+
id: string;
|
|
1669
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1670
|
+
lastName: string;
|
|
1671
|
+
firstName: string;
|
|
1649
1672
|
phoneNumbers: {
|
|
1650
1673
|
id: string;
|
|
1651
1674
|
phoneNumber: string;
|
|
1652
1675
|
isPrimary: boolean;
|
|
1653
1676
|
description?: string | null | undefined;
|
|
1654
1677
|
}[];
|
|
1655
|
-
|
|
1678
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1679
|
+
officeId?: string | null | undefined;
|
|
1656
1680
|
office?: {
|
|
1657
|
-
id: string;
|
|
1658
1681
|
name: string;
|
|
1682
|
+
id: string;
|
|
1659
1683
|
managers?: {
|
|
1660
1684
|
id: string;
|
|
1661
|
-
firstName: string;
|
|
1662
1685
|
lastName: string;
|
|
1686
|
+
firstName: string;
|
|
1663
1687
|
}[] | undefined;
|
|
1664
1688
|
} | null | undefined;
|
|
1665
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1666
|
-
officeId?: string | null | undefined;
|
|
1667
1689
|
canImpersonateUsers?: {
|
|
1668
1690
|
id: string;
|
|
1669
|
-
firstName: string;
|
|
1670
1691
|
lastName: string;
|
|
1692
|
+
firstName: string;
|
|
1671
1693
|
}[] | undefined;
|
|
1694
|
+
dialpadUserId?: string | null | undefined;
|
|
1672
1695
|
deletedAt?: string | null | undefined;
|
|
1673
1696
|
};
|
|
1674
1697
|
companyId?: string | null | undefined;
|
|
1675
1698
|
company?: {
|
|
1676
|
-
id: string;
|
|
1677
1699
|
name: string;
|
|
1678
1700
|
createdAt: string;
|
|
1679
1701
|
updatedAt: string;
|
|
1702
|
+
id: string;
|
|
1680
1703
|
} | null | undefined;
|
|
1681
1704
|
leadDistributionConfigId?: string | null | undefined;
|
|
1682
1705
|
leadDistributionConfig?: {
|
|
1683
|
-
id: string;
|
|
1684
1706
|
name: string;
|
|
1707
|
+
id: string;
|
|
1685
1708
|
} | null | undefined;
|
|
1686
1709
|
}, {
|
|
1687
|
-
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1688
1710
|
id: string;
|
|
1711
|
+
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1689
1712
|
agentId: string;
|
|
1690
1713
|
agent: {
|
|
1691
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1692
|
-
id: string;
|
|
1693
|
-
firstName: string;
|
|
1694
|
-
lastName: string;
|
|
1695
1714
|
email: string;
|
|
1696
1715
|
createdAt: string | Date;
|
|
1697
1716
|
updatedAt: string | Date;
|
|
1717
|
+
id: string;
|
|
1718
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1719
|
+
lastName: string;
|
|
1720
|
+
firstName: string;
|
|
1721
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1722
|
+
officeId?: string | null | undefined;
|
|
1698
1723
|
office?: {
|
|
1699
|
-
id: string;
|
|
1700
1724
|
name: string;
|
|
1725
|
+
id: string;
|
|
1701
1726
|
managers?: {
|
|
1702
1727
|
id: string;
|
|
1703
|
-
firstName: string;
|
|
1704
1728
|
lastName: string;
|
|
1729
|
+
firstName: string;
|
|
1705
1730
|
}[] | undefined;
|
|
1706
1731
|
} | null | undefined;
|
|
1707
1732
|
phoneNumbers?: {
|
|
@@ -1710,26 +1735,25 @@ export declare const agentLeadDistributionContract: {
|
|
|
1710
1735
|
description?: string | null | undefined;
|
|
1711
1736
|
isPrimary?: boolean | undefined;
|
|
1712
1737
|
}[] | undefined;
|
|
1713
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1714
|
-
officeId?: string | null | undefined;
|
|
1715
1738
|
canImpersonateUsers?: {
|
|
1716
1739
|
id: string;
|
|
1717
|
-
firstName: string;
|
|
1718
1740
|
lastName: string;
|
|
1741
|
+
firstName: string;
|
|
1719
1742
|
}[] | undefined;
|
|
1743
|
+
dialpadUserId?: string | null | undefined;
|
|
1720
1744
|
deletedAt?: string | Date | null | undefined;
|
|
1721
1745
|
};
|
|
1722
1746
|
companyId?: string | null | undefined;
|
|
1723
1747
|
company?: {
|
|
1724
|
-
id: string;
|
|
1725
1748
|
name: string;
|
|
1726
1749
|
createdAt: string | Date;
|
|
1727
1750
|
updatedAt: string | Date;
|
|
1751
|
+
id: string;
|
|
1728
1752
|
} | null | undefined;
|
|
1729
1753
|
leadDistributionConfigId?: string | null | undefined;
|
|
1730
1754
|
leadDistributionConfig?: {
|
|
1731
|
-
id: string;
|
|
1732
1755
|
name: string;
|
|
1756
|
+
id: string;
|
|
1733
1757
|
} | null | undefined;
|
|
1734
1758
|
}>;
|
|
1735
1759
|
404: z.ZodObject<{
|
|
@@ -1894,25 +1918,25 @@ export declare const agentLeadDistributionContract: {
|
|
|
1894
1918
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1895
1919
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1896
1920
|
}, "strip", z.ZodTypeAny, {
|
|
1897
|
-
id: string;
|
|
1898
1921
|
name: string;
|
|
1899
1922
|
createdAt: string;
|
|
1900
1923
|
updatedAt: string;
|
|
1901
|
-
}, {
|
|
1902
1924
|
id: string;
|
|
1925
|
+
}, {
|
|
1903
1926
|
name: string;
|
|
1904
1927
|
createdAt: string | Date;
|
|
1905
1928
|
updatedAt: string | Date;
|
|
1929
|
+
id: string;
|
|
1906
1930
|
}>>>;
|
|
1907
1931
|
}, "strip", z.ZodTypeAny, {
|
|
1908
1932
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
1909
1933
|
agentId: string;
|
|
1910
1934
|
companyId?: string | null | undefined;
|
|
1911
1935
|
company?: {
|
|
1912
|
-
id: string;
|
|
1913
1936
|
name: string;
|
|
1914
1937
|
createdAt: string;
|
|
1915
1938
|
updatedAt: string;
|
|
1939
|
+
id: string;
|
|
1916
1940
|
} | null | undefined;
|
|
1917
1941
|
leadDistributionConfigId?: string | null | undefined;
|
|
1918
1942
|
}, {
|
|
@@ -1920,10 +1944,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1920
1944
|
agentId: string;
|
|
1921
1945
|
companyId?: string | null | undefined;
|
|
1922
1946
|
company?: {
|
|
1923
|
-
id: string;
|
|
1924
1947
|
name: string;
|
|
1925
1948
|
createdAt: string | Date;
|
|
1926
1949
|
updatedAt: string | Date;
|
|
1950
|
+
id: string;
|
|
1927
1951
|
} | null | undefined;
|
|
1928
1952
|
leadDistributionConfigId?: string | null | undefined;
|
|
1929
1953
|
}>;
|
|
@@ -2068,25 +2092,25 @@ export declare const agentLeadDistributionContract: {
|
|
|
2068
2092
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2069
2093
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2070
2094
|
}, "strip", z.ZodTypeAny, {
|
|
2071
|
-
id: string;
|
|
2072
2095
|
name: string;
|
|
2073
2096
|
createdAt: string;
|
|
2074
2097
|
updatedAt: string;
|
|
2075
|
-
}, {
|
|
2076
2098
|
id: string;
|
|
2099
|
+
}, {
|
|
2077
2100
|
name: string;
|
|
2078
2101
|
createdAt: string | Date;
|
|
2079
2102
|
updatedAt: string | Date;
|
|
2103
|
+
id: string;
|
|
2080
2104
|
}>>>;
|
|
2081
2105
|
}, "strip", z.ZodTypeAny, {
|
|
2082
2106
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
2083
2107
|
agentId: string;
|
|
2084
2108
|
companyId?: string | null | undefined;
|
|
2085
2109
|
company?: {
|
|
2086
|
-
id: string;
|
|
2087
2110
|
name: string;
|
|
2088
2111
|
createdAt: string;
|
|
2089
2112
|
updatedAt: string;
|
|
2113
|
+
id: string;
|
|
2090
2114
|
} | null | undefined;
|
|
2091
2115
|
leadDistributionConfigId?: string | null | undefined;
|
|
2092
2116
|
}, {
|
|
@@ -2094,10 +2118,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
2094
2118
|
agentId: string;
|
|
2095
2119
|
companyId?: string | null | undefined;
|
|
2096
2120
|
company?: {
|
|
2097
|
-
id: string;
|
|
2098
2121
|
name: string;
|
|
2099
2122
|
createdAt: string | Date;
|
|
2100
2123
|
updatedAt: string | Date;
|
|
2124
|
+
id: string;
|
|
2101
2125
|
} | null | undefined;
|
|
2102
2126
|
leadDistributionConfigId?: string | null | undefined;
|
|
2103
2127
|
}>;
|