@dakkitor/api-contracts 1.7.1 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +1 -0
- package/dist/abilities/abilities.contract.spec.js +50 -19
- package/dist/abilities/interconnection.abilities.json +6 -0
- package/dist/abilities/outreach.abilities.json +0 -7
- package/dist/abilities/second-agent.abilities.json +18 -91
- package/dist/abilities/team-leads.json +1 -0
- package/dist/abilities/worker-curator.abilities.json +2 -0
- package/dist/actives/actives.contract.d.ts +7083 -6905
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1645 -1543
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +73 -67
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.js +1 -0
- package/dist/bookings/backdate-guard.spec.d.ts +2 -0
- package/dist/bookings/backdate-guard.spec.d.ts.map +1 -0
- package/dist/bookings/backdate-guard.spec.js +80 -0
- package/dist/bookings/bookings.contract.d.ts +11169 -10843
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +26 -2
- package/dist/call-history/call-history.contract.d.ts +913 -876
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +126 -119
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +206 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +290 -290
- package/dist/clients/clients.contract.d.ts +110 -110
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3052 -2948
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2640 -2543
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/common/common-schemas.d.ts +13 -13
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -0
- package/dist/common/nino.d.ts +8 -0
- package/dist/common/nino.d.ts.map +1 -0
- package/dist/common/nino.js +26 -0
- package/dist/common/nino.spec.d.ts +2 -0
- package/dist/common/nino.spec.d.ts.map +1 -0
- package/dist/common/nino.spec.js +32 -0
- package/dist/companies/companies.contract.d.ts +30 -30
- package/dist/crews/crews.contract.d.ts +300 -300
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -13
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +2 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts +2 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts.map +1 -0
- package/dist/cron-executions/cron-executions.contract.spec.js +27 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts +2 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.js +59 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3483 -2798
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +59 -10
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +11 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +429 -386
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/contact-history.spec.js +56 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +2 -85
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +17 -41
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.js +30 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +30 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5821 -5144
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +64 -12
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +96 -96
- package/dist/curated-workers/curated-workers.contract.d.ts +1518 -1307
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +37 -6
- package/dist/dashboards/dashboard-widgets.contract.d.ts +425 -455
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +1 -11
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.js +22 -0
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/document-intake/document-intake.automation.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.automation.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.automation.spec.js +469 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.card-side.spec.js +51 -0
- package/dist/document-intake/document-intake.contract.d.ts +9421 -1071
- package/dist/document-intake/document-intake.contract.d.ts.map +1 -1
- package/dist/document-intake/document-intake.contract.js +219 -5
- package/dist/document-intake/document-intake.contract.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.contract.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.contract.spec.js +37 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.nino.spec.js +42 -0
- package/dist/export-jobs/export-jobs.contract.d.ts +670 -670
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +36 -36
- package/dist/index.d.ts +21 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -9
- package/dist/job-clusters/job-clusters.contract.d.ts +52 -52
- package/dist/jobs/jobs.contract.d.ts +8714 -8456
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1290 -1219
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +330 -306
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +10 -10
- package/dist/leads/leads.contract.d.ts +245 -245
- package/dist/locations/locations.contract.d.ts +46 -46
- package/dist/notifications/notifications.contract.d.ts +85 -85
- package/dist/offices/offices.contract.d.ts +24 -24
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +27 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/lab-outreach.contract.d.ts +48 -48
- package/dist/outreach/outreach-requests.contract.d.ts +272 -272
- package/dist/outreach/outreach-requests.schemas.d.ts +14 -14
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/outreach/relay-hub-outreach.contract.d.ts +1334 -0
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.js +113 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +145 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +1152 -1067
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/proofs/proofs.contract.d.ts +196 -196
- package/dist/proofs/proofs.dtos.d.ts +104 -104
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/realtime/realtime-telemetry.contract.d.ts +181 -0
- package/dist/realtime/realtime-telemetry.contract.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.js +81 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts +2 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.spec.js +41 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts +9 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.js +17 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts +2 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.js +20 -0
- package/dist/relay-pods/relay-hub.contract.d.ts +1463 -0
- package/dist/relay-pods/relay-hub.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.js +140 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.spec.js +180 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts +577 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.schemas.js +158 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +81 -81
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +53 -53
- package/dist/{curated-worker-leads/lead-agent-area.contract.d.ts → relay-pods/relay-pod-members.contract.d.ts} +233 -126
- package/dist/relay-pods/relay-pod-members.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-members.contract.js +73 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +58 -58
- package/dist/relay-pods/relay-pods.contract.d.ts +169 -169
- package/dist/relay-pods/relay-pods.schemas.d.ts +46 -46
- package/dist/shared/summary-schemas.d.ts +10 -10
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +22 -2
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +30 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync-events.schemas.js +16 -1
- package/dist/sheets-sync/sheets-sync.contract.d.ts +829 -262
- package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync.contract.js +156 -34
- package/dist/telegram/telegram.contract.d.ts +12 -12
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/user-access-grants/user-access-grants.contract.d.ts +383 -383
- package/dist/users/__tests__/assignable-roles.spec.js +1 -1
- package/dist/users/users.contract.d.ts +462 -431
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +19 -8
- package/dist/users/users.contract.spec.js +54 -0
- package/dist/voice-screener/voice-screener.contract.d.ts +237 -0
- package/dist/voice-screener/voice-screener.contract.d.ts.map +1 -0
- package/dist/voice-screener/voice-screener.contract.js +89 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +500 -260
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-identity-cases/worker-identity-cases.contract.js +17 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +130 -130
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +151 -151
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +15 -15
- package/dist/workers/do-not-contact.contract.d.ts +4 -4
- package/dist/workers/qualification-back-proof.spec.d.ts +2 -0
- package/dist/workers/qualification-back-proof.spec.d.ts.map +1 -0
- package/dist/workers/qualification-back-proof.spec.js +39 -0
- package/dist/workers/workers.contract.d.ts +3416 -3178
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +17 -0
- package/package.json +1 -1
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +0 -4527
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/consent-queue.contract.js +0 -201
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +0 -135
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/curated-worker-leads.contract.js +0 -32
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.js +0 -51
|
@@ -6,14 +6,17 @@ export declare const UserRoleSchema: z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_
|
|
|
6
6
|
* rule: INTERCONNECTION is a modifier role (it only lifts curated-lead
|
|
7
7
|
* scoping) and is only valid alongside SECOND_AGENT.
|
|
8
8
|
*
|
|
9
|
-
* OUTREACH is a
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* OUTREACH is valid either as a modifier on the SECOND_AGENT + INTERCONNECTION
|
|
10
|
+
* pair, or paired with FIRST_AGENT alone for lab-only outreach. The two
|
|
11
|
+
* pairings grant different things (see CaslAbilityFactory): only the former
|
|
12
|
+
* gets OutreachRequest authority, while relay pod access itself is
|
|
13
|
+
* membership-derived and applies to both. No separate "not with ADMIN" rule
|
|
14
|
+
* is needed for the SECOND_AGENT + INTERCONNECTION case — INTERCONNECTION
|
|
15
|
+
* already forbids ADMIN and WORKER_CURATOR, so the exclusion is transitive.
|
|
14
16
|
*/
|
|
15
17
|
export declare const AssignableRolesSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">, ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[], ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[]>, ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[], ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[]>, ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[], ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[]>;
|
|
16
18
|
export declare const UserStatusSchema: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
19
|
+
export declare const DialpadUserIdSchema: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>;
|
|
17
20
|
export declare const UserSortableFieldsSchema: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
18
21
|
/** Maps sort field values to ability field paths on SortUserSchema. */
|
|
19
22
|
export declare const UserSortFieldMapping: Record<string, string>;
|
|
@@ -53,23 +56,23 @@ export declare const UpsertUserPhoneNumberSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
56
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
57
|
}, "strip", z.ZodTypeAny, {
|
|
55
58
|
id?: string | undefined;
|
|
56
|
-
phoneNumber?: string | undefined;
|
|
57
59
|
description?: string | null | undefined;
|
|
60
|
+
phoneNumber?: string | undefined;
|
|
58
61
|
isPrimary?: boolean | undefined;
|
|
59
62
|
}, {
|
|
60
63
|
id?: string | undefined;
|
|
61
|
-
phoneNumber?: string | undefined;
|
|
62
64
|
description?: string | null | undefined;
|
|
65
|
+
phoneNumber?: string | undefined;
|
|
63
66
|
isPrimary?: boolean | undefined;
|
|
64
67
|
}>, {
|
|
65
68
|
id?: string | undefined;
|
|
66
|
-
phoneNumber?: string | undefined;
|
|
67
69
|
description?: string | null | undefined;
|
|
70
|
+
phoneNumber?: string | undefined;
|
|
68
71
|
isPrimary?: boolean | undefined;
|
|
69
72
|
}, {
|
|
70
73
|
id?: string | undefined;
|
|
71
|
-
phoneNumber?: string | undefined;
|
|
72
74
|
description?: string | null | undefined;
|
|
75
|
+
phoneNumber?: string | undefined;
|
|
73
76
|
isPrimary?: boolean | undefined;
|
|
74
77
|
}>;
|
|
75
78
|
export declare const UserAutocompleteResponseSchema: z.ZodObject<{
|
|
@@ -78,12 +81,12 @@ export declare const UserAutocompleteResponseSchema: z.ZodObject<{
|
|
|
78
81
|
lastName: z.ZodString;
|
|
79
82
|
}, "strip", z.ZodTypeAny, {
|
|
80
83
|
id: string;
|
|
81
|
-
firstName: string;
|
|
82
84
|
lastName: string;
|
|
85
|
+
firstName: string;
|
|
83
86
|
}, {
|
|
84
87
|
id: string;
|
|
85
|
-
firstName: string;
|
|
86
88
|
lastName: string;
|
|
89
|
+
firstName: string;
|
|
87
90
|
}>;
|
|
88
91
|
export declare const UserAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
89
92
|
id: z.ZodString;
|
|
@@ -91,12 +94,12 @@ export declare const UserAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
91
94
|
lastName: z.ZodString;
|
|
92
95
|
}, "strip", z.ZodTypeAny, {
|
|
93
96
|
id: string;
|
|
94
|
-
firstName: string;
|
|
95
97
|
lastName: string;
|
|
98
|
+
firstName: string;
|
|
96
99
|
}, {
|
|
97
100
|
id: string;
|
|
98
|
-
firstName: string;
|
|
99
101
|
lastName: string;
|
|
102
|
+
firstName: string;
|
|
100
103
|
}>, "many">;
|
|
101
104
|
export declare const RolesFilterSchema: z.ZodObject<{
|
|
102
105
|
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
@@ -140,28 +143,28 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
140
143
|
lastName: z.ZodString;
|
|
141
144
|
}, "strip", z.ZodTypeAny, {
|
|
142
145
|
id: string;
|
|
143
|
-
firstName: string;
|
|
144
146
|
lastName: string;
|
|
147
|
+
firstName: string;
|
|
145
148
|
}, {
|
|
146
149
|
id: string;
|
|
147
|
-
firstName: string;
|
|
148
150
|
lastName: string;
|
|
151
|
+
firstName: string;
|
|
149
152
|
}>, "many">>;
|
|
150
153
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
id: string;
|
|
152
154
|
name: string;
|
|
155
|
+
id: string;
|
|
153
156
|
managers?: {
|
|
154
157
|
id: string;
|
|
155
|
-
firstName: string;
|
|
156
158
|
lastName: string;
|
|
159
|
+
firstName: string;
|
|
157
160
|
}[] | undefined;
|
|
158
161
|
}, {
|
|
159
|
-
id: string;
|
|
160
162
|
name: string;
|
|
163
|
+
id: string;
|
|
161
164
|
managers?: {
|
|
162
165
|
id: string;
|
|
163
|
-
firstName: string;
|
|
164
166
|
lastName: string;
|
|
167
|
+
firstName: string;
|
|
165
168
|
}[] | undefined;
|
|
166
169
|
}>>>;
|
|
167
170
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -170,63 +173,67 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
170
173
|
lastName: z.ZodString;
|
|
171
174
|
}, "strip", z.ZodTypeAny, {
|
|
172
175
|
id: string;
|
|
173
|
-
firstName: string;
|
|
174
176
|
lastName: string;
|
|
177
|
+
firstName: string;
|
|
175
178
|
}, {
|
|
176
179
|
id: string;
|
|
177
|
-
firstName: string;
|
|
178
180
|
lastName: string;
|
|
181
|
+
firstName: string;
|
|
179
182
|
}>, "many">>;
|
|
180
183
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
184
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
181
185
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
182
186
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
183
187
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
184
188
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
status: "ACTIVE" | "INACTIVE";
|
|
186
|
-
id: string;
|
|
187
|
-
firstName: string;
|
|
188
|
-
lastName: string;
|
|
189
189
|
email: string;
|
|
190
190
|
createdAt: string;
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
id: string;
|
|
193
|
+
status: "ACTIVE" | "INACTIVE";
|
|
194
|
+
lastName: string;
|
|
195
|
+
firstName: string;
|
|
191
196
|
phoneNumbers: {
|
|
192
197
|
id: string;
|
|
193
198
|
phoneNumber: string;
|
|
194
199
|
isPrimary: boolean;
|
|
195
200
|
description?: string | null | undefined;
|
|
196
201
|
}[];
|
|
197
|
-
|
|
202
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
203
|
+
officeId?: string | null | undefined;
|
|
198
204
|
office?: {
|
|
199
|
-
id: string;
|
|
200
205
|
name: string;
|
|
206
|
+
id: string;
|
|
201
207
|
managers?: {
|
|
202
208
|
id: string;
|
|
203
|
-
firstName: string;
|
|
204
209
|
lastName: string;
|
|
210
|
+
firstName: string;
|
|
205
211
|
}[] | undefined;
|
|
206
212
|
} | null | undefined;
|
|
207
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
208
|
-
officeId?: string | null | undefined;
|
|
209
213
|
canImpersonateUsers?: {
|
|
210
214
|
id: string;
|
|
211
|
-
firstName: string;
|
|
212
215
|
lastName: string;
|
|
216
|
+
firstName: string;
|
|
213
217
|
}[] | undefined;
|
|
218
|
+
dialpadUserId?: string | null | undefined;
|
|
214
219
|
deletedAt?: string | null | undefined;
|
|
215
220
|
}, {
|
|
216
|
-
status: "ACTIVE" | "INACTIVE";
|
|
217
|
-
id: string;
|
|
218
|
-
firstName: string;
|
|
219
|
-
lastName: string;
|
|
220
221
|
email: string;
|
|
221
222
|
createdAt: string | Date;
|
|
222
223
|
updatedAt: string | Date;
|
|
224
|
+
id: string;
|
|
225
|
+
status: "ACTIVE" | "INACTIVE";
|
|
226
|
+
lastName: string;
|
|
227
|
+
firstName: string;
|
|
228
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
229
|
+
officeId?: string | null | undefined;
|
|
223
230
|
office?: {
|
|
224
|
-
id: string;
|
|
225
231
|
name: string;
|
|
232
|
+
id: string;
|
|
226
233
|
managers?: {
|
|
227
234
|
id: string;
|
|
228
|
-
firstName: string;
|
|
229
235
|
lastName: string;
|
|
236
|
+
firstName: string;
|
|
230
237
|
}[] | undefined;
|
|
231
238
|
} | null | undefined;
|
|
232
239
|
phoneNumbers?: {
|
|
@@ -235,13 +242,12 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
235
242
|
description?: string | null | undefined;
|
|
236
243
|
isPrimary?: boolean | undefined;
|
|
237
244
|
}[] | undefined;
|
|
238
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
239
|
-
officeId?: string | null | undefined;
|
|
240
245
|
canImpersonateUsers?: {
|
|
241
246
|
id: string;
|
|
242
|
-
firstName: string;
|
|
243
247
|
lastName: string;
|
|
248
|
+
firstName: string;
|
|
244
249
|
}[] | undefined;
|
|
250
|
+
dialpadUserId?: string | null | undefined;
|
|
245
251
|
deletedAt?: string | Date | null | undefined;
|
|
246
252
|
}>;
|
|
247
253
|
export declare const CreateUserSchema: z.ZodObject<{
|
|
@@ -274,28 +280,28 @@ export declare const CreateUserSchema: z.ZodObject<{
|
|
|
274
280
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
281
|
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>>;
|
|
276
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
password: string;
|
|
284
|
+
email: string;
|
|
277
285
|
status: "ACTIVE" | "INACTIVE";
|
|
278
|
-
firstName: string;
|
|
279
286
|
lastName: string;
|
|
280
|
-
|
|
287
|
+
firstName: string;
|
|
281
288
|
phoneNumbers: {
|
|
282
289
|
phoneNumber: string;
|
|
283
290
|
isPrimary: boolean;
|
|
284
291
|
description?: string | null | undefined;
|
|
285
292
|
}[];
|
|
286
|
-
password: string;
|
|
287
293
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
288
294
|
officeId?: string | null | undefined;
|
|
289
295
|
}, {
|
|
290
|
-
|
|
291
|
-
lastName: string;
|
|
296
|
+
password: string;
|
|
292
297
|
email: string;
|
|
298
|
+
lastName: string;
|
|
299
|
+
firstName: string;
|
|
293
300
|
phoneNumbers: {
|
|
294
301
|
phoneNumber: string;
|
|
295
302
|
description?: string | null | undefined;
|
|
296
303
|
isPrimary?: boolean | undefined;
|
|
297
304
|
}[];
|
|
298
|
-
password: string;
|
|
299
305
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
300
306
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
301
307
|
officeId?: string | null | undefined;
|
|
@@ -311,33 +317,33 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
311
317
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
318
|
}, "strip", z.ZodTypeAny, {
|
|
313
319
|
id?: string | undefined;
|
|
314
|
-
phoneNumber?: string | undefined;
|
|
315
320
|
description?: string | null | undefined;
|
|
321
|
+
phoneNumber?: string | undefined;
|
|
316
322
|
isPrimary?: boolean | undefined;
|
|
317
323
|
}, {
|
|
318
324
|
id?: string | undefined;
|
|
319
|
-
phoneNumber?: string | undefined;
|
|
320
325
|
description?: string | null | undefined;
|
|
326
|
+
phoneNumber?: string | undefined;
|
|
321
327
|
isPrimary?: boolean | undefined;
|
|
322
328
|
}>, {
|
|
323
329
|
id?: string | undefined;
|
|
324
|
-
phoneNumber?: string | undefined;
|
|
325
330
|
description?: string | null | undefined;
|
|
331
|
+
phoneNumber?: string | undefined;
|
|
326
332
|
isPrimary?: boolean | undefined;
|
|
327
333
|
}, {
|
|
328
334
|
id?: string | undefined;
|
|
329
|
-
phoneNumber?: string | undefined;
|
|
330
335
|
description?: string | null | undefined;
|
|
336
|
+
phoneNumber?: string | undefined;
|
|
331
337
|
isPrimary?: boolean | undefined;
|
|
332
338
|
}>, "many">, {
|
|
333
339
|
id?: string | undefined;
|
|
334
|
-
phoneNumber?: string | undefined;
|
|
335
340
|
description?: string | null | undefined;
|
|
341
|
+
phoneNumber?: string | undefined;
|
|
336
342
|
isPrimary?: boolean | undefined;
|
|
337
343
|
}[], {
|
|
338
344
|
id?: string | undefined;
|
|
339
|
-
phoneNumber?: string | undefined;
|
|
340
345
|
description?: string | null | undefined;
|
|
346
|
+
phoneNumber?: string | undefined;
|
|
341
347
|
isPrimary?: boolean | undefined;
|
|
342
348
|
}[]>>;
|
|
343
349
|
password: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -345,35 +351,38 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
345
351
|
officeId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
346
352
|
canImpersonateUserIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
347
353
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>;
|
|
354
|
+
dialpadUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>>;
|
|
348
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
password?: string | undefined;
|
|
357
|
+
email?: string | undefined;
|
|
349
358
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
350
|
-
|
|
359
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
360
|
+
officeId?: string | null | undefined;
|
|
351
361
|
lastName?: string | undefined;
|
|
352
|
-
|
|
362
|
+
firstName?: string | undefined;
|
|
353
363
|
phoneNumbers?: {
|
|
354
364
|
id?: string | undefined;
|
|
355
|
-
phoneNumber?: string | undefined;
|
|
356
365
|
description?: string | null | undefined;
|
|
366
|
+
phoneNumber?: string | undefined;
|
|
357
367
|
isPrimary?: boolean | undefined;
|
|
358
368
|
}[] | undefined;
|
|
359
|
-
|
|
360
|
-
officeId?: string | null | undefined;
|
|
361
|
-
password?: string | undefined;
|
|
369
|
+
dialpadUserId?: string | null | undefined;
|
|
362
370
|
canImpersonateUserIds?: string[] | undefined;
|
|
363
371
|
}, {
|
|
372
|
+
password?: string | undefined;
|
|
373
|
+
email?: string | undefined;
|
|
364
374
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
365
|
-
|
|
375
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
376
|
+
officeId?: string | null | undefined;
|
|
366
377
|
lastName?: string | undefined;
|
|
367
|
-
|
|
378
|
+
firstName?: string | undefined;
|
|
368
379
|
phoneNumbers?: {
|
|
369
380
|
id?: string | undefined;
|
|
370
|
-
phoneNumber?: string | undefined;
|
|
371
381
|
description?: string | null | undefined;
|
|
382
|
+
phoneNumber?: string | undefined;
|
|
372
383
|
isPrimary?: boolean | undefined;
|
|
373
384
|
}[] | undefined;
|
|
374
|
-
|
|
375
|
-
officeId?: string | null | undefined;
|
|
376
|
-
password?: string | undefined;
|
|
385
|
+
dialpadUserId?: string | null | undefined;
|
|
377
386
|
canImpersonateUserIds?: string[] | undefined;
|
|
378
387
|
}>;
|
|
379
388
|
export declare const BulkUpdateUserDataSchema: z.ZodObject<{
|
|
@@ -469,60 +478,60 @@ export declare const FilterUserSchema: z.ZodObject<{
|
|
|
469
478
|
field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
470
479
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
471
480
|
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
field: "
|
|
481
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
473
482
|
order: "ASC" | "DESC";
|
|
474
483
|
}, {
|
|
475
|
-
field: "
|
|
484
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
476
485
|
order: "ASC" | "DESC";
|
|
477
486
|
}>, "many">>>;
|
|
478
487
|
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
limit: number;
|
|
480
488
|
page: number;
|
|
489
|
+
limit: number;
|
|
490
|
+
name?: string | undefined;
|
|
491
|
+
email?: string | undefined;
|
|
492
|
+
phone?: string | undefined;
|
|
481
493
|
sort?: {
|
|
482
|
-
field: "
|
|
494
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
483
495
|
order: "ASC" | "DESC";
|
|
484
496
|
}[] | null | undefined;
|
|
485
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
486
|
-
name?: string | undefined;
|
|
487
|
-
email?: string | undefined;
|
|
488
497
|
createdAt?: {
|
|
489
498
|
from?: string | null | undefined;
|
|
490
499
|
to?: string | null | undefined;
|
|
491
500
|
} | null | undefined;
|
|
501
|
+
updatedAt?: {
|
|
502
|
+
from?: string | null | undefined;
|
|
503
|
+
to?: string | null | undefined;
|
|
504
|
+
} | null | undefined;
|
|
505
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
492
506
|
roles?: {
|
|
493
507
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
494
508
|
requireAll?: boolean | undefined;
|
|
495
509
|
} | undefined;
|
|
496
510
|
officeId?: string | undefined;
|
|
497
|
-
updatedAt?: {
|
|
498
|
-
from?: string | null | undefined;
|
|
499
|
-
to?: string | null | undefined;
|
|
500
|
-
} | null | undefined;
|
|
501
|
-
phone?: string | undefined;
|
|
502
511
|
}, {
|
|
512
|
+
name?: string | undefined;
|
|
513
|
+
email?: string | undefined;
|
|
514
|
+
phone?: string | undefined;
|
|
503
515
|
sort?: {
|
|
504
|
-
field: "
|
|
516
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
505
517
|
order: "ASC" | "DESC";
|
|
506
518
|
}[] | null | undefined;
|
|
507
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
508
|
-
name?: string | undefined;
|
|
509
|
-
limit?: number | undefined;
|
|
510
|
-
page?: number | undefined;
|
|
511
|
-
email?: string | undefined;
|
|
512
519
|
createdAt?: {
|
|
513
520
|
from?: string | null | undefined;
|
|
514
521
|
to?: string | null | undefined;
|
|
515
522
|
} | null | undefined;
|
|
523
|
+
updatedAt?: {
|
|
524
|
+
from?: string | null | undefined;
|
|
525
|
+
to?: string | null | undefined;
|
|
526
|
+
} | null | undefined;
|
|
527
|
+
page?: number | undefined;
|
|
528
|
+
limit?: number | undefined;
|
|
529
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
516
530
|
roles?: {
|
|
517
531
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
518
532
|
requireAll?: unknown;
|
|
519
533
|
} | undefined;
|
|
520
534
|
officeId?: string | undefined;
|
|
521
|
-
updatedAt?: {
|
|
522
|
-
from?: string | null | undefined;
|
|
523
|
-
to?: string | null | undefined;
|
|
524
|
-
} | null | undefined;
|
|
525
|
-
phone?: string | undefined;
|
|
526
535
|
}>;
|
|
527
536
|
export declare const ProfileSchema: z.ZodObject<{
|
|
528
537
|
id: z.ZodString;
|
|
@@ -554,17 +563,17 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
554
563
|
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
555
564
|
telegramLinkedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
556
565
|
}, "strip", z.ZodTypeAny, {
|
|
557
|
-
id: string;
|
|
558
566
|
email: string;
|
|
567
|
+
id: string;
|
|
559
568
|
phoneNumbers: {
|
|
560
569
|
id: string;
|
|
561
570
|
phoneNumber: string;
|
|
562
571
|
isPrimary: boolean;
|
|
563
572
|
description?: string | null | undefined;
|
|
564
573
|
}[];
|
|
565
|
-
firstName?: string | undefined;
|
|
566
|
-
lastName?: string | undefined;
|
|
567
574
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
575
|
+
lastName?: string | undefined;
|
|
576
|
+
firstName?: string | undefined;
|
|
568
577
|
impersonatedBy?: string | undefined;
|
|
569
578
|
managedOfficeIds?: string[] | undefined;
|
|
570
579
|
avatarUrl?: string | undefined;
|
|
@@ -573,17 +582,17 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
573
582
|
telegramUsername?: string | null | undefined;
|
|
574
583
|
telegramLinkedAt?: string | null | undefined;
|
|
575
584
|
}, {
|
|
576
|
-
id: string;
|
|
577
585
|
email: string;
|
|
578
|
-
|
|
586
|
+
id: string;
|
|
587
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
579
588
|
lastName?: string | undefined;
|
|
589
|
+
firstName?: string | undefined;
|
|
580
590
|
phoneNumbers?: {
|
|
581
591
|
id: string;
|
|
582
592
|
phoneNumber: string;
|
|
583
593
|
description?: string | null | undefined;
|
|
584
594
|
isPrimary?: boolean | undefined;
|
|
585
595
|
}[] | undefined;
|
|
586
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
587
596
|
impersonatedBy?: string | undefined;
|
|
588
597
|
managedOfficeIds?: string[] | undefined;
|
|
589
598
|
avatarUrl?: string | undefined;
|
|
@@ -649,28 +658,28 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
649
658
|
lastName: z.ZodString;
|
|
650
659
|
}, "strip", z.ZodTypeAny, {
|
|
651
660
|
id: string;
|
|
652
|
-
firstName: string;
|
|
653
661
|
lastName: string;
|
|
662
|
+
firstName: string;
|
|
654
663
|
}, {
|
|
655
664
|
id: string;
|
|
656
|
-
firstName: string;
|
|
657
665
|
lastName: string;
|
|
666
|
+
firstName: string;
|
|
658
667
|
}>, "many">>;
|
|
659
668
|
}, "strip", z.ZodTypeAny, {
|
|
660
|
-
id: string;
|
|
661
669
|
name: string;
|
|
670
|
+
id: string;
|
|
662
671
|
managers?: {
|
|
663
672
|
id: string;
|
|
664
|
-
firstName: string;
|
|
665
673
|
lastName: string;
|
|
674
|
+
firstName: string;
|
|
666
675
|
}[] | undefined;
|
|
667
676
|
}, {
|
|
668
|
-
id: string;
|
|
669
677
|
name: string;
|
|
678
|
+
id: string;
|
|
670
679
|
managers?: {
|
|
671
680
|
id: string;
|
|
672
|
-
firstName: string;
|
|
673
681
|
lastName: string;
|
|
682
|
+
firstName: string;
|
|
674
683
|
}[] | undefined;
|
|
675
684
|
}>>>;
|
|
676
685
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -679,63 +688,67 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
679
688
|
lastName: z.ZodString;
|
|
680
689
|
}, "strip", z.ZodTypeAny, {
|
|
681
690
|
id: string;
|
|
682
|
-
firstName: string;
|
|
683
691
|
lastName: string;
|
|
692
|
+
firstName: string;
|
|
684
693
|
}, {
|
|
685
694
|
id: string;
|
|
686
|
-
firstName: string;
|
|
687
695
|
lastName: string;
|
|
696
|
+
firstName: string;
|
|
688
697
|
}>, "many">>;
|
|
689
698
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
699
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
690
700
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
691
701
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
692
702
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
693
703
|
}, "strip", z.ZodTypeAny, {
|
|
694
|
-
status: "ACTIVE" | "INACTIVE";
|
|
695
|
-
id: string;
|
|
696
|
-
firstName: string;
|
|
697
|
-
lastName: string;
|
|
698
704
|
email: string;
|
|
699
705
|
createdAt: string;
|
|
706
|
+
updatedAt: string;
|
|
707
|
+
id: string;
|
|
708
|
+
status: "ACTIVE" | "INACTIVE";
|
|
709
|
+
lastName: string;
|
|
710
|
+
firstName: string;
|
|
700
711
|
phoneNumbers: {
|
|
701
712
|
id: string;
|
|
702
713
|
phoneNumber: string;
|
|
703
714
|
isPrimary: boolean;
|
|
704
715
|
description?: string | null | undefined;
|
|
705
716
|
}[];
|
|
706
|
-
|
|
717
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
718
|
+
officeId?: string | null | undefined;
|
|
707
719
|
office?: {
|
|
708
|
-
id: string;
|
|
709
720
|
name: string;
|
|
721
|
+
id: string;
|
|
710
722
|
managers?: {
|
|
711
723
|
id: string;
|
|
712
|
-
firstName: string;
|
|
713
724
|
lastName: string;
|
|
725
|
+
firstName: string;
|
|
714
726
|
}[] | undefined;
|
|
715
727
|
} | null | undefined;
|
|
716
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
717
|
-
officeId?: string | null | undefined;
|
|
718
728
|
canImpersonateUsers?: {
|
|
719
729
|
id: string;
|
|
720
|
-
firstName: string;
|
|
721
730
|
lastName: string;
|
|
731
|
+
firstName: string;
|
|
722
732
|
}[] | undefined;
|
|
733
|
+
dialpadUserId?: string | null | undefined;
|
|
723
734
|
deletedAt?: string | null | undefined;
|
|
724
735
|
}, {
|
|
725
|
-
status: "ACTIVE" | "INACTIVE";
|
|
726
|
-
id: string;
|
|
727
|
-
firstName: string;
|
|
728
|
-
lastName: string;
|
|
729
736
|
email: string;
|
|
730
737
|
createdAt: string | Date;
|
|
731
738
|
updatedAt: string | Date;
|
|
739
|
+
id: string;
|
|
740
|
+
status: "ACTIVE" | "INACTIVE";
|
|
741
|
+
lastName: string;
|
|
742
|
+
firstName: string;
|
|
743
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
744
|
+
officeId?: string | null | undefined;
|
|
732
745
|
office?: {
|
|
733
|
-
id: string;
|
|
734
746
|
name: string;
|
|
747
|
+
id: string;
|
|
735
748
|
managers?: {
|
|
736
749
|
id: string;
|
|
737
|
-
firstName: string;
|
|
738
750
|
lastName: string;
|
|
751
|
+
firstName: string;
|
|
739
752
|
}[] | undefined;
|
|
740
753
|
} | null | undefined;
|
|
741
754
|
phoneNumbers?: {
|
|
@@ -744,13 +757,12 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
744
757
|
description?: string | null | undefined;
|
|
745
758
|
isPrimary?: boolean | undefined;
|
|
746
759
|
}[] | undefined;
|
|
747
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
748
|
-
officeId?: string | null | undefined;
|
|
749
760
|
canImpersonateUsers?: {
|
|
750
761
|
id: string;
|
|
751
|
-
firstName: string;
|
|
752
762
|
lastName: string;
|
|
763
|
+
firstName: string;
|
|
753
764
|
}[] | undefined;
|
|
765
|
+
dialpadUserId?: string | null | undefined;
|
|
754
766
|
deletedAt?: string | Date | null | undefined;
|
|
755
767
|
}>, "many">;
|
|
756
768
|
totalCount: z.ZodNumber;
|
|
@@ -761,35 +773,36 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
761
773
|
}, "strip", z.ZodTypeAny, {
|
|
762
774
|
limit: number;
|
|
763
775
|
items: {
|
|
764
|
-
status: "ACTIVE" | "INACTIVE";
|
|
765
|
-
id: string;
|
|
766
|
-
firstName: string;
|
|
767
|
-
lastName: string;
|
|
768
776
|
email: string;
|
|
769
777
|
createdAt: string;
|
|
778
|
+
updatedAt: string;
|
|
779
|
+
id: string;
|
|
780
|
+
status: "ACTIVE" | "INACTIVE";
|
|
781
|
+
lastName: string;
|
|
782
|
+
firstName: string;
|
|
770
783
|
phoneNumbers: {
|
|
771
784
|
id: string;
|
|
772
785
|
phoneNumber: string;
|
|
773
786
|
isPrimary: boolean;
|
|
774
787
|
description?: string | null | undefined;
|
|
775
788
|
}[];
|
|
776
|
-
|
|
789
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
790
|
+
officeId?: string | null | undefined;
|
|
777
791
|
office?: {
|
|
778
|
-
id: string;
|
|
779
792
|
name: string;
|
|
793
|
+
id: string;
|
|
780
794
|
managers?: {
|
|
781
795
|
id: string;
|
|
782
|
-
firstName: string;
|
|
783
796
|
lastName: string;
|
|
797
|
+
firstName: string;
|
|
784
798
|
}[] | undefined;
|
|
785
799
|
} | null | undefined;
|
|
786
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
787
|
-
officeId?: string | null | undefined;
|
|
788
800
|
canImpersonateUsers?: {
|
|
789
801
|
id: string;
|
|
790
|
-
firstName: string;
|
|
791
802
|
lastName: string;
|
|
803
|
+
firstName: string;
|
|
792
804
|
}[] | undefined;
|
|
805
|
+
dialpadUserId?: string | null | undefined;
|
|
793
806
|
deletedAt?: string | null | undefined;
|
|
794
807
|
}[];
|
|
795
808
|
totalCount: number;
|
|
@@ -799,20 +812,22 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
799
812
|
}, {
|
|
800
813
|
limit: number;
|
|
801
814
|
items: {
|
|
802
|
-
status: "ACTIVE" | "INACTIVE";
|
|
803
|
-
id: string;
|
|
804
|
-
firstName: string;
|
|
805
|
-
lastName: string;
|
|
806
815
|
email: string;
|
|
807
816
|
createdAt: string | Date;
|
|
808
817
|
updatedAt: string | Date;
|
|
818
|
+
id: string;
|
|
819
|
+
status: "ACTIVE" | "INACTIVE";
|
|
820
|
+
lastName: string;
|
|
821
|
+
firstName: string;
|
|
822
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
823
|
+
officeId?: string | null | undefined;
|
|
809
824
|
office?: {
|
|
810
|
-
id: string;
|
|
811
825
|
name: string;
|
|
826
|
+
id: string;
|
|
812
827
|
managers?: {
|
|
813
828
|
id: string;
|
|
814
|
-
firstName: string;
|
|
815
829
|
lastName: string;
|
|
830
|
+
firstName: string;
|
|
816
831
|
}[] | undefined;
|
|
817
832
|
} | null | undefined;
|
|
818
833
|
phoneNumbers?: {
|
|
@@ -821,13 +836,12 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
821
836
|
description?: string | null | undefined;
|
|
822
837
|
isPrimary?: boolean | undefined;
|
|
823
838
|
}[] | undefined;
|
|
824
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
825
|
-
officeId?: string | null | undefined;
|
|
826
839
|
canImpersonateUsers?: {
|
|
827
840
|
id: string;
|
|
828
|
-
firstName: string;
|
|
829
841
|
lastName: string;
|
|
842
|
+
firstName: string;
|
|
830
843
|
}[] | undefined;
|
|
844
|
+
dialpadUserId?: string | null | undefined;
|
|
831
845
|
deletedAt?: string | Date | null | undefined;
|
|
832
846
|
}[];
|
|
833
847
|
totalCount: number;
|
|
@@ -877,13 +891,13 @@ export declare const AvailabilityConflictUserSchema: z.ZodObject<{
|
|
|
877
891
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
878
892
|
}, "strip", z.ZodTypeAny, {
|
|
879
893
|
id: string;
|
|
880
|
-
firstName: string;
|
|
881
894
|
lastName: string;
|
|
895
|
+
firstName: string;
|
|
882
896
|
officeId?: string | null | undefined;
|
|
883
897
|
}, {
|
|
884
898
|
id: string;
|
|
885
|
-
firstName: string;
|
|
886
899
|
lastName: string;
|
|
900
|
+
firstName: string;
|
|
887
901
|
officeId?: string | null | undefined;
|
|
888
902
|
}>;
|
|
889
903
|
export declare const CheckUserAvailabilityQuerySchema: z.ZodObject<{
|
|
@@ -891,12 +905,12 @@ export declare const CheckUserAvailabilityQuerySchema: z.ZodObject<{
|
|
|
891
905
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
892
906
|
excludeUserId: z.ZodOptional<z.ZodString>;
|
|
893
907
|
}, "strip", z.ZodTypeAny, {
|
|
894
|
-
phoneNumber?: string | undefined;
|
|
895
908
|
email?: string | undefined;
|
|
909
|
+
phoneNumber?: string | undefined;
|
|
896
910
|
excludeUserId?: string | undefined;
|
|
897
911
|
}, {
|
|
898
|
-
phoneNumber?: string | undefined;
|
|
899
912
|
email?: string | undefined;
|
|
913
|
+
phoneNumber?: string | undefined;
|
|
900
914
|
excludeUserId?: string | undefined;
|
|
901
915
|
}>;
|
|
902
916
|
export declare const CheckUserAvailabilityResponseSchema: z.ZodObject<{
|
|
@@ -907,13 +921,13 @@ export declare const CheckUserAvailabilityResponseSchema: z.ZodObject<{
|
|
|
907
921
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
908
922
|
}, "strip", z.ZodTypeAny, {
|
|
909
923
|
id: string;
|
|
910
|
-
firstName: string;
|
|
911
924
|
lastName: string;
|
|
925
|
+
firstName: string;
|
|
912
926
|
officeId?: string | null | undefined;
|
|
913
927
|
}, {
|
|
914
928
|
id: string;
|
|
915
|
-
firstName: string;
|
|
916
929
|
lastName: string;
|
|
930
|
+
firstName: string;
|
|
917
931
|
officeId?: string | null | undefined;
|
|
918
932
|
}>>;
|
|
919
933
|
phoneNumber: z.ZodNullable<z.ZodObject<{
|
|
@@ -923,39 +937,39 @@ export declare const CheckUserAvailabilityResponseSchema: z.ZodObject<{
|
|
|
923
937
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
924
938
|
}, "strip", z.ZodTypeAny, {
|
|
925
939
|
id: string;
|
|
926
|
-
firstName: string;
|
|
927
940
|
lastName: string;
|
|
941
|
+
firstName: string;
|
|
928
942
|
officeId?: string | null | undefined;
|
|
929
943
|
}, {
|
|
930
944
|
id: string;
|
|
931
|
-
firstName: string;
|
|
932
945
|
lastName: string;
|
|
946
|
+
firstName: string;
|
|
933
947
|
officeId?: string | null | undefined;
|
|
934
948
|
}>>;
|
|
935
949
|
}, "strip", z.ZodTypeAny, {
|
|
936
|
-
|
|
950
|
+
email: {
|
|
937
951
|
id: string;
|
|
938
|
-
firstName: string;
|
|
939
952
|
lastName: string;
|
|
953
|
+
firstName: string;
|
|
940
954
|
officeId?: string | null | undefined;
|
|
941
955
|
} | null;
|
|
942
|
-
|
|
956
|
+
phoneNumber: {
|
|
943
957
|
id: string;
|
|
944
|
-
firstName: string;
|
|
945
958
|
lastName: string;
|
|
959
|
+
firstName: string;
|
|
946
960
|
officeId?: string | null | undefined;
|
|
947
961
|
} | null;
|
|
948
962
|
}, {
|
|
949
|
-
|
|
963
|
+
email: {
|
|
950
964
|
id: string;
|
|
951
|
-
firstName: string;
|
|
952
965
|
lastName: string;
|
|
966
|
+
firstName: string;
|
|
953
967
|
officeId?: string | null | undefined;
|
|
954
968
|
} | null;
|
|
955
|
-
|
|
969
|
+
phoneNumber: {
|
|
956
970
|
id: string;
|
|
957
|
-
firstName: string;
|
|
958
971
|
lastName: string;
|
|
972
|
+
firstName: string;
|
|
959
973
|
officeId?: string | null | undefined;
|
|
960
974
|
} | null;
|
|
961
975
|
}>;
|
|
@@ -1022,28 +1036,28 @@ export declare const usersContract: {
|
|
|
1022
1036
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1023
1037
|
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>>;
|
|
1024
1038
|
}, "strip", z.ZodTypeAny, {
|
|
1039
|
+
password: string;
|
|
1040
|
+
email: string;
|
|
1025
1041
|
status: "ACTIVE" | "INACTIVE";
|
|
1026
|
-
firstName: string;
|
|
1027
1042
|
lastName: string;
|
|
1028
|
-
|
|
1043
|
+
firstName: string;
|
|
1029
1044
|
phoneNumbers: {
|
|
1030
1045
|
phoneNumber: string;
|
|
1031
1046
|
isPrimary: boolean;
|
|
1032
1047
|
description?: string | null | undefined;
|
|
1033
1048
|
}[];
|
|
1034
|
-
password: string;
|
|
1035
1049
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1036
1050
|
officeId?: string | null | undefined;
|
|
1037
1051
|
}, {
|
|
1038
|
-
|
|
1039
|
-
lastName: string;
|
|
1052
|
+
password: string;
|
|
1040
1053
|
email: string;
|
|
1054
|
+
lastName: string;
|
|
1055
|
+
firstName: string;
|
|
1041
1056
|
phoneNumbers: {
|
|
1042
1057
|
phoneNumber: string;
|
|
1043
1058
|
description?: string | null | undefined;
|
|
1044
1059
|
isPrimary?: boolean | undefined;
|
|
1045
1060
|
}[];
|
|
1046
|
-
password: string;
|
|
1047
1061
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1048
1062
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1049
1063
|
officeId?: string | null | undefined;
|
|
@@ -1075,7 +1089,7 @@ export declare const usersContract: {
|
|
|
1075
1089
|
details?: unknown;
|
|
1076
1090
|
correlationId?: string | undefined;
|
|
1077
1091
|
}>;
|
|
1078
|
-
|
|
1092
|
+
403: z.ZodObject<{
|
|
1079
1093
|
statusCode: z.ZodNumber;
|
|
1080
1094
|
message: z.ZodString;
|
|
1081
1095
|
code: z.ZodString;
|
|
@@ -1100,7 +1114,7 @@ export declare const usersContract: {
|
|
|
1100
1114
|
details?: unknown;
|
|
1101
1115
|
correlationId?: string | undefined;
|
|
1102
1116
|
}>;
|
|
1103
|
-
|
|
1117
|
+
401: z.ZodObject<{
|
|
1104
1118
|
statusCode: z.ZodNumber;
|
|
1105
1119
|
message: z.ZodString;
|
|
1106
1120
|
code: z.ZodString;
|
|
@@ -1182,28 +1196,28 @@ export declare const usersContract: {
|
|
|
1182
1196
|
lastName: z.ZodString;
|
|
1183
1197
|
}, "strip", z.ZodTypeAny, {
|
|
1184
1198
|
id: string;
|
|
1185
|
-
firstName: string;
|
|
1186
1199
|
lastName: string;
|
|
1200
|
+
firstName: string;
|
|
1187
1201
|
}, {
|
|
1188
1202
|
id: string;
|
|
1189
|
-
firstName: string;
|
|
1190
1203
|
lastName: string;
|
|
1204
|
+
firstName: string;
|
|
1191
1205
|
}>, "many">>;
|
|
1192
1206
|
}, "strip", z.ZodTypeAny, {
|
|
1193
|
-
id: string;
|
|
1194
1207
|
name: string;
|
|
1208
|
+
id: string;
|
|
1195
1209
|
managers?: {
|
|
1196
1210
|
id: string;
|
|
1197
|
-
firstName: string;
|
|
1198
1211
|
lastName: string;
|
|
1212
|
+
firstName: string;
|
|
1199
1213
|
}[] | undefined;
|
|
1200
1214
|
}, {
|
|
1201
|
-
id: string;
|
|
1202
1215
|
name: string;
|
|
1216
|
+
id: string;
|
|
1203
1217
|
managers?: {
|
|
1204
1218
|
id: string;
|
|
1205
|
-
firstName: string;
|
|
1206
1219
|
lastName: string;
|
|
1220
|
+
firstName: string;
|
|
1207
1221
|
}[] | undefined;
|
|
1208
1222
|
}>>>;
|
|
1209
1223
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1212,63 +1226,67 @@ export declare const usersContract: {
|
|
|
1212
1226
|
lastName: z.ZodString;
|
|
1213
1227
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1228
|
id: string;
|
|
1215
|
-
firstName: string;
|
|
1216
1229
|
lastName: string;
|
|
1230
|
+
firstName: string;
|
|
1217
1231
|
}, {
|
|
1218
1232
|
id: string;
|
|
1219
|
-
firstName: string;
|
|
1220
1233
|
lastName: string;
|
|
1234
|
+
firstName: string;
|
|
1221
1235
|
}>, "many">>;
|
|
1222
1236
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1237
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1223
1238
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1224
1239
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1225
1240
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1226
1241
|
}, "strip", z.ZodTypeAny, {
|
|
1227
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1228
|
-
id: string;
|
|
1229
|
-
firstName: string;
|
|
1230
|
-
lastName: string;
|
|
1231
1242
|
email: string;
|
|
1232
1243
|
createdAt: string;
|
|
1244
|
+
updatedAt: string;
|
|
1245
|
+
id: string;
|
|
1246
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1247
|
+
lastName: string;
|
|
1248
|
+
firstName: string;
|
|
1233
1249
|
phoneNumbers: {
|
|
1234
1250
|
id: string;
|
|
1235
1251
|
phoneNumber: string;
|
|
1236
1252
|
isPrimary: boolean;
|
|
1237
1253
|
description?: string | null | undefined;
|
|
1238
1254
|
}[];
|
|
1239
|
-
|
|
1255
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1256
|
+
officeId?: string | null | undefined;
|
|
1240
1257
|
office?: {
|
|
1241
|
-
id: string;
|
|
1242
1258
|
name: string;
|
|
1259
|
+
id: string;
|
|
1243
1260
|
managers?: {
|
|
1244
1261
|
id: string;
|
|
1245
|
-
firstName: string;
|
|
1246
1262
|
lastName: string;
|
|
1263
|
+
firstName: string;
|
|
1247
1264
|
}[] | undefined;
|
|
1248
1265
|
} | null | undefined;
|
|
1249
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1250
|
-
officeId?: string | null | undefined;
|
|
1251
1266
|
canImpersonateUsers?: {
|
|
1252
1267
|
id: string;
|
|
1253
|
-
firstName: string;
|
|
1254
1268
|
lastName: string;
|
|
1269
|
+
firstName: string;
|
|
1255
1270
|
}[] | undefined;
|
|
1271
|
+
dialpadUserId?: string | null | undefined;
|
|
1256
1272
|
deletedAt?: string | null | undefined;
|
|
1257
1273
|
}, {
|
|
1258
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1259
|
-
id: string;
|
|
1260
|
-
firstName: string;
|
|
1261
|
-
lastName: string;
|
|
1262
1274
|
email: string;
|
|
1263
1275
|
createdAt: string | Date;
|
|
1264
1276
|
updatedAt: string | Date;
|
|
1277
|
+
id: string;
|
|
1278
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1279
|
+
lastName: string;
|
|
1280
|
+
firstName: string;
|
|
1281
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1282
|
+
officeId?: string | null | undefined;
|
|
1265
1283
|
office?: {
|
|
1266
|
-
id: string;
|
|
1267
1284
|
name: string;
|
|
1285
|
+
id: string;
|
|
1268
1286
|
managers?: {
|
|
1269
1287
|
id: string;
|
|
1270
|
-
firstName: string;
|
|
1271
1288
|
lastName: string;
|
|
1289
|
+
firstName: string;
|
|
1272
1290
|
}[] | undefined;
|
|
1273
1291
|
} | null | undefined;
|
|
1274
1292
|
phoneNumbers?: {
|
|
@@ -1277,13 +1295,12 @@ export declare const usersContract: {
|
|
|
1277
1295
|
description?: string | null | undefined;
|
|
1278
1296
|
isPrimary?: boolean | undefined;
|
|
1279
1297
|
}[] | undefined;
|
|
1280
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1281
|
-
officeId?: string | null | undefined;
|
|
1282
1298
|
canImpersonateUsers?: {
|
|
1283
1299
|
id: string;
|
|
1284
|
-
firstName: string;
|
|
1285
1300
|
lastName: string;
|
|
1301
|
+
firstName: string;
|
|
1286
1302
|
}[] | undefined;
|
|
1303
|
+
dialpadUserId?: string | null | undefined;
|
|
1287
1304
|
deletedAt?: string | Date | null | undefined;
|
|
1288
1305
|
}>;
|
|
1289
1306
|
409: z.ZodObject<{
|
|
@@ -1314,6 +1331,9 @@ export declare const usersContract: {
|
|
|
1314
1331
|
};
|
|
1315
1332
|
};
|
|
1316
1333
|
findAll: {
|
|
1334
|
+
metadata: {
|
|
1335
|
+
tags: string[];
|
|
1336
|
+
};
|
|
1317
1337
|
query: z.ZodObject<{
|
|
1318
1338
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1319
1339
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1357,64 +1377,61 @@ export declare const usersContract: {
|
|
|
1357
1377
|
field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
1358
1378
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1359
1379
|
}, "strip", z.ZodTypeAny, {
|
|
1360
|
-
field: "
|
|
1380
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
1361
1381
|
order: "ASC" | "DESC";
|
|
1362
1382
|
}, {
|
|
1363
|
-
field: "
|
|
1383
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
1364
1384
|
order: "ASC" | "DESC";
|
|
1365
1385
|
}>, "many">>>;
|
|
1366
1386
|
}, "strip", z.ZodTypeAny, {
|
|
1367
|
-
limit: number;
|
|
1368
1387
|
page: number;
|
|
1388
|
+
limit: number;
|
|
1389
|
+
name?: string | undefined;
|
|
1390
|
+
email?: string | undefined;
|
|
1391
|
+
phone?: string | undefined;
|
|
1369
1392
|
sort?: {
|
|
1370
|
-
field: "
|
|
1393
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
1371
1394
|
order: "ASC" | "DESC";
|
|
1372
1395
|
}[] | null | undefined;
|
|
1373
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1374
|
-
name?: string | undefined;
|
|
1375
|
-
email?: string | undefined;
|
|
1376
1396
|
createdAt?: {
|
|
1377
1397
|
from?: string | null | undefined;
|
|
1378
1398
|
to?: string | null | undefined;
|
|
1379
1399
|
} | null | undefined;
|
|
1400
|
+
updatedAt?: {
|
|
1401
|
+
from?: string | null | undefined;
|
|
1402
|
+
to?: string | null | undefined;
|
|
1403
|
+
} | null | undefined;
|
|
1404
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1380
1405
|
roles?: {
|
|
1381
1406
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1382
1407
|
requireAll?: boolean | undefined;
|
|
1383
1408
|
} | undefined;
|
|
1384
1409
|
officeId?: string | undefined;
|
|
1385
|
-
updatedAt?: {
|
|
1386
|
-
from?: string | null | undefined;
|
|
1387
|
-
to?: string | null | undefined;
|
|
1388
|
-
} | null | undefined;
|
|
1389
|
-
phone?: string | undefined;
|
|
1390
1410
|
}, {
|
|
1411
|
+
name?: string | undefined;
|
|
1412
|
+
email?: string | undefined;
|
|
1413
|
+
phone?: string | undefined;
|
|
1391
1414
|
sort?: {
|
|
1392
|
-
field: "
|
|
1415
|
+
field: "email" | "createdAt" | "lastName" | "firstName" | "office";
|
|
1393
1416
|
order: "ASC" | "DESC";
|
|
1394
1417
|
}[] | null | undefined;
|
|
1395
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1396
|
-
name?: string | undefined;
|
|
1397
|
-
limit?: number | undefined;
|
|
1398
|
-
page?: number | undefined;
|
|
1399
|
-
email?: string | undefined;
|
|
1400
1418
|
createdAt?: {
|
|
1401
1419
|
from?: string | null | undefined;
|
|
1402
1420
|
to?: string | null | undefined;
|
|
1403
1421
|
} | null | undefined;
|
|
1422
|
+
updatedAt?: {
|
|
1423
|
+
from?: string | null | undefined;
|
|
1424
|
+
to?: string | null | undefined;
|
|
1425
|
+
} | null | undefined;
|
|
1426
|
+
page?: number | undefined;
|
|
1427
|
+
limit?: number | undefined;
|
|
1428
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1404
1429
|
roles?: {
|
|
1405
1430
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1406
1431
|
requireAll?: unknown;
|
|
1407
1432
|
} | undefined;
|
|
1408
1433
|
officeId?: string | undefined;
|
|
1409
|
-
updatedAt?: {
|
|
1410
|
-
from?: string | null | undefined;
|
|
1411
|
-
to?: string | null | undefined;
|
|
1412
|
-
} | null | undefined;
|
|
1413
|
-
phone?: string | undefined;
|
|
1414
1434
|
}>;
|
|
1415
|
-
metadata: {
|
|
1416
|
-
tags: string[];
|
|
1417
|
-
};
|
|
1418
1435
|
summary: "Get all users";
|
|
1419
1436
|
method: "GET";
|
|
1420
1437
|
path: "/v2/users";
|
|
@@ -1444,7 +1461,7 @@ export declare const usersContract: {
|
|
|
1444
1461
|
details?: unknown;
|
|
1445
1462
|
correlationId?: string | undefined;
|
|
1446
1463
|
}>;
|
|
1447
|
-
|
|
1464
|
+
403: z.ZodObject<{
|
|
1448
1465
|
statusCode: z.ZodNumber;
|
|
1449
1466
|
message: z.ZodString;
|
|
1450
1467
|
code: z.ZodString;
|
|
@@ -1469,7 +1486,7 @@ export declare const usersContract: {
|
|
|
1469
1486
|
details?: unknown;
|
|
1470
1487
|
correlationId?: string | undefined;
|
|
1471
1488
|
}>;
|
|
1472
|
-
|
|
1489
|
+
401: z.ZodObject<{
|
|
1473
1490
|
statusCode: z.ZodNumber;
|
|
1474
1491
|
message: z.ZodString;
|
|
1475
1492
|
code: z.ZodString;
|
|
@@ -1552,28 +1569,28 @@ export declare const usersContract: {
|
|
|
1552
1569
|
lastName: z.ZodString;
|
|
1553
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1554
1571
|
id: string;
|
|
1555
|
-
firstName: string;
|
|
1556
1572
|
lastName: string;
|
|
1573
|
+
firstName: string;
|
|
1557
1574
|
}, {
|
|
1558
1575
|
id: string;
|
|
1559
|
-
firstName: string;
|
|
1560
1576
|
lastName: string;
|
|
1577
|
+
firstName: string;
|
|
1561
1578
|
}>, "many">>;
|
|
1562
1579
|
}, "strip", z.ZodTypeAny, {
|
|
1563
|
-
id: string;
|
|
1564
1580
|
name: string;
|
|
1581
|
+
id: string;
|
|
1565
1582
|
managers?: {
|
|
1566
1583
|
id: string;
|
|
1567
|
-
firstName: string;
|
|
1568
1584
|
lastName: string;
|
|
1585
|
+
firstName: string;
|
|
1569
1586
|
}[] | undefined;
|
|
1570
1587
|
}, {
|
|
1571
|
-
id: string;
|
|
1572
1588
|
name: string;
|
|
1589
|
+
id: string;
|
|
1573
1590
|
managers?: {
|
|
1574
1591
|
id: string;
|
|
1575
|
-
firstName: string;
|
|
1576
1592
|
lastName: string;
|
|
1593
|
+
firstName: string;
|
|
1577
1594
|
}[] | undefined;
|
|
1578
1595
|
}>>>;
|
|
1579
1596
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1582,63 +1599,67 @@ export declare const usersContract: {
|
|
|
1582
1599
|
lastName: z.ZodString;
|
|
1583
1600
|
}, "strip", z.ZodTypeAny, {
|
|
1584
1601
|
id: string;
|
|
1585
|
-
firstName: string;
|
|
1586
1602
|
lastName: string;
|
|
1603
|
+
firstName: string;
|
|
1587
1604
|
}, {
|
|
1588
1605
|
id: string;
|
|
1589
|
-
firstName: string;
|
|
1590
1606
|
lastName: string;
|
|
1607
|
+
firstName: string;
|
|
1591
1608
|
}>, "many">>;
|
|
1592
1609
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1610
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1593
1611
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1594
1612
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1595
1613
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1596
1614
|
}, "strip", z.ZodTypeAny, {
|
|
1597
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1598
|
-
id: string;
|
|
1599
|
-
firstName: string;
|
|
1600
|
-
lastName: string;
|
|
1601
1615
|
email: string;
|
|
1602
1616
|
createdAt: string;
|
|
1617
|
+
updatedAt: string;
|
|
1618
|
+
id: string;
|
|
1619
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1620
|
+
lastName: string;
|
|
1621
|
+
firstName: string;
|
|
1603
1622
|
phoneNumbers: {
|
|
1604
1623
|
id: string;
|
|
1605
1624
|
phoneNumber: string;
|
|
1606
1625
|
isPrimary: boolean;
|
|
1607
1626
|
description?: string | null | undefined;
|
|
1608
1627
|
}[];
|
|
1609
|
-
|
|
1628
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1629
|
+
officeId?: string | null | undefined;
|
|
1610
1630
|
office?: {
|
|
1611
|
-
id: string;
|
|
1612
1631
|
name: string;
|
|
1632
|
+
id: string;
|
|
1613
1633
|
managers?: {
|
|
1614
1634
|
id: string;
|
|
1615
|
-
firstName: string;
|
|
1616
1635
|
lastName: string;
|
|
1636
|
+
firstName: string;
|
|
1617
1637
|
}[] | undefined;
|
|
1618
1638
|
} | null | undefined;
|
|
1619
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1620
|
-
officeId?: string | null | undefined;
|
|
1621
1639
|
canImpersonateUsers?: {
|
|
1622
1640
|
id: string;
|
|
1623
|
-
firstName: string;
|
|
1624
1641
|
lastName: string;
|
|
1642
|
+
firstName: string;
|
|
1625
1643
|
}[] | undefined;
|
|
1644
|
+
dialpadUserId?: string | null | undefined;
|
|
1626
1645
|
deletedAt?: string | null | undefined;
|
|
1627
1646
|
}, {
|
|
1628
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1629
|
-
id: string;
|
|
1630
|
-
firstName: string;
|
|
1631
|
-
lastName: string;
|
|
1632
1647
|
email: string;
|
|
1633
1648
|
createdAt: string | Date;
|
|
1634
1649
|
updatedAt: string | Date;
|
|
1650
|
+
id: string;
|
|
1651
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1652
|
+
lastName: string;
|
|
1653
|
+
firstName: string;
|
|
1654
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1655
|
+
officeId?: string | null | undefined;
|
|
1635
1656
|
office?: {
|
|
1636
|
-
id: string;
|
|
1637
1657
|
name: string;
|
|
1658
|
+
id: string;
|
|
1638
1659
|
managers?: {
|
|
1639
1660
|
id: string;
|
|
1640
|
-
firstName: string;
|
|
1641
1661
|
lastName: string;
|
|
1662
|
+
firstName: string;
|
|
1642
1663
|
}[] | undefined;
|
|
1643
1664
|
} | null | undefined;
|
|
1644
1665
|
phoneNumbers?: {
|
|
@@ -1647,13 +1668,12 @@ export declare const usersContract: {
|
|
|
1647
1668
|
description?: string | null | undefined;
|
|
1648
1669
|
isPrimary?: boolean | undefined;
|
|
1649
1670
|
}[] | undefined;
|
|
1650
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1651
|
-
officeId?: string | null | undefined;
|
|
1652
1671
|
canImpersonateUsers?: {
|
|
1653
1672
|
id: string;
|
|
1654
|
-
firstName: string;
|
|
1655
1673
|
lastName: string;
|
|
1674
|
+
firstName: string;
|
|
1656
1675
|
}[] | undefined;
|
|
1676
|
+
dialpadUserId?: string | null | undefined;
|
|
1657
1677
|
deletedAt?: string | Date | null | undefined;
|
|
1658
1678
|
}>, "many">;
|
|
1659
1679
|
totalCount: z.ZodNumber;
|
|
@@ -1664,35 +1684,36 @@ export declare const usersContract: {
|
|
|
1664
1684
|
}, "strip", z.ZodTypeAny, {
|
|
1665
1685
|
limit: number;
|
|
1666
1686
|
items: {
|
|
1667
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1668
|
-
id: string;
|
|
1669
|
-
firstName: string;
|
|
1670
|
-
lastName: string;
|
|
1671
1687
|
email: string;
|
|
1672
1688
|
createdAt: string;
|
|
1689
|
+
updatedAt: string;
|
|
1690
|
+
id: string;
|
|
1691
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1692
|
+
lastName: string;
|
|
1693
|
+
firstName: string;
|
|
1673
1694
|
phoneNumbers: {
|
|
1674
1695
|
id: string;
|
|
1675
1696
|
phoneNumber: string;
|
|
1676
1697
|
isPrimary: boolean;
|
|
1677
1698
|
description?: string | null | undefined;
|
|
1678
1699
|
}[];
|
|
1679
|
-
|
|
1700
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1701
|
+
officeId?: string | null | undefined;
|
|
1680
1702
|
office?: {
|
|
1681
|
-
id: string;
|
|
1682
1703
|
name: string;
|
|
1704
|
+
id: string;
|
|
1683
1705
|
managers?: {
|
|
1684
1706
|
id: string;
|
|
1685
|
-
firstName: string;
|
|
1686
1707
|
lastName: string;
|
|
1708
|
+
firstName: string;
|
|
1687
1709
|
}[] | undefined;
|
|
1688
1710
|
} | null | undefined;
|
|
1689
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1690
|
-
officeId?: string | null | undefined;
|
|
1691
1711
|
canImpersonateUsers?: {
|
|
1692
1712
|
id: string;
|
|
1693
|
-
firstName: string;
|
|
1694
1713
|
lastName: string;
|
|
1714
|
+
firstName: string;
|
|
1695
1715
|
}[] | undefined;
|
|
1716
|
+
dialpadUserId?: string | null | undefined;
|
|
1696
1717
|
deletedAt?: string | null | undefined;
|
|
1697
1718
|
}[];
|
|
1698
1719
|
totalCount: number;
|
|
@@ -1702,20 +1723,22 @@ export declare const usersContract: {
|
|
|
1702
1723
|
}, {
|
|
1703
1724
|
limit: number;
|
|
1704
1725
|
items: {
|
|
1705
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1706
|
-
id: string;
|
|
1707
|
-
firstName: string;
|
|
1708
|
-
lastName: string;
|
|
1709
1726
|
email: string;
|
|
1710
1727
|
createdAt: string | Date;
|
|
1711
1728
|
updatedAt: string | Date;
|
|
1729
|
+
id: string;
|
|
1730
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1731
|
+
lastName: string;
|
|
1732
|
+
firstName: string;
|
|
1733
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1734
|
+
officeId?: string | null | undefined;
|
|
1712
1735
|
office?: {
|
|
1713
|
-
id: string;
|
|
1714
1736
|
name: string;
|
|
1737
|
+
id: string;
|
|
1715
1738
|
managers?: {
|
|
1716
1739
|
id: string;
|
|
1717
|
-
firstName: string;
|
|
1718
1740
|
lastName: string;
|
|
1741
|
+
firstName: string;
|
|
1719
1742
|
}[] | undefined;
|
|
1720
1743
|
} | null | undefined;
|
|
1721
1744
|
phoneNumbers?: {
|
|
@@ -1724,13 +1747,12 @@ export declare const usersContract: {
|
|
|
1724
1747
|
description?: string | null | undefined;
|
|
1725
1748
|
isPrimary?: boolean | undefined;
|
|
1726
1749
|
}[] | undefined;
|
|
1727
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1728
|
-
officeId?: string | null | undefined;
|
|
1729
1750
|
canImpersonateUsers?: {
|
|
1730
1751
|
id: string;
|
|
1731
|
-
firstName: string;
|
|
1732
1752
|
lastName: string;
|
|
1753
|
+
firstName: string;
|
|
1733
1754
|
}[] | undefined;
|
|
1755
|
+
dialpadUserId?: string | null | undefined;
|
|
1734
1756
|
deletedAt?: string | Date | null | undefined;
|
|
1735
1757
|
}[];
|
|
1736
1758
|
totalCount: number;
|
|
@@ -1941,6 +1963,9 @@ export declare const usersContract: {
|
|
|
1941
1963
|
};
|
|
1942
1964
|
};
|
|
1943
1965
|
autocomplete: {
|
|
1966
|
+
metadata: {
|
|
1967
|
+
tags: string[];
|
|
1968
|
+
};
|
|
1944
1969
|
query: z.ZodObject<{
|
|
1945
1970
|
query: z.ZodOptional<z.ZodString>;
|
|
1946
1971
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1951,9 +1976,6 @@ export declare const usersContract: {
|
|
|
1951
1976
|
id?: string | undefined;
|
|
1952
1977
|
query?: string | undefined;
|
|
1953
1978
|
}>;
|
|
1954
|
-
metadata: {
|
|
1955
|
-
tags: string[];
|
|
1956
|
-
};
|
|
1957
1979
|
summary: "Get users for autocomplete";
|
|
1958
1980
|
method: "GET";
|
|
1959
1981
|
path: "/v2/users/autocomplete";
|
|
@@ -1983,7 +2005,7 @@ export declare const usersContract: {
|
|
|
1983
2005
|
details?: unknown;
|
|
1984
2006
|
correlationId?: string | undefined;
|
|
1985
2007
|
}>;
|
|
1986
|
-
|
|
2008
|
+
403: z.ZodObject<{
|
|
1987
2009
|
statusCode: z.ZodNumber;
|
|
1988
2010
|
message: z.ZodString;
|
|
1989
2011
|
code: z.ZodString;
|
|
@@ -2008,7 +2030,7 @@ export declare const usersContract: {
|
|
|
2008
2030
|
details?: unknown;
|
|
2009
2031
|
correlationId?: string | undefined;
|
|
2010
2032
|
}>;
|
|
2011
|
-
|
|
2033
|
+
401: z.ZodObject<{
|
|
2012
2034
|
statusCode: z.ZodNumber;
|
|
2013
2035
|
message: z.ZodString;
|
|
2014
2036
|
code: z.ZodString;
|
|
@@ -2064,16 +2086,19 @@ export declare const usersContract: {
|
|
|
2064
2086
|
lastName: z.ZodString;
|
|
2065
2087
|
}, "strip", z.ZodTypeAny, {
|
|
2066
2088
|
id: string;
|
|
2067
|
-
firstName: string;
|
|
2068
2089
|
lastName: string;
|
|
2090
|
+
firstName: string;
|
|
2069
2091
|
}, {
|
|
2070
2092
|
id: string;
|
|
2071
|
-
firstName: string;
|
|
2072
2093
|
lastName: string;
|
|
2094
|
+
firstName: string;
|
|
2073
2095
|
}>, "many">;
|
|
2074
2096
|
};
|
|
2075
2097
|
};
|
|
2076
2098
|
autocompleteFirstAgent: {
|
|
2099
|
+
metadata: {
|
|
2100
|
+
tags: string[];
|
|
2101
|
+
};
|
|
2077
2102
|
query: z.ZodObject<{
|
|
2078
2103
|
query: z.ZodOptional<z.ZodString>;
|
|
2079
2104
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2084,9 +2109,6 @@ export declare const usersContract: {
|
|
|
2084
2109
|
id?: string | undefined;
|
|
2085
2110
|
query?: string | undefined;
|
|
2086
2111
|
}>;
|
|
2087
|
-
metadata: {
|
|
2088
|
-
tags: string[];
|
|
2089
|
-
};
|
|
2090
2112
|
summary: "Get users with FIRST_AGENT role for autocomplete";
|
|
2091
2113
|
method: "GET";
|
|
2092
2114
|
path: "/v2/users/autocomplete/first-agent";
|
|
@@ -2116,7 +2138,7 @@ export declare const usersContract: {
|
|
|
2116
2138
|
details?: unknown;
|
|
2117
2139
|
correlationId?: string | undefined;
|
|
2118
2140
|
}>;
|
|
2119
|
-
|
|
2141
|
+
403: z.ZodObject<{
|
|
2120
2142
|
statusCode: z.ZodNumber;
|
|
2121
2143
|
message: z.ZodString;
|
|
2122
2144
|
code: z.ZodString;
|
|
@@ -2141,7 +2163,7 @@ export declare const usersContract: {
|
|
|
2141
2163
|
details?: unknown;
|
|
2142
2164
|
correlationId?: string | undefined;
|
|
2143
2165
|
}>;
|
|
2144
|
-
|
|
2166
|
+
401: z.ZodObject<{
|
|
2145
2167
|
statusCode: z.ZodNumber;
|
|
2146
2168
|
message: z.ZodString;
|
|
2147
2169
|
code: z.ZodString;
|
|
@@ -2197,16 +2219,19 @@ export declare const usersContract: {
|
|
|
2197
2219
|
lastName: z.ZodString;
|
|
2198
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2199
2221
|
id: string;
|
|
2200
|
-
firstName: string;
|
|
2201
2222
|
lastName: string;
|
|
2223
|
+
firstName: string;
|
|
2202
2224
|
}, {
|
|
2203
2225
|
id: string;
|
|
2204
|
-
firstName: string;
|
|
2205
2226
|
lastName: string;
|
|
2227
|
+
firstName: string;
|
|
2206
2228
|
}>, "many">;
|
|
2207
2229
|
};
|
|
2208
2230
|
};
|
|
2209
2231
|
autocompleteSecondAgent: {
|
|
2232
|
+
metadata: {
|
|
2233
|
+
tags: string[];
|
|
2234
|
+
};
|
|
2210
2235
|
query: z.ZodObject<{
|
|
2211
2236
|
query: z.ZodOptional<z.ZodString>;
|
|
2212
2237
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2217,9 +2242,6 @@ export declare const usersContract: {
|
|
|
2217
2242
|
id?: string | undefined;
|
|
2218
2243
|
query?: string | undefined;
|
|
2219
2244
|
}>;
|
|
2220
|
-
metadata: {
|
|
2221
|
-
tags: string[];
|
|
2222
|
-
};
|
|
2223
2245
|
summary: "Get users with SECOND_AGENT role for autocomplete";
|
|
2224
2246
|
method: "GET";
|
|
2225
2247
|
path: "/v2/users/autocomplete/second-agent";
|
|
@@ -2249,7 +2271,7 @@ export declare const usersContract: {
|
|
|
2249
2271
|
details?: unknown;
|
|
2250
2272
|
correlationId?: string | undefined;
|
|
2251
2273
|
}>;
|
|
2252
|
-
|
|
2274
|
+
403: z.ZodObject<{
|
|
2253
2275
|
statusCode: z.ZodNumber;
|
|
2254
2276
|
message: z.ZodString;
|
|
2255
2277
|
code: z.ZodString;
|
|
@@ -2274,7 +2296,7 @@ export declare const usersContract: {
|
|
|
2274
2296
|
details?: unknown;
|
|
2275
2297
|
correlationId?: string | undefined;
|
|
2276
2298
|
}>;
|
|
2277
|
-
|
|
2299
|
+
401: z.ZodObject<{
|
|
2278
2300
|
statusCode: z.ZodNumber;
|
|
2279
2301
|
message: z.ZodString;
|
|
2280
2302
|
code: z.ZodString;
|
|
@@ -2330,16 +2352,19 @@ export declare const usersContract: {
|
|
|
2330
2352
|
lastName: z.ZodString;
|
|
2331
2353
|
}, "strip", z.ZodTypeAny, {
|
|
2332
2354
|
id: string;
|
|
2333
|
-
firstName: string;
|
|
2334
2355
|
lastName: string;
|
|
2356
|
+
firstName: string;
|
|
2335
2357
|
}, {
|
|
2336
2358
|
id: string;
|
|
2337
|
-
firstName: string;
|
|
2338
2359
|
lastName: string;
|
|
2360
|
+
firstName: string;
|
|
2339
2361
|
}>, "many">;
|
|
2340
2362
|
};
|
|
2341
2363
|
};
|
|
2342
2364
|
autocompleteAgents: {
|
|
2365
|
+
metadata: {
|
|
2366
|
+
tags: string[];
|
|
2367
|
+
};
|
|
2343
2368
|
query: z.ZodObject<{
|
|
2344
2369
|
query: z.ZodOptional<z.ZodString>;
|
|
2345
2370
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2350,9 +2375,6 @@ export declare const usersContract: {
|
|
|
2350
2375
|
id?: string | undefined;
|
|
2351
2376
|
query?: string | undefined;
|
|
2352
2377
|
}>;
|
|
2353
|
-
metadata: {
|
|
2354
|
-
tags: string[];
|
|
2355
|
-
};
|
|
2356
2378
|
summary: "Autocomplete users whose roles include FIRST_AGENT OR SECOND_AGENT";
|
|
2357
2379
|
method: "GET";
|
|
2358
2380
|
path: "/v2/users/autocomplete/agents";
|
|
@@ -2382,7 +2404,7 @@ export declare const usersContract: {
|
|
|
2382
2404
|
details?: unknown;
|
|
2383
2405
|
correlationId?: string | undefined;
|
|
2384
2406
|
}>;
|
|
2385
|
-
|
|
2407
|
+
403: z.ZodObject<{
|
|
2386
2408
|
statusCode: z.ZodNumber;
|
|
2387
2409
|
message: z.ZodString;
|
|
2388
2410
|
code: z.ZodString;
|
|
@@ -2407,7 +2429,7 @@ export declare const usersContract: {
|
|
|
2407
2429
|
details?: unknown;
|
|
2408
2430
|
correlationId?: string | undefined;
|
|
2409
2431
|
}>;
|
|
2410
|
-
|
|
2432
|
+
401: z.ZodObject<{
|
|
2411
2433
|
statusCode: z.ZodNumber;
|
|
2412
2434
|
message: z.ZodString;
|
|
2413
2435
|
code: z.ZodString;
|
|
@@ -2463,16 +2485,19 @@ export declare const usersContract: {
|
|
|
2463
2485
|
lastName: z.ZodString;
|
|
2464
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2465
2487
|
id: string;
|
|
2466
|
-
firstName: string;
|
|
2467
2488
|
lastName: string;
|
|
2489
|
+
firstName: string;
|
|
2468
2490
|
}, {
|
|
2469
2491
|
id: string;
|
|
2470
|
-
firstName: string;
|
|
2471
2492
|
lastName: string;
|
|
2493
|
+
firstName: string;
|
|
2472
2494
|
}>, "many">;
|
|
2473
2495
|
};
|
|
2474
2496
|
};
|
|
2475
2497
|
autocompleteOfficeManager: {
|
|
2498
|
+
metadata: {
|
|
2499
|
+
tags: string[];
|
|
2500
|
+
};
|
|
2476
2501
|
query: z.ZodObject<{
|
|
2477
2502
|
query: z.ZodOptional<z.ZodString>;
|
|
2478
2503
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2483,9 +2508,6 @@ export declare const usersContract: {
|
|
|
2483
2508
|
id?: string | undefined;
|
|
2484
2509
|
query?: string | undefined;
|
|
2485
2510
|
}>;
|
|
2486
|
-
metadata: {
|
|
2487
|
-
tags: string[];
|
|
2488
|
-
};
|
|
2489
2511
|
summary: "Get users with OFFICE_MANAGER role for autocomplete";
|
|
2490
2512
|
method: "GET";
|
|
2491
2513
|
path: "/v2/users/autocomplete/office-manager";
|
|
@@ -2515,7 +2537,7 @@ export declare const usersContract: {
|
|
|
2515
2537
|
details?: unknown;
|
|
2516
2538
|
correlationId?: string | undefined;
|
|
2517
2539
|
}>;
|
|
2518
|
-
|
|
2540
|
+
403: z.ZodObject<{
|
|
2519
2541
|
statusCode: z.ZodNumber;
|
|
2520
2542
|
message: z.ZodString;
|
|
2521
2543
|
code: z.ZodString;
|
|
@@ -2540,7 +2562,7 @@ export declare const usersContract: {
|
|
|
2540
2562
|
details?: unknown;
|
|
2541
2563
|
correlationId?: string | undefined;
|
|
2542
2564
|
}>;
|
|
2543
|
-
|
|
2565
|
+
401: z.ZodObject<{
|
|
2544
2566
|
statusCode: z.ZodNumber;
|
|
2545
2567
|
message: z.ZodString;
|
|
2546
2568
|
code: z.ZodString;
|
|
@@ -2596,17 +2618,20 @@ export declare const usersContract: {
|
|
|
2596
2618
|
lastName: z.ZodString;
|
|
2597
2619
|
}, "strip", z.ZodTypeAny, {
|
|
2598
2620
|
id: string;
|
|
2599
|
-
firstName: string;
|
|
2600
2621
|
lastName: string;
|
|
2622
|
+
firstName: string;
|
|
2601
2623
|
}, {
|
|
2602
2624
|
id: string;
|
|
2603
|
-
firstName: string;
|
|
2604
2625
|
lastName: string;
|
|
2626
|
+
firstName: string;
|
|
2605
2627
|
}>, "many">;
|
|
2606
2628
|
};
|
|
2607
2629
|
};
|
|
2608
2630
|
autocompleteImpersonable: {
|
|
2609
2631
|
description: "Returns the first N users matching the caller CASL impersonate ability, optionally narrowed by the query string. Admins see all active users; KPI users see only their canImpersonateUsers list.";
|
|
2632
|
+
metadata: {
|
|
2633
|
+
tags: string[];
|
|
2634
|
+
};
|
|
2610
2635
|
query: z.ZodObject<{
|
|
2611
2636
|
query: z.ZodOptional<z.ZodString>;
|
|
2612
2637
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2615,11 +2640,8 @@ export declare const usersContract: {
|
|
|
2615
2640
|
query?: string | undefined;
|
|
2616
2641
|
}, {
|
|
2617
2642
|
id?: string | undefined;
|
|
2618
|
-
query?: string | undefined;
|
|
2619
|
-
}>;
|
|
2620
|
-
metadata: {
|
|
2621
|
-
tags: string[];
|
|
2622
|
-
};
|
|
2643
|
+
query?: string | undefined;
|
|
2644
|
+
}>;
|
|
2623
2645
|
summary: "Autocomplete users the caller is allowed to impersonate";
|
|
2624
2646
|
method: "GET";
|
|
2625
2647
|
path: "/v2/users/autocomplete/impersonable";
|
|
@@ -2649,7 +2671,7 @@ export declare const usersContract: {
|
|
|
2649
2671
|
details?: unknown;
|
|
2650
2672
|
correlationId?: string | undefined;
|
|
2651
2673
|
}>;
|
|
2652
|
-
|
|
2674
|
+
403: z.ZodObject<{
|
|
2653
2675
|
statusCode: z.ZodNumber;
|
|
2654
2676
|
message: z.ZodString;
|
|
2655
2677
|
code: z.ZodString;
|
|
@@ -2674,7 +2696,7 @@ export declare const usersContract: {
|
|
|
2674
2696
|
details?: unknown;
|
|
2675
2697
|
correlationId?: string | undefined;
|
|
2676
2698
|
}>;
|
|
2677
|
-
|
|
2699
|
+
401: z.ZodObject<{
|
|
2678
2700
|
statusCode: z.ZodNumber;
|
|
2679
2701
|
message: z.ZodString;
|
|
2680
2702
|
code: z.ZodString;
|
|
@@ -2730,32 +2752,32 @@ export declare const usersContract: {
|
|
|
2730
2752
|
lastName: z.ZodString;
|
|
2731
2753
|
}, "strip", z.ZodTypeAny, {
|
|
2732
2754
|
id: string;
|
|
2733
|
-
firstName: string;
|
|
2734
2755
|
lastName: string;
|
|
2756
|
+
firstName: string;
|
|
2735
2757
|
}, {
|
|
2736
2758
|
id: string;
|
|
2737
|
-
firstName: string;
|
|
2738
2759
|
lastName: string;
|
|
2760
|
+
firstName: string;
|
|
2739
2761
|
}>, "many">;
|
|
2740
2762
|
};
|
|
2741
2763
|
};
|
|
2742
2764
|
checkAvailability: {
|
|
2765
|
+
metadata: {
|
|
2766
|
+
tags: string[];
|
|
2767
|
+
};
|
|
2743
2768
|
query: z.ZodObject<{
|
|
2744
2769
|
email: z.ZodOptional<z.ZodString>;
|
|
2745
2770
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2746
2771
|
excludeUserId: z.ZodOptional<z.ZodString>;
|
|
2747
2772
|
}, "strip", z.ZodTypeAny, {
|
|
2748
|
-
phoneNumber?: string | undefined;
|
|
2749
2773
|
email?: string | undefined;
|
|
2774
|
+
phoneNumber?: string | undefined;
|
|
2750
2775
|
excludeUserId?: string | undefined;
|
|
2751
2776
|
}, {
|
|
2752
|
-
phoneNumber?: string | undefined;
|
|
2753
2777
|
email?: string | undefined;
|
|
2778
|
+
phoneNumber?: string | undefined;
|
|
2754
2779
|
excludeUserId?: string | undefined;
|
|
2755
2780
|
}>;
|
|
2756
|
-
metadata: {
|
|
2757
|
-
tags: string[];
|
|
2758
|
-
};
|
|
2759
2781
|
summary: "Look up the active users currently using a given email or phone number";
|
|
2760
2782
|
method: "GET";
|
|
2761
2783
|
path: "/v2/users/availability";
|
|
@@ -2785,7 +2807,7 @@ export declare const usersContract: {
|
|
|
2785
2807
|
details?: unknown;
|
|
2786
2808
|
correlationId?: string | undefined;
|
|
2787
2809
|
}>;
|
|
2788
|
-
|
|
2810
|
+
403: z.ZodObject<{
|
|
2789
2811
|
statusCode: z.ZodNumber;
|
|
2790
2812
|
message: z.ZodString;
|
|
2791
2813
|
code: z.ZodString;
|
|
@@ -2810,7 +2832,7 @@ export declare const usersContract: {
|
|
|
2810
2832
|
details?: unknown;
|
|
2811
2833
|
correlationId?: string | undefined;
|
|
2812
2834
|
}>;
|
|
2813
|
-
|
|
2835
|
+
401: z.ZodObject<{
|
|
2814
2836
|
statusCode: z.ZodNumber;
|
|
2815
2837
|
message: z.ZodString;
|
|
2816
2838
|
code: z.ZodString;
|
|
@@ -2868,13 +2890,13 @@ export declare const usersContract: {
|
|
|
2868
2890
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2869
2891
|
}, "strip", z.ZodTypeAny, {
|
|
2870
2892
|
id: string;
|
|
2871
|
-
firstName: string;
|
|
2872
2893
|
lastName: string;
|
|
2894
|
+
firstName: string;
|
|
2873
2895
|
officeId?: string | null | undefined;
|
|
2874
2896
|
}, {
|
|
2875
2897
|
id: string;
|
|
2876
|
-
firstName: string;
|
|
2877
2898
|
lastName: string;
|
|
2899
|
+
firstName: string;
|
|
2878
2900
|
officeId?: string | null | undefined;
|
|
2879
2901
|
}>>;
|
|
2880
2902
|
phoneNumber: z.ZodNullable<z.ZodObject<{
|
|
@@ -2884,39 +2906,39 @@ export declare const usersContract: {
|
|
|
2884
2906
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2885
2907
|
}, "strip", z.ZodTypeAny, {
|
|
2886
2908
|
id: string;
|
|
2887
|
-
firstName: string;
|
|
2888
2909
|
lastName: string;
|
|
2910
|
+
firstName: string;
|
|
2889
2911
|
officeId?: string | null | undefined;
|
|
2890
2912
|
}, {
|
|
2891
2913
|
id: string;
|
|
2892
|
-
firstName: string;
|
|
2893
2914
|
lastName: string;
|
|
2915
|
+
firstName: string;
|
|
2894
2916
|
officeId?: string | null | undefined;
|
|
2895
2917
|
}>>;
|
|
2896
2918
|
}, "strip", z.ZodTypeAny, {
|
|
2897
|
-
|
|
2919
|
+
email: {
|
|
2898
2920
|
id: string;
|
|
2899
|
-
firstName: string;
|
|
2900
2921
|
lastName: string;
|
|
2922
|
+
firstName: string;
|
|
2901
2923
|
officeId?: string | null | undefined;
|
|
2902
2924
|
} | null;
|
|
2903
|
-
|
|
2925
|
+
phoneNumber: {
|
|
2904
2926
|
id: string;
|
|
2905
|
-
firstName: string;
|
|
2906
2927
|
lastName: string;
|
|
2928
|
+
firstName: string;
|
|
2907
2929
|
officeId?: string | null | undefined;
|
|
2908
2930
|
} | null;
|
|
2909
2931
|
}, {
|
|
2910
|
-
|
|
2932
|
+
email: {
|
|
2911
2933
|
id: string;
|
|
2912
|
-
firstName: string;
|
|
2913
2934
|
lastName: string;
|
|
2935
|
+
firstName: string;
|
|
2914
2936
|
officeId?: string | null | undefined;
|
|
2915
2937
|
} | null;
|
|
2916
|
-
|
|
2938
|
+
phoneNumber: {
|
|
2917
2939
|
id: string;
|
|
2918
|
-
firstName: string;
|
|
2919
2940
|
lastName: string;
|
|
2941
|
+
firstName: string;
|
|
2920
2942
|
officeId?: string | null | undefined;
|
|
2921
2943
|
} | null;
|
|
2922
2944
|
}>;
|
|
@@ -2955,7 +2977,7 @@ export declare const usersContract: {
|
|
|
2955
2977
|
details?: unknown;
|
|
2956
2978
|
correlationId?: string | undefined;
|
|
2957
2979
|
}>;
|
|
2958
|
-
|
|
2980
|
+
403: z.ZodObject<{
|
|
2959
2981
|
statusCode: z.ZodNumber;
|
|
2960
2982
|
message: z.ZodString;
|
|
2961
2983
|
code: z.ZodString;
|
|
@@ -2980,7 +3002,7 @@ export declare const usersContract: {
|
|
|
2980
3002
|
details?: unknown;
|
|
2981
3003
|
correlationId?: string | undefined;
|
|
2982
3004
|
}>;
|
|
2983
|
-
|
|
3005
|
+
401: z.ZodObject<{
|
|
2984
3006
|
statusCode: z.ZodNumber;
|
|
2985
3007
|
message: z.ZodString;
|
|
2986
3008
|
code: z.ZodString;
|
|
@@ -3060,17 +3082,17 @@ export declare const usersContract: {
|
|
|
3060
3082
|
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3061
3083
|
telegramLinkedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3062
3084
|
}, "strip", z.ZodTypeAny, {
|
|
3063
|
-
id: string;
|
|
3064
3085
|
email: string;
|
|
3086
|
+
id: string;
|
|
3065
3087
|
phoneNumbers: {
|
|
3066
3088
|
id: string;
|
|
3067
3089
|
phoneNumber: string;
|
|
3068
3090
|
isPrimary: boolean;
|
|
3069
3091
|
description?: string | null | undefined;
|
|
3070
3092
|
}[];
|
|
3071
|
-
firstName?: string | undefined;
|
|
3072
|
-
lastName?: string | undefined;
|
|
3073
3093
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3094
|
+
lastName?: string | undefined;
|
|
3095
|
+
firstName?: string | undefined;
|
|
3074
3096
|
impersonatedBy?: string | undefined;
|
|
3075
3097
|
managedOfficeIds?: string[] | undefined;
|
|
3076
3098
|
avatarUrl?: string | undefined;
|
|
@@ -3079,17 +3101,17 @@ export declare const usersContract: {
|
|
|
3079
3101
|
telegramUsername?: string | null | undefined;
|
|
3080
3102
|
telegramLinkedAt?: string | null | undefined;
|
|
3081
3103
|
}, {
|
|
3082
|
-
id: string;
|
|
3083
3104
|
email: string;
|
|
3084
|
-
|
|
3105
|
+
id: string;
|
|
3106
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3085
3107
|
lastName?: string | undefined;
|
|
3108
|
+
firstName?: string | undefined;
|
|
3086
3109
|
phoneNumbers?: {
|
|
3087
3110
|
id: string;
|
|
3088
3111
|
phoneNumber: string;
|
|
3089
3112
|
description?: string | null | undefined;
|
|
3090
3113
|
isPrimary?: boolean | undefined;
|
|
3091
3114
|
}[] | undefined;
|
|
3092
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3093
3115
|
impersonatedBy?: string | undefined;
|
|
3094
3116
|
managedOfficeIds?: string[] | undefined;
|
|
3095
3117
|
avatarUrl?: string | undefined;
|
|
@@ -3118,7 +3140,7 @@ export declare const usersContract: {
|
|
|
3118
3140
|
}>;
|
|
3119
3141
|
path: "/v2/users/me/change-password";
|
|
3120
3142
|
responses: {
|
|
3121
|
-
|
|
3143
|
+
403: z.ZodObject<{
|
|
3122
3144
|
statusCode: z.ZodNumber;
|
|
3123
3145
|
message: z.ZodString;
|
|
3124
3146
|
code: z.ZodString;
|
|
@@ -3143,7 +3165,7 @@ export declare const usersContract: {
|
|
|
3143
3165
|
details?: unknown;
|
|
3144
3166
|
correlationId?: string | undefined;
|
|
3145
3167
|
}>;
|
|
3146
|
-
|
|
3168
|
+
401: z.ZodObject<{
|
|
3147
3169
|
statusCode: z.ZodNumber;
|
|
3148
3170
|
message: z.ZodString;
|
|
3149
3171
|
code: z.ZodString;
|
|
@@ -3267,7 +3289,7 @@ export declare const usersContract: {
|
|
|
3267
3289
|
details?: unknown;
|
|
3268
3290
|
correlationId?: string | undefined;
|
|
3269
3291
|
}>;
|
|
3270
|
-
|
|
3292
|
+
403: z.ZodObject<{
|
|
3271
3293
|
statusCode: z.ZodNumber;
|
|
3272
3294
|
message: z.ZodString;
|
|
3273
3295
|
code: z.ZodString;
|
|
@@ -3292,7 +3314,7 @@ export declare const usersContract: {
|
|
|
3292
3314
|
details?: unknown;
|
|
3293
3315
|
correlationId?: string | undefined;
|
|
3294
3316
|
}>;
|
|
3295
|
-
|
|
3317
|
+
401: z.ZodObject<{
|
|
3296
3318
|
statusCode: z.ZodNumber;
|
|
3297
3319
|
message: z.ZodString;
|
|
3298
3320
|
code: z.ZodString;
|
|
@@ -3372,17 +3394,17 @@ export declare const usersContract: {
|
|
|
3372
3394
|
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3373
3395
|
telegramLinkedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3374
3396
|
}, "strip", z.ZodTypeAny, {
|
|
3375
|
-
id: string;
|
|
3376
3397
|
email: string;
|
|
3398
|
+
id: string;
|
|
3377
3399
|
phoneNumbers: {
|
|
3378
3400
|
id: string;
|
|
3379
3401
|
phoneNumber: string;
|
|
3380
3402
|
isPrimary: boolean;
|
|
3381
3403
|
description?: string | null | undefined;
|
|
3382
3404
|
}[];
|
|
3383
|
-
firstName?: string | undefined;
|
|
3384
|
-
lastName?: string | undefined;
|
|
3385
3405
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3406
|
+
lastName?: string | undefined;
|
|
3407
|
+
firstName?: string | undefined;
|
|
3386
3408
|
impersonatedBy?: string | undefined;
|
|
3387
3409
|
managedOfficeIds?: string[] | undefined;
|
|
3388
3410
|
avatarUrl?: string | undefined;
|
|
@@ -3391,17 +3413,17 @@ export declare const usersContract: {
|
|
|
3391
3413
|
telegramUsername?: string | null | undefined;
|
|
3392
3414
|
telegramLinkedAt?: string | null | undefined;
|
|
3393
3415
|
}, {
|
|
3394
|
-
id: string;
|
|
3395
3416
|
email: string;
|
|
3396
|
-
|
|
3417
|
+
id: string;
|
|
3418
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3397
3419
|
lastName?: string | undefined;
|
|
3420
|
+
firstName?: string | undefined;
|
|
3398
3421
|
phoneNumbers?: {
|
|
3399
3422
|
id: string;
|
|
3400
3423
|
phoneNumber: string;
|
|
3401
3424
|
description?: string | null | undefined;
|
|
3402
3425
|
isPrimary?: boolean | undefined;
|
|
3403
3426
|
}[] | undefined;
|
|
3404
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3405
3427
|
impersonatedBy?: string | undefined;
|
|
3406
3428
|
managedOfficeIds?: string[] | undefined;
|
|
3407
3429
|
avatarUrl?: string | undefined;
|
|
@@ -3452,7 +3474,7 @@ export declare const usersContract: {
|
|
|
3452
3474
|
}>;
|
|
3453
3475
|
path: "/v2/users/me/preferences";
|
|
3454
3476
|
responses: {
|
|
3455
|
-
|
|
3477
|
+
403: z.ZodObject<{
|
|
3456
3478
|
statusCode: z.ZodNumber;
|
|
3457
3479
|
message: z.ZodString;
|
|
3458
3480
|
code: z.ZodString;
|
|
@@ -3477,7 +3499,7 @@ export declare const usersContract: {
|
|
|
3477
3499
|
details?: unknown;
|
|
3478
3500
|
correlationId?: string | undefined;
|
|
3479
3501
|
}>;
|
|
3480
|
-
|
|
3502
|
+
401: z.ZodObject<{
|
|
3481
3503
|
statusCode: z.ZodNumber;
|
|
3482
3504
|
message: z.ZodString;
|
|
3483
3505
|
code: z.ZodString;
|
|
@@ -3557,17 +3579,17 @@ export declare const usersContract: {
|
|
|
3557
3579
|
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3558
3580
|
telegramLinkedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3559
3581
|
}, "strip", z.ZodTypeAny, {
|
|
3560
|
-
id: string;
|
|
3561
3582
|
email: string;
|
|
3583
|
+
id: string;
|
|
3562
3584
|
phoneNumbers: {
|
|
3563
3585
|
id: string;
|
|
3564
3586
|
phoneNumber: string;
|
|
3565
3587
|
isPrimary: boolean;
|
|
3566
3588
|
description?: string | null | undefined;
|
|
3567
3589
|
}[];
|
|
3568
|
-
firstName?: string | undefined;
|
|
3569
|
-
lastName?: string | undefined;
|
|
3570
3590
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3591
|
+
lastName?: string | undefined;
|
|
3592
|
+
firstName?: string | undefined;
|
|
3571
3593
|
impersonatedBy?: string | undefined;
|
|
3572
3594
|
managedOfficeIds?: string[] | undefined;
|
|
3573
3595
|
avatarUrl?: string | undefined;
|
|
@@ -3576,17 +3598,17 @@ export declare const usersContract: {
|
|
|
3576
3598
|
telegramUsername?: string | null | undefined;
|
|
3577
3599
|
telegramLinkedAt?: string | null | undefined;
|
|
3578
3600
|
}, {
|
|
3579
|
-
id: string;
|
|
3580
3601
|
email: string;
|
|
3581
|
-
|
|
3602
|
+
id: string;
|
|
3603
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3582
3604
|
lastName?: string | undefined;
|
|
3605
|
+
firstName?: string | undefined;
|
|
3583
3606
|
phoneNumbers?: {
|
|
3584
3607
|
id: string;
|
|
3585
3608
|
phoneNumber: string;
|
|
3586
3609
|
description?: string | null | undefined;
|
|
3587
3610
|
isPrimary?: boolean | undefined;
|
|
3588
3611
|
}[] | undefined;
|
|
3589
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3590
3612
|
impersonatedBy?: string | undefined;
|
|
3591
3613
|
managedOfficeIds?: string[] | undefined;
|
|
3592
3614
|
avatarUrl?: string | undefined;
|
|
@@ -3662,7 +3684,7 @@ export declare const usersContract: {
|
|
|
3662
3684
|
details?: unknown;
|
|
3663
3685
|
correlationId?: string | undefined;
|
|
3664
3686
|
}>;
|
|
3665
|
-
|
|
3687
|
+
403: z.ZodObject<{
|
|
3666
3688
|
statusCode: z.ZodNumber;
|
|
3667
3689
|
message: z.ZodString;
|
|
3668
3690
|
code: z.ZodString;
|
|
@@ -3687,7 +3709,7 @@ export declare const usersContract: {
|
|
|
3687
3709
|
details?: unknown;
|
|
3688
3710
|
correlationId?: string | undefined;
|
|
3689
3711
|
}>;
|
|
3690
|
-
|
|
3712
|
+
401: z.ZodObject<{
|
|
3691
3713
|
statusCode: z.ZodNumber;
|
|
3692
3714
|
message: z.ZodString;
|
|
3693
3715
|
code: z.ZodString;
|
|
@@ -3769,28 +3791,28 @@ export declare const usersContract: {
|
|
|
3769
3791
|
lastName: z.ZodString;
|
|
3770
3792
|
}, "strip", z.ZodTypeAny, {
|
|
3771
3793
|
id: string;
|
|
3772
|
-
firstName: string;
|
|
3773
3794
|
lastName: string;
|
|
3795
|
+
firstName: string;
|
|
3774
3796
|
}, {
|
|
3775
3797
|
id: string;
|
|
3776
|
-
firstName: string;
|
|
3777
3798
|
lastName: string;
|
|
3799
|
+
firstName: string;
|
|
3778
3800
|
}>, "many">>;
|
|
3779
3801
|
}, "strip", z.ZodTypeAny, {
|
|
3780
|
-
id: string;
|
|
3781
3802
|
name: string;
|
|
3803
|
+
id: string;
|
|
3782
3804
|
managers?: {
|
|
3783
3805
|
id: string;
|
|
3784
|
-
firstName: string;
|
|
3785
3806
|
lastName: string;
|
|
3807
|
+
firstName: string;
|
|
3786
3808
|
}[] | undefined;
|
|
3787
3809
|
}, {
|
|
3788
|
-
id: string;
|
|
3789
3810
|
name: string;
|
|
3811
|
+
id: string;
|
|
3790
3812
|
managers?: {
|
|
3791
3813
|
id: string;
|
|
3792
|
-
firstName: string;
|
|
3793
3814
|
lastName: string;
|
|
3815
|
+
firstName: string;
|
|
3794
3816
|
}[] | undefined;
|
|
3795
3817
|
}>>>;
|
|
3796
3818
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3799,63 +3821,67 @@ export declare const usersContract: {
|
|
|
3799
3821
|
lastName: z.ZodString;
|
|
3800
3822
|
}, "strip", z.ZodTypeAny, {
|
|
3801
3823
|
id: string;
|
|
3802
|
-
firstName: string;
|
|
3803
3824
|
lastName: string;
|
|
3825
|
+
firstName: string;
|
|
3804
3826
|
}, {
|
|
3805
3827
|
id: string;
|
|
3806
|
-
firstName: string;
|
|
3807
3828
|
lastName: string;
|
|
3829
|
+
firstName: string;
|
|
3808
3830
|
}>, "many">>;
|
|
3809
3831
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3832
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3810
3833
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3811
3834
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3812
3835
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3813
3836
|
}, "strip", z.ZodTypeAny, {
|
|
3814
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3815
|
-
id: string;
|
|
3816
|
-
firstName: string;
|
|
3817
|
-
lastName: string;
|
|
3818
3837
|
email: string;
|
|
3819
3838
|
createdAt: string;
|
|
3839
|
+
updatedAt: string;
|
|
3840
|
+
id: string;
|
|
3841
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3842
|
+
lastName: string;
|
|
3843
|
+
firstName: string;
|
|
3820
3844
|
phoneNumbers: {
|
|
3821
3845
|
id: string;
|
|
3822
3846
|
phoneNumber: string;
|
|
3823
3847
|
isPrimary: boolean;
|
|
3824
3848
|
description?: string | null | undefined;
|
|
3825
3849
|
}[];
|
|
3826
|
-
|
|
3850
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3851
|
+
officeId?: string | null | undefined;
|
|
3827
3852
|
office?: {
|
|
3828
|
-
id: string;
|
|
3829
3853
|
name: string;
|
|
3854
|
+
id: string;
|
|
3830
3855
|
managers?: {
|
|
3831
3856
|
id: string;
|
|
3832
|
-
firstName: string;
|
|
3833
3857
|
lastName: string;
|
|
3858
|
+
firstName: string;
|
|
3834
3859
|
}[] | undefined;
|
|
3835
3860
|
} | null | undefined;
|
|
3836
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3837
|
-
officeId?: string | null | undefined;
|
|
3838
3861
|
canImpersonateUsers?: {
|
|
3839
3862
|
id: string;
|
|
3840
|
-
firstName: string;
|
|
3841
3863
|
lastName: string;
|
|
3864
|
+
firstName: string;
|
|
3842
3865
|
}[] | undefined;
|
|
3866
|
+
dialpadUserId?: string | null | undefined;
|
|
3843
3867
|
deletedAt?: string | null | undefined;
|
|
3844
3868
|
}, {
|
|
3845
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3846
|
-
id: string;
|
|
3847
|
-
firstName: string;
|
|
3848
|
-
lastName: string;
|
|
3849
3869
|
email: string;
|
|
3850
3870
|
createdAt: string | Date;
|
|
3851
3871
|
updatedAt: string | Date;
|
|
3872
|
+
id: string;
|
|
3873
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3874
|
+
lastName: string;
|
|
3875
|
+
firstName: string;
|
|
3876
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3877
|
+
officeId?: string | null | undefined;
|
|
3852
3878
|
office?: {
|
|
3853
|
-
id: string;
|
|
3854
3879
|
name: string;
|
|
3880
|
+
id: string;
|
|
3855
3881
|
managers?: {
|
|
3856
3882
|
id: string;
|
|
3857
|
-
firstName: string;
|
|
3858
3883
|
lastName: string;
|
|
3884
|
+
firstName: string;
|
|
3859
3885
|
}[] | undefined;
|
|
3860
3886
|
} | null | undefined;
|
|
3861
3887
|
phoneNumbers?: {
|
|
@@ -3864,13 +3890,12 @@ export declare const usersContract: {
|
|
|
3864
3890
|
description?: string | null | undefined;
|
|
3865
3891
|
isPrimary?: boolean | undefined;
|
|
3866
3892
|
}[] | undefined;
|
|
3867
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3868
|
-
officeId?: string | null | undefined;
|
|
3869
3893
|
canImpersonateUsers?: {
|
|
3870
3894
|
id: string;
|
|
3871
|
-
firstName: string;
|
|
3872
3895
|
lastName: string;
|
|
3896
|
+
firstName: string;
|
|
3873
3897
|
}[] | undefined;
|
|
3898
|
+
dialpadUserId?: string | null | undefined;
|
|
3874
3899
|
deletedAt?: string | Date | null | undefined;
|
|
3875
3900
|
}>;
|
|
3876
3901
|
404: z.ZodObject<{
|
|
@@ -3924,33 +3949,33 @@ export declare const usersContract: {
|
|
|
3924
3949
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3925
3950
|
}, "strip", z.ZodTypeAny, {
|
|
3926
3951
|
id?: string | undefined;
|
|
3927
|
-
phoneNumber?: string | undefined;
|
|
3928
3952
|
description?: string | null | undefined;
|
|
3953
|
+
phoneNumber?: string | undefined;
|
|
3929
3954
|
isPrimary?: boolean | undefined;
|
|
3930
3955
|
}, {
|
|
3931
3956
|
id?: string | undefined;
|
|
3932
|
-
phoneNumber?: string | undefined;
|
|
3933
3957
|
description?: string | null | undefined;
|
|
3958
|
+
phoneNumber?: string | undefined;
|
|
3934
3959
|
isPrimary?: boolean | undefined;
|
|
3935
3960
|
}>, {
|
|
3936
3961
|
id?: string | undefined;
|
|
3937
|
-
phoneNumber?: string | undefined;
|
|
3938
3962
|
description?: string | null | undefined;
|
|
3963
|
+
phoneNumber?: string | undefined;
|
|
3939
3964
|
isPrimary?: boolean | undefined;
|
|
3940
3965
|
}, {
|
|
3941
3966
|
id?: string | undefined;
|
|
3942
|
-
phoneNumber?: string | undefined;
|
|
3943
3967
|
description?: string | null | undefined;
|
|
3968
|
+
phoneNumber?: string | undefined;
|
|
3944
3969
|
isPrimary?: boolean | undefined;
|
|
3945
3970
|
}>, "many">, {
|
|
3946
3971
|
id?: string | undefined;
|
|
3947
|
-
phoneNumber?: string | undefined;
|
|
3948
3972
|
description?: string | null | undefined;
|
|
3973
|
+
phoneNumber?: string | undefined;
|
|
3949
3974
|
isPrimary?: boolean | undefined;
|
|
3950
3975
|
}[], {
|
|
3951
3976
|
id?: string | undefined;
|
|
3952
|
-
phoneNumber?: string | undefined;
|
|
3953
3977
|
description?: string | null | undefined;
|
|
3978
|
+
phoneNumber?: string | undefined;
|
|
3954
3979
|
isPrimary?: boolean | undefined;
|
|
3955
3980
|
}[]>>;
|
|
3956
3981
|
password: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -3958,35 +3983,38 @@ export declare const usersContract: {
|
|
|
3958
3983
|
officeId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3959
3984
|
canImpersonateUserIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
3960
3985
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>;
|
|
3986
|
+
dialpadUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>>;
|
|
3961
3987
|
}, "strip", z.ZodTypeAny, {
|
|
3988
|
+
password?: string | undefined;
|
|
3989
|
+
email?: string | undefined;
|
|
3962
3990
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
3963
|
-
|
|
3991
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3992
|
+
officeId?: string | null | undefined;
|
|
3964
3993
|
lastName?: string | undefined;
|
|
3965
|
-
|
|
3994
|
+
firstName?: string | undefined;
|
|
3966
3995
|
phoneNumbers?: {
|
|
3967
3996
|
id?: string | undefined;
|
|
3968
|
-
phoneNumber?: string | undefined;
|
|
3969
3997
|
description?: string | null | undefined;
|
|
3998
|
+
phoneNumber?: string | undefined;
|
|
3970
3999
|
isPrimary?: boolean | undefined;
|
|
3971
4000
|
}[] | undefined;
|
|
3972
|
-
|
|
3973
|
-
officeId?: string | null | undefined;
|
|
3974
|
-
password?: string | undefined;
|
|
4001
|
+
dialpadUserId?: string | null | undefined;
|
|
3975
4002
|
canImpersonateUserIds?: string[] | undefined;
|
|
3976
4003
|
}, {
|
|
4004
|
+
password?: string | undefined;
|
|
4005
|
+
email?: string | undefined;
|
|
3977
4006
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
3978
|
-
|
|
4007
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4008
|
+
officeId?: string | null | undefined;
|
|
3979
4009
|
lastName?: string | undefined;
|
|
3980
|
-
|
|
4010
|
+
firstName?: string | undefined;
|
|
3981
4011
|
phoneNumbers?: {
|
|
3982
4012
|
id?: string | undefined;
|
|
3983
|
-
phoneNumber?: string | undefined;
|
|
3984
4013
|
description?: string | null | undefined;
|
|
4014
|
+
phoneNumber?: string | undefined;
|
|
3985
4015
|
isPrimary?: boolean | undefined;
|
|
3986
4016
|
}[] | undefined;
|
|
3987
|
-
|
|
3988
|
-
officeId?: string | null | undefined;
|
|
3989
|
-
password?: string | undefined;
|
|
4017
|
+
dialpadUserId?: string | null | undefined;
|
|
3990
4018
|
canImpersonateUserIds?: string[] | undefined;
|
|
3991
4019
|
}>;
|
|
3992
4020
|
path: "/v2/users/:id";
|
|
@@ -4016,7 +4044,7 @@ export declare const usersContract: {
|
|
|
4016
4044
|
details?: unknown;
|
|
4017
4045
|
correlationId?: string | undefined;
|
|
4018
4046
|
}>;
|
|
4019
|
-
|
|
4047
|
+
403: z.ZodObject<{
|
|
4020
4048
|
statusCode: z.ZodNumber;
|
|
4021
4049
|
message: z.ZodString;
|
|
4022
4050
|
code: z.ZodString;
|
|
@@ -4041,7 +4069,7 @@ export declare const usersContract: {
|
|
|
4041
4069
|
details?: unknown;
|
|
4042
4070
|
correlationId?: string | undefined;
|
|
4043
4071
|
}>;
|
|
4044
|
-
|
|
4072
|
+
401: z.ZodObject<{
|
|
4045
4073
|
statusCode: z.ZodNumber;
|
|
4046
4074
|
message: z.ZodString;
|
|
4047
4075
|
code: z.ZodString;
|
|
@@ -4123,28 +4151,28 @@ export declare const usersContract: {
|
|
|
4123
4151
|
lastName: z.ZodString;
|
|
4124
4152
|
}, "strip", z.ZodTypeAny, {
|
|
4125
4153
|
id: string;
|
|
4126
|
-
firstName: string;
|
|
4127
4154
|
lastName: string;
|
|
4155
|
+
firstName: string;
|
|
4128
4156
|
}, {
|
|
4129
4157
|
id: string;
|
|
4130
|
-
firstName: string;
|
|
4131
4158
|
lastName: string;
|
|
4159
|
+
firstName: string;
|
|
4132
4160
|
}>, "many">>;
|
|
4133
4161
|
}, "strip", z.ZodTypeAny, {
|
|
4134
|
-
id: string;
|
|
4135
4162
|
name: string;
|
|
4163
|
+
id: string;
|
|
4136
4164
|
managers?: {
|
|
4137
4165
|
id: string;
|
|
4138
|
-
firstName: string;
|
|
4139
4166
|
lastName: string;
|
|
4167
|
+
firstName: string;
|
|
4140
4168
|
}[] | undefined;
|
|
4141
4169
|
}, {
|
|
4142
|
-
id: string;
|
|
4143
4170
|
name: string;
|
|
4171
|
+
id: string;
|
|
4144
4172
|
managers?: {
|
|
4145
4173
|
id: string;
|
|
4146
|
-
firstName: string;
|
|
4147
4174
|
lastName: string;
|
|
4175
|
+
firstName: string;
|
|
4148
4176
|
}[] | undefined;
|
|
4149
4177
|
}>>>;
|
|
4150
4178
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4153,63 +4181,67 @@ export declare const usersContract: {
|
|
|
4153
4181
|
lastName: z.ZodString;
|
|
4154
4182
|
}, "strip", z.ZodTypeAny, {
|
|
4155
4183
|
id: string;
|
|
4156
|
-
firstName: string;
|
|
4157
4184
|
lastName: string;
|
|
4185
|
+
firstName: string;
|
|
4158
4186
|
}, {
|
|
4159
4187
|
id: string;
|
|
4160
|
-
firstName: string;
|
|
4161
4188
|
lastName: string;
|
|
4189
|
+
firstName: string;
|
|
4162
4190
|
}>, "many">>;
|
|
4163
4191
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4192
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4164
4193
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4165
4194
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4166
4195
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4167
4196
|
}, "strip", z.ZodTypeAny, {
|
|
4168
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4169
|
-
id: string;
|
|
4170
|
-
firstName: string;
|
|
4171
|
-
lastName: string;
|
|
4172
4197
|
email: string;
|
|
4173
4198
|
createdAt: string;
|
|
4199
|
+
updatedAt: string;
|
|
4200
|
+
id: string;
|
|
4201
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4202
|
+
lastName: string;
|
|
4203
|
+
firstName: string;
|
|
4174
4204
|
phoneNumbers: {
|
|
4175
4205
|
id: string;
|
|
4176
4206
|
phoneNumber: string;
|
|
4177
4207
|
isPrimary: boolean;
|
|
4178
4208
|
description?: string | null | undefined;
|
|
4179
4209
|
}[];
|
|
4180
|
-
|
|
4210
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4211
|
+
officeId?: string | null | undefined;
|
|
4181
4212
|
office?: {
|
|
4182
|
-
id: string;
|
|
4183
4213
|
name: string;
|
|
4214
|
+
id: string;
|
|
4184
4215
|
managers?: {
|
|
4185
4216
|
id: string;
|
|
4186
|
-
firstName: string;
|
|
4187
4217
|
lastName: string;
|
|
4218
|
+
firstName: string;
|
|
4188
4219
|
}[] | undefined;
|
|
4189
4220
|
} | null | undefined;
|
|
4190
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4191
|
-
officeId?: string | null | undefined;
|
|
4192
4221
|
canImpersonateUsers?: {
|
|
4193
4222
|
id: string;
|
|
4194
|
-
firstName: string;
|
|
4195
4223
|
lastName: string;
|
|
4224
|
+
firstName: string;
|
|
4196
4225
|
}[] | undefined;
|
|
4226
|
+
dialpadUserId?: string | null | undefined;
|
|
4197
4227
|
deletedAt?: string | null | undefined;
|
|
4198
4228
|
}, {
|
|
4199
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4200
|
-
id: string;
|
|
4201
|
-
firstName: string;
|
|
4202
|
-
lastName: string;
|
|
4203
4229
|
email: string;
|
|
4204
4230
|
createdAt: string | Date;
|
|
4205
4231
|
updatedAt: string | Date;
|
|
4232
|
+
id: string;
|
|
4233
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4234
|
+
lastName: string;
|
|
4235
|
+
firstName: string;
|
|
4236
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4237
|
+
officeId?: string | null | undefined;
|
|
4206
4238
|
office?: {
|
|
4207
|
-
id: string;
|
|
4208
4239
|
name: string;
|
|
4240
|
+
id: string;
|
|
4209
4241
|
managers?: {
|
|
4210
4242
|
id: string;
|
|
4211
|
-
firstName: string;
|
|
4212
4243
|
lastName: string;
|
|
4244
|
+
firstName: string;
|
|
4213
4245
|
}[] | undefined;
|
|
4214
4246
|
} | null | undefined;
|
|
4215
4247
|
phoneNumbers?: {
|
|
@@ -4218,13 +4250,12 @@ export declare const usersContract: {
|
|
|
4218
4250
|
description?: string | null | undefined;
|
|
4219
4251
|
isPrimary?: boolean | undefined;
|
|
4220
4252
|
}[] | undefined;
|
|
4221
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4222
|
-
officeId?: string | null | undefined;
|
|
4223
4253
|
canImpersonateUsers?: {
|
|
4224
4254
|
id: string;
|
|
4225
|
-
firstName: string;
|
|
4226
4255
|
lastName: string;
|
|
4256
|
+
firstName: string;
|
|
4227
4257
|
}[] | undefined;
|
|
4258
|
+
dialpadUserId?: string | null | undefined;
|
|
4228
4259
|
deletedAt?: string | Date | null | undefined;
|
|
4229
4260
|
}>;
|
|
4230
4261
|
404: z.ZodObject<{
|
|
@@ -4320,7 +4351,7 @@ export declare const usersContract: {
|
|
|
4320
4351
|
details?: unknown;
|
|
4321
4352
|
correlationId?: string | undefined;
|
|
4322
4353
|
}>;
|
|
4323
|
-
|
|
4354
|
+
403: z.ZodObject<{
|
|
4324
4355
|
statusCode: z.ZodNumber;
|
|
4325
4356
|
message: z.ZodString;
|
|
4326
4357
|
code: z.ZodString;
|
|
@@ -4345,7 +4376,7 @@ export declare const usersContract: {
|
|
|
4345
4376
|
details?: unknown;
|
|
4346
4377
|
correlationId?: string | undefined;
|
|
4347
4378
|
}>;
|
|
4348
|
-
|
|
4379
|
+
401: z.ZodObject<{
|
|
4349
4380
|
statusCode: z.ZodNumber;
|
|
4350
4381
|
message: z.ZodString;
|
|
4351
4382
|
code: z.ZodString;
|