@brivioio/api-server-types 7.45.0 → 7.46.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.
|
@@ -19,14 +19,17 @@ export declare enum EShortlistFeedbackVerdict {
|
|
|
19
19
|
BAD = "bad"
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Lifecycle of a piece of feedback.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* Lifecycle of a piece of feedback.
|
|
23
|
+
* - `draft`: saved per-card while a recruiter reviews; editable; surfaced to the
|
|
24
|
+
* agent as *actionable* feedback it may offer to incorporate into requirements.
|
|
25
|
+
* - `consumed`: the agent folded this exact verdict into a specific requirements
|
|
26
|
+
* version (see `incorporatedIntoVersion`). Terminal and locked — it is NEVER
|
|
27
|
+
* surfaced to the agent again, so a later re-source or requirement edit cannot
|
|
28
|
+
* double-count feedback that already shaped the search.
|
|
26
29
|
*/
|
|
27
30
|
export declare enum EShortlistFeedbackStatus {
|
|
28
31
|
DRAFT = "draft",
|
|
29
|
-
|
|
32
|
+
CONSUMED = "consumed"
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
35
|
* One teammate's verdict + note on a single shortlisted candidate. Feedback is
|
|
@@ -42,8 +45,10 @@ export interface IShortlistFeedback {
|
|
|
42
45
|
/** Free-text rationale (optional, but strongly encouraged). */
|
|
43
46
|
note: string;
|
|
44
47
|
status: EShortlistFeedbackStatus;
|
|
45
|
-
/** Set when the feedback
|
|
46
|
-
|
|
48
|
+
/** Set when the feedback was `consumed` (folded into a version); null while a draft. */
|
|
49
|
+
incorporatedAt: Date | null;
|
|
50
|
+
/** The requirements version this feedback was incorporated into; null while a draft. */
|
|
51
|
+
incorporatedIntoVersion: number | null;
|
|
47
52
|
updatedAt: string;
|
|
48
53
|
}
|
|
49
54
|
export type TShortlistFeedback = {
|
|
@@ -52,7 +57,8 @@ export type TShortlistFeedback = {
|
|
|
52
57
|
verdict: EShortlistFeedbackVerdict;
|
|
53
58
|
note: string;
|
|
54
59
|
status: EShortlistFeedbackStatus;
|
|
55
|
-
|
|
60
|
+
incorporatedAt: string | null;
|
|
61
|
+
incorporatedIntoVersion: number | null;
|
|
56
62
|
updatedAt: string;
|
|
57
63
|
};
|
|
58
64
|
/**
|
|
@@ -215,8 +221,15 @@ export type TShortlistGroup = {
|
|
|
215
221
|
createdAt: string;
|
|
216
222
|
/** Ranked entries for this run (rank 1 first). */
|
|
217
223
|
entries: TShortlistEntry[];
|
|
218
|
-
/** Candidates in this shortlist with draft (un-
|
|
224
|
+
/** Candidates in this shortlist with draft (un-consumed) feedback. */
|
|
219
225
|
draftFeedbackCount: number;
|
|
226
|
+
/**
|
|
227
|
+
* True when this shortlist is read-only for feedback: a newer shortlist at a
|
|
228
|
+
* higher requirement version has since been produced, so the requirements
|
|
229
|
+
* moved on and the team can no longer add/edit/remove feedback here. Only
|
|
230
|
+
* shortlists at the highest sourced requirement version stay editable.
|
|
231
|
+
*/
|
|
232
|
+
locked: boolean;
|
|
220
233
|
};
|
|
221
234
|
export declare namespace ShortlistsAPITypes {
|
|
222
235
|
type TGetShortlistResponse = IResponse<{
|
|
@@ -224,7 +237,7 @@ export declare namespace ShortlistsAPITypes {
|
|
|
224
237
|
shortlists: TShortlistGroup[];
|
|
225
238
|
/** True when a newer requirement version exists than the latest shortlist was sourced from. */
|
|
226
239
|
stale: boolean;
|
|
227
|
-
/**
|
|
240
|
+
/** Candidates with draft feedback on the editable (latest-version) shortlist, awaiting a re-source. */
|
|
228
241
|
draftFeedbackCount: number;
|
|
229
242
|
} | null>;
|
|
230
243
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shortlists.types.d.ts","sourceRoot":"","sources":["../src/shortlists.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EA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oEAAoE;QACpE,UAAU,EAAE,eAAe,EAAE,CAAC;QAC9B,+FAA+F;QAC/F,KAAK,EAAE,OAAO,CAAC;QACf,uGAAuG;QACvG,kBAAkB,EAAE,MAAM,CAAC;KAC5B,GAAG,IAAI,CAAC,CAAC;IAEV;;;OAGG;IACH,KAAY,mBAAmB,GAAG;QAChC,OAAO,EAAE,yBAAyB,CAAC;QACnC,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF,KAAY,uBAAuB,GAAG,SAAS,CAAC;QAC9C,KAAK,EAAE,eAAe,CAAC;KACxB,GAAG,IAAI,CAAC,CAAC;IAEV,KAAY,uBAAuB,GAAG,SAAS,CAAC;QAC9C,KAAK,EAAE,eAAe,CAAC;KACxB,GAAG,IAAI,CAAC,CAAC;CACX"}
|
package/dist/shortlists.types.js
CHANGED
|
@@ -19,15 +19,18 @@ export var EShortlistFeedbackVerdict;
|
|
|
19
19
|
EShortlistFeedbackVerdict["BAD"] = "bad";
|
|
20
20
|
})(EShortlistFeedbackVerdict || (EShortlistFeedbackVerdict = {}));
|
|
21
21
|
/**
|
|
22
|
-
* Lifecycle of a piece of feedback.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* Lifecycle of a piece of feedback.
|
|
23
|
+
* - `draft`: saved per-card while a recruiter reviews; editable; surfaced to the
|
|
24
|
+
* agent as *actionable* feedback it may offer to incorporate into requirements.
|
|
25
|
+
* - `consumed`: the agent folded this exact verdict into a specific requirements
|
|
26
|
+
* version (see `incorporatedIntoVersion`). Terminal and locked — it is NEVER
|
|
27
|
+
* surfaced to the agent again, so a later re-source or requirement edit cannot
|
|
28
|
+
* double-count feedback that already shaped the search.
|
|
26
29
|
*/
|
|
27
30
|
export var EShortlistFeedbackStatus;
|
|
28
31
|
(function (EShortlistFeedbackStatus) {
|
|
29
32
|
EShortlistFeedbackStatus["DRAFT"] = "draft";
|
|
30
|
-
EShortlistFeedbackStatus["
|
|
33
|
+
EShortlistFeedbackStatus["CONSUMED"] = "consumed";
|
|
31
34
|
})(EShortlistFeedbackStatus || (EShortlistFeedbackStatus = {}));
|
|
32
35
|
/**
|
|
33
36
|
* How well a candidate matches the role after the full end-to-end evaluation
|