@dakkitor/api-contracts 1.9.1 → 1.9.3
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 +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +9230 -4114
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +362 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Viewer-targeted SSE event on /v2/events: the recipient's job call-priority
|
|
4
|
+
* scores were just recomputed, so a BEST_TO_CALL feed rendered from the old
|
|
5
|
+
* scores (or from the FALLBACK/PARTIAL states) is stale. Unlike `data.changed`
|
|
6
|
+
* this is NOT broadcast — scores are per-viewer, so the API delivers it only
|
|
7
|
+
* to the connections of the viewer whose scores changed.
|
|
8
|
+
*/
|
|
9
|
+
export declare const JOB_CALL_PRIORITY_UPDATED_EVENT = "job.call-priority.updated";
|
|
10
|
+
export declare const JobCallPriorityUpdatedSchema: z.ZodObject<{
|
|
11
|
+
updatedAt: z.ZodString;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
}, {
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
}>;
|
|
17
|
+
export type JobCallPriorityUpdated = z.infer<typeof JobCallPriorityUpdatedSchema>;
|
|
18
|
+
//# sourceMappingURL=job-call-priority-updated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-call-priority-updated.d.ts","sourceRoot":"","sources":["../../contracts/realtime/job-call-priority-updated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,8BAA8B,CAAC;AAE3E,eAAO,MAAM,4BAA4B;;;;;;EAI9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobCallPriorityUpdatedSchema = exports.JOB_CALL_PRIORITY_UPDATED_EVENT = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Viewer-targeted SSE event on /v2/events: the recipient's job call-priority
|
|
7
|
+
* scores were just recomputed, so a BEST_TO_CALL feed rendered from the old
|
|
8
|
+
* scores (or from the FALLBACK/PARTIAL states) is stale. Unlike `data.changed`
|
|
9
|
+
* this is NOT broadcast — scores are per-viewer, so the API delivers it only
|
|
10
|
+
* to the connections of the viewer whose scores changed.
|
|
11
|
+
*/
|
|
12
|
+
exports.JOB_CALL_PRIORITY_UPDATED_EVENT = 'job.call-priority.updated';
|
|
13
|
+
exports.JobCallPriorityUpdatedSchema = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
16
|
+
})
|
|
17
|
+
.strict();
|
|
@@ -3,21 +3,21 @@ export declare const ClientSummarySchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
id: string;
|
|
7
6
|
name: string;
|
|
8
|
-
}, {
|
|
9
7
|
id: string;
|
|
8
|
+
}, {
|
|
10
9
|
name: string;
|
|
10
|
+
id: string;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const CompanySummarySchema: z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
id: string;
|
|
17
16
|
name: string;
|
|
18
|
-
}, {
|
|
19
17
|
id: string;
|
|
18
|
+
}, {
|
|
20
19
|
name: string;
|
|
20
|
+
id: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const UserSummarySchema: z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
@@ -78,17 +78,26 @@ export declare const WorkerSummarySchema: z.ZodObject<{
|
|
|
78
78
|
}>;
|
|
79
79
|
export declare const LocationSummarySchema: z.ZodObject<{
|
|
80
80
|
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
|
+
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
|
+
locality: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
nearestMajorPlace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
84
|
postTown: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
85
|
adminDistrict: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
86
|
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
84
87
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
address?: string | null | undefined;
|
|
86
88
|
postcode?: string | null | undefined;
|
|
89
|
+
address?: string | null | undefined;
|
|
90
|
+
county?: string | null | undefined;
|
|
91
|
+
locality?: string | null | undefined;
|
|
92
|
+
nearestMajorPlace?: string | null | undefined;
|
|
87
93
|
adminDistrict?: string | null | undefined;
|
|
88
94
|
postTown?: string | null | undefined;
|
|
89
95
|
}, {
|
|
90
|
-
address?: string | null | undefined;
|
|
91
96
|
postcode?: string | null | undefined;
|
|
97
|
+
address?: string | null | undefined;
|
|
98
|
+
county?: string | null | undefined;
|
|
99
|
+
locality?: string | null | undefined;
|
|
100
|
+
nearestMajorPlace?: string | null | undefined;
|
|
92
101
|
adminDistrict?: string | null | undefined;
|
|
93
102
|
postTown?: string | null | undefined;
|
|
94
103
|
}>;
|
|
@@ -100,21 +109,21 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
100
109
|
id: z.ZodString;
|
|
101
110
|
name: z.ZodString;
|
|
102
111
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
id: string;
|
|
104
112
|
name: string;
|
|
105
|
-
}, {
|
|
106
113
|
id: string;
|
|
114
|
+
}, {
|
|
107
115
|
name: string;
|
|
116
|
+
id: string;
|
|
108
117
|
}>>>;
|
|
109
118
|
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
110
119
|
id: z.ZodString;
|
|
111
120
|
name: z.ZodString;
|
|
112
121
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
id: string;
|
|
114
122
|
name: string;
|
|
115
|
-
}, {
|
|
116
123
|
id: string;
|
|
124
|
+
}, {
|
|
117
125
|
name: string;
|
|
126
|
+
id: string;
|
|
118
127
|
}>>>;
|
|
119
128
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
129
|
id: z.ZodString;
|
|
@@ -161,17 +170,9 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
161
170
|
deletedAt?: string | Date | null | undefined;
|
|
162
171
|
}>>>;
|
|
163
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
id?: string | null | undefined;
|
|
164
174
|
status?: string | null | undefined;
|
|
165
175
|
userId?: string | null | undefined;
|
|
166
|
-
id?: string | null | undefined;
|
|
167
|
-
client?: {
|
|
168
|
-
id: string;
|
|
169
|
-
name: string;
|
|
170
|
-
} | null | undefined;
|
|
171
|
-
company?: {
|
|
172
|
-
id: string;
|
|
173
|
-
name: string;
|
|
174
|
-
} | null | undefined;
|
|
175
176
|
user?: {
|
|
176
177
|
id: string;
|
|
177
178
|
lastName: string;
|
|
@@ -184,18 +185,18 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
184
185
|
}[];
|
|
185
186
|
deletedAt?: string | null | undefined;
|
|
186
187
|
} | null | undefined;
|
|
187
|
-
}, {
|
|
188
|
-
status?: string | null | undefined;
|
|
189
|
-
userId?: string | null | undefined;
|
|
190
|
-
id?: string | null | undefined;
|
|
191
|
-
client?: {
|
|
192
|
-
id: string;
|
|
193
|
-
name: string;
|
|
194
|
-
} | null | undefined;
|
|
195
188
|
company?: {
|
|
189
|
+
name: string;
|
|
196
190
|
id: string;
|
|
191
|
+
} | null | undefined;
|
|
192
|
+
client?: {
|
|
197
193
|
name: string;
|
|
194
|
+
id: string;
|
|
198
195
|
} | null | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
id?: string | null | undefined;
|
|
198
|
+
status?: string | null | undefined;
|
|
199
|
+
userId?: string | null | undefined;
|
|
199
200
|
user?: {
|
|
200
201
|
id: string;
|
|
201
202
|
lastName: string;
|
|
@@ -208,6 +209,14 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
208
209
|
}[] | undefined;
|
|
209
210
|
deletedAt?: string | Date | null | undefined;
|
|
210
211
|
} | null | undefined;
|
|
212
|
+
company?: {
|
|
213
|
+
name: string;
|
|
214
|
+
id: string;
|
|
215
|
+
} | null | undefined;
|
|
216
|
+
client?: {
|
|
217
|
+
name: string;
|
|
218
|
+
id: string;
|
|
219
|
+
} | null | undefined;
|
|
211
220
|
}>;
|
|
212
221
|
export type ClientSummary = z.infer<typeof ClientSummarySchema>;
|
|
213
222
|
export type CompanySummary = z.infer<typeof CompanySummarySchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary-schemas.d.ts","sourceRoot":"","sources":["../../contracts/shared/summary-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAC;AAEH,e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_1.z.object({
|
|
|
41
41
|
});
|
|
42
42
|
exports.LocationSummarySchema = zod_1.z.object({
|
|
43
43
|
postcode: zod_1.z.string().optional().nullable().describe('Postcode'),
|
|
44
|
+
county: zod_1.z.string().optional().nullable().describe('County'),
|
|
45
|
+
locality: zod_1.z.string().optional().nullable().describe('Town or local area'),
|
|
46
|
+
nearestMajorPlace: zod_1.z
|
|
47
|
+
.string()
|
|
48
|
+
.optional()
|
|
49
|
+
.nullable()
|
|
50
|
+
.describe('Recognisable nearby major town or city'),
|
|
44
51
|
postTown: zod_1.z.string().optional().nullable().describe('Post Town'),
|
|
45
52
|
adminDistrict: zod_1.z.string().optional().nullable().describe('Admin District'),
|
|
46
53
|
address: zod_1.z.string().optional().nullable().describe('Address'),
|