@dakkitor/api-contracts 1.1.131 → 1.1.133
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 +19 -13
- package/dist/abilities/abilities.contract.js +33 -18
- package/dist/abilities/first-agent.abilities.json +68 -56
- package/dist/abilities/second-agent.abilities.json +3 -3
- package/dist/abilities/team-leads.json +3 -6
- package/dist/actives/actives.contract.d.ts +6313 -6313
- package/dist/actives/actives.contract.js +92 -92
- package/dist/agent-client-links/agent-client-links.contract.d.ts +511 -511
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +23378 -23378
- package/dist/call-history/call-history.contract.d.ts +366 -366
- package/dist/call-history/call-history.contract.js +67 -67
- package/dist/client-contacts/client-contacts.contract.d.ts +159 -159
- package/dist/clients/clients.contract.d.ts +72 -72
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1330 -1330
- package/dist/collaborations/collaborations.contract.d.ts +1198 -1198
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +48 -40
- package/dist/common/common-schemas.d.ts +4 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -2
- package/dist/common/error-schemas.d.ts +11 -5
- package/dist/common/error-schemas.js +11 -8
- package/dist/common/openapi-metadata.d.ts +54 -44
- package/dist/common/openapi-metadata.js +135 -129
- package/dist/common/pagination-query.schema.d.ts +11 -5
- package/dist/common/pagination-query.schema.js +11 -8
- package/dist/companies/companies.contract.d.ts +40 -40
- package/dist/cron-executions/cron-executions.contract.d.ts +14 -14
- package/dist/curated-workers/curated-workers.contract.d.ts +211 -211
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +798 -616
- package/dist/dashboards/agent-daily-metrics.contract.js +100 -89
- package/dist/dashboards/dashboard-widgets.contract.d.ts +75 -75
- package/dist/dashboards/dashboard-widgets.contract.js +89 -89
- package/dist/dashboards/dashboard.contract.d.ts +305 -215
- package/dist/files/files.contract.d.ts +1544 -1177
- package/dist/files/files.contract.js +177 -162
- package/dist/health/health.contract.d.ts +191 -144
- package/dist/health/health.contract.js +53 -40
- package/dist/index.d.ts +67 -67
- package/dist/jobs/jobs.contract.d.ts +2553 -2553
- package/dist/jobs/jobs.contract.js +150 -150
- package/dist/lead-assignments/lead-assignments.contract.d.ts +587 -587
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +239 -239
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +25 -25
- package/dist/leads/leads.contract.d.ts +108 -108
- package/dist/leads/leads.contract.js +119 -119
- package/dist/locations/locations.contract.d.ts +7 -7
- package/dist/monitoring/monitoring.contract.d.ts +13 -13
- package/dist/monitoring/monitoring.contract.js +37 -37
- package/dist/own-research/own-research.contract.d.ts +535 -134
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +88 -56
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/qualifications/qualifications.contract.d.ts +1898 -1387
- package/dist/qualifications/qualifications.contract.js +193 -171
- package/dist/trades/trades.contract.d.ts +991 -763
- package/dist/trades/trades.contract.js +111 -89
- package/dist/users/users.contract.d.ts +202 -202
- package/dist/users/users.contract.js +121 -121
- package/dist/workers/workers.contract.d.ts +710 -710
- package/dist/workers/workers.contract.js +150 -150
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Description: Contract definition for Own Research API - allows agents to add and call their own leads.
|
|
6
6
|
*/
|
|
7
|
-
import { z } from
|
|
7
|
+
import { z } from 'zod';
|
|
8
8
|
export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
agentId: z.ZodString;
|
|
11
11
|
name: z.ZodString;
|
|
12
12
|
phoneNumber: z.ZodString;
|
|
13
13
|
source: z.ZodString;
|
|
14
|
-
status: z.
|
|
14
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
15
15
|
callCount: z.ZodNumber;
|
|
16
16
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
17
17
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -21,12 +21,12 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
21
21
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
22
22
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
id: string;
|
|
25
|
-
agentId: string;
|
|
26
24
|
name: string;
|
|
25
|
+
id: string;
|
|
27
26
|
phoneNumber: string;
|
|
27
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
28
|
+
agentId: string;
|
|
28
29
|
source: string;
|
|
29
|
-
status: string;
|
|
30
30
|
callCount: number;
|
|
31
31
|
lastCalledAt: string | null;
|
|
32
32
|
cooldownUntil: string | null;
|
|
@@ -36,12 +36,12 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
36
36
|
createdAt: string;
|
|
37
37
|
updatedAt: string;
|
|
38
38
|
}, {
|
|
39
|
-
id: string;
|
|
40
|
-
agentId: string;
|
|
41
39
|
name: string;
|
|
40
|
+
id: string;
|
|
42
41
|
phoneNumber: string;
|
|
42
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
43
|
+
agentId: string;
|
|
43
44
|
source: string;
|
|
44
|
-
status: string;
|
|
45
45
|
callCount: number;
|
|
46
46
|
lastCalledAt: string | Date | null;
|
|
47
47
|
cooldownUntil: string | Date | null;
|
|
@@ -61,14 +61,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
61
61
|
status: z.ZodString;
|
|
62
62
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
id: string;
|
|
65
64
|
name: string;
|
|
65
|
+
id: string;
|
|
66
66
|
phoneNumber: string;
|
|
67
67
|
status: string;
|
|
68
68
|
cooldownUntil: string | null;
|
|
69
69
|
}, {
|
|
70
|
-
id: string;
|
|
71
70
|
name: string;
|
|
71
|
+
id: string;
|
|
72
72
|
phoneNumber: string;
|
|
73
73
|
status: string;
|
|
74
74
|
cooldownUntil: string | Date | null;
|
|
@@ -79,7 +79,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
79
79
|
name: z.ZodString;
|
|
80
80
|
phoneNumber: z.ZodString;
|
|
81
81
|
source: z.ZodString;
|
|
82
|
-
status: z.
|
|
82
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
83
83
|
callCount: z.ZodNumber;
|
|
84
84
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
85
85
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -89,12 +89,12 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
89
89
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
90
90
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
id: string;
|
|
93
|
-
agentId: string;
|
|
94
92
|
name: string;
|
|
93
|
+
id: string;
|
|
95
94
|
phoneNumber: string;
|
|
95
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
96
|
+
agentId: string;
|
|
96
97
|
source: string;
|
|
97
|
-
status: string;
|
|
98
98
|
callCount: number;
|
|
99
99
|
lastCalledAt: string | null;
|
|
100
100
|
cooldownUntil: string | null;
|
|
@@ -104,12 +104,12 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
104
104
|
createdAt: string;
|
|
105
105
|
updatedAt: string;
|
|
106
106
|
}, {
|
|
107
|
-
id: string;
|
|
108
|
-
agentId: string;
|
|
109
107
|
name: string;
|
|
108
|
+
id: string;
|
|
110
109
|
phoneNumber: string;
|
|
110
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
111
|
+
agentId: string;
|
|
111
112
|
source: string;
|
|
112
|
-
status: string;
|
|
113
113
|
callCount: number;
|
|
114
114
|
lastCalledAt: string | Date | null;
|
|
115
115
|
cooldownUntil: string | Date | null;
|
|
@@ -127,19 +127,19 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
127
127
|
existsInOwnResearch: boolean;
|
|
128
128
|
isOnCooldown: boolean;
|
|
129
129
|
lead?: {
|
|
130
|
-
id: string;
|
|
131
130
|
name: string;
|
|
131
|
+
id: string;
|
|
132
132
|
phoneNumber: string;
|
|
133
133
|
status: string;
|
|
134
134
|
cooldownUntil: string | null;
|
|
135
135
|
} | null | undefined;
|
|
136
136
|
ownResearchLead?: {
|
|
137
|
-
id: string;
|
|
138
|
-
agentId: string;
|
|
139
137
|
name: string;
|
|
138
|
+
id: string;
|
|
140
139
|
phoneNumber: string;
|
|
140
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
141
|
+
agentId: string;
|
|
141
142
|
source: string;
|
|
142
|
-
status: string;
|
|
143
143
|
callCount: number;
|
|
144
144
|
lastCalledAt: string | null;
|
|
145
145
|
cooldownUntil: string | null;
|
|
@@ -155,19 +155,19 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
155
155
|
existsInOwnResearch: boolean;
|
|
156
156
|
isOnCooldown: boolean;
|
|
157
157
|
lead?: {
|
|
158
|
-
id: string;
|
|
159
158
|
name: string;
|
|
159
|
+
id: string;
|
|
160
160
|
phoneNumber: string;
|
|
161
161
|
status: string;
|
|
162
162
|
cooldownUntil: string | Date | null;
|
|
163
163
|
} | null | undefined;
|
|
164
164
|
ownResearchLead?: {
|
|
165
|
-
id: string;
|
|
166
|
-
agentId: string;
|
|
167
165
|
name: string;
|
|
166
|
+
id: string;
|
|
168
167
|
phoneNumber: string;
|
|
168
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
169
|
+
agentId: string;
|
|
169
170
|
source: string;
|
|
170
|
-
status: string;
|
|
171
171
|
callCount: number;
|
|
172
172
|
lastCalledAt: string | Date | null;
|
|
173
173
|
cooldownUntil: string | Date | null;
|
|
@@ -179,7 +179,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
179
179
|
} | null | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
export declare const CheckPhoneRequestSchema: z.ZodObject<{
|
|
182
|
-
phoneNumber: z.ZodString
|
|
182
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
184
|
phoneNumber: string;
|
|
185
185
|
}, {
|
|
@@ -255,12 +255,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
255
255
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
256
256
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
email: string;
|
|
258
259
|
id: string;
|
|
259
260
|
createdAt: string;
|
|
260
261
|
updatedAt: string;
|
|
261
262
|
firstName: string;
|
|
262
263
|
lastName: string;
|
|
263
|
-
email: string;
|
|
264
264
|
phoneNumbers: {
|
|
265
265
|
id: string;
|
|
266
266
|
phoneNumber: string;
|
|
@@ -275,19 +275,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
275
275
|
lastName: string;
|
|
276
276
|
}[] | undefined;
|
|
277
277
|
}, {
|
|
278
|
+
email: string;
|
|
278
279
|
id: string;
|
|
279
280
|
createdAt: string | Date;
|
|
280
281
|
updatedAt: string | Date;
|
|
281
282
|
firstName: string;
|
|
282
283
|
lastName: string;
|
|
283
|
-
|
|
284
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
284
285
|
phoneNumbers?: {
|
|
285
286
|
id: string;
|
|
286
287
|
phoneNumber: string;
|
|
287
288
|
description?: string | null | undefined;
|
|
288
289
|
isPrimary?: boolean | undefined;
|
|
289
290
|
}[] | undefined;
|
|
290
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
291
291
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
292
292
|
canImpersonateUsers?: {
|
|
293
293
|
id: string;
|
|
@@ -305,13 +305,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
305
305
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
306
306
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
307
307
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
id: string;
|
|
309
308
|
name: string;
|
|
309
|
+
id: string;
|
|
310
310
|
createdAt: string;
|
|
311
311
|
updatedAt: string;
|
|
312
312
|
}, {
|
|
313
|
-
id: string;
|
|
314
313
|
name: string;
|
|
314
|
+
id: string;
|
|
315
315
|
createdAt: string | Date;
|
|
316
316
|
updatedAt: string | Date;
|
|
317
317
|
}>>>;
|
|
@@ -319,8 +319,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
319
319
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
id: string;
|
|
322
|
-
agentId: string | null;
|
|
323
322
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
323
|
+
agentId: string | null;
|
|
324
324
|
createdAt: string;
|
|
325
325
|
updatedAt: string;
|
|
326
326
|
leadId: string;
|
|
@@ -332,12 +332,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
332
332
|
phoneNumber: string;
|
|
333
333
|
} | undefined;
|
|
334
334
|
agent?: {
|
|
335
|
+
email: string;
|
|
335
336
|
id: string;
|
|
336
337
|
createdAt: string;
|
|
337
338
|
updatedAt: string;
|
|
338
339
|
firstName: string;
|
|
339
340
|
lastName: string;
|
|
340
|
-
email: string;
|
|
341
341
|
phoneNumbers: {
|
|
342
342
|
id: string;
|
|
343
343
|
phoneNumber: string;
|
|
@@ -353,15 +353,15 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
353
353
|
}[] | undefined;
|
|
354
354
|
} | undefined;
|
|
355
355
|
company?: {
|
|
356
|
-
id: string;
|
|
357
356
|
name: string;
|
|
357
|
+
id: string;
|
|
358
358
|
createdAt: string;
|
|
359
359
|
updatedAt: string;
|
|
360
360
|
} | null | undefined;
|
|
361
361
|
}, {
|
|
362
362
|
id: string;
|
|
363
|
-
agentId: string | null;
|
|
364
363
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
364
|
+
agentId: string | null;
|
|
365
365
|
createdAt: string | Date;
|
|
366
366
|
updatedAt: string | Date;
|
|
367
367
|
leadId: string;
|
|
@@ -373,19 +373,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
373
373
|
phoneNumber: string;
|
|
374
374
|
} | undefined;
|
|
375
375
|
agent?: {
|
|
376
|
+
email: string;
|
|
376
377
|
id: string;
|
|
377
378
|
createdAt: string | Date;
|
|
378
379
|
updatedAt: string | Date;
|
|
379
380
|
firstName: string;
|
|
380
381
|
lastName: string;
|
|
381
|
-
|
|
382
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
382
383
|
phoneNumbers?: {
|
|
383
384
|
id: string;
|
|
384
385
|
phoneNumber: string;
|
|
385
386
|
description?: string | null | undefined;
|
|
386
387
|
isPrimary?: boolean | undefined;
|
|
387
388
|
}[] | undefined;
|
|
388
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
389
389
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
390
390
|
canImpersonateUsers?: {
|
|
391
391
|
id: string;
|
|
@@ -394,8 +394,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
394
394
|
}[] | undefined;
|
|
395
395
|
} | undefined;
|
|
396
396
|
company?: {
|
|
397
|
-
id: string;
|
|
398
397
|
name: string;
|
|
398
|
+
id: string;
|
|
399
399
|
createdAt: string | Date;
|
|
400
400
|
updatedAt: string | Date;
|
|
401
401
|
} | null | undefined;
|
|
@@ -406,7 +406,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
406
406
|
name: z.ZodString;
|
|
407
407
|
phoneNumber: z.ZodString;
|
|
408
408
|
source: z.ZodString;
|
|
409
|
-
status: z.
|
|
409
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
410
410
|
callCount: z.ZodNumber;
|
|
411
411
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
412
412
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -416,12 +416,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
416
416
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
417
417
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
418
418
|
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
id: string;
|
|
420
|
-
agentId: string;
|
|
421
419
|
name: string;
|
|
420
|
+
id: string;
|
|
422
421
|
phoneNumber: string;
|
|
422
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
423
|
+
agentId: string;
|
|
423
424
|
source: string;
|
|
424
|
-
status: string;
|
|
425
425
|
callCount: number;
|
|
426
426
|
lastCalledAt: string | null;
|
|
427
427
|
cooldownUntil: string | null;
|
|
@@ -431,12 +431,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
431
431
|
createdAt: string;
|
|
432
432
|
updatedAt: string;
|
|
433
433
|
}, {
|
|
434
|
-
id: string;
|
|
435
|
-
agentId: string;
|
|
436
434
|
name: string;
|
|
435
|
+
id: string;
|
|
437
436
|
phoneNumber: string;
|
|
437
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
438
|
+
agentId: string;
|
|
438
439
|
source: string;
|
|
439
|
-
status: string;
|
|
440
440
|
callCount: number;
|
|
441
441
|
lastCalledAt: string | Date | null;
|
|
442
442
|
cooldownUntil: string | Date | null;
|
|
@@ -448,12 +448,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
448
448
|
}>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
450
|
ownResearchLead: {
|
|
451
|
-
id: string;
|
|
452
|
-
agentId: string;
|
|
453
451
|
name: string;
|
|
452
|
+
id: string;
|
|
454
453
|
phoneNumber: string;
|
|
454
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
455
|
+
agentId: string;
|
|
455
456
|
source: string;
|
|
456
|
-
status: string;
|
|
457
457
|
callCount: number;
|
|
458
458
|
lastCalledAt: string | null;
|
|
459
459
|
cooldownUntil: string | null;
|
|
@@ -465,8 +465,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
465
465
|
};
|
|
466
466
|
assignment: {
|
|
467
467
|
id: string;
|
|
468
|
-
agentId: string | null;
|
|
469
468
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
469
|
+
agentId: string | null;
|
|
470
470
|
createdAt: string;
|
|
471
471
|
updatedAt: string;
|
|
472
472
|
leadId: string;
|
|
@@ -478,12 +478,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
478
478
|
phoneNumber: string;
|
|
479
479
|
} | undefined;
|
|
480
480
|
agent?: {
|
|
481
|
+
email: string;
|
|
481
482
|
id: string;
|
|
482
483
|
createdAt: string;
|
|
483
484
|
updatedAt: string;
|
|
484
485
|
firstName: string;
|
|
485
486
|
lastName: string;
|
|
486
|
-
email: string;
|
|
487
487
|
phoneNumbers: {
|
|
488
488
|
id: string;
|
|
489
489
|
phoneNumber: string;
|
|
@@ -499,20 +499,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
499
499
|
}[] | undefined;
|
|
500
500
|
} | undefined;
|
|
501
501
|
company?: {
|
|
502
|
-
id: string;
|
|
503
502
|
name: string;
|
|
503
|
+
id: string;
|
|
504
504
|
createdAt: string;
|
|
505
505
|
updatedAt: string;
|
|
506
506
|
} | null | undefined;
|
|
507
507
|
};
|
|
508
508
|
}, {
|
|
509
509
|
ownResearchLead: {
|
|
510
|
-
id: string;
|
|
511
|
-
agentId: string;
|
|
512
510
|
name: string;
|
|
511
|
+
id: string;
|
|
513
512
|
phoneNumber: string;
|
|
513
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
514
|
+
agentId: string;
|
|
514
515
|
source: string;
|
|
515
|
-
status: string;
|
|
516
516
|
callCount: number;
|
|
517
517
|
lastCalledAt: string | Date | null;
|
|
518
518
|
cooldownUntil: string | Date | null;
|
|
@@ -524,8 +524,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
524
524
|
};
|
|
525
525
|
assignment: {
|
|
526
526
|
id: string;
|
|
527
|
-
agentId: string | null;
|
|
528
527
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
528
|
+
agentId: string | null;
|
|
529
529
|
createdAt: string | Date;
|
|
530
530
|
updatedAt: string | Date;
|
|
531
531
|
leadId: string;
|
|
@@ -537,19 +537,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
537
537
|
phoneNumber: string;
|
|
538
538
|
} | undefined;
|
|
539
539
|
agent?: {
|
|
540
|
+
email: string;
|
|
540
541
|
id: string;
|
|
541
542
|
createdAt: string | Date;
|
|
542
543
|
updatedAt: string | Date;
|
|
543
544
|
firstName: string;
|
|
544
545
|
lastName: string;
|
|
545
|
-
|
|
546
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
546
547
|
phoneNumbers?: {
|
|
547
548
|
id: string;
|
|
548
549
|
phoneNumber: string;
|
|
549
550
|
description?: string | null | undefined;
|
|
550
551
|
isPrimary?: boolean | undefined;
|
|
551
552
|
}[] | undefined;
|
|
552
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
553
553
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
554
554
|
canImpersonateUsers?: {
|
|
555
555
|
id: string;
|
|
@@ -558,8 +558,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
558
558
|
}[] | undefined;
|
|
559
559
|
} | undefined;
|
|
560
560
|
company?: {
|
|
561
|
-
id: string;
|
|
562
561
|
name: string;
|
|
562
|
+
id: string;
|
|
563
563
|
createdAt: string | Date;
|
|
564
564
|
updatedAt: string | Date;
|
|
565
565
|
} | null | undefined;
|
|
@@ -582,7 +582,7 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
582
582
|
name: z.ZodString;
|
|
583
583
|
phoneNumber: z.ZodString;
|
|
584
584
|
source: z.ZodString;
|
|
585
|
-
status: z.
|
|
585
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
586
586
|
callCount: z.ZodNumber;
|
|
587
587
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
588
588
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -592,12 +592,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
592
592
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
593
593
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
594
594
|
}, "strip", z.ZodTypeAny, {
|
|
595
|
-
id: string;
|
|
596
|
-
agentId: string;
|
|
597
595
|
name: string;
|
|
596
|
+
id: string;
|
|
598
597
|
phoneNumber: string;
|
|
598
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
599
|
+
agentId: string;
|
|
599
600
|
source: string;
|
|
600
|
-
status: string;
|
|
601
601
|
callCount: number;
|
|
602
602
|
lastCalledAt: string | null;
|
|
603
603
|
cooldownUntil: string | null;
|
|
@@ -607,12 +607,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
607
607
|
createdAt: string;
|
|
608
608
|
updatedAt: string;
|
|
609
609
|
}, {
|
|
610
|
-
id: string;
|
|
611
|
-
agentId: string;
|
|
612
610
|
name: string;
|
|
611
|
+
id: string;
|
|
613
612
|
phoneNumber: string;
|
|
613
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
614
|
+
agentId: string;
|
|
614
615
|
source: string;
|
|
615
|
-
status: string;
|
|
616
616
|
callCount: number;
|
|
617
617
|
lastCalledAt: string | Date | null;
|
|
618
618
|
cooldownUntil: string | Date | null;
|
|
@@ -624,12 +624,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
624
624
|
}>;
|
|
625
625
|
}, "strip", z.ZodTypeAny, {
|
|
626
626
|
ownResearchLead: {
|
|
627
|
-
id: string;
|
|
628
|
-
agentId: string;
|
|
629
627
|
name: string;
|
|
628
|
+
id: string;
|
|
630
629
|
phoneNumber: string;
|
|
630
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
631
|
+
agentId: string;
|
|
631
632
|
source: string;
|
|
632
|
-
status: string;
|
|
633
633
|
callCount: number;
|
|
634
634
|
lastCalledAt: string | null;
|
|
635
635
|
cooldownUntil: string | null;
|
|
@@ -641,12 +641,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
641
641
|
};
|
|
642
642
|
}, {
|
|
643
643
|
ownResearchLead: {
|
|
644
|
-
id: string;
|
|
645
|
-
agentId: string;
|
|
646
644
|
name: string;
|
|
645
|
+
id: string;
|
|
647
646
|
phoneNumber: string;
|
|
647
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
648
|
+
agentId: string;
|
|
648
649
|
source: string;
|
|
649
|
-
status: string;
|
|
650
650
|
callCount: number;
|
|
651
651
|
lastCalledAt: string | Date | null;
|
|
652
652
|
cooldownUntil: string | Date | null;
|
|
@@ -667,6 +667,151 @@ export declare const AgentInfoResponseSchema: z.ZodObject<{
|
|
|
667
667
|
companyId: string | null;
|
|
668
668
|
companyName: string | null;
|
|
669
669
|
}>;
|
|
670
|
+
export declare const OwnResearchLeadSortableFieldsSchema: z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>;
|
|
671
|
+
export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
672
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
673
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
674
|
+
} & {
|
|
675
|
+
name: z.ZodOptional<z.ZodString>;
|
|
676
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
677
|
+
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
678
|
+
minTotalCalls: z.ZodOptional<z.ZodNumber>;
|
|
679
|
+
lastCalledAt: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
682
|
+
}, "strip", z.ZodTypeAny, {
|
|
683
|
+
from?: string | null | undefined;
|
|
684
|
+
to?: string | null | undefined;
|
|
685
|
+
}, {
|
|
686
|
+
from?: string | null | undefined;
|
|
687
|
+
to?: string | null | undefined;
|
|
688
|
+
}>>;
|
|
689
|
+
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>>;
|
|
690
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
691
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
|
+
page: number;
|
|
693
|
+
limit: number;
|
|
694
|
+
name?: string | undefined;
|
|
695
|
+
sortBy?: "name" | "callCount" | "lastCalledAt" | "createdAt" | "updatedAt" | undefined;
|
|
696
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
697
|
+
phoneNumber?: string | undefined;
|
|
698
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
699
|
+
lastCalledAt?: {
|
|
700
|
+
from?: string | null | undefined;
|
|
701
|
+
to?: string | null | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
minTotalCalls?: number | undefined;
|
|
704
|
+
}, {
|
|
705
|
+
name?: string | undefined;
|
|
706
|
+
sortBy?: "name" | "callCount" | "lastCalledAt" | "createdAt" | "updatedAt" | undefined;
|
|
707
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
708
|
+
page?: number | undefined;
|
|
709
|
+
limit?: number | undefined;
|
|
710
|
+
phoneNumber?: string | undefined;
|
|
711
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
712
|
+
lastCalledAt?: {
|
|
713
|
+
from?: string | null | undefined;
|
|
714
|
+
to?: string | null | undefined;
|
|
715
|
+
} | undefined;
|
|
716
|
+
minTotalCalls?: number | undefined;
|
|
717
|
+
}>;
|
|
718
|
+
export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
719
|
+
items: z.ZodArray<z.ZodObject<{
|
|
720
|
+
id: z.ZodString;
|
|
721
|
+
agentId: z.ZodString;
|
|
722
|
+
name: z.ZodString;
|
|
723
|
+
phoneNumber: z.ZodString;
|
|
724
|
+
source: z.ZodString;
|
|
725
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
726
|
+
callCount: z.ZodNumber;
|
|
727
|
+
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
728
|
+
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
729
|
+
blacklistReason: z.ZodNullable<z.ZodString>;
|
|
730
|
+
existsInLeadsTable: z.ZodBoolean;
|
|
731
|
+
originalLeadId: z.ZodNullable<z.ZodString>;
|
|
732
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
733
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
name: string;
|
|
736
|
+
id: string;
|
|
737
|
+
phoneNumber: string;
|
|
738
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
739
|
+
agentId: string;
|
|
740
|
+
source: string;
|
|
741
|
+
callCount: number;
|
|
742
|
+
lastCalledAt: string | null;
|
|
743
|
+
cooldownUntil: string | null;
|
|
744
|
+
blacklistReason: string | null;
|
|
745
|
+
existsInLeadsTable: boolean;
|
|
746
|
+
originalLeadId: string | null;
|
|
747
|
+
createdAt: string;
|
|
748
|
+
updatedAt: string;
|
|
749
|
+
}, {
|
|
750
|
+
name: string;
|
|
751
|
+
id: string;
|
|
752
|
+
phoneNumber: string;
|
|
753
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
754
|
+
agentId: string;
|
|
755
|
+
source: string;
|
|
756
|
+
callCount: number;
|
|
757
|
+
lastCalledAt: string | Date | null;
|
|
758
|
+
cooldownUntil: string | Date | null;
|
|
759
|
+
blacklistReason: string | null;
|
|
760
|
+
existsInLeadsTable: boolean;
|
|
761
|
+
originalLeadId: string | null;
|
|
762
|
+
createdAt: string | Date;
|
|
763
|
+
updatedAt: string | Date;
|
|
764
|
+
}>, "many">;
|
|
765
|
+
totalCount: z.ZodNumber;
|
|
766
|
+
limit: z.ZodNumber;
|
|
767
|
+
skip: z.ZodNumber;
|
|
768
|
+
currentPage: z.ZodNumber;
|
|
769
|
+
totalPages: z.ZodNumber;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
limit: number;
|
|
772
|
+
items: {
|
|
773
|
+
name: string;
|
|
774
|
+
id: string;
|
|
775
|
+
phoneNumber: string;
|
|
776
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
777
|
+
agentId: string;
|
|
778
|
+
source: string;
|
|
779
|
+
callCount: number;
|
|
780
|
+
lastCalledAt: string | null;
|
|
781
|
+
cooldownUntil: string | null;
|
|
782
|
+
blacklistReason: string | null;
|
|
783
|
+
existsInLeadsTable: boolean;
|
|
784
|
+
originalLeadId: string | null;
|
|
785
|
+
createdAt: string;
|
|
786
|
+
updatedAt: string;
|
|
787
|
+
}[];
|
|
788
|
+
totalCount: number;
|
|
789
|
+
skip: number;
|
|
790
|
+
currentPage: number;
|
|
791
|
+
totalPages: number;
|
|
792
|
+
}, {
|
|
793
|
+
limit: number;
|
|
794
|
+
items: {
|
|
795
|
+
name: string;
|
|
796
|
+
id: string;
|
|
797
|
+
phoneNumber: string;
|
|
798
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
799
|
+
agentId: string;
|
|
800
|
+
source: string;
|
|
801
|
+
callCount: number;
|
|
802
|
+
lastCalledAt: string | Date | null;
|
|
803
|
+
cooldownUntil: string | Date | null;
|
|
804
|
+
blacklistReason: string | null;
|
|
805
|
+
existsInLeadsTable: boolean;
|
|
806
|
+
originalLeadId: string | null;
|
|
807
|
+
createdAt: string | Date;
|
|
808
|
+
updatedAt: string | Date;
|
|
809
|
+
}[];
|
|
810
|
+
totalCount: number;
|
|
811
|
+
skip: number;
|
|
812
|
+
currentPage: number;
|
|
813
|
+
totalPages: number;
|
|
814
|
+
}>;
|
|
670
815
|
export type AgentInfoResponse = z.infer<typeof AgentInfoResponseSchema>;
|
|
671
816
|
export type OwnResearchLead = z.infer<typeof OwnResearchLeadSchema>;
|
|
672
817
|
export type CheckPhoneResponse = z.infer<typeof CheckPhoneResponseSchema>;
|
|
@@ -675,6 +820,8 @@ export type RecordOwnResearchCall = z.infer<typeof RecordOwnResearchCallSchema>;
|
|
|
675
820
|
export type RecordOwnResearchCallResponse = z.infer<typeof RecordOwnResearchCallResponseSchema>;
|
|
676
821
|
export type AddOwnResearchLead = z.infer<typeof AddOwnResearchLeadSchema>;
|
|
677
822
|
export type AddOwnResearchLeadResponse = z.infer<typeof AddOwnResearchLeadResponseSchema>;
|
|
823
|
+
export type FilterOwnResearchLead = z.infer<typeof FilterOwnResearchLeadSchema>;
|
|
824
|
+
export type PaginatedOwnResearchLeadResponse = z.infer<typeof PaginatedOwnResearchLeadResponseSchema>;
|
|
678
825
|
export declare const ownResearchContract: {
|
|
679
826
|
getAgentInfo: {
|
|
680
827
|
metadata: {
|
|
@@ -796,6 +943,260 @@ export declare const ownResearchContract: {
|
|
|
796
943
|
}>;
|
|
797
944
|
};
|
|
798
945
|
};
|
|
946
|
+
findAll: {
|
|
947
|
+
query: z.ZodObject<{
|
|
948
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
949
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
950
|
+
} & {
|
|
951
|
+
name: z.ZodOptional<z.ZodString>;
|
|
952
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
953
|
+
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
954
|
+
minTotalCalls: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
lastCalledAt: z.ZodOptional<z.ZodObject<{
|
|
956
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
from?: string | null | undefined;
|
|
960
|
+
to?: string | null | undefined;
|
|
961
|
+
}, {
|
|
962
|
+
from?: string | null | undefined;
|
|
963
|
+
to?: string | null | undefined;
|
|
964
|
+
}>>;
|
|
965
|
+
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>>;
|
|
966
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
page: number;
|
|
969
|
+
limit: number;
|
|
970
|
+
name?: string | undefined;
|
|
971
|
+
sortBy?: "name" | "callCount" | "lastCalledAt" | "createdAt" | "updatedAt" | undefined;
|
|
972
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
973
|
+
phoneNumber?: string | undefined;
|
|
974
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
975
|
+
lastCalledAt?: {
|
|
976
|
+
from?: string | null | undefined;
|
|
977
|
+
to?: string | null | undefined;
|
|
978
|
+
} | undefined;
|
|
979
|
+
minTotalCalls?: number | undefined;
|
|
980
|
+
}, {
|
|
981
|
+
name?: string | undefined;
|
|
982
|
+
sortBy?: "name" | "callCount" | "lastCalledAt" | "createdAt" | "updatedAt" | undefined;
|
|
983
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
984
|
+
page?: number | undefined;
|
|
985
|
+
limit?: number | undefined;
|
|
986
|
+
phoneNumber?: string | undefined;
|
|
987
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
988
|
+
lastCalledAt?: {
|
|
989
|
+
from?: string | null | undefined;
|
|
990
|
+
to?: string | null | undefined;
|
|
991
|
+
} | undefined;
|
|
992
|
+
minTotalCalls?: number | undefined;
|
|
993
|
+
}>;
|
|
994
|
+
metadata: {
|
|
995
|
+
tags: string[];
|
|
996
|
+
};
|
|
997
|
+
summary: "Get all own research leads for the current agent";
|
|
998
|
+
method: "GET";
|
|
999
|
+
path: "/v2/own-research/leads";
|
|
1000
|
+
responses: {
|
|
1001
|
+
400: z.ZodObject<{
|
|
1002
|
+
statusCode: z.ZodNumber;
|
|
1003
|
+
message: z.ZodString;
|
|
1004
|
+
code: z.ZodString;
|
|
1005
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1006
|
+
timestamp: z.ZodString;
|
|
1007
|
+
path: z.ZodString;
|
|
1008
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
}, "strip", z.ZodTypeAny, {
|
|
1010
|
+
code: string;
|
|
1011
|
+
path: string;
|
|
1012
|
+
message: string;
|
|
1013
|
+
statusCode: number;
|
|
1014
|
+
timestamp: string;
|
|
1015
|
+
details?: unknown;
|
|
1016
|
+
correlationId?: string | undefined;
|
|
1017
|
+
}, {
|
|
1018
|
+
code: string;
|
|
1019
|
+
path: string;
|
|
1020
|
+
message: string;
|
|
1021
|
+
statusCode: number;
|
|
1022
|
+
timestamp: string;
|
|
1023
|
+
details?: unknown;
|
|
1024
|
+
correlationId?: string | undefined;
|
|
1025
|
+
}>;
|
|
1026
|
+
401: z.ZodObject<{
|
|
1027
|
+
statusCode: z.ZodNumber;
|
|
1028
|
+
message: z.ZodString;
|
|
1029
|
+
code: z.ZodString;
|
|
1030
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1031
|
+
timestamp: z.ZodString;
|
|
1032
|
+
path: z.ZodString;
|
|
1033
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
}, "strip", z.ZodTypeAny, {
|
|
1035
|
+
code: string;
|
|
1036
|
+
path: string;
|
|
1037
|
+
message: string;
|
|
1038
|
+
statusCode: number;
|
|
1039
|
+
timestamp: string;
|
|
1040
|
+
details?: unknown;
|
|
1041
|
+
correlationId?: string | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
code: string;
|
|
1044
|
+
path: string;
|
|
1045
|
+
message: string;
|
|
1046
|
+
statusCode: number;
|
|
1047
|
+
timestamp: string;
|
|
1048
|
+
details?: unknown;
|
|
1049
|
+
correlationId?: string | undefined;
|
|
1050
|
+
}>;
|
|
1051
|
+
403: z.ZodObject<{
|
|
1052
|
+
statusCode: z.ZodNumber;
|
|
1053
|
+
message: z.ZodString;
|
|
1054
|
+
code: z.ZodString;
|
|
1055
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1056
|
+
timestamp: z.ZodString;
|
|
1057
|
+
path: z.ZodString;
|
|
1058
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
}, "strip", z.ZodTypeAny, {
|
|
1060
|
+
code: string;
|
|
1061
|
+
path: string;
|
|
1062
|
+
message: string;
|
|
1063
|
+
statusCode: number;
|
|
1064
|
+
timestamp: string;
|
|
1065
|
+
details?: unknown;
|
|
1066
|
+
correlationId?: string | undefined;
|
|
1067
|
+
}, {
|
|
1068
|
+
code: string;
|
|
1069
|
+
path: string;
|
|
1070
|
+
message: string;
|
|
1071
|
+
statusCode: number;
|
|
1072
|
+
timestamp: string;
|
|
1073
|
+
details?: unknown;
|
|
1074
|
+
correlationId?: string | undefined;
|
|
1075
|
+
}>;
|
|
1076
|
+
500: z.ZodObject<{
|
|
1077
|
+
statusCode: z.ZodNumber;
|
|
1078
|
+
message: z.ZodString;
|
|
1079
|
+
code: z.ZodString;
|
|
1080
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1081
|
+
timestamp: z.ZodString;
|
|
1082
|
+
path: z.ZodString;
|
|
1083
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
}, "strip", z.ZodTypeAny, {
|
|
1085
|
+
code: string;
|
|
1086
|
+
path: string;
|
|
1087
|
+
message: string;
|
|
1088
|
+
statusCode: number;
|
|
1089
|
+
timestamp: string;
|
|
1090
|
+
details?: unknown;
|
|
1091
|
+
correlationId?: string | undefined;
|
|
1092
|
+
}, {
|
|
1093
|
+
code: string;
|
|
1094
|
+
path: string;
|
|
1095
|
+
message: string;
|
|
1096
|
+
statusCode: number;
|
|
1097
|
+
timestamp: string;
|
|
1098
|
+
details?: unknown;
|
|
1099
|
+
correlationId?: string | undefined;
|
|
1100
|
+
}>;
|
|
1101
|
+
200: z.ZodObject<{
|
|
1102
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1103
|
+
id: z.ZodString;
|
|
1104
|
+
agentId: z.ZodString;
|
|
1105
|
+
name: z.ZodString;
|
|
1106
|
+
phoneNumber: z.ZodString;
|
|
1107
|
+
source: z.ZodString;
|
|
1108
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1109
|
+
callCount: z.ZodNumber;
|
|
1110
|
+
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1111
|
+
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1112
|
+
blacklistReason: z.ZodNullable<z.ZodString>;
|
|
1113
|
+
existsInLeadsTable: z.ZodBoolean;
|
|
1114
|
+
originalLeadId: z.ZodNullable<z.ZodString>;
|
|
1115
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1116
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
|
1118
|
+
name: string;
|
|
1119
|
+
id: string;
|
|
1120
|
+
phoneNumber: string;
|
|
1121
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1122
|
+
agentId: string;
|
|
1123
|
+
source: string;
|
|
1124
|
+
callCount: number;
|
|
1125
|
+
lastCalledAt: string | null;
|
|
1126
|
+
cooldownUntil: string | null;
|
|
1127
|
+
blacklistReason: string | null;
|
|
1128
|
+
existsInLeadsTable: boolean;
|
|
1129
|
+
originalLeadId: string | null;
|
|
1130
|
+
createdAt: string;
|
|
1131
|
+
updatedAt: string;
|
|
1132
|
+
}, {
|
|
1133
|
+
name: string;
|
|
1134
|
+
id: string;
|
|
1135
|
+
phoneNumber: string;
|
|
1136
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1137
|
+
agentId: string;
|
|
1138
|
+
source: string;
|
|
1139
|
+
callCount: number;
|
|
1140
|
+
lastCalledAt: string | Date | null;
|
|
1141
|
+
cooldownUntil: string | Date | null;
|
|
1142
|
+
blacklistReason: string | null;
|
|
1143
|
+
existsInLeadsTable: boolean;
|
|
1144
|
+
originalLeadId: string | null;
|
|
1145
|
+
createdAt: string | Date;
|
|
1146
|
+
updatedAt: string | Date;
|
|
1147
|
+
}>, "many">;
|
|
1148
|
+
totalCount: z.ZodNumber;
|
|
1149
|
+
limit: z.ZodNumber;
|
|
1150
|
+
skip: z.ZodNumber;
|
|
1151
|
+
currentPage: z.ZodNumber;
|
|
1152
|
+
totalPages: z.ZodNumber;
|
|
1153
|
+
}, "strip", z.ZodTypeAny, {
|
|
1154
|
+
limit: number;
|
|
1155
|
+
items: {
|
|
1156
|
+
name: string;
|
|
1157
|
+
id: string;
|
|
1158
|
+
phoneNumber: string;
|
|
1159
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1160
|
+
agentId: string;
|
|
1161
|
+
source: string;
|
|
1162
|
+
callCount: number;
|
|
1163
|
+
lastCalledAt: string | null;
|
|
1164
|
+
cooldownUntil: string | null;
|
|
1165
|
+
blacklistReason: string | null;
|
|
1166
|
+
existsInLeadsTable: boolean;
|
|
1167
|
+
originalLeadId: string | null;
|
|
1168
|
+
createdAt: string;
|
|
1169
|
+
updatedAt: string;
|
|
1170
|
+
}[];
|
|
1171
|
+
totalCount: number;
|
|
1172
|
+
skip: number;
|
|
1173
|
+
currentPage: number;
|
|
1174
|
+
totalPages: number;
|
|
1175
|
+
}, {
|
|
1176
|
+
limit: number;
|
|
1177
|
+
items: {
|
|
1178
|
+
name: string;
|
|
1179
|
+
id: string;
|
|
1180
|
+
phoneNumber: string;
|
|
1181
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1182
|
+
agentId: string;
|
|
1183
|
+
source: string;
|
|
1184
|
+
callCount: number;
|
|
1185
|
+
lastCalledAt: string | Date | null;
|
|
1186
|
+
cooldownUntil: string | Date | null;
|
|
1187
|
+
blacklistReason: string | null;
|
|
1188
|
+
existsInLeadsTable: boolean;
|
|
1189
|
+
originalLeadId: string | null;
|
|
1190
|
+
createdAt: string | Date;
|
|
1191
|
+
updatedAt: string | Date;
|
|
1192
|
+
}[];
|
|
1193
|
+
totalCount: number;
|
|
1194
|
+
skip: number;
|
|
1195
|
+
currentPage: number;
|
|
1196
|
+
totalPages: number;
|
|
1197
|
+
}>;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
799
1200
|
checkPhone: {
|
|
800
1201
|
metadata: {
|
|
801
1202
|
tags: string[];
|
|
@@ -803,7 +1204,7 @@ export declare const ownResearchContract: {
|
|
|
803
1204
|
summary: "Check if a phone number exists in leads or own research";
|
|
804
1205
|
method: "POST";
|
|
805
1206
|
body: z.ZodObject<{
|
|
806
|
-
phoneNumber: z.ZodString
|
|
1207
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
807
1208
|
}, "strip", z.ZodTypeAny, {
|
|
808
1209
|
phoneNumber: string;
|
|
809
1210
|
}, {
|
|
@@ -921,14 +1322,14 @@ export declare const ownResearchContract: {
|
|
|
921
1322
|
status: z.ZodString;
|
|
922
1323
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
923
1324
|
}, "strip", z.ZodTypeAny, {
|
|
924
|
-
id: string;
|
|
925
1325
|
name: string;
|
|
1326
|
+
id: string;
|
|
926
1327
|
phoneNumber: string;
|
|
927
1328
|
status: string;
|
|
928
1329
|
cooldownUntil: string | null;
|
|
929
1330
|
}, {
|
|
930
|
-
id: string;
|
|
931
1331
|
name: string;
|
|
1332
|
+
id: string;
|
|
932
1333
|
phoneNumber: string;
|
|
933
1334
|
status: string;
|
|
934
1335
|
cooldownUntil: string | Date | null;
|
|
@@ -939,7 +1340,7 @@ export declare const ownResearchContract: {
|
|
|
939
1340
|
name: z.ZodString;
|
|
940
1341
|
phoneNumber: z.ZodString;
|
|
941
1342
|
source: z.ZodString;
|
|
942
|
-
status: z.
|
|
1343
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
943
1344
|
callCount: z.ZodNumber;
|
|
944
1345
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
945
1346
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -949,12 +1350,12 @@ export declare const ownResearchContract: {
|
|
|
949
1350
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
950
1351
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
951
1352
|
}, "strip", z.ZodTypeAny, {
|
|
952
|
-
id: string;
|
|
953
|
-
agentId: string;
|
|
954
1353
|
name: string;
|
|
1354
|
+
id: string;
|
|
955
1355
|
phoneNumber: string;
|
|
1356
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1357
|
+
agentId: string;
|
|
956
1358
|
source: string;
|
|
957
|
-
status: string;
|
|
958
1359
|
callCount: number;
|
|
959
1360
|
lastCalledAt: string | null;
|
|
960
1361
|
cooldownUntil: string | null;
|
|
@@ -964,12 +1365,12 @@ export declare const ownResearchContract: {
|
|
|
964
1365
|
createdAt: string;
|
|
965
1366
|
updatedAt: string;
|
|
966
1367
|
}, {
|
|
967
|
-
id: string;
|
|
968
|
-
agentId: string;
|
|
969
1368
|
name: string;
|
|
1369
|
+
id: string;
|
|
970
1370
|
phoneNumber: string;
|
|
1371
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1372
|
+
agentId: string;
|
|
971
1373
|
source: string;
|
|
972
|
-
status: string;
|
|
973
1374
|
callCount: number;
|
|
974
1375
|
lastCalledAt: string | Date | null;
|
|
975
1376
|
cooldownUntil: string | Date | null;
|
|
@@ -987,19 +1388,19 @@ export declare const ownResearchContract: {
|
|
|
987
1388
|
existsInOwnResearch: boolean;
|
|
988
1389
|
isOnCooldown: boolean;
|
|
989
1390
|
lead?: {
|
|
990
|
-
id: string;
|
|
991
1391
|
name: string;
|
|
1392
|
+
id: string;
|
|
992
1393
|
phoneNumber: string;
|
|
993
1394
|
status: string;
|
|
994
1395
|
cooldownUntil: string | null;
|
|
995
1396
|
} | null | undefined;
|
|
996
1397
|
ownResearchLead?: {
|
|
997
|
-
id: string;
|
|
998
|
-
agentId: string;
|
|
999
1398
|
name: string;
|
|
1399
|
+
id: string;
|
|
1000
1400
|
phoneNumber: string;
|
|
1401
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1402
|
+
agentId: string;
|
|
1001
1403
|
source: string;
|
|
1002
|
-
status: string;
|
|
1003
1404
|
callCount: number;
|
|
1004
1405
|
lastCalledAt: string | null;
|
|
1005
1406
|
cooldownUntil: string | null;
|
|
@@ -1015,19 +1416,19 @@ export declare const ownResearchContract: {
|
|
|
1015
1416
|
existsInOwnResearch: boolean;
|
|
1016
1417
|
isOnCooldown: boolean;
|
|
1017
1418
|
lead?: {
|
|
1018
|
-
id: string;
|
|
1019
1419
|
name: string;
|
|
1420
|
+
id: string;
|
|
1020
1421
|
phoneNumber: string;
|
|
1021
1422
|
status: string;
|
|
1022
1423
|
cooldownUntil: string | Date | null;
|
|
1023
1424
|
} | null | undefined;
|
|
1024
1425
|
ownResearchLead?: {
|
|
1025
|
-
id: string;
|
|
1026
|
-
agentId: string;
|
|
1027
1426
|
name: string;
|
|
1427
|
+
id: string;
|
|
1028
1428
|
phoneNumber: string;
|
|
1429
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1430
|
+
agentId: string;
|
|
1029
1431
|
source: string;
|
|
1030
|
-
status: string;
|
|
1031
1432
|
callCount: number;
|
|
1032
1433
|
lastCalledAt: string | Date | null;
|
|
1033
1434
|
cooldownUntil: string | Date | null;
|
|
@@ -1165,7 +1566,7 @@ export declare const ownResearchContract: {
|
|
|
1165
1566
|
name: z.ZodString;
|
|
1166
1567
|
phoneNumber: z.ZodString;
|
|
1167
1568
|
source: z.ZodString;
|
|
1168
|
-
status: z.
|
|
1569
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1169
1570
|
callCount: z.ZodNumber;
|
|
1170
1571
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1171
1572
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -1175,12 +1576,12 @@ export declare const ownResearchContract: {
|
|
|
1175
1576
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1176
1577
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1177
1578
|
}, "strip", z.ZodTypeAny, {
|
|
1178
|
-
id: string;
|
|
1179
|
-
agentId: string;
|
|
1180
1579
|
name: string;
|
|
1580
|
+
id: string;
|
|
1181
1581
|
phoneNumber: string;
|
|
1582
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1583
|
+
agentId: string;
|
|
1182
1584
|
source: string;
|
|
1183
|
-
status: string;
|
|
1184
1585
|
callCount: number;
|
|
1185
1586
|
lastCalledAt: string | null;
|
|
1186
1587
|
cooldownUntil: string | null;
|
|
@@ -1190,12 +1591,12 @@ export declare const ownResearchContract: {
|
|
|
1190
1591
|
createdAt: string;
|
|
1191
1592
|
updatedAt: string;
|
|
1192
1593
|
}, {
|
|
1193
|
-
id: string;
|
|
1194
|
-
agentId: string;
|
|
1195
1594
|
name: string;
|
|
1595
|
+
id: string;
|
|
1196
1596
|
phoneNumber: string;
|
|
1597
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1598
|
+
agentId: string;
|
|
1197
1599
|
source: string;
|
|
1198
|
-
status: string;
|
|
1199
1600
|
callCount: number;
|
|
1200
1601
|
lastCalledAt: string | Date | null;
|
|
1201
1602
|
cooldownUntil: string | Date | null;
|
|
@@ -1207,12 +1608,12 @@ export declare const ownResearchContract: {
|
|
|
1207
1608
|
}>;
|
|
1208
1609
|
}, "strip", z.ZodTypeAny, {
|
|
1209
1610
|
ownResearchLead: {
|
|
1210
|
-
id: string;
|
|
1211
|
-
agentId: string;
|
|
1212
1611
|
name: string;
|
|
1612
|
+
id: string;
|
|
1213
1613
|
phoneNumber: string;
|
|
1614
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1615
|
+
agentId: string;
|
|
1214
1616
|
source: string;
|
|
1215
|
-
status: string;
|
|
1216
1617
|
callCount: number;
|
|
1217
1618
|
lastCalledAt: string | null;
|
|
1218
1619
|
cooldownUntil: string | null;
|
|
@@ -1224,12 +1625,12 @@ export declare const ownResearchContract: {
|
|
|
1224
1625
|
};
|
|
1225
1626
|
}, {
|
|
1226
1627
|
ownResearchLead: {
|
|
1227
|
-
id: string;
|
|
1228
|
-
agentId: string;
|
|
1229
1628
|
name: string;
|
|
1629
|
+
id: string;
|
|
1230
1630
|
phoneNumber: string;
|
|
1631
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1632
|
+
agentId: string;
|
|
1231
1633
|
source: string;
|
|
1232
|
-
status: string;
|
|
1233
1634
|
callCount: number;
|
|
1234
1635
|
lastCalledAt: string | Date | null;
|
|
1235
1636
|
cooldownUntil: string | Date | null;
|
|
@@ -1420,12 +1821,12 @@ export declare const ownResearchContract: {
|
|
|
1420
1821
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1421
1822
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1422
1823
|
}, "strip", z.ZodTypeAny, {
|
|
1824
|
+
email: string;
|
|
1423
1825
|
id: string;
|
|
1424
1826
|
createdAt: string;
|
|
1425
1827
|
updatedAt: string;
|
|
1426
1828
|
firstName: string;
|
|
1427
1829
|
lastName: string;
|
|
1428
|
-
email: string;
|
|
1429
1830
|
phoneNumbers: {
|
|
1430
1831
|
id: string;
|
|
1431
1832
|
phoneNumber: string;
|
|
@@ -1440,19 +1841,19 @@ export declare const ownResearchContract: {
|
|
|
1440
1841
|
lastName: string;
|
|
1441
1842
|
}[] | undefined;
|
|
1442
1843
|
}, {
|
|
1844
|
+
email: string;
|
|
1443
1845
|
id: string;
|
|
1444
1846
|
createdAt: string | Date;
|
|
1445
1847
|
updatedAt: string | Date;
|
|
1446
1848
|
firstName: string;
|
|
1447
1849
|
lastName: string;
|
|
1448
|
-
|
|
1850
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1449
1851
|
phoneNumbers?: {
|
|
1450
1852
|
id: string;
|
|
1451
1853
|
phoneNumber: string;
|
|
1452
1854
|
description?: string | null | undefined;
|
|
1453
1855
|
isPrimary?: boolean | undefined;
|
|
1454
1856
|
}[] | undefined;
|
|
1455
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1456
1857
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1457
1858
|
canImpersonateUsers?: {
|
|
1458
1859
|
id: string;
|
|
@@ -1470,13 +1871,13 @@ export declare const ownResearchContract: {
|
|
|
1470
1871
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1471
1872
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1472
1873
|
}, "strip", z.ZodTypeAny, {
|
|
1473
|
-
id: string;
|
|
1474
1874
|
name: string;
|
|
1875
|
+
id: string;
|
|
1475
1876
|
createdAt: string;
|
|
1476
1877
|
updatedAt: string;
|
|
1477
1878
|
}, {
|
|
1478
|
-
id: string;
|
|
1479
1879
|
name: string;
|
|
1880
|
+
id: string;
|
|
1480
1881
|
createdAt: string | Date;
|
|
1481
1882
|
updatedAt: string | Date;
|
|
1482
1883
|
}>>>;
|
|
@@ -1484,8 +1885,8 @@ export declare const ownResearchContract: {
|
|
|
1484
1885
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1485
1886
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1887
|
id: string;
|
|
1487
|
-
agentId: string | null;
|
|
1488
1888
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1889
|
+
agentId: string | null;
|
|
1489
1890
|
createdAt: string;
|
|
1490
1891
|
updatedAt: string;
|
|
1491
1892
|
leadId: string;
|
|
@@ -1497,12 +1898,12 @@ export declare const ownResearchContract: {
|
|
|
1497
1898
|
phoneNumber: string;
|
|
1498
1899
|
} | undefined;
|
|
1499
1900
|
agent?: {
|
|
1901
|
+
email: string;
|
|
1500
1902
|
id: string;
|
|
1501
1903
|
createdAt: string;
|
|
1502
1904
|
updatedAt: string;
|
|
1503
1905
|
firstName: string;
|
|
1504
1906
|
lastName: string;
|
|
1505
|
-
email: string;
|
|
1506
1907
|
phoneNumbers: {
|
|
1507
1908
|
id: string;
|
|
1508
1909
|
phoneNumber: string;
|
|
@@ -1518,15 +1919,15 @@ export declare const ownResearchContract: {
|
|
|
1518
1919
|
}[] | undefined;
|
|
1519
1920
|
} | undefined;
|
|
1520
1921
|
company?: {
|
|
1521
|
-
id: string;
|
|
1522
1922
|
name: string;
|
|
1923
|
+
id: string;
|
|
1523
1924
|
createdAt: string;
|
|
1524
1925
|
updatedAt: string;
|
|
1525
1926
|
} | null | undefined;
|
|
1526
1927
|
}, {
|
|
1527
1928
|
id: string;
|
|
1528
|
-
agentId: string | null;
|
|
1529
1929
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1930
|
+
agentId: string | null;
|
|
1530
1931
|
createdAt: string | Date;
|
|
1531
1932
|
updatedAt: string | Date;
|
|
1532
1933
|
leadId: string;
|
|
@@ -1538,19 +1939,19 @@ export declare const ownResearchContract: {
|
|
|
1538
1939
|
phoneNumber: string;
|
|
1539
1940
|
} | undefined;
|
|
1540
1941
|
agent?: {
|
|
1942
|
+
email: string;
|
|
1541
1943
|
id: string;
|
|
1542
1944
|
createdAt: string | Date;
|
|
1543
1945
|
updatedAt: string | Date;
|
|
1544
1946
|
firstName: string;
|
|
1545
1947
|
lastName: string;
|
|
1546
|
-
|
|
1948
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1547
1949
|
phoneNumbers?: {
|
|
1548
1950
|
id: string;
|
|
1549
1951
|
phoneNumber: string;
|
|
1550
1952
|
description?: string | null | undefined;
|
|
1551
1953
|
isPrimary?: boolean | undefined;
|
|
1552
1954
|
}[] | undefined;
|
|
1553
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1554
1955
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1555
1956
|
canImpersonateUsers?: {
|
|
1556
1957
|
id: string;
|
|
@@ -1559,8 +1960,8 @@ export declare const ownResearchContract: {
|
|
|
1559
1960
|
}[] | undefined;
|
|
1560
1961
|
} | undefined;
|
|
1561
1962
|
company?: {
|
|
1562
|
-
id: string;
|
|
1563
1963
|
name: string;
|
|
1964
|
+
id: string;
|
|
1564
1965
|
createdAt: string | Date;
|
|
1565
1966
|
updatedAt: string | Date;
|
|
1566
1967
|
} | null | undefined;
|
|
@@ -1571,7 +1972,7 @@ export declare const ownResearchContract: {
|
|
|
1571
1972
|
name: z.ZodString;
|
|
1572
1973
|
phoneNumber: z.ZodString;
|
|
1573
1974
|
source: z.ZodString;
|
|
1574
|
-
status: z.
|
|
1975
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
|
|
1575
1976
|
callCount: z.ZodNumber;
|
|
1576
1977
|
lastCalledAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
1577
1978
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
@@ -1581,12 +1982,12 @@ export declare const ownResearchContract: {
|
|
|
1581
1982
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1582
1983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1583
1984
|
}, "strip", z.ZodTypeAny, {
|
|
1584
|
-
id: string;
|
|
1585
|
-
agentId: string;
|
|
1586
1985
|
name: string;
|
|
1986
|
+
id: string;
|
|
1587
1987
|
phoneNumber: string;
|
|
1988
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1989
|
+
agentId: string;
|
|
1588
1990
|
source: string;
|
|
1589
|
-
status: string;
|
|
1590
1991
|
callCount: number;
|
|
1591
1992
|
lastCalledAt: string | null;
|
|
1592
1993
|
cooldownUntil: string | null;
|
|
@@ -1596,12 +1997,12 @@ export declare const ownResearchContract: {
|
|
|
1596
1997
|
createdAt: string;
|
|
1597
1998
|
updatedAt: string;
|
|
1598
1999
|
}, {
|
|
1599
|
-
id: string;
|
|
1600
|
-
agentId: string;
|
|
1601
2000
|
name: string;
|
|
2001
|
+
id: string;
|
|
1602
2002
|
phoneNumber: string;
|
|
2003
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2004
|
+
agentId: string;
|
|
1603
2005
|
source: string;
|
|
1604
|
-
status: string;
|
|
1605
2006
|
callCount: number;
|
|
1606
2007
|
lastCalledAt: string | Date | null;
|
|
1607
2008
|
cooldownUntil: string | Date | null;
|
|
@@ -1613,12 +2014,12 @@ export declare const ownResearchContract: {
|
|
|
1613
2014
|
}>;
|
|
1614
2015
|
}, "strip", z.ZodTypeAny, {
|
|
1615
2016
|
ownResearchLead: {
|
|
1616
|
-
id: string;
|
|
1617
|
-
agentId: string;
|
|
1618
2017
|
name: string;
|
|
2018
|
+
id: string;
|
|
1619
2019
|
phoneNumber: string;
|
|
2020
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2021
|
+
agentId: string;
|
|
1620
2022
|
source: string;
|
|
1621
|
-
status: string;
|
|
1622
2023
|
callCount: number;
|
|
1623
2024
|
lastCalledAt: string | null;
|
|
1624
2025
|
cooldownUntil: string | null;
|
|
@@ -1630,8 +2031,8 @@ export declare const ownResearchContract: {
|
|
|
1630
2031
|
};
|
|
1631
2032
|
assignment: {
|
|
1632
2033
|
id: string;
|
|
1633
|
-
agentId: string | null;
|
|
1634
2034
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2035
|
+
agentId: string | null;
|
|
1635
2036
|
createdAt: string;
|
|
1636
2037
|
updatedAt: string;
|
|
1637
2038
|
leadId: string;
|
|
@@ -1643,12 +2044,12 @@ export declare const ownResearchContract: {
|
|
|
1643
2044
|
phoneNumber: string;
|
|
1644
2045
|
} | undefined;
|
|
1645
2046
|
agent?: {
|
|
2047
|
+
email: string;
|
|
1646
2048
|
id: string;
|
|
1647
2049
|
createdAt: string;
|
|
1648
2050
|
updatedAt: string;
|
|
1649
2051
|
firstName: string;
|
|
1650
2052
|
lastName: string;
|
|
1651
|
-
email: string;
|
|
1652
2053
|
phoneNumbers: {
|
|
1653
2054
|
id: string;
|
|
1654
2055
|
phoneNumber: string;
|
|
@@ -1664,20 +2065,20 @@ export declare const ownResearchContract: {
|
|
|
1664
2065
|
}[] | undefined;
|
|
1665
2066
|
} | undefined;
|
|
1666
2067
|
company?: {
|
|
1667
|
-
id: string;
|
|
1668
2068
|
name: string;
|
|
2069
|
+
id: string;
|
|
1669
2070
|
createdAt: string;
|
|
1670
2071
|
updatedAt: string;
|
|
1671
2072
|
} | null | undefined;
|
|
1672
2073
|
};
|
|
1673
2074
|
}, {
|
|
1674
2075
|
ownResearchLead: {
|
|
1675
|
-
id: string;
|
|
1676
|
-
agentId: string;
|
|
1677
2076
|
name: string;
|
|
2077
|
+
id: string;
|
|
1678
2078
|
phoneNumber: string;
|
|
2079
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2080
|
+
agentId: string;
|
|
1679
2081
|
source: string;
|
|
1680
|
-
status: string;
|
|
1681
2082
|
callCount: number;
|
|
1682
2083
|
lastCalledAt: string | Date | null;
|
|
1683
2084
|
cooldownUntil: string | Date | null;
|
|
@@ -1689,8 +2090,8 @@ export declare const ownResearchContract: {
|
|
|
1689
2090
|
};
|
|
1690
2091
|
assignment: {
|
|
1691
2092
|
id: string;
|
|
1692
|
-
agentId: string | null;
|
|
1693
2093
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2094
|
+
agentId: string | null;
|
|
1694
2095
|
createdAt: string | Date;
|
|
1695
2096
|
updatedAt: string | Date;
|
|
1696
2097
|
leadId: string;
|
|
@@ -1702,19 +2103,19 @@ export declare const ownResearchContract: {
|
|
|
1702
2103
|
phoneNumber: string;
|
|
1703
2104
|
} | undefined;
|
|
1704
2105
|
agent?: {
|
|
2106
|
+
email: string;
|
|
1705
2107
|
id: string;
|
|
1706
2108
|
createdAt: string | Date;
|
|
1707
2109
|
updatedAt: string | Date;
|
|
1708
2110
|
firstName: string;
|
|
1709
2111
|
lastName: string;
|
|
1710
|
-
|
|
2112
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1711
2113
|
phoneNumbers?: {
|
|
1712
2114
|
id: string;
|
|
1713
2115
|
phoneNumber: string;
|
|
1714
2116
|
description?: string | null | undefined;
|
|
1715
2117
|
isPrimary?: boolean | undefined;
|
|
1716
2118
|
}[] | undefined;
|
|
1717
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1718
2119
|
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1719
2120
|
canImpersonateUsers?: {
|
|
1720
2121
|
id: string;
|
|
@@ -1723,8 +2124,8 @@ export declare const ownResearchContract: {
|
|
|
1723
2124
|
}[] | undefined;
|
|
1724
2125
|
} | undefined;
|
|
1725
2126
|
company?: {
|
|
1726
|
-
id: string;
|
|
1727
2127
|
name: string;
|
|
2128
|
+
id: string;
|
|
1728
2129
|
createdAt: string | Date;
|
|
1729
2130
|
updatedAt: string | Date;
|
|
1730
2131
|
} | null | undefined;
|