weaver-work-cli 0.1.44 → 0.1.46
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/README.md +9 -5
- package/dist/chunks/{archive-P6TBQGKL.js → archive-ZQ4A4TV6.js} +388 -44
- package/dist/chunks/{archive-oa-7TQ2NXOH.js → archive-oa-BBDP7AKJ.js} +2 -2
- package/dist/chunks/{asset-3ELRG37G.js → asset-ZOJVBWZH.js} +2 -2
- package/dist/chunks/{asset-idle-WIGMUFMD.js → asset-idle-XGB5IPGT.js} +2 -2
- package/dist/chunks/{attachment-content-E3276UOV.js → attachment-content-MCXQBD6N.js} +3 -3
- package/dist/chunks/{blog-C5NMZAAC.js → blog-QSHLZSFW.js} +2 -2
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-FI2WNSBO.js → calendar-DLGMRJQA.js} +2 -2
- package/dist/chunks/{chunk-PUQS5MWL.js → chunk-3YV7PKRL.js} +1 -1
- package/dist/chunks/{chunk-FAZTGX7S.js → chunk-4RWS2YYL.js} +5 -5
- package/dist/chunks/{chunk-GM6J7Q4B.js → chunk-6AXKWFKG.js} +32 -12
- package/dist/chunks/{chunk-ETNJSKMM.js → chunk-6NXT4ICB.js} +148 -21
- package/dist/chunks/{chunk-QVSWRLLU.js → chunk-6V5ZPKHV.js} +56 -12
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-PC7VKEB5.js → chunk-76H3IKH6.js} +178 -37
- package/dist/chunks/{chunk-FRZKBMSW.js → chunk-AD46OMQK.js} +239 -41
- package/dist/chunks/{chunk-WSF4NNMR.js → chunk-CZNZKOHR.js} +2 -2
- package/dist/chunks/{chunk-TA7FXXJD.js → chunk-DLY5GUXX.js} +1 -1
- package/dist/chunks/{chunk-BCVYBYYT.js → chunk-GR76ZDDX.js} +2 -2
- package/dist/chunks/{chunk-CWYGFU5B.js → chunk-GSZTA43P.js} +2 -2
- package/dist/chunks/{chunk-GRDRG6HP.js → chunk-HFXK54M4.js} +2 -2
- package/dist/chunks/{chunk-N4M2DDFE.js → chunk-IP4CWQCF.js} +11 -11
- package/dist/chunks/{chunk-GAMZLAG2.js → chunk-IRMIEDXN.js} +1 -1
- package/dist/chunks/{chunk-XNIK66I4.js → chunk-JB34OE7R.js} +790 -77
- package/dist/chunks/{chunk-HIT4Y6OI.js → chunk-JFAWZX53.js} +134 -13
- package/dist/chunks/{chunk-D4ADSZ7H.js → chunk-O6CMPO65.js} +24 -1
- package/dist/chunks/{chunk-Z7VYWPZV.js → chunk-OXHHJWNC.js} +1 -1
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-5XSM2DFP.js → chunk-PGO4ILMQ.js} +41 -521
- package/dist/chunks/{chunk-OF4S23UB.js → chunk-PSOMGA3U.js} +4 -4
- package/dist/chunks/{chunk-F4E4EM35.js → chunk-TGAGQV4I.js} +2 -2
- package/dist/chunks/{chunk-UFIT2UU3.js → chunk-U6R6FZHD.js} +168 -14
- package/dist/chunks/{chunk-XHK4MDR5.js → chunk-UFIFZ4YC.js} +48 -14
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-3YBDYOC4.js → chunk-YIKSL36S.js} +2 -2
- package/dist/chunks/{chunk-IAZ3UPY6.js → chunk-Z6UUBY37.js} +2 -2
- package/dist/chunks/{conflict-ARLSZJ6V.js → conflict-H7EHQXYY.js} +2 -2
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{contract-DNIIW5VJ.js → contract-3QLAGYQL.js} +5793 -4591
- package/dist/chunks/{cowork-GMLRGVIW.js → cowork-3ACICHDQ.js} +2 -2
- package/dist/chunks/{create-flow-J22BO65E.js → create-flow-VRVJEOBX.js} +6 -6
- package/dist/chunks/{ebuilder-form-ANV2FHYV.js → ebuilder-form-GWDTKEI2.js} +5 -5
- package/dist/chunks/{ehr-GSTGAIY3.js → ehr-SH2LM3NK.js} +648 -88
- package/dist/chunks/{employee-22BGJ3QS.js → employee-NOHNXC46.js} +1 -1
- package/dist/chunks/{env-BX3VRFS7.js → env-66FPSJDV.js} +2 -2
- package/dist/chunks/{esb-ATAIASX2.js → esb-4BQHNP5C.js} +4 -4
- package/dist/chunks/{factory-PETTFME6.js → factory-UH2TZBVA.js} +1 -1
- package/dist/chunks/{fna-YEKBSFSX.js → fna-ZVB2IILI.js} +2 -2
- package/dist/chunks/{group-chat-BFVXAYFX.js → group-chat-CAKMMV7K.js} +3 -3
- package/dist/chunks/{host-WIKN2EJ5.js → host-3TNBMDTR.js} +3 -3
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-SZGV4UNT.js → host-7OWWPLM4.js} +3 -3
- package/dist/chunks/{host-HRBXEPDQ.js → host-G3VU7SDW.js} +3 -3
- package/dist/chunks/{host-LR55CTHP.js → host-M4XP5URR.js} +3 -3
- package/dist/chunks/{host-SUOY6VYQ.js → host-TUOIOEMC.js} +3 -3
- package/dist/chunks/{hrm-NRDO4W5G.js → hrm-UNKCCCGP.js} +5 -5
- package/dist/chunks/{im-IQ2HN23S.js → im-NJB7ZYMH.js} +3 -3
- package/dist/chunks/{invoice-MNRW76PP.js → invoice-OQP3TMKQ.js} +3 -3
- package/dist/chunks/{jiuchuanhui-DTRBAX4N.js → jiuchuanhui-ASFZBMPU.js} +2 -2
- package/dist/chunks/{lazy-dispatch-ZVWAI25B.js → lazy-dispatch-DD6ULZ3I.js} +4 -4
- package/dist/chunks/{mail-ZVAUXOJA.js → mail-M3HJF5ER.js} +2 -2
- package/dist/chunks/{meeting-FEVPZ67S.js → meeting-VTBFW4HI.js} +12 -12
- package/dist/chunks/{okr-SDH3E5RA.js → okr-EVX7FB5G.js} +2 -2
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-E35JFDI7.js → plan-2QJQEPBO.js} +2 -2
- package/dist/chunks/{project-73QXBAB2.js → project-XELELW2T.js} +2 -2
- package/dist/chunks/{reception-UWZVACBN.js → reception-5WITA44R.js} +2 -2
- package/dist/chunks/{recruit-stage-4MAOCKFY.js → recruit-stage-CAKZTUA7.js} +1343 -178
- package/dist/chunks/{registry-JDUS4E7D.js → registry-AQVGHUM6.js} +2 -2
- package/dist/chunks/{registry-IM5G23LS.js → registry-JVQBLFQ5.js} +10 -10
- package/dist/chunks/{registry-KNKSCJNT.js → registry-QJCZ2GVG.js} +4 -4
- package/dist/chunks/{registry-PO7SI256.js → registry-VWXWPVAG.js} +2 -2
- package/dist/chunks/{room-recommend-H7KLXA5R.js → room-recommend-5U55FMXZ.js} +6 -4
- package/dist/chunks/{schedule-ESZIBAUO.js → schedule-IDETODCA.js} +4 -4
- package/dist/chunks/{workflow-CWJFJLQU.js → workflow-BSYT5TGL.js} +6 -4
- package/dist/cmd/action.js +14 -10
- package/dist/index.js +30 -30
- package/dist/internal/e10/auth/commands.js +32 -0
- package/dist/internal/e10/auth/error-log.js +156 -26
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/context.js +12 -1
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +19 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/ehr/host.js +2 -2
- package/dist/shortcuts/ehr/index.js +14 -3
- package/dist/shortcuts/ehr/manifest.js +5 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +44 -12
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +146 -43
- package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +154 -36
- package/dist/shortcuts/ehr/operations/recruit.js +196 -12
- package/dist/shortcuts/ehr/operations/registry.js +4 -0
- package/dist/shortcuts/ehr/operations.js +24 -0
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +274 -75
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +63 -11
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +38 -7
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/invitation.js +27 -4
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +356 -29
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +36 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +309 -67
- package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +310 -17
- package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
- package/dist/shortcuts/recruit-stage/shared.js +221 -24
- package/dist/shortcuts/workflow/index.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/docs/contract.md +1 -0
- package/docs/e10-auth.md +4 -2
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jucailin/SKILL.md +12 -3
- package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
- package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -91
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
- package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +55 -11
- package/skills/weaver-e10-meeting/SKILL.md +103 -11
- package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -11
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +26 -8
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +23 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +11 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yimiaoban/SKILL.md +17 -5
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +30 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
|
@@ -279,7 +279,22 @@ var SCHEMA_STRING_LIST = { type: "array", items: { type: "string" } };
|
|
|
279
279
|
|
|
280
280
|
// src/shortcuts/ehr/operations/recruit.ts
|
|
281
281
|
var RECRUIT_APP_TAG = "weaver-recruit-service";
|
|
282
|
-
var RECRUIT_CACHE_VERSION =
|
|
282
|
+
var RECRUIT_CACHE_VERSION = 4;
|
|
283
|
+
var RECRUIT_CRITICAL_FORMS = /* @__PURE__ */ new Set(["position_manage", "talent_pool", "interview_plan"]);
|
|
284
|
+
var RECRUIT_CRITICAL_FORM_LABELS = {
|
|
285
|
+
position_manage: "\u62DB\u8058\u804C\u4F4D",
|
|
286
|
+
talent_pool: "\u4EBA\u624D\u5E93",
|
|
287
|
+
interview_plan: "\u9762\u8BD5\u7BA1\u7406"
|
|
288
|
+
};
|
|
289
|
+
function hasCriticalFields(cache) {
|
|
290
|
+
for (const logic of RECRUIT_CRITICAL_FORMS) {
|
|
291
|
+
const objId = cache?.forms?.[logic]?.objId;
|
|
292
|
+
if (!objId) return false;
|
|
293
|
+
const fmap = cache?.fields?.[objId] || {};
|
|
294
|
+
if (!Object.keys(fmap).length) return false;
|
|
295
|
+
}
|
|
296
|
+
return true;
|
|
297
|
+
}
|
|
283
298
|
var RECRUIT_TAGS = {
|
|
284
299
|
talent_pool: "uf_rcrt_talent_pool",
|
|
285
300
|
interview_plan: "uf_rcrt_interview_plan",
|
|
@@ -400,20 +415,22 @@ async function fetchFormFields(host, appId, objId) {
|
|
|
400
415
|
const dataKey = config.dataKey || "";
|
|
401
416
|
const fieldId = String(field?.id || "");
|
|
402
417
|
if (dataKey && fieldId) fmap[dataKey] = fieldId;
|
|
403
|
-
|
|
418
|
+
const selectLike = field?.type === "Select" || field?.type === "Switch";
|
|
419
|
+
if (selectLike && fieldId && Array.isArray(config.options) && config.options.length) {
|
|
404
420
|
const map = {};
|
|
405
421
|
for (const option of config.options) {
|
|
406
422
|
if (!option || typeof option !== "object") continue;
|
|
407
423
|
const name = option.name;
|
|
408
|
-
|
|
424
|
+
const scalar = (v) => (typeof v === "string" || typeof v === "number") && String(v) !== "" ? String(v) : "";
|
|
425
|
+
let selectionId = scalar(option.value) || scalar(option.valueKey);
|
|
409
426
|
if (!selectionId && typeof option.extra === "string") {
|
|
410
427
|
try {
|
|
411
428
|
const extra = JSON.parse(option.extra);
|
|
412
|
-
selectionId = extra.
|
|
429
|
+
selectionId = scalar(extra.valueKey) || scalar(extra.value);
|
|
413
430
|
} catch {
|
|
414
431
|
}
|
|
415
432
|
}
|
|
416
|
-
if (!selectionId) selectionId = option.
|
|
433
|
+
if (!selectionId) selectionId = scalar(option.selectionId) || scalar(option.id);
|
|
417
434
|
if (selectionId && name) map[String(selectionId)] = name;
|
|
418
435
|
}
|
|
419
436
|
if (Object.keys(map).length) omap[fieldId] = map;
|
|
@@ -438,6 +455,13 @@ async function resolveRecruitEnv(host, appId) {
|
|
|
438
455
|
};
|
|
439
456
|
if (!tenantKey && entry?.tenantKey) tenantKey = String(entry.tenantKey);
|
|
440
457
|
}
|
|
458
|
+
for (const logic of RECRUIT_CRITICAL_FORMS) {
|
|
459
|
+
if (forms[logic]?.objId) continue;
|
|
460
|
+
throw new RecruitContextError(
|
|
461
|
+
"recruit_form_unresolved",
|
|
462
|
+
`\u5F53\u524D\u73AF\u5883\u672A\u89E3\u6790\u5230\u300C${RECRUIT_CRITICAL_FORM_LABELS[logic] || logic}\u300D\u8868\u5355\uFF08getObjsByTag \u8FD4\u56DE\u7A7A\uFF09\uFF0C\u5DF2\u4E2D\u6B62\u4E14\u672A\u5199\u5165\u7F13\u5B58\uFF1B\u8BF7\u786E\u8BA4\u62DB\u8058\u5E94\u7528\u5DF2\u5B89\u88C5\u3001\u8D26\u53F7\u5BF9\u8BE5\u8868\u5355\u6709\u6743\u9650\u540E\u91CD\u8BD5\u3002`
|
|
463
|
+
);
|
|
464
|
+
}
|
|
441
465
|
const menuResponse = await host.request({
|
|
442
466
|
path: "/api/cusapp/app/allMenus",
|
|
443
467
|
query: { isFront: 1, appId, terminalType: "PC" }
|
|
@@ -467,9 +491,14 @@ async function resolveRecruitEnv(host, appId) {
|
|
|
467
491
|
const resolvedForms = Object.entries(forms).filter(([, v]) => v.objId);
|
|
468
492
|
await Promise.all(resolvedForms.map(async ([logic, entry]) => {
|
|
469
493
|
const { fmap, omap } = await fetchFormFields(host, appId, entry.objId);
|
|
494
|
+
if (!Object.keys(fmap).length && RECRUIT_CRITICAL_FORMS.has(logic)) {
|
|
495
|
+
throw new RecruitContextError(
|
|
496
|
+
"recruit_context_missing",
|
|
497
|
+
`\u5F53\u524D\u73AF\u5883\u672A\u89E3\u6790\u5230\u300C${entry.objName || logic}\u300D\u8868\u5355\u7684\u5B57\u6BB5\u5217\u8868\uFF08ds/fields \u8FD4\u56DE\u7A7A\uFF09\uFF0C\u5DF2\u4E2D\u6B62\u4E14\u672A\u5199\u5165\u7F13\u5B58\uFF1B\u8BF7\u786E\u8BA4\u62DB\u8058\u5E94\u7528\u5DF2\u5B89\u88C5\u3001\u8D26\u53F7\u5BF9\u8BE5\u8868\u5355\u6709\u6743\u9650\uFF0C\u6216\u5220\u9664\u73AF\u5883\u7F13\u5B58\u540E\u91CD\u8BD5\u3002`
|
|
498
|
+
);
|
|
499
|
+
}
|
|
470
500
|
if (Object.keys(fmap).length) fields[entry.objId] = fmap;
|
|
471
501
|
if (Object.keys(omap).length) fieldOptions[entry.objId] = omap;
|
|
472
|
-
void logic;
|
|
473
502
|
}));
|
|
474
503
|
const dictByName = {};
|
|
475
504
|
const dictRaw = [];
|
|
@@ -651,7 +680,7 @@ function createRecruitContextLoader() {
|
|
|
651
680
|
}
|
|
652
681
|
} catch {
|
|
653
682
|
}
|
|
654
|
-
if (diskCache && diskCache.cacheVersion === RECRUIT_CACHE_VERSION) {
|
|
683
|
+
if (diskCache && diskCache.cacheVersion === RECRUIT_CACHE_VERSION && hasCriticalFields(diskCache)) {
|
|
655
684
|
memo.set(memoKey, diskCache);
|
|
656
685
|
return diskCache;
|
|
657
686
|
}
|
|
@@ -684,7 +713,10 @@ function createRecruitContextLoader() {
|
|
|
684
713
|
}, null, 2),
|
|
685
714
|
"utf8"
|
|
686
715
|
);
|
|
687
|
-
} catch {
|
|
716
|
+
} catch (error) {
|
|
717
|
+
if (process.env.WEAVER_CLI_DEBUG_CACHE) {
|
|
718
|
+
console.error("[recruit-context] \u7F13\u5B58\u843D\u76D8\u5931\u8D25:", error instanceof Error ? error.message : String(error));
|
|
719
|
+
}
|
|
688
720
|
}
|
|
689
721
|
memo.set(memoKey, resolved);
|
|
690
722
|
return resolved;
|
|
@@ -872,7 +904,7 @@ var candidateList = {
|
|
|
872
904
|
resource: "recruit",
|
|
873
905
|
method: "candidate.list",
|
|
874
906
|
action: "ehr.recruit.candidate.list",
|
|
875
|
-
summary: "\u67E5\u8BE2\u62DB\u8058\u4E1A\u52A1\u5217\u8868\uFF08demand \u62DB\u8058\u9700\u6C42 / position \u62DB\u8058\u804C\u4F4D / entry \u5165\u804C\u7BA1\u7406 / offer \u5F55\u7528\u7BA1\u7406\uFF09\uFF0CdisplayData \u663E\u793A\u5C42\u96F6\u7FFB\u8BD1\u8F93\u51FA",
|
|
907
|
+
summary: "\u67E5\u8BE2\u62DB\u8058\u4E1A\u52A1\u5217\u8868\uFF08demand \u62DB\u8058\u9700\u6C42 / position \u62DB\u8058\u804C\u4F4D / entry \u5165\u804C\u7BA1\u7406 / offer \u5F55\u7528\u7BA1\u7406 / interview \u9762\u8BD5\u7BA1\u7406 / candidate \u5E94\u8058\u8005\uFF09\uFF0CdisplayData \u663E\u793A\u5C42\u96F6\u7FFB\u8BD1\u8F93\u51FA",
|
|
876
908
|
capability: "recruit",
|
|
877
909
|
risk: READ,
|
|
878
910
|
inputSchema: schemaOf({
|
|
@@ -935,11 +967,13 @@ var candidateList = {
|
|
|
935
967
|
}
|
|
936
968
|
return cleaned;
|
|
937
969
|
});
|
|
970
|
+
const idNote = type === "position" ? "\u672C\u5217\u8868\u4E0D\u8FD4\u56DE position_id\uFF08\u540E\u7AEF\u63A5\u53E3\u65E0\u6B64\u5B57\u6BB5\uFF09\uFF1B\u804C\u4F4D id \u8BF7\u7528\u6BCF\u884C\u7684 form_data_id\uFF0C\u6216\u6539\u7528 type=candidate \u5217\u8868\uFF08\u90A3\u91CC\u6709\u771F\u5B9E position_id \u4E0E talent_id\uFF09\u3002" : type === "interview" ? "\u672C\u5217\u8868\u7684 talent_id / position_manage_id \u662F\u4EBA\u540D\u4E0D\u662F id\uFF1B\u8981\u4EBA\u624D id \u8BF7\u7528 candidate.search \u6309\u624B\u673A\u53F7\u6216\u59D3\u540D\u53D6\u3002" : type === "candidate" ? "\u672C\u5217\u8868\u7684 form_data_id \u662F\u300C\u5E94\u8058\u6279\u6B21(candidateManage)\u300Did\uFF0Cposition_id / talent_id \u662F\u771F\u5B9E id\uFF0C\u53EF\u76F4\u63A5\u7528\u4E8E\u5361\u7247\u4E0E\u5199\u64CD\u4F5C\u3002" : void 0;
|
|
938
971
|
return ehrSuccess("ehr.recruit.candidate.list", {
|
|
939
972
|
type,
|
|
940
973
|
total,
|
|
941
974
|
totalExact,
|
|
942
975
|
...totalNote ? { totalNote } : {},
|
|
976
|
+
...idNote ? { idNote } : {},
|
|
943
977
|
current: body.current,
|
|
944
978
|
pageSize: body.pageSize,
|
|
945
979
|
rows: outRows
|
|
@@ -1131,17 +1165,56 @@ var candidateCard = {
|
|
|
1131
1165
|
const v = randHex6();
|
|
1132
1166
|
const query = `talentId=${id}&batchId=${batchId}&v=${v}&randomkey_${rk2}=${rk2}`;
|
|
1133
1167
|
const cardBody = { talentId: id, batchId, current: 1, pageSize: 100 };
|
|
1134
|
-
const
|
|
1168
|
+
const talentObjId = cache.forms.talent_pool?.objId;
|
|
1169
|
+
const [base, other, interview, remark, talentForm] = await Promise.all([
|
|
1135
1170
|
env.host.request({ path: `/api/recruit/candidate/getCandidateCardBaseInfo?${query}`, headers: extra }),
|
|
1136
1171
|
env.host.request({ path: `/api/recruit/candidate/getCandidateCardOtherInfo?${query}`, headers: extra }),
|
|
1137
1172
|
env.host.request({ path: "/api/recruit/candidate/getCandidateCardInterviewInfo", body: cardBody, headers: extra }),
|
|
1138
|
-
env.host.request({ path: "/api/recruit/candidate/getCandidateCardRemark", body: cardBody, headers: extra })
|
|
1173
|
+
env.host.request({ path: "/api/recruit/candidate/getCandidateCardRemark", body: cardBody, headers: extra }),
|
|
1174
|
+
talentObjId ? env.host.request({
|
|
1175
|
+
path: "/api/ebuilder/form/dataset/v2/getDataById",
|
|
1176
|
+
method: "POST",
|
|
1177
|
+
// EB OpenAPI 族的成功标识在 `data.datajson.status`,顶层无 code/status,
|
|
1178
|
+
// 走通用业务判定会被误判成失败,故跳过判定(HTTP/解析/会话保护仍然生效)。
|
|
1179
|
+
skipBusinessCheck: true,
|
|
1180
|
+
body: {
|
|
1181
|
+
datajson: {
|
|
1182
|
+
header: { objId: talentObjId },
|
|
1183
|
+
mainTable: { id },
|
|
1184
|
+
operationinfo: { isReturnDetail: "y", fieldNoFindIgnore: "false" }
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
headers: extra
|
|
1188
|
+
}) : Promise.resolve(null)
|
|
1139
1189
|
]);
|
|
1140
1190
|
const statusMap = cache.options?.recruit_status || {};
|
|
1141
1191
|
const talent = base?.data?.talent || {};
|
|
1142
1192
|
const currentBatch = other?.data?.currentCandidateBatch || {};
|
|
1143
1193
|
const interviewList = interview?.data?.list || [];
|
|
1144
1194
|
const remarkList = remark?.data?.list || [];
|
|
1195
|
+
const formRow = talentForm?.data?.datajson?.datas?.[0] || null;
|
|
1196
|
+
const pick = (holder) => {
|
|
1197
|
+
if (holder === void 0 || holder === null) return null;
|
|
1198
|
+
for (const candidate of [holder.fieldValue, holder.fieldOptionName, holder.fieldOptionId]) {
|
|
1199
|
+
if (candidate !== void 0 && candidate !== null && String(candidate).trim() !== "") {
|
|
1200
|
+
return candidate;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
return null;
|
|
1204
|
+
};
|
|
1205
|
+
const cell = (obj, key) => {
|
|
1206
|
+
const v2 = obj?.[key];
|
|
1207
|
+
if (v2 === void 0 || v2 === null) return null;
|
|
1208
|
+
if (Array.isArray(v2)) return v2.length ? pick(v2[0]) : null;
|
|
1209
|
+
if (typeof v2 === "object") return pick(v2);
|
|
1210
|
+
return v2;
|
|
1211
|
+
};
|
|
1212
|
+
const mainTable = formRow?.mainTable || {};
|
|
1213
|
+
const detailGroups = Object.entries(formRow || {}).filter(([key]) => /^detail\d+$/.test(key)).map(([, rows]) => Array.isArray(rows) ? rows : []);
|
|
1214
|
+
const rowsWith = (probeKey) => detailGroups.find((rows) => rows.some((row) => row?.[probeKey] !== void 0)) || [];
|
|
1215
|
+
const workRows = rowsWith("co_name");
|
|
1216
|
+
const eduRows = rowsWith("school");
|
|
1217
|
+
const projectRows = rowsWith("pj_name");
|
|
1145
1218
|
const baseUrl = (await env.host.getSession()).baseUrl.replace(/\/+$/, "");
|
|
1146
1219
|
return ehrSuccess("ehr.recruit.candidate.card", {
|
|
1147
1220
|
talentId: id,
|
|
@@ -1149,10 +1222,22 @@ var candidateCard = {
|
|
|
1149
1222
|
baseInfo: {
|
|
1150
1223
|
name: talent?.hrm?.name,
|
|
1151
1224
|
mobile: talent?.telephone,
|
|
1225
|
+
email: talent?.email || null,
|
|
1152
1226
|
channel: talent?.channel,
|
|
1153
1227
|
status: statusMap[base?.data?.recruitStatus] || base?.data?.recruitStatus || null,
|
|
1154
|
-
createTime: talent?.createTime
|
|
1228
|
+
createTime: talent?.createTime,
|
|
1229
|
+
updateTime: talent?.updateTime || null,
|
|
1230
|
+
// 🔴 isBlacklist 后端给的是**字典 optionId**(实测 840803130362052609),不是布尔值;
|
|
1231
|
+
// 该字典名未在 env 缓存里暴露,硬翻会猜错语义,故只保留原始 id 并标明它是 optionId,
|
|
1232
|
+
// 需要「是否拉黑」的业务判断时请到页面确认,不要把长 id 当成 true。
|
|
1233
|
+
isBlacklistOptionId: talent?.isBlacklist || null,
|
|
1234
|
+
resumeFileCount: Array.isArray(talent?.originalResume) ? talent.originalResume.length : 0
|
|
1155
1235
|
},
|
|
1236
|
+
// 🔴 两处 channel 来源不同(2026-11-07 实测,属正常不是 bug):
|
|
1237
|
+
// baseInfo.channel = talent.channel,人才档案里的「简历来源渠道」;
|
|
1238
|
+
// position.channel = currentBatch.channel,本应聘批次走的渠道(如内部遴选)。
|
|
1239
|
+
// 同一人才可有多批次,这两者天然可能不一致,不要当成数据错误去"修正"。
|
|
1240
|
+
channelNote: "baseInfo.channel \u662F\u4EBA\u624D\u6863\u6848\u7684\u7B80\u5386\u6765\u6E90\u6E20\u9053\uFF1Bposition.channel \u662F\u5F53\u524D\u5E94\u8058\u6279\u6B21\u7684\u6E20\u9053\uFF0C\u4E24\u8005\u6765\u6E90\u4E0D\u540C\u3001\u53EF\u80FD\u4E0D\u4E00\u81F4\u3002",
|
|
1156
1241
|
position: {
|
|
1157
1242
|
position: currentBatch?.position?.name,
|
|
1158
1243
|
stage: currentBatch?.currentStageName,
|
|
@@ -1186,7 +1271,41 @@ var candidateCard = {
|
|
|
1186
1271
|
time: item?.contactTime || item?.createTime,
|
|
1187
1272
|
creator: item?.creator?.username || item?.creator?.name || null,
|
|
1188
1273
|
content: item?.remark
|
|
1189
|
-
}))
|
|
1274
|
+
})),
|
|
1275
|
+
// 人才档案全量(D7 补齐,2026-11-07)。此前 baseInfo 只有 9 个基础键,简历里的学历/年限/薪资都读不到。
|
|
1276
|
+
profile: {
|
|
1277
|
+
highestDegree: cell(mainTable, "highest_degree"),
|
|
1278
|
+
workYears: cell(mainTable, "work_exp"),
|
|
1279
|
+
expectSalary: cell(mainTable, "expect_salary"),
|
|
1280
|
+
currentSalary: cell(mainTable, "current_salary"),
|
|
1281
|
+
expectIndustry: cell(mainTable, "expect_industry"),
|
|
1282
|
+
locationArea: cell(mainTable, "location_area"),
|
|
1283
|
+
college: cell(mainTable, "college") ?? cell(mainTable, "hd_college"),
|
|
1284
|
+
major: cell(mainTable, "major") ?? cell(mainTable, "hd_major"),
|
|
1285
|
+
graduateDate: cell(mainTable, "graduate_date")
|
|
1286
|
+
},
|
|
1287
|
+
workExperiences: workRows.map((row) => ({
|
|
1288
|
+
company: cell(row, "co_name"),
|
|
1289
|
+
position: cell(row, "work_position"),
|
|
1290
|
+
start: cell(row, "start_end_date_0"),
|
|
1291
|
+
end: cell(row, "start_end_date_1")
|
|
1292
|
+
})),
|
|
1293
|
+
educations: eduRows.map((row) => ({
|
|
1294
|
+
school: cell(row, "school"),
|
|
1295
|
+
degree: cell(row, "edu_education"),
|
|
1296
|
+
major: cell(row, "edu_major"),
|
|
1297
|
+
start: cell(row, "study_date_0"),
|
|
1298
|
+
end: cell(row, "study_date_1")
|
|
1299
|
+
})),
|
|
1300
|
+
projects: projectRows.map((row) => ({
|
|
1301
|
+
name: cell(row, "pj_name"),
|
|
1302
|
+
introduction: cell(row, "pj_introduction"),
|
|
1303
|
+
start: cell(row, "pj_date_0"),
|
|
1304
|
+
end: cell(row, "pj_date_1")
|
|
1305
|
+
})),
|
|
1306
|
+
// 空值不是读取失败:E9 迁移的老人才(如测试人 100005840000020214)只迁了 18 个基础字段,
|
|
1307
|
+
// 教育/工作/项目经历本来就没有数据;新建人才(千里聆解析)通常是三张明细齐全。
|
|
1308
|
+
profileNote: "profile \u4E0E workExperiences/educations/projects \u6765\u81EA\u4EBA\u624D\u8868\u5355\u5168\u91CF\u8BFB\u53D6\uFF1B\u5B57\u6BB5\u4E3A\u7A7A\u8868\u793A\u8BE5\u4EBA\u624D\u6863\u6848\u91CC\u6CA1\u5F55\u8FD9\u9879\uFF08\u5E38\u89C1\u4E8E\u65E9\u671F E9 \u8FC1\u79FB\u6570\u636E\uFF09\uFF0C\u4E0D\u662F\u8BFB\u53D6\u5931\u8D25\u3002"
|
|
1190
1309
|
});
|
|
1191
1310
|
}
|
|
1192
1311
|
};
|
|
@@ -1231,6 +1350,8 @@ export {
|
|
|
1231
1350
|
EHR_PAGES,
|
|
1232
1351
|
ehrPageUrl,
|
|
1233
1352
|
addDays,
|
|
1353
|
+
LIST_TYPES,
|
|
1354
|
+
namesOf,
|
|
1234
1355
|
createRecruitContextLoader,
|
|
1235
1356
|
buildListBody,
|
|
1236
1357
|
fetchListRows,
|
|
@@ -284,6 +284,7 @@ function resolveEmployeeCondition(args) {
|
|
|
284
284
|
if (explicit) return { field: explicit, value: String(args[explicit]).trim() };
|
|
285
285
|
const keyword = args.keyword === void 0 ? "" : String(args.keyword).trim();
|
|
286
286
|
if (!keyword) {
|
|
287
|
+
if (args.all === true) return { field: "", value: "" };
|
|
287
288
|
throw hrmValidationError("empty_condition", "\u5458\u5DE5\u67E5\u8BE2\u5FC5\u987B\u643A\u5E26\u81F3\u5C11\u4E00\u4E2A\u6536\u655B\u6761\u4EF6\uFF1Akeyword\uFF08\u81EA\u52A8\u63A8\u65AD\uFF09\u6216 username/job_num/mobile/email \u4E4B\u4E00");
|
|
288
289
|
}
|
|
289
290
|
const inferred = inferEmployeeField(keyword);
|
|
@@ -313,6 +314,7 @@ var employeeQuery = {
|
|
|
313
314
|
email: { type: "string", description: "\u90AE\u7BB1\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
|
|
314
315
|
status: { type: "array", items: { type: "string", enum: [...EMPLOYEE_STATUS] }, description: '\u9ED8\u8BA4 ["normal"] \u5728\u804C\uFF1B["6"] \u79BB\u804C\u3002\u4E0D\u80FD\u5355\u72EC\u4F5C\u4E3A\u6536\u655B\u6761\u4EF6' },
|
|
315
316
|
full: { type: "boolean", description: "\u9ED8\u8BA4 false\uFF1A\u6BCF\u884C\u53EA\u56DE\u4EBA\u5458\u4FE1\u606F\uFF08id/name/department/position/statusCode/link\uFF09\uFF1Btrue\uFF1A\u56DE\u5B8C\u6574\u884C\uFF08\u53E6\u542B userid/cid/mobile/departmentId/deptLink\uFF09" },
|
|
317
|
+
all: { type: "boolean", description: "true = \u81EA\u52A8\u7FFB\u9875\u62C9\u5168\u91CF\uFF08\u6700\u591A 50 \u9875\uFF09\uFF1B\u7ED3\u679C\u591A\u65F6\u5EFA\u8BAE\u76F4\u63A5\u4F20\uFF0C\u907F\u514D\u53EA\u62FF\u5230\u7B2C\u4E00\u9875" },
|
|
316
318
|
...SCHEMA_PAGE
|
|
317
319
|
}),
|
|
318
320
|
handler: async (args, { host }) => {
|
|
@@ -328,7 +330,7 @@ var employeeQuery = {
|
|
|
328
330
|
const formDatas = {
|
|
329
331
|
...memberFormDatasBase(),
|
|
330
332
|
status: [{ statusSelect: statusText }],
|
|
331
|
-
[field]: [{ [`${field}Opt`]: "in", [`${field}Input`]: value }]
|
|
333
|
+
...field !== "" ? { [field]: [{ [`${field}Opt`]: "in", [`${field}Input`]: value }] } : {}
|
|
332
334
|
};
|
|
333
335
|
const body = {
|
|
334
336
|
...browserBaseBody(),
|
|
@@ -345,6 +347,27 @@ var employeeQuery = {
|
|
|
345
347
|
if (current !== void 0) body.current = current;
|
|
346
348
|
if (pageSize !== void 0) body.pageSize = pageSize;
|
|
347
349
|
const session = await host.getSession();
|
|
350
|
+
if (args.all === true) {
|
|
351
|
+
const collected = [];
|
|
352
|
+
let pages = 0;
|
|
353
|
+
const size = pageSize ?? 100;
|
|
354
|
+
for (let p = 1; p <= 200; p += 1) {
|
|
355
|
+
const resp = await host.request({
|
|
356
|
+
method: "POST",
|
|
357
|
+
path: "/api/hrm/common/browser/data/resource",
|
|
358
|
+
body: { ...body, current: p, pageSize: size }
|
|
359
|
+
});
|
|
360
|
+
const pageRows = resp?.data?.data ?? [];
|
|
361
|
+
pages = p;
|
|
362
|
+
if (pageRows.length === 0) break;
|
|
363
|
+
collected.push(...pageRows);
|
|
364
|
+
if (pageRows.length < size) break;
|
|
365
|
+
}
|
|
366
|
+
const allSession = await host.getSession();
|
|
367
|
+
const allBaseUrl = String(allSession.baseUrl ?? "").replace(/\/+$/g, "");
|
|
368
|
+
const allRows = collected.map((r) => args.full === true ? formatMember(r, allBaseUrl) : formatQueryRowBrief(r, allBaseUrl));
|
|
369
|
+
return hrmSuccess("hrm.employee.query", { rows: allRows, total: allRows.length, pagesFetched: pages, all: true }, { current: 1, pageSize: allRows.length });
|
|
370
|
+
}
|
|
348
371
|
const baseUrl = session.baseUrl.replace(/\/+$/, "");
|
|
349
372
|
const dataResp = await host.request({ method: "POST", path: "/api/hrm/common/browser/data/resource", body });
|
|
350
373
|
const rawRows = dataResp?.data?.data ?? [];
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IRMIEDXN.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError
|
|
5
|
+
} from "./chunk-UG5G54VL.js";
|
|
6
|
+
|
|
7
|
+
// src/shortcuts/caizhilian/errors.ts
|
|
8
|
+
var CaizhilianCliError = class extends CliError {
|
|
9
|
+
type;
|
|
10
|
+
subtype;
|
|
11
|
+
code;
|
|
12
|
+
retryable;
|
|
13
|
+
stage;
|
|
14
|
+
details;
|
|
15
|
+
partialData;
|
|
16
|
+
constructor(type, subtype, message, options = {}) {
|
|
17
|
+
super(message, options.exitCode ?? 5 /* InternalError */);
|
|
18
|
+
this.name = "CaizhilianCliError";
|
|
19
|
+
this.type = type;
|
|
20
|
+
this.subtype = subtype;
|
|
21
|
+
this.code = options.code;
|
|
22
|
+
this.retryable = options.retryable ?? false;
|
|
23
|
+
this.stage = options.stage;
|
|
24
|
+
this.details = options.details;
|
|
25
|
+
this.partialData = options.partialData;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
function caizhilianValidationError(subtype, message, details) {
|
|
29
|
+
return new CaizhilianCliError("validation", subtype, message, {
|
|
30
|
+
details,
|
|
31
|
+
exitCode: 2 /* UsageError */
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function caizhilianAuthError(subtype, message, details) {
|
|
35
|
+
return new CaizhilianCliError("authentication", subtype, message, {
|
|
36
|
+
details,
|
|
37
|
+
exitCode: 3 /* AuthError */
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function caizhilianNetworkError(subtype, message, options = {}) {
|
|
41
|
+
return new CaizhilianCliError("network", subtype, message, {
|
|
42
|
+
...options,
|
|
43
|
+
retryable: options.retryable ?? true,
|
|
44
|
+
exitCode: 4 /* NetworkError */
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function caizhilianConfirmationError(action, details) {
|
|
48
|
+
return new CaizhilianCliError("confirmation", "required", "\u8BE5\u64CD\u4F5C\u9700\u8981\u660E\u786E\u786E\u8BA4", {
|
|
49
|
+
details: { action, ...details },
|
|
50
|
+
exitCode: 10 /* ConfirmationRequired */
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
CaizhilianCliError,
|
|
56
|
+
caizhilianValidationError,
|
|
57
|
+
caizhilianAuthError,
|
|
58
|
+
caizhilianNetworkError,
|
|
59
|
+
caizhilianConfirmationError
|
|
60
|
+
};
|