@brivioio/api-server-types 7.29.0 → 7.31.0
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/candidateConversations.types.d.ts +75 -1
- package/dist/candidateConversations.types.d.ts.map +1 -1
- package/dist/candidateConversations.types.js +12 -0
- package/dist/candidateEmailMessages.types.d.ts +10 -0
- package/dist/candidateEmailMessages.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -32,6 +32,25 @@ export declare enum ECandidateInterest {
|
|
|
32
32
|
ON_THE_FENCE = "on_the_fence",
|
|
33
33
|
NOT_INTERESTED = "not_interested"
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* How an org user is involved in a candidate's email thread.
|
|
37
|
+
* - WATCHER: tracking the thread + notified of candidate replies; the agent still
|
|
38
|
+
* handles replies/reminders.
|
|
39
|
+
* - OWNER: the user has "taken over" — the agent is paused for this conversation
|
|
40
|
+
* and the human owns the replies (sent from the dashboard).
|
|
41
|
+
*/
|
|
42
|
+
export declare enum EConversationParticipantMode {
|
|
43
|
+
WATCHER = "watcher",
|
|
44
|
+
OWNER = "owner"
|
|
45
|
+
}
|
|
46
|
+
/** An org user who has joined a candidate's thread (to watch or to take over). */
|
|
47
|
+
export interface IConversationParticipant {
|
|
48
|
+
userId: string;
|
|
49
|
+
/** Denormalized for display (org users have no name field). */
|
|
50
|
+
userEmail: string;
|
|
51
|
+
mode: EConversationParticipantMode;
|
|
52
|
+
joinedAt: string;
|
|
53
|
+
}
|
|
35
54
|
/**
|
|
36
55
|
* Structured details the reply agent gathers from an interested candidate over
|
|
37
56
|
* the thread. Role-facing answers (CTC, notice, location, switch intent) live
|
|
@@ -108,8 +127,29 @@ export interface ICandidateConversation {
|
|
|
108
127
|
* human/candidate with no timer).
|
|
109
128
|
*/
|
|
110
129
|
nextActionAt: Date | null;
|
|
130
|
+
/**
|
|
131
|
+
* Scheduler work-lease. When the outreach scheduler claims this conversation to
|
|
132
|
+
* run an attempt, it atomically stamps a future expiry here; the claim only
|
|
133
|
+
* succeeds if the lease is null or already past. This is what prevents a second
|
|
134
|
+
* attempt — whether from the next tick, another server instance, or after a
|
|
135
|
+
* crash — from firing while one is in flight (replaces the old in-memory guard).
|
|
136
|
+
* Cleared back to null when the attempt finishes; a stale lease (held by a dead
|
|
137
|
+
* process) self-heals once it expires.
|
|
138
|
+
*/
|
|
139
|
+
leaseExpiresAt: Date | null;
|
|
111
140
|
/** Message-ID header of the last email on the thread, for In-Reply-To threading. */
|
|
112
141
|
lastMessageIdHeader: string;
|
|
142
|
+
/**
|
|
143
|
+
* Org users who have joined this thread (watchers + at most the owner who took
|
|
144
|
+
* over). Drives reply-notifications and the agent-pause behaviour.
|
|
145
|
+
*/
|
|
146
|
+
participants: IConversationParticipant[];
|
|
147
|
+
/**
|
|
148
|
+
* True when a recruiter has "taken over" — the agent stops sending on this
|
|
149
|
+
* conversation (replies + reminders) until released. Kept in sync with whether
|
|
150
|
+
* any participant is in OWNER mode.
|
|
151
|
+
*/
|
|
152
|
+
agentPaused: boolean;
|
|
113
153
|
/** Details collected from the candidate over the thread (interested path). */
|
|
114
154
|
collectedInfo: ICollectedInfo;
|
|
115
155
|
/**
|
|
@@ -145,9 +185,15 @@ export type TConversationCollectedInfo = {
|
|
|
145
185
|
cvReceived: boolean;
|
|
146
186
|
notes: string;
|
|
147
187
|
};
|
|
188
|
+
export type TConversationParticipant = {
|
|
189
|
+
userId: string;
|
|
190
|
+
userEmail: string;
|
|
191
|
+
mode: EConversationParticipantMode;
|
|
192
|
+
joinedAt: string;
|
|
193
|
+
};
|
|
148
194
|
/**
|
|
149
195
|
* One candidate↔company conversation as the dashboard shows it: the thread header
|
|
150
|
-
* (status, interest, counters) plus its messages. Messages are
|
|
196
|
+
* (status, interest, counters), participants, plus its messages. Messages are
|
|
151
197
|
* `TCandidateEmailMessageView` (defined in candidateEmailMessages.types).
|
|
152
198
|
*/
|
|
153
199
|
export type TConversationThread = {
|
|
@@ -160,6 +206,10 @@ export type TConversationThread = {
|
|
|
160
206
|
emailsSentCount: number;
|
|
161
207
|
reminderStage: number;
|
|
162
208
|
pocLoopedIn: boolean;
|
|
209
|
+
/** POC emails configured for the role, surfaced for context in the thread view. */
|
|
210
|
+
pocEmails: string[];
|
|
211
|
+
participants: TConversationParticipant[];
|
|
212
|
+
agentPaused: boolean;
|
|
163
213
|
lastOutboundAt: string | null;
|
|
164
214
|
lastInboundAt: string | null;
|
|
165
215
|
collectedInfo: TConversationCollectedInfo;
|
|
@@ -169,6 +219,8 @@ export type TConversationThread = {
|
|
|
169
219
|
/** The full email thread, oldest first. */
|
|
170
220
|
messages: TCandidateEmailMessageView[];
|
|
171
221
|
};
|
|
222
|
+
/** Actions a recruiter can take on their participation in a thread. */
|
|
223
|
+
export type TConversationParticipantAction = 'watch' | 'take_over' | 'release' | 'leave';
|
|
172
224
|
export declare namespace CandidateConversationsAPITypes {
|
|
173
225
|
/**
|
|
174
226
|
* GET a single candidate's conversation thread for a role (read-only, for the
|
|
@@ -177,5 +229,27 @@ export declare namespace CandidateConversationsAPITypes {
|
|
|
177
229
|
type TGetConversationResponse = IResponse<{
|
|
178
230
|
conversation: TConversationThread | null;
|
|
179
231
|
} | null>;
|
|
232
|
+
/** POST a recruiter reply on a candidate's thread (sent from the team address). */
|
|
233
|
+
type TReplyRequestBody = {
|
|
234
|
+
candidateKey: string;
|
|
235
|
+
body: string;
|
|
236
|
+
subject?: string;
|
|
237
|
+
};
|
|
238
|
+
type TReplyResponse = IResponse<{
|
|
239
|
+
message: TCandidateEmailMessageView;
|
|
240
|
+
} | null>;
|
|
241
|
+
/** POST a participation change (watch / take over / release / leave). */
|
|
242
|
+
type TParticipantActionRequestBody = {
|
|
243
|
+
candidateKey: string;
|
|
244
|
+
action: TConversationParticipantAction;
|
|
245
|
+
};
|
|
246
|
+
type TParticipantActionResponse = IResponse<{
|
|
247
|
+
participants: TConversationParticipant[];
|
|
248
|
+
agentPaused: boolean;
|
|
249
|
+
} | null>;
|
|
250
|
+
/** GET a short-lived presigned download URL for one thread attachment. */
|
|
251
|
+
type TAttachmentUrlResponse = IResponse<{
|
|
252
|
+
url: string;
|
|
253
|
+
} | null>;
|
|
180
254
|
}
|
|
181
255
|
//# sourceMappingURL=candidateConversations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidateConversations.types.d.ts","sourceRoot":"","sources":["../src/candidateConversations.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;GAIG;AACH,oBAAY,4BAA4B;IACtC,8EAA8E;IAC9E,WAAW,gBAAgB;IAC3B,+EAA+E;IAC/E,kBAAkB,uBAAuB;IACzC,mEAAmE;IACnE,gBAAgB,qBAAqB;IACrC,mFAAmF;IACnF,YAAY,iBAAiB;IAC7B,kFAAkF;IAClF,eAAe,oBAAoB;IACnC,0EAA0E;IAC1E,iBAAiB,sBAAsB;IACvC,mCAAmC;IACnC,qBAAqB,0BAA0B;IAC/C,gEAAgE;IAChE,kBAAkB,uBAAuB;IACzC,wEAAwE;IACxE,YAAY,iBAAiB;CAC9B;AAED,yEAAyE;AACzE,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;CAClC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,0FAA0F;IAC1F,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAA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";
|
|
33
33
|
ECandidateInterest["NOT_INTERESTED"] = "not_interested";
|
|
34
34
|
})(ECandidateInterest || (ECandidateInterest = {}));
|
|
35
|
+
/**
|
|
36
|
+
* How an org user is involved in a candidate's email thread.
|
|
37
|
+
* - WATCHER: tracking the thread + notified of candidate replies; the agent still
|
|
38
|
+
* handles replies/reminders.
|
|
39
|
+
* - OWNER: the user has "taken over" — the agent is paused for this conversation
|
|
40
|
+
* and the human owns the replies (sent from the dashboard).
|
|
41
|
+
*/
|
|
42
|
+
export var EConversationParticipantMode;
|
|
43
|
+
(function (EConversationParticipantMode) {
|
|
44
|
+
EConversationParticipantMode["WATCHER"] = "watcher";
|
|
45
|
+
EConversationParticipantMode["OWNER"] = "owner";
|
|
46
|
+
})(EConversationParticipantMode || (EConversationParticipantMode = {}));
|
|
@@ -68,6 +68,8 @@ export type TCandidateEmailMessageView = {
|
|
|
68
68
|
ccAddresses: string[];
|
|
69
69
|
attachments: TEmailAttachmentView[];
|
|
70
70
|
deliveryStatus: EEmailDeliveryStatus;
|
|
71
|
+
/** Email of the recruiter who sent this from the dashboard; empty for agent/inbound. */
|
|
72
|
+
sentByUserEmail: string;
|
|
71
73
|
sentAt: string | null;
|
|
72
74
|
receivedAt: string | null;
|
|
73
75
|
createdAt: string;
|
|
@@ -105,6 +107,14 @@ export interface ICandidateEmailMessage {
|
|
|
105
107
|
references: string[];
|
|
106
108
|
attachments: IEmailAttachment[];
|
|
107
109
|
deliveryStatus: EEmailDeliveryStatus;
|
|
110
|
+
/**
|
|
111
|
+
* The org user who sent this email from the dashboard (a recruiter reply). Null
|
|
112
|
+
* for agent-sent and inbound messages. The candidate never sees this — the
|
|
113
|
+
* From is always the team address; this is internal attribution only.
|
|
114
|
+
*/
|
|
115
|
+
sentByUserId: string | null;
|
|
116
|
+
/** Denormalized email of {@link sentByUserId} for display; empty otherwise. */
|
|
117
|
+
sentByUserEmail: string;
|
|
108
118
|
/** For reminders: which step of the cadence (1..N). Null for non-reminders. */
|
|
109
119
|
reminderStage: number | null;
|
|
110
120
|
/** Short note on why this email was sent / how the agent decided to send it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidateEmailMessages.types.d.ts","sourceRoot":"","sources":["../src/candidateEmailMessages.types.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,sDAAsD;IACtD,cAAc,mBAAmB;IACjC,qDAAqD;IACrD,QAAQ,aAAa;IACrB,qEAAqE;IACrE,YAAY,iBAAiB;IAC7B,kFAAkF;IAClF,YAAY,iBAAiB;IAC7B,+EAA+E;IAC/E,WAAW,gBAAgB;IAC3B,2EAA2E;IAC3E,mBAAmB,wBAAwB;IAC3C,6CAA6C;IAC7C,iBAAiB,sBAAsB;IACvC,kEAAkE;IAClE,WAAW,gBAAgB;IAC3B,kCAAkC;IAClC,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,eAAe,CAAC;IAC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AChF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"candidateEmailMessages.types.d.ts","sourceRoot":"","sources":["../src/candidateEmailMessages.types.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,sDAAsD;IACtD,cAAc,mBAAmB;IACjC,qDAAqD;IACrD,QAAQ,aAAa;IACrB,qEAAqE;IACrE,YAAY,iBAAiB;IAC7B,kFAAkF;IAClF,YAAY,iBAAiB;IAC7B,+EAA+E;IAC/E,WAAW,gBAAgB;IAC3B,2EAA2E;IAC3E,mBAAmB,wBAAwB;IAC3C,6CAA6C;IAC7C,iBAAiB,sBAAsB;IACvC,kEAAkE;IAClE,WAAW,gBAAgB;IAC3B,kCAAkC;IAClC,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,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