@brivioio/api-server-types 7.29.0 → 7.30.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 +65 -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
|
|
@@ -110,6 +129,17 @@ export interface ICandidateConversation {
|
|
|
110
129
|
nextActionAt: Date | null;
|
|
111
130
|
/** Message-ID header of the last email on the thread, for In-Reply-To threading. */
|
|
112
131
|
lastMessageIdHeader: string;
|
|
132
|
+
/**
|
|
133
|
+
* Org users who have joined this thread (watchers + at most the owner who took
|
|
134
|
+
* over). Drives reply-notifications and the agent-pause behaviour.
|
|
135
|
+
*/
|
|
136
|
+
participants: IConversationParticipant[];
|
|
137
|
+
/**
|
|
138
|
+
* True when a recruiter has "taken over" — the agent stops sending on this
|
|
139
|
+
* conversation (replies + reminders) until released. Kept in sync with whether
|
|
140
|
+
* any participant is in OWNER mode.
|
|
141
|
+
*/
|
|
142
|
+
agentPaused: boolean;
|
|
113
143
|
/** Details collected from the candidate over the thread (interested path). */
|
|
114
144
|
collectedInfo: ICollectedInfo;
|
|
115
145
|
/**
|
|
@@ -145,9 +175,15 @@ export type TConversationCollectedInfo = {
|
|
|
145
175
|
cvReceived: boolean;
|
|
146
176
|
notes: string;
|
|
147
177
|
};
|
|
178
|
+
export type TConversationParticipant = {
|
|
179
|
+
userId: string;
|
|
180
|
+
userEmail: string;
|
|
181
|
+
mode: EConversationParticipantMode;
|
|
182
|
+
joinedAt: string;
|
|
183
|
+
};
|
|
148
184
|
/**
|
|
149
185
|
* One candidate↔company conversation as the dashboard shows it: the thread header
|
|
150
|
-
* (status, interest, counters) plus its messages. Messages are
|
|
186
|
+
* (status, interest, counters), participants, plus its messages. Messages are
|
|
151
187
|
* `TCandidateEmailMessageView` (defined in candidateEmailMessages.types).
|
|
152
188
|
*/
|
|
153
189
|
export type TConversationThread = {
|
|
@@ -160,6 +196,10 @@ export type TConversationThread = {
|
|
|
160
196
|
emailsSentCount: number;
|
|
161
197
|
reminderStage: number;
|
|
162
198
|
pocLoopedIn: boolean;
|
|
199
|
+
/** POC emails configured for the role, surfaced for context in the thread view. */
|
|
200
|
+
pocEmails: string[];
|
|
201
|
+
participants: TConversationParticipant[];
|
|
202
|
+
agentPaused: boolean;
|
|
163
203
|
lastOutboundAt: string | null;
|
|
164
204
|
lastInboundAt: string | null;
|
|
165
205
|
collectedInfo: TConversationCollectedInfo;
|
|
@@ -169,6 +209,8 @@ export type TConversationThread = {
|
|
|
169
209
|
/** The full email thread, oldest first. */
|
|
170
210
|
messages: TCandidateEmailMessageView[];
|
|
171
211
|
};
|
|
212
|
+
/** Actions a recruiter can take on their participation in a thread. */
|
|
213
|
+
export type TConversationParticipantAction = 'watch' | 'take_over' | 'release' | 'leave';
|
|
172
214
|
export declare namespace CandidateConversationsAPITypes {
|
|
173
215
|
/**
|
|
174
216
|
* GET a single candidate's conversation thread for a role (read-only, for the
|
|
@@ -177,5 +219,27 @@ export declare namespace CandidateConversationsAPITypes {
|
|
|
177
219
|
type TGetConversationResponse = IResponse<{
|
|
178
220
|
conversation: TConversationThread | null;
|
|
179
221
|
} | null>;
|
|
222
|
+
/** POST a recruiter reply on a candidate's thread (sent from the team address). */
|
|
223
|
+
type TReplyRequestBody = {
|
|
224
|
+
candidateKey: string;
|
|
225
|
+
body: string;
|
|
226
|
+
subject?: string;
|
|
227
|
+
};
|
|
228
|
+
type TReplyResponse = IResponse<{
|
|
229
|
+
message: TCandidateEmailMessageView;
|
|
230
|
+
} | null>;
|
|
231
|
+
/** POST a participation change (watch / take over / release / leave). */
|
|
232
|
+
type TParticipantActionRequestBody = {
|
|
233
|
+
candidateKey: string;
|
|
234
|
+
action: TConversationParticipantAction;
|
|
235
|
+
};
|
|
236
|
+
type TParticipantActionResponse = IResponse<{
|
|
237
|
+
participants: TConversationParticipant[];
|
|
238
|
+
agentPaused: boolean;
|
|
239
|
+
} | null>;
|
|
240
|
+
/** GET a short-lived presigned download URL for one thread attachment. */
|
|
241
|
+
type TAttachmentUrlResponse = IResponse<{
|
|
242
|
+
url: string;
|
|
243
|
+
} | null>;
|
|
180
244
|
}
|
|
181
245
|
//# 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,M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AAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,4BAA4B,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,0BAA0B,CAAC;IAC1C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,EAAE,0BAA0B,EAAE,CAAC;CACxC,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C;;;OAGG;IACH,KAAY,wBAAwB,GAAG,SAAS,CAAC;QAC/C,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;KAC1C,GAAG,IAAI,CAAC,CAAC;CACX"}
|
|
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;IAC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AAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;KAC1C,GAAG,IAAI,CAAC,CAAC;IAEV,mFAAmF;IACnF,KAAY,iBAAiB,GAAG;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,KAAY,cAAc,GAAG,SAAS,CAAC;QACrC,OAAO,EAAE,0BAA0B,CAAC;KACrC,GAAG,IAAI,CAAC,CAAC;IAEV,yEAAyE;IACzE,KAAY,6BAA6B,GAAG;QAC1C,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,8BAA8B,CAAC;KACxC,CAAC;IACF,KAAY,0BAA0B,GAAG,SAAS,CAAC;QACjD,YAAY,EAAE,wBAAwB,EAAE,CAAC;QACzC,WAAW,EAAE,OAAO,CAAC;KACtB,GAAG,IAAI,CAAC,CAAC;IAEV,0EAA0E;IAC1E,KAAY,sBAAsB,GAAG,SAAS,CAAC;QAC7C,GAAG,EAAE,MAAM,CAAC;KACb,GAAG,IAAI,CAAC,CAAC;CACX"}
|
|
@@ -32,3 +32,15 @@ export var ECandidateInterest;
|
|
|
32
32
|
ECandidateInterest["ON_THE_FENCE"] = "on_the_fence";
|
|
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;IAC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AAC;IACZ,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,0FAA0F;IAC1F,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,yCAAyC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,cAAc,EAAE,oBAAoB,CAAC;IACrC,+EAA+E;IAC/E,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gFAAgF;IAChF,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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