@dakkitor/api-contracts 1.1.137 → 1.1.139
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 +2 -0
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +4 -1
- package/dist/abilities/bot.abilities.json +4 -0
- package/dist/abilities/cron-scheduler.abilities.json +10 -0
- package/dist/abilities/first-agent.abilities.json +16 -1
- package/dist/abilities/kpi.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +18 -1
- package/dist/abilities/team-leads.json +4 -0
- package/dist/actives/actives.contract.d.ts +14109 -7079
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +290 -2
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1431 -1017
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +31263 -60067
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +223 -8
- package/dist/call-history/call-history.contract.d.ts +814 -640
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +177 -177
- package/dist/clients/clients.contract.d.ts +92 -92
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2114 -1730
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +1889 -1508
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/common/common-schemas.d.ts +23 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +31 -1
- package/dist/companies/companies.contract.d.ts +28 -28
- package/dist/cron-executions/cron-executions.contract.d.ts +131 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +14 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +762 -500
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +10 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +671 -147
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +140 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/jobs/jobs.contract.d.ts +5234 -2120
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +77 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +64 -64
- package/dist/lead-assignments/lead-assignments.contract.d.ts +754 -562
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +254 -24
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +7 -1
- package/dist/leads/leads.contract.d.ts +228 -228
- package/dist/locations/locations.contract.d.ts +22 -22
- package/dist/offices/offices.contract.d.ts +794 -0
- package/dist/offices/offices.contract.d.ts.map +1 -0
- package/dist/offices/offices.contract.js +93 -0
- package/dist/own-research/own-research.contract.d.ts +854 -563
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/users/users.contract.d.ts +345 -245
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +7 -25
- package/dist/workers/workers.contract.d.ts +1723 -839
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +76 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead-assignments.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-assignments/lead-assignments.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,oBAAY,o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;
|
|
48
|
+
export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
lowShare: z.ZodNumber;
|
|
53
|
+
mediumShare: z.ZodNumber;
|
|
54
|
+
highShare: z.ZodNumber;
|
|
55
|
+
mediumMinWeight: z.ZodNumber;
|
|
56
|
+
highMinWeight: z.ZodNumber;
|
|
57
|
+
isActive: z.ZodBoolean;
|
|
58
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}, {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
}>>>;
|
|
48
65
|
export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
49
66
|
agentId: z.ZodString;
|
|
50
67
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
@@ -90,7 +107,16 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
90
107
|
isPrimary?: boolean | undefined;
|
|
91
108
|
}>, "many">>>;
|
|
92
109
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
93
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
110
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
}, {
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
}>>>;
|
|
94
120
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
121
|
id: z.ZodString;
|
|
96
122
|
firstName: z.ZodString;
|
|
@@ -120,7 +146,10 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
120
146
|
description?: string | null | undefined;
|
|
121
147
|
}[];
|
|
122
148
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
123
|
-
office?:
|
|
149
|
+
office?: {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
} | null | undefined;
|
|
124
153
|
canImpersonateUsers?: {
|
|
125
154
|
id: string;
|
|
126
155
|
firstName: string;
|
|
@@ -140,13 +169,33 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
140
169
|
isPrimary?: boolean | undefined;
|
|
141
170
|
}[] | undefined;
|
|
142
171
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
143
|
-
office?:
|
|
172
|
+
office?: {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
} | null | undefined;
|
|
144
176
|
canImpersonateUsers?: {
|
|
145
177
|
id: string;
|
|
146
178
|
firstName: string;
|
|
147
179
|
lastName: string;
|
|
148
180
|
}[] | undefined;
|
|
149
181
|
}>;
|
|
182
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
lowShare: z.ZodNumber;
|
|
187
|
+
mediumShare: z.ZodNumber;
|
|
188
|
+
highShare: z.ZodNumber;
|
|
189
|
+
mediumMinWeight: z.ZodNumber;
|
|
190
|
+
highMinWeight: z.ZodNumber;
|
|
191
|
+
isActive: z.ZodBoolean;
|
|
192
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
}, {
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
}>>>;
|
|
150
199
|
}, "strip", z.ZodTypeAny, {
|
|
151
200
|
agentId: string;
|
|
152
201
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -165,7 +214,10 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
165
214
|
description?: string | null | undefined;
|
|
166
215
|
}[];
|
|
167
216
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
168
|
-
office?:
|
|
217
|
+
office?: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
} | null | undefined;
|
|
169
221
|
canImpersonateUsers?: {
|
|
170
222
|
id: string;
|
|
171
223
|
firstName: string;
|
|
@@ -180,6 +232,10 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
180
232
|
createdAt: string;
|
|
181
233
|
updatedAt: string;
|
|
182
234
|
} | null | undefined;
|
|
235
|
+
leadDistributionConfig?: {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
} | null | undefined;
|
|
183
239
|
}, {
|
|
184
240
|
agentId: string;
|
|
185
241
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -198,7 +254,10 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
198
254
|
isPrimary?: boolean | undefined;
|
|
199
255
|
}[] | undefined;
|
|
200
256
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
201
|
-
office?:
|
|
257
|
+
office?: {
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
} | null | undefined;
|
|
202
261
|
canImpersonateUsers?: {
|
|
203
262
|
id: string;
|
|
204
263
|
firstName: string;
|
|
@@ -213,6 +272,10 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
213
272
|
createdAt: string | Date;
|
|
214
273
|
updatedAt: string | Date;
|
|
215
274
|
} | null | undefined;
|
|
275
|
+
leadDistributionConfig?: {
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
} | null | undefined;
|
|
216
279
|
}>;
|
|
217
280
|
export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
|
|
218
281
|
agentId: z.ZodString;
|
|
@@ -312,7 +375,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
312
375
|
isPrimary?: boolean | undefined;
|
|
313
376
|
}>, "many">>>;
|
|
314
377
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
315
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
378
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
id: string;
|
|
383
|
+
name: string;
|
|
384
|
+
}, {
|
|
385
|
+
id: string;
|
|
386
|
+
name: string;
|
|
387
|
+
}>>>;
|
|
316
388
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
317
389
|
id: z.ZodString;
|
|
318
390
|
firstName: z.ZodString;
|
|
@@ -342,7 +414,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
342
414
|
description?: string | null | undefined;
|
|
343
415
|
}[];
|
|
344
416
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
345
|
-
office?:
|
|
417
|
+
office?: {
|
|
418
|
+
id: string;
|
|
419
|
+
name: string;
|
|
420
|
+
} | null | undefined;
|
|
346
421
|
canImpersonateUsers?: {
|
|
347
422
|
id: string;
|
|
348
423
|
firstName: string;
|
|
@@ -362,13 +437,33 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
362
437
|
isPrimary?: boolean | undefined;
|
|
363
438
|
}[] | undefined;
|
|
364
439
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
365
|
-
office?:
|
|
440
|
+
office?: {
|
|
441
|
+
id: string;
|
|
442
|
+
name: string;
|
|
443
|
+
} | null | undefined;
|
|
366
444
|
canImpersonateUsers?: {
|
|
367
445
|
id: string;
|
|
368
446
|
firstName: string;
|
|
369
447
|
lastName: string;
|
|
370
448
|
}[] | undefined;
|
|
371
449
|
}>;
|
|
450
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
name: z.ZodString;
|
|
453
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
454
|
+
lowShare: z.ZodNumber;
|
|
455
|
+
mediumShare: z.ZodNumber;
|
|
456
|
+
highShare: z.ZodNumber;
|
|
457
|
+
mediumMinWeight: z.ZodNumber;
|
|
458
|
+
highMinWeight: z.ZodNumber;
|
|
459
|
+
isActive: z.ZodBoolean;
|
|
460
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
461
|
+
id: string;
|
|
462
|
+
name: string;
|
|
463
|
+
}, {
|
|
464
|
+
id: string;
|
|
465
|
+
name: string;
|
|
466
|
+
}>>>;
|
|
372
467
|
}, "strip", z.ZodTypeAny, {
|
|
373
468
|
agentId: string;
|
|
374
469
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -387,7 +482,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
387
482
|
description?: string | null | undefined;
|
|
388
483
|
}[];
|
|
389
484
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
390
|
-
office?:
|
|
485
|
+
office?: {
|
|
486
|
+
id: string;
|
|
487
|
+
name: string;
|
|
488
|
+
} | null | undefined;
|
|
391
489
|
canImpersonateUsers?: {
|
|
392
490
|
id: string;
|
|
393
491
|
firstName: string;
|
|
@@ -402,6 +500,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
402
500
|
createdAt: string;
|
|
403
501
|
updatedAt: string;
|
|
404
502
|
} | null | undefined;
|
|
503
|
+
leadDistributionConfig?: {
|
|
504
|
+
id: string;
|
|
505
|
+
name: string;
|
|
506
|
+
} | null | undefined;
|
|
405
507
|
}, {
|
|
406
508
|
agentId: string;
|
|
407
509
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -420,7 +522,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
420
522
|
isPrimary?: boolean | undefined;
|
|
421
523
|
}[] | undefined;
|
|
422
524
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
423
|
-
office?:
|
|
525
|
+
office?: {
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
} | null | undefined;
|
|
424
529
|
canImpersonateUsers?: {
|
|
425
530
|
id: string;
|
|
426
531
|
firstName: string;
|
|
@@ -435,6 +540,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
435
540
|
createdAt: string | Date;
|
|
436
541
|
updatedAt: string | Date;
|
|
437
542
|
} | null | undefined;
|
|
543
|
+
leadDistributionConfig?: {
|
|
544
|
+
id: string;
|
|
545
|
+
name: string;
|
|
546
|
+
} | null | undefined;
|
|
438
547
|
}>, "many">;
|
|
439
548
|
totalCount: z.ZodNumber;
|
|
440
549
|
limit: z.ZodNumber;
|
|
@@ -461,7 +570,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
461
570
|
description?: string | null | undefined;
|
|
462
571
|
}[];
|
|
463
572
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
464
|
-
office?:
|
|
573
|
+
office?: {
|
|
574
|
+
id: string;
|
|
575
|
+
name: string;
|
|
576
|
+
} | null | undefined;
|
|
465
577
|
canImpersonateUsers?: {
|
|
466
578
|
id: string;
|
|
467
579
|
firstName: string;
|
|
@@ -476,6 +588,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
476
588
|
createdAt: string;
|
|
477
589
|
updatedAt: string;
|
|
478
590
|
} | null | undefined;
|
|
591
|
+
leadDistributionConfig?: {
|
|
592
|
+
id: string;
|
|
593
|
+
name: string;
|
|
594
|
+
} | null | undefined;
|
|
479
595
|
}[];
|
|
480
596
|
totalCount: number;
|
|
481
597
|
skip: number;
|
|
@@ -501,7 +617,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
501
617
|
isPrimary?: boolean | undefined;
|
|
502
618
|
}[] | undefined;
|
|
503
619
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
504
|
-
office?:
|
|
620
|
+
office?: {
|
|
621
|
+
id: string;
|
|
622
|
+
name: string;
|
|
623
|
+
} | null | undefined;
|
|
505
624
|
canImpersonateUsers?: {
|
|
506
625
|
id: string;
|
|
507
626
|
firstName: string;
|
|
@@ -516,6 +635,10 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
516
635
|
createdAt: string | Date;
|
|
517
636
|
updatedAt: string | Date;
|
|
518
637
|
} | null | undefined;
|
|
638
|
+
leadDistributionConfig?: {
|
|
639
|
+
id: string;
|
|
640
|
+
name: string;
|
|
641
|
+
} | null | undefined;
|
|
519
642
|
}[];
|
|
520
643
|
totalCount: number;
|
|
521
644
|
skip: number;
|
|
@@ -588,6 +711,7 @@ export type FilterAgentLeadDistribution = z.infer<typeof FilterAgentLeadDistribu
|
|
|
588
711
|
export type PaginatedAgentLeadDistributionResponse = z.infer<typeof PaginatedAgentLeadDistributionResponseSchema>;
|
|
589
712
|
export type BatchUpdateAgentLeadDistribution = z.infer<typeof BatchUpdateAgentLeadDistributionSchema>;
|
|
590
713
|
export type BatchDeleteAgentLeadDistribution = z.infer<typeof BatchDeleteAgentLeadDistributionSchema>;
|
|
714
|
+
export type AgentLeadDistributionConfigRef = z.infer<typeof AgentLeadDistributionConfigRefSchema>;
|
|
591
715
|
export type BatchResult = z.infer<typeof BatchResultSchema>;
|
|
592
716
|
export declare const agentLeadDistributionContract: {
|
|
593
717
|
findAll: {
|
|
@@ -742,7 +866,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
742
866
|
isPrimary?: boolean | undefined;
|
|
743
867
|
}>, "many">>>;
|
|
744
868
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
745
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
869
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
870
|
+
id: z.ZodString;
|
|
871
|
+
name: z.ZodString;
|
|
872
|
+
}, "strip", z.ZodTypeAny, {
|
|
873
|
+
id: string;
|
|
874
|
+
name: string;
|
|
875
|
+
}, {
|
|
876
|
+
id: string;
|
|
877
|
+
name: string;
|
|
878
|
+
}>>>;
|
|
746
879
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
747
880
|
id: z.ZodString;
|
|
748
881
|
firstName: z.ZodString;
|
|
@@ -772,7 +905,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
772
905
|
description?: string | null | undefined;
|
|
773
906
|
}[];
|
|
774
907
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
775
|
-
office?:
|
|
908
|
+
office?: {
|
|
909
|
+
id: string;
|
|
910
|
+
name: string;
|
|
911
|
+
} | null | undefined;
|
|
776
912
|
canImpersonateUsers?: {
|
|
777
913
|
id: string;
|
|
778
914
|
firstName: string;
|
|
@@ -792,13 +928,33 @@ export declare const agentLeadDistributionContract: {
|
|
|
792
928
|
isPrimary?: boolean | undefined;
|
|
793
929
|
}[] | undefined;
|
|
794
930
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
795
|
-
office?:
|
|
931
|
+
office?: {
|
|
932
|
+
id: string;
|
|
933
|
+
name: string;
|
|
934
|
+
} | null | undefined;
|
|
796
935
|
canImpersonateUsers?: {
|
|
797
936
|
id: string;
|
|
798
937
|
firstName: string;
|
|
799
938
|
lastName: string;
|
|
800
939
|
}[] | undefined;
|
|
801
940
|
}>;
|
|
941
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
942
|
+
id: z.ZodString;
|
|
943
|
+
name: z.ZodString;
|
|
944
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
945
|
+
lowShare: z.ZodNumber;
|
|
946
|
+
mediumShare: z.ZodNumber;
|
|
947
|
+
highShare: z.ZodNumber;
|
|
948
|
+
mediumMinWeight: z.ZodNumber;
|
|
949
|
+
highMinWeight: z.ZodNumber;
|
|
950
|
+
isActive: z.ZodBoolean;
|
|
951
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
952
|
+
id: string;
|
|
953
|
+
name: string;
|
|
954
|
+
}, {
|
|
955
|
+
id: string;
|
|
956
|
+
name: string;
|
|
957
|
+
}>>>;
|
|
802
958
|
}, "strip", z.ZodTypeAny, {
|
|
803
959
|
agentId: string;
|
|
804
960
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -817,7 +973,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
817
973
|
description?: string | null | undefined;
|
|
818
974
|
}[];
|
|
819
975
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
820
|
-
office?:
|
|
976
|
+
office?: {
|
|
977
|
+
id: string;
|
|
978
|
+
name: string;
|
|
979
|
+
} | null | undefined;
|
|
821
980
|
canImpersonateUsers?: {
|
|
822
981
|
id: string;
|
|
823
982
|
firstName: string;
|
|
@@ -832,6 +991,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
832
991
|
createdAt: string;
|
|
833
992
|
updatedAt: string;
|
|
834
993
|
} | null | undefined;
|
|
994
|
+
leadDistributionConfig?: {
|
|
995
|
+
id: string;
|
|
996
|
+
name: string;
|
|
997
|
+
} | null | undefined;
|
|
835
998
|
}, {
|
|
836
999
|
agentId: string;
|
|
837
1000
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -850,7 +1013,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
850
1013
|
isPrimary?: boolean | undefined;
|
|
851
1014
|
}[] | undefined;
|
|
852
1015
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
853
|
-
office?:
|
|
1016
|
+
office?: {
|
|
1017
|
+
id: string;
|
|
1018
|
+
name: string;
|
|
1019
|
+
} | null | undefined;
|
|
854
1020
|
canImpersonateUsers?: {
|
|
855
1021
|
id: string;
|
|
856
1022
|
firstName: string;
|
|
@@ -865,6 +1031,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
865
1031
|
createdAt: string | Date;
|
|
866
1032
|
updatedAt: string | Date;
|
|
867
1033
|
} | null | undefined;
|
|
1034
|
+
leadDistributionConfig?: {
|
|
1035
|
+
id: string;
|
|
1036
|
+
name: string;
|
|
1037
|
+
} | null | undefined;
|
|
868
1038
|
}>, "many">;
|
|
869
1039
|
totalCount: z.ZodNumber;
|
|
870
1040
|
limit: z.ZodNumber;
|
|
@@ -891,7 +1061,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
891
1061
|
description?: string | null | undefined;
|
|
892
1062
|
}[];
|
|
893
1063
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
894
|
-
office?:
|
|
1064
|
+
office?: {
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
} | null | undefined;
|
|
895
1068
|
canImpersonateUsers?: {
|
|
896
1069
|
id: string;
|
|
897
1070
|
firstName: string;
|
|
@@ -906,6 +1079,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
906
1079
|
createdAt: string;
|
|
907
1080
|
updatedAt: string;
|
|
908
1081
|
} | null | undefined;
|
|
1082
|
+
leadDistributionConfig?: {
|
|
1083
|
+
id: string;
|
|
1084
|
+
name: string;
|
|
1085
|
+
} | null | undefined;
|
|
909
1086
|
}[];
|
|
910
1087
|
totalCount: number;
|
|
911
1088
|
skip: number;
|
|
@@ -931,7 +1108,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
931
1108
|
isPrimary?: boolean | undefined;
|
|
932
1109
|
}[] | undefined;
|
|
933
1110
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
934
|
-
office?:
|
|
1111
|
+
office?: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
name: string;
|
|
1114
|
+
} | null | undefined;
|
|
935
1115
|
canImpersonateUsers?: {
|
|
936
1116
|
id: string;
|
|
937
1117
|
firstName: string;
|
|
@@ -946,6 +1126,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
946
1126
|
createdAt: string | Date;
|
|
947
1127
|
updatedAt: string | Date;
|
|
948
1128
|
} | null | undefined;
|
|
1129
|
+
leadDistributionConfig?: {
|
|
1130
|
+
id: string;
|
|
1131
|
+
name: string;
|
|
1132
|
+
} | null | undefined;
|
|
949
1133
|
}[];
|
|
950
1134
|
totalCount: number;
|
|
951
1135
|
skip: number;
|
|
@@ -1114,7 +1298,16 @@ export declare const agentLeadDistributionContract: {
|
|
|
1114
1298
|
isPrimary?: boolean | undefined;
|
|
1115
1299
|
}>, "many">>>;
|
|
1116
1300
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1117
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
1301
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1302
|
+
id: z.ZodString;
|
|
1303
|
+
name: z.ZodString;
|
|
1304
|
+
}, "strip", z.ZodTypeAny, {
|
|
1305
|
+
id: string;
|
|
1306
|
+
name: string;
|
|
1307
|
+
}, {
|
|
1308
|
+
id: string;
|
|
1309
|
+
name: string;
|
|
1310
|
+
}>>>;
|
|
1118
1311
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1119
1312
|
id: z.ZodString;
|
|
1120
1313
|
firstName: z.ZodString;
|
|
@@ -1144,7 +1337,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1144
1337
|
description?: string | null | undefined;
|
|
1145
1338
|
}[];
|
|
1146
1339
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1147
|
-
office?:
|
|
1340
|
+
office?: {
|
|
1341
|
+
id: string;
|
|
1342
|
+
name: string;
|
|
1343
|
+
} | null | undefined;
|
|
1148
1344
|
canImpersonateUsers?: {
|
|
1149
1345
|
id: string;
|
|
1150
1346
|
firstName: string;
|
|
@@ -1164,13 +1360,33 @@ export declare const agentLeadDistributionContract: {
|
|
|
1164
1360
|
isPrimary?: boolean | undefined;
|
|
1165
1361
|
}[] | undefined;
|
|
1166
1362
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1167
|
-
office?:
|
|
1363
|
+
office?: {
|
|
1364
|
+
id: string;
|
|
1365
|
+
name: string;
|
|
1366
|
+
} | null | undefined;
|
|
1168
1367
|
canImpersonateUsers?: {
|
|
1169
1368
|
id: string;
|
|
1170
1369
|
firstName: string;
|
|
1171
1370
|
lastName: string;
|
|
1172
1371
|
}[] | undefined;
|
|
1173
1372
|
}>;
|
|
1373
|
+
leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
1374
|
+
id: z.ZodString;
|
|
1375
|
+
name: z.ZodString;
|
|
1376
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1377
|
+
lowShare: z.ZodNumber;
|
|
1378
|
+
mediumShare: z.ZodNumber;
|
|
1379
|
+
highShare: z.ZodNumber;
|
|
1380
|
+
mediumMinWeight: z.ZodNumber;
|
|
1381
|
+
highMinWeight: z.ZodNumber;
|
|
1382
|
+
isActive: z.ZodBoolean;
|
|
1383
|
+
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1384
|
+
id: string;
|
|
1385
|
+
name: string;
|
|
1386
|
+
}, {
|
|
1387
|
+
id: string;
|
|
1388
|
+
name: string;
|
|
1389
|
+
}>>>;
|
|
1174
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1175
1391
|
agentId: string;
|
|
1176
1392
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -1189,7 +1405,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1189
1405
|
description?: string | null | undefined;
|
|
1190
1406
|
}[];
|
|
1191
1407
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1192
|
-
office?:
|
|
1408
|
+
office?: {
|
|
1409
|
+
id: string;
|
|
1410
|
+
name: string;
|
|
1411
|
+
} | null | undefined;
|
|
1193
1412
|
canImpersonateUsers?: {
|
|
1194
1413
|
id: string;
|
|
1195
1414
|
firstName: string;
|
|
@@ -1204,6 +1423,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1204
1423
|
createdAt: string;
|
|
1205
1424
|
updatedAt: string;
|
|
1206
1425
|
} | null | undefined;
|
|
1426
|
+
leadDistributionConfig?: {
|
|
1427
|
+
id: string;
|
|
1428
|
+
name: string;
|
|
1429
|
+
} | null | undefined;
|
|
1207
1430
|
}, {
|
|
1208
1431
|
agentId: string;
|
|
1209
1432
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
@@ -1222,7 +1445,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1222
1445
|
isPrimary?: boolean | undefined;
|
|
1223
1446
|
}[] | undefined;
|
|
1224
1447
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1225
|
-
office?:
|
|
1448
|
+
office?: {
|
|
1449
|
+
id: string;
|
|
1450
|
+
name: string;
|
|
1451
|
+
} | null | undefined;
|
|
1226
1452
|
canImpersonateUsers?: {
|
|
1227
1453
|
id: string;
|
|
1228
1454
|
firstName: string;
|
|
@@ -1237,6 +1463,10 @@ export declare const agentLeadDistributionContract: {
|
|
|
1237
1463
|
createdAt: string | Date;
|
|
1238
1464
|
updatedAt: string | Date;
|
|
1239
1465
|
} | null | undefined;
|
|
1466
|
+
leadDistributionConfig?: {
|
|
1467
|
+
id: string;
|
|
1468
|
+
name: string;
|
|
1469
|
+
} | null | undefined;
|
|
1240
1470
|
}>;
|
|
1241
1471
|
404: z.ZodObject<{
|
|
1242
1472
|
statusCode: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;IAIE,CAAC;AAEpD,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAiBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAgBM,CAAC;AAEr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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHzC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.agentLeadDistributionContract = exports.BatchResultSchema = exports.BatchDeleteAgentLeadDistributionSchema = exports.BatchUpdateAgentLeadDistributionSchema = exports.PaginatedAgentLeadDistributionResponseSchema = exports.FilterAgentLeadDistributionSchema = exports.UpdateAgentLeadDistributionSchema = exports.CreateAgentLeadDistributionSchema = exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionSchema = exports.AgentLeadDistributionStatusSchema = void 0;
|
|
3
|
+
exports.agentLeadDistributionContract = exports.BatchResultSchema = exports.BatchDeleteAgentLeadDistributionSchema = exports.BatchUpdateAgentLeadDistributionSchema = exports.PaginatedAgentLeadDistributionResponseSchema = exports.FilterAgentLeadDistributionSchema = exports.UpdateAgentLeadDistributionSchema = exports.CreateAgentLeadDistributionSchema = exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionConfigRefSchema = exports.AgentLeadDistributionSchema = exports.AgentLeadDistributionStatusSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const core_1 = require("@ts-rest/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -8,6 +8,7 @@ const error_schemas_1 = require("../common/error-schemas");
|
|
|
8
8
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
9
9
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
10
10
|
const companies_contract_1 = require("../companies/companies.contract");
|
|
11
|
+
const lead_distribution_config_contract_1 = require("./lead-distribution-config.contract");
|
|
11
12
|
const users_contract_1 = require("../users/users.contract");
|
|
12
13
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
13
14
|
const c = (0, core_1.initContract)();
|
|
@@ -37,9 +38,14 @@ exports.AgentLeadDistributionSchema = zod_1.z
|
|
|
37
38
|
.describe('Company associated with this agent distribution'),
|
|
38
39
|
})
|
|
39
40
|
.openapi({ title: 'AgentLeadDistribution' });
|
|
41
|
+
exports.AgentLeadDistributionConfigRefSchema = lead_distribution_config_contract_1.LeadDistributionConfigSchema.pick({ id: true, name: true })
|
|
42
|
+
.nullable()
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Lead distribution config reference');
|
|
40
45
|
exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionSchema.extend({
|
|
41
46
|
id: zod_1.z.string().uuid().describe('Record ID'),
|
|
42
47
|
agent: users_contract_1.UserSchema.describe('Agent details'),
|
|
48
|
+
leadDistributionConfig: exports.AgentLeadDistributionConfigRefSchema,
|
|
43
49
|
}).openapi({ title: 'AgentLeadDistributionWithAgent' });
|
|
44
50
|
exports.CreateAgentLeadDistributionSchema = zod_1.z
|
|
45
51
|
.object({
|