@brivioio/api-server-types 7.27.0 → 7.28.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.
|
@@ -30,6 +30,32 @@ export declare enum ECandidateInterest {
|
|
|
30
30
|
ON_THE_FENCE = "on_the_fence",
|
|
31
31
|
NOT_INTERESTED = "not_interested"
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Structured details the reply agent gathers from an interested candidate over
|
|
35
|
+
* the thread. Role-facing answers (CTC, notice, location, switch intent) live
|
|
36
|
+
* here on the stable conversation; the phone is also mirrored onto the
|
|
37
|
+
* candidate-level `candidateContacts`, and the CV is stored in S3 with its
|
|
38
|
+
* extracted text kept here for downstream evaluation. Empty strings / nulls mean
|
|
39
|
+
* "not yet collected".
|
|
40
|
+
*/
|
|
41
|
+
export interface ICollectedInfo {
|
|
42
|
+
currentLocation: string;
|
|
43
|
+
currentCtc: string;
|
|
44
|
+
expectedCtc: string;
|
|
45
|
+
noticePeriod: string;
|
|
46
|
+
/** Whether the candidate is genuinely open to changing jobs. Null = unknown. */
|
|
47
|
+
openToSwitch: boolean | null;
|
|
48
|
+
/** Whether the candidate is open to relocation (if the role needs it). Null = unknown. */
|
|
49
|
+
openToRelocation: boolean | null;
|
|
50
|
+
phone: string;
|
|
51
|
+
cvReceived: boolean;
|
|
52
|
+
/** S3 object key for the candidate's CV, once received. */
|
|
53
|
+
cvStorageKey: string;
|
|
54
|
+
/** Extracted plain text of the CV (for evaluation). */
|
|
55
|
+
cvText: string;
|
|
56
|
+
/** Freeform agent notes on what's gathered and what's still outstanding. */
|
|
57
|
+
notes: string;
|
|
58
|
+
}
|
|
33
59
|
/**
|
|
34
60
|
* A stable, threaded email conversation between the company (represented by the
|
|
35
61
|
* agent) and one candidate, for one role. Keyed by (organization, role,
|
|
@@ -82,6 +108,14 @@ export interface ICandidateConversation {
|
|
|
82
108
|
nextActionAt: Date | null;
|
|
83
109
|
/** Message-ID header of the last email on the thread, for In-Reply-To threading. */
|
|
84
110
|
lastMessageIdHeader: string;
|
|
111
|
+
/** Details collected from the candidate over the thread (interested path). */
|
|
112
|
+
collectedInfo: ICollectedInfo;
|
|
113
|
+
/**
|
|
114
|
+
* Set true when the candidate is interested AND all required info is captured —
|
|
115
|
+
* the signal for the downstream profile-evaluation agent (later phase) to score
|
|
116
|
+
* them and write a match decision onto the shortlist.
|
|
117
|
+
*/
|
|
118
|
+
readyForEvaluation: boolean;
|
|
85
119
|
closedAt: Date | null;
|
|
86
120
|
closedReason: string;
|
|
87
121
|
internalTags: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidateConversations.types.d.ts","sourceRoot":"","sources":["../src/candidateConversations.types.ts"],"names":[],"mappings":"AACA;;;;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;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,4BAA4B,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,aAAa,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,eAAe,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"candidateConversations.types.d.ts","sourceRoot":"","sources":["../src/candidateConversations.types.ts"],"names":[],"mappings":"AACA;;;;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,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