@reconcrap/boss-recommend-mcp 2.0.34 → 2.0.36
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.
|
@@ -3,10 +3,13 @@ import {
|
|
|
3
3
|
normalizeRecruitSearchParams
|
|
4
4
|
} from "./search.js";
|
|
5
5
|
|
|
6
|
-
export function buildRecruitRefreshSearchParams(searchParams = {}
|
|
6
|
+
export function buildRecruitRefreshSearchParams(searchParams = {}, {
|
|
7
|
+
forceRecentViewed = true
|
|
8
|
+
} = {}) {
|
|
9
|
+
const normalizedSearchParams = normalizeRecruitSearchParams(searchParams);
|
|
7
10
|
return {
|
|
8
|
-
...
|
|
9
|
-
filter_recent_viewed: true
|
|
11
|
+
...normalizedSearchParams,
|
|
12
|
+
filter_recent_viewed: forceRecentViewed ? true : normalizedSearchParams.filter_recent_viewed
|
|
10
13
|
};
|
|
11
14
|
}
|
|
12
15
|
|
|
@@ -16,9 +19,10 @@ export async function refreshRecruitSearchAtEnd(client, {
|
|
|
16
19
|
searchTimeoutMs = 90000,
|
|
17
20
|
resetTimeoutMs = 180000,
|
|
18
21
|
resetSettleMs = 5000,
|
|
19
|
-
cityOptionTimeoutMs = 30000
|
|
22
|
+
cityOptionTimeoutMs = 30000,
|
|
23
|
+
forceRecentViewed = true
|
|
20
24
|
} = {}) {
|
|
21
|
-
const refreshSearchParams = buildRecruitRefreshSearchParams(searchParams);
|
|
25
|
+
const refreshSearchParams = buildRecruitRefreshSearchParams(searchParams, { forceRecentViewed });
|
|
22
26
|
const application = await applyRecruitSearchParams(client, {
|
|
23
27
|
searchParams: refreshSearchParams,
|
|
24
28
|
requireCards,
|
|
@@ -32,7 +36,7 @@ export async function refreshRecruitSearchAtEnd(client, {
|
|
|
32
36
|
return {
|
|
33
37
|
ok: !requireCards || cardCount > 0,
|
|
34
38
|
method: "page_reload_search",
|
|
35
|
-
forced_recent_viewed:
|
|
39
|
+
forced_recent_viewed: Boolean(forceRecentViewed),
|
|
36
40
|
search_params: refreshSearchParams,
|
|
37
41
|
card_count: cardCount,
|
|
38
42
|
application
|