weaver-work-cli 0.1.47 → 0.1.49
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/chunks/{archive-oa-BBDP7AKJ.js → archive-oa-57R2FYHV.js} +565 -17
- package/dist/chunks/{attachment-content-MCXQBD6N.js → attachment-content-MU2LPI5P.js} +3 -3
- package/dist/chunks/{chunk-J2VEB5K3.js → chunk-2BQESR2U.js} +2 -2
- package/dist/chunks/{chunk-727FH2NI.js → chunk-2IGZUMNG.js} +15 -2
- package/dist/chunks/{chunk-IP4CWQCF.js → chunk-3NV2ETZR.js} +8 -8
- package/dist/chunks/{chunk-OXHHJWNC.js → chunk-3X7VOSBA.js} +1 -1
- package/dist/chunks/chunk-5QYE52LG.js +223 -0
- package/dist/chunks/{chunk-IRMIEDXN.js → chunk-6GWU63YF.js} +1 -1
- package/dist/chunks/{chunk-3YV7PKRL.js → chunk-6QYNE6HE.js} +12 -212
- package/dist/chunks/{chunk-Q4OYAQYH.js → chunk-72MI3MBX.js} +4 -0
- package/dist/chunks/{chunk-AD46OMQK.js → chunk-BRRW7CWA.js} +121 -46
- package/dist/chunks/{chunk-76H3IKH6.js → chunk-D2QRZUW4.js} +221 -37
- package/dist/chunks/{chunk-GSZTA43P.js → chunk-EJVA5ZVB.js} +2 -2
- package/dist/chunks/{chunk-4RWS2YYL.js → chunk-GEOMANP7.js} +3 -3
- package/dist/chunks/{chunk-LIEQJIGM.js → chunk-GR76ZDDX.js} +0 -3
- package/dist/chunks/{chunk-O6CMPO65.js → chunk-IW7A2IQY.js} +16 -146
- package/dist/chunks/chunk-JEQHNNSS.js +158 -0
- package/dist/chunks/{chunk-6V5ZPKHV.js → chunk-K3BT54CU.js} +4 -4
- package/dist/chunks/{chunk-6AXKWFKG.js → chunk-KV5SOWMS.js} +4 -4
- package/dist/chunks/{chunk-JB34OE7R.js → chunk-NBEWUR7L.js} +1 -1
- package/dist/chunks/{chunk-PSOMGA3U.js → chunk-ZKEUGS2U.js} +36 -7
- package/dist/chunks/{conflict-H7EHQXYY.js → conflict-6347A7YK.js} +2 -2
- package/dist/chunks/{contract-3QLAGYQL.js → contract-N6P2HIIE.js} +425 -187
- package/dist/chunks/{create-flow-VRVJEOBX.js → create-flow-7WG7LVX5.js} +6 -6
- package/dist/chunks/data-QO7QWOIV.js +2525 -0
- package/dist/chunks/{ehr-SH2LM3NK.js → ehr-XI4BIVR2.js} +16 -5
- package/dist/chunks/{employee-NOHNXC46.js → employee-DR5Y64TI.js} +2 -1
- package/dist/chunks/{env-66FPSJDV.js → env-LHRKSLG6.js} +2 -2
- package/dist/chunks/{factory-UH2TZBVA.js → factory-2H7Z4RWJ.js} +1 -1
- package/dist/chunks/{group-chat-CAKMMV7K.js → group-chat-EW6PNDDT.js} +3 -3
- package/dist/chunks/{hrm-UNKCCCGP.js → hrm-YGIR3HGF.js} +4 -2
- package/dist/chunks/{im-NJB7ZYMH.js → im-3RCNL5GT.js} +107 -1
- package/dist/chunks/{invoice-UEAHSYAE.js → invoice-FXWH5GPO.js} +2 -71
- package/dist/chunks/{lazy-dispatch-25XGTXLM.js → lazy-dispatch-XSAHDK6Z.js} +3 -3
- package/dist/chunks/{meeting-VTBFW4HI.js → meeting-N2FQBHXI.js} +10 -10
- package/dist/chunks/org-NFE7X7FK.js +12 -0
- package/dist/chunks/{reception-5WITA44R.js → reception-MYOKJULO.js} +905 -116
- package/dist/chunks/{recruit-stage-CAKZTUA7.js → recruit-stage-FKWS5UQF.js} +118 -29
- package/dist/chunks/{registry-VWXWPVAG.js → registry-3UGIWH53.js} +4 -2
- package/dist/chunks/{registry-AQVGHUM6.js → registry-7VZ6YJUF.js} +2 -2
- package/dist/chunks/{registry-PVUZQDDQ.js → registry-BUTEDK3C.js} +1 -1
- package/dist/chunks/{registry-JVQBLFQ5.js → registry-CKUVBS53.js} +10 -10
- package/dist/chunks/{room-recommend-5U55FMXZ.js → room-recommend-MBCYENQ2.js} +4 -4
- package/dist/chunks/{schedule-IDETODCA.js → schedule-5IFMCXME.js} +4 -4
- package/dist/chunks/{workflow-BSYT5TGL.js → workflow-2TRU2ZSP.js} +5 -5
- package/dist/core/refs.js +19 -2
- package/dist/index.js +20 -15
- package/dist/shortcuts/archive-oa/constants.js +42 -0
- package/dist/shortcuts/archive-oa/host.js +2 -2
- package/dist/shortcuts/archive-oa/index.js +38 -0
- package/dist/shortcuts/archive-oa/operations/borrow-car.js +117 -3
- package/dist/shortcuts/archive-oa/operations/contract-modules.js +57 -0
- package/dist/shortcuts/archive-oa/operations/contract.js +23 -8
- package/dist/shortcuts/archive-oa/operations/my-borrow-contract.js +271 -0
- package/dist/shortcuts/archive-oa/operations/registry.js +9 -4
- package/dist/shortcuts/archive-oa/operations/shared.js +41 -5
- package/dist/shortcuts/contract/index.js +9 -1
- package/dist/shortcuts/contract/manifest.js +14 -2
- package/dist/shortcuts/contract/operations/card.js +231 -0
- package/dist/shortcuts/contract/operations/registry.js +2 -0
- package/dist/shortcuts/contract/operations/review.js +16 -5
- package/dist/shortcuts/contract/operations/summary.js +25 -17
- package/dist/shortcuts/data/errors.js +64 -0
- package/dist/shortcuts/data/host.js +140 -0
- package/dist/shortcuts/data/index.js +429 -0
- package/dist/shortcuts/data/manifest.js +133 -0
- package/dist/shortcuts/data/operations/attend.js +62 -0
- package/dist/shortcuts/data/operations/conf.js +384 -0
- package/dist/shortcuts/data/operations/ds.js +686 -0
- package/dist/shortcuts/data/operations/field.js +68 -0
- package/dist/shortcuts/data/operations/index.js +65 -0
- package/dist/shortcuts/data/operations/module.js +383 -0
- package/dist/shortcuts/data/operations/noun.js +102 -0
- package/dist/shortcuts/data/operations/query.js +85 -0
- package/dist/shortcuts/data/operations/scene.js +235 -0
- package/dist/shortcuts/data/operations/shared.js +279 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +22 -5
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +28 -12
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +21 -13
- package/dist/shortcuts/ehr/recruit-stage/shared.js +90 -8
- package/dist/shortcuts/im/index.js +128 -0
- package/dist/shortcuts/im/operations/session.js +6 -0
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/host.js +0 -3
- package/dist/shortcuts/invoice/manifest.js +0 -1
- package/dist/shortcuts/invoice/operations/reim-subsidy.js +1 -71
- package/dist/shortcuts/meeting/operations/eb/conflict.js +26 -3
- package/dist/shortcuts/meeting/operations/eb/continuation-alias.js +63 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +71 -12
- package/dist/shortcuts/meeting/operations/eb/factory.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +200 -0
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/reception/constants.js +11 -0
- package/dist/shortcuts/reception/host.js +33 -1
- package/dist/shortcuts/reception/index.js +22 -1
- package/dist/shortcuts/reception/manifest.js +55 -2
- package/dist/shortcuts/reception/operations/ask.js +37 -1
- package/dist/shortcuts/reception/operations/compose.js +124 -3
- package/dist/shortcuts/reception/operations/doc.js +59 -0
- package/dist/shortcuts/reception/operations/docrender.js +25 -1
- package/dist/shortcuts/reception/operations/leads.js +245 -0
- package/dist/shortcuts/reception/operations/markdown.js +22 -0
- package/dist/shortcuts/reception/operations/panels.js +84 -21
- package/dist/shortcuts/reception/operations/registry.js +2 -0
- package/dist/shortcuts/reception/operations/render.js +76 -3
- package/dist/shortcuts/reception/operations/restaurant-rooms.js +118 -0
- package/dist/shortcuts/reception/operations/restaurant.js +264 -0
- package/dist/shortcuts/reception/operations/restaurantrooms.js +42 -0
- package/dist/shortcuts/reception/operations/schedule.js +7 -1
- package/dist/shortcuts/reception/upload.js +22 -6
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +28 -12
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -13
- package/dist/shortcuts/recruit-stage/shared.js +99 -14
- package/docs/SKILL.md +1 -0
- package/docs/_catalog.md +3 -0
- package/docs/archive-oa.md +4 -2
- package/docs/data.md +149 -0
- package/docs/reception.md +59 -5
- package/package.json +1 -1
- package/scripts/check-skill-sync.mjs +188 -0
- package/scripts/package-skill.mjs +17 -3
- package/skill-template/business-info.json +23 -0
- package/skill-template/domains/archive-oa.md +2 -1
- package/skill-template/domains/data.md +15 -0
- package/skill-template/master-skill-template.md +1 -0
- package/skill-template/skill-template.md +1 -0
- package/skills/weaver-e10-archive-oa/SKILL.md +35 -7
- package/skills/weaver-e10-archive-oa/references/borrow-car.md +32 -7
- package/skills/weaver-e10-archive-oa/references/contract-search.md +105 -4
- package/skills/weaver-e10-archive-oa/references/disabled-capabilities.md +2 -2
- package/skills/weaver-e10-archive-oa/references/my-borrow-contract.md +97 -0
- package/skills/weaver-e10-archive-oa/references/my-borrow.md +6 -1
- package/skills/weaver-e10-archive-oa/references/qys-contract-search.md +48 -2
- package/skills/weaver-e10-calendar/SKILL.md +1 -1
- package/skills/weaver-e10-calendar/references/calendar-query.md +1 -1
- package/skills/weaver-e10-calendar/references/calendar-write.md +9 -9
- package/skills/weaver-e10-cowork/SKILL.md +9 -6
- package/skills/weaver-e10-data/SKILL.md +118 -0
- package/skills/weaver-e10-data/references/config-center.md +90 -0
- package/skills/weaver-e10-data/references/datasource.md +136 -0
- package/skills/weaver-e10-data/references/scene-and-misc.md +82 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +10 -7
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +17 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +263 -35
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +8 -5
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +175 -22
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +124 -19
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +6 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +7 -7
- package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +279 -0
- package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +450 -0
- package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +358 -0
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +505 -0
- package/skills/weaver-e10-jucailin/SKILL.md +7 -4
- package/skills/weaver-e10-jucailin/references/recruit-create.md +3 -2
- package/skills/weaver-e10-jucailin/references/recruit-read.md +2 -1
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +3 -3
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +30 -2
- package/skills/weaver-e10-mail/SKILL.md +17 -4
- package/skills/weaver-e10-meeting/SKILL.md +129 -412
- package/skills/weaver-e10-meeting/references/create-flow.md +188 -0
- package/skills/weaver-e10-meeting/references/create-guardrails.md +234 -0
- package/skills/weaver-e10-meeting/references/pitfalls.md +40 -0
- package/skills/weaver-e10-reception-flow/SKILL.md +77 -19
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +628 -26
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +96 -26
- package/skills/weaver-e10-reception-flow/references/guide.md +4 -3
- package/skills/weaver-e10-reception-flow/scripts/render.py +84 -3
- package/skills/weaver-e10-recruit-stage/SKILL.md +45 -12
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +78 -8
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +5 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +16 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +169 -0
- package/skills/weaver-e10-shijingran/SKILL.md +6 -2
- package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
- package/skills/weaver-e10-workflow/SKILL.md +1 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +8 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +1 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +2 -1
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +32 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +3 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/{ebuilder-form-GWDTKEI2.js → ebuilder-form-CBYI6CQ6.js} +3 -3
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-README.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-SKILL.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-openai.yaml +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-position-templates.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +0 -0
|
@@ -618,6 +618,7 @@ function ambiguousPerson(keyword, rows) {
|
|
|
618
618
|
);
|
|
619
619
|
}
|
|
620
620
|
var dsOptionsMemo = /* @__PURE__ */ new Map();
|
|
621
|
+
var dsOptionsFullMemo = /* @__PURE__ */ new Map();
|
|
621
622
|
function restoreDsOptions(snapshot) {
|
|
622
623
|
for (const [key, value] of Object.entries(snapshot || {})) {
|
|
623
624
|
if (value && typeof value === "object" && Object.keys(value).length) {
|
|
@@ -696,6 +697,7 @@ async function verifySubmitted(opts) {
|
|
|
696
697
|
}
|
|
697
698
|
function invalidateEnvCache(baseUrl, appId) {
|
|
698
699
|
dsOptionsMemo.clear();
|
|
700
|
+
dsOptionsFullMemo.clear();
|
|
699
701
|
if (!baseUrl || !appId) return;
|
|
700
702
|
try {
|
|
701
703
|
const host = baseUrl.replace(/^https?:\/\//, "").replace(/\/+$/, "").replace(/:/g, "_");
|
|
@@ -705,21 +707,40 @@ function invalidateEnvCache(baseUrl, appId) {
|
|
|
705
707
|
} catch {
|
|
706
708
|
}
|
|
707
709
|
}
|
|
708
|
-
async function
|
|
709
|
-
const
|
|
710
|
-
|
|
710
|
+
async function fetchDsOptionsRaw(host, objId, fieldId, groupId) {
|
|
711
|
+
const r = await host.request({
|
|
712
|
+
path: "/api/ebuilder/common/ds/options?fieldName=" + fieldId + "&objId=" + objId + "&sourceType=FORM" + (groupId ? "&groupId=" + groupId : ""),
|
|
713
|
+
method: "GET"
|
|
714
|
+
});
|
|
715
|
+
return r?.data || [];
|
|
716
|
+
}
|
|
717
|
+
async function getDsOptionsFull(host, objId, fieldId, groupId = "") {
|
|
718
|
+
const key = objId + ":" + fieldId + (groupId ? ":" + groupId : "") + ":full";
|
|
719
|
+
const hit = dsOptionsFullMemo.get(key);
|
|
711
720
|
if (hit) return hit;
|
|
712
721
|
const task = (async () => {
|
|
713
|
-
const
|
|
714
|
-
path: "/api/ebuilder/common/ds/options?fieldName=" + fieldId + "&objId=" + objId + "&sourceType=FORM" + (groupId ? "&groupId=" + groupId : ""),
|
|
715
|
-
method: "GET"
|
|
716
|
-
});
|
|
717
|
-
const list = r?.data || [];
|
|
722
|
+
const list = await fetchDsOptionsRaw(host, objId, fieldId, groupId);
|
|
718
723
|
const map = {};
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
724
|
+
const disabled = [];
|
|
725
|
+
for (const x of list) {
|
|
726
|
+
if (!x?.name || !x?.id) continue;
|
|
727
|
+
if (String(x.archive) === "1") disabled.push({ name: String(x.name), id: String(x.id) });
|
|
728
|
+
else map[String(x.name)] = String(x.id);
|
|
729
|
+
}
|
|
730
|
+
if (!Object.keys(map).length && !disabled.length) dsOptionsFullMemo.delete(key);
|
|
731
|
+
return { map, disabled };
|
|
722
732
|
})();
|
|
733
|
+
dsOptionsFullMemo.set(key, task);
|
|
734
|
+
task.catch(() => {
|
|
735
|
+
dsOptionsFullMemo.delete(key);
|
|
736
|
+
});
|
|
737
|
+
return task;
|
|
738
|
+
}
|
|
739
|
+
async function getDsOptions(host, objId, fieldId, groupId = "") {
|
|
740
|
+
const key = objId + ":" + fieldId;
|
|
741
|
+
const hit = dsOptionsMemo.get(key);
|
|
742
|
+
if (hit) return hit;
|
|
743
|
+
const task = getDsOptionsFull(host, objId, fieldId, groupId).then((r) => r.map);
|
|
723
744
|
dsOptionsMemo.set(key, task);
|
|
724
745
|
task.catch(() => {
|
|
725
746
|
dsOptionsMemo.delete(key);
|
|
@@ -925,6 +946,44 @@ function buildCardUrl(baseUrl, objId, dataId) {
|
|
|
925
946
|
if (!baseUrl || !objId || !dataId) return null;
|
|
926
947
|
return String(baseUrl).replace(/\/+$/, "") + "/sp/ebdfpage/card/0/" + objId + "/" + dataId;
|
|
927
948
|
}
|
|
949
|
+
var TALENT_UI_ROUTE = "/sp/custom/ecode/recruit-talent";
|
|
950
|
+
async function detectTalentUi(host, cache) {
|
|
951
|
+
const flag = String(cache.talentUi || "");
|
|
952
|
+
if (flag === "1") return true;
|
|
953
|
+
if (flag === "0") return false;
|
|
954
|
+
let installed = false;
|
|
955
|
+
try {
|
|
956
|
+
const r = await host.request({
|
|
957
|
+
path: "/api/ecode/project/searchAll",
|
|
958
|
+
method: "GET",
|
|
959
|
+
query: { page: 1, size: 100 },
|
|
960
|
+
operation: "detect-talent-ui"
|
|
961
|
+
});
|
|
962
|
+
const list = r && r.data && r.data.list || r && r.list || [];
|
|
963
|
+
installed = Array.isArray(list) && list.some((x) => String(x && x.projectName || "").startsWith("recruit-talent-ui"));
|
|
964
|
+
} catch {
|
|
965
|
+
installed = false;
|
|
966
|
+
}
|
|
967
|
+
cache.talentUi = installed ? "1" : "0";
|
|
968
|
+
return installed;
|
|
969
|
+
}
|
|
970
|
+
async function resolveTalentListUrl(host, cache, baseUrl, fallbackListId) {
|
|
971
|
+
if (await detectTalentUi(host, cache)) {
|
|
972
|
+
return String(baseUrl).replace(/\/+$/, "") + TALENT_UI_ROUTE;
|
|
973
|
+
}
|
|
974
|
+
return buildListUrl(baseUrl, fallbackListId);
|
|
975
|
+
}
|
|
976
|
+
async function resolveInterviewListUrlOrNative(host, cache, baseUrl, fallbackListId) {
|
|
977
|
+
if (await detectTalentUi(host, cache)) {
|
|
978
|
+
return String(baseUrl).replace(/\/+$/, "") + TALENT_UI_ROUTE + "/interview";
|
|
979
|
+
}
|
|
980
|
+
return buildListUrl(baseUrl, fallbackListId);
|
|
981
|
+
}
|
|
982
|
+
async function talentUiCardUrl(host, cache, baseUrl, talentId) {
|
|
983
|
+
if (!talentId) return null;
|
|
984
|
+
if (!await detectTalentUi(host, cache)) return null;
|
|
985
|
+
return String(baseUrl).replace(/\/+$/, "") + TALENT_UI_ROUTE + "/card?talentId=" + encodeURIComponent(String(talentId));
|
|
986
|
+
}
|
|
928
987
|
function buildListUrl(baseUrl, listId) {
|
|
929
988
|
if (!baseUrl || !listId) return null;
|
|
930
989
|
return String(baseUrl).replace(/\/+$/, "") + "/sp/ebdfpage/list/" + listId;
|
|
@@ -2536,7 +2595,11 @@ function makeBriefReader(ctx, formId, objId, fields) {
|
|
|
2536
2595
|
}
|
|
2537
2596
|
};
|
|
2538
2597
|
}
|
|
2539
|
-
function resolveTalentCardUrl(ctx, talentId) {
|
|
2598
|
+
async function resolveTalentCardUrl(ctx, talentId) {
|
|
2599
|
+
if (talentId) {
|
|
2600
|
+
const ui = await talentUiCardUrl(ctx.host, ctx.cache, ctx.baseUrl, String(talentId));
|
|
2601
|
+
if (ui) return ui;
|
|
2602
|
+
}
|
|
2540
2603
|
const pid = ctx.cache.ebdDetailPageId;
|
|
2541
2604
|
if (!pid || !talentId) {
|
|
2542
2605
|
const forms = ctx.cache.forms || {};
|
|
@@ -2545,8 +2608,10 @@ function resolveTalentCardUrl(ctx, talentId) {
|
|
|
2545
2608
|
}
|
|
2546
2609
|
return `${ctx.baseUrl}/sp/ebdpage/view/${pid}?talentId=${talentId}${talentLinkExtra(ctx.cache)}`;
|
|
2547
2610
|
}
|
|
2548
|
-
function resolveTalentListLocateUrl(ctx, _talentId) {
|
|
2611
|
+
async function resolveTalentListLocateUrl(ctx, _talentId) {
|
|
2549
2612
|
const listId = ctx.cache.lists?.talent?.listId;
|
|
2613
|
+
const preferred = await resolveTalentListUrl(ctx.host, ctx.cache, ctx.baseUrl, listId || "");
|
|
2614
|
+
if (preferred) return preferred;
|
|
2550
2615
|
if (!listId) return null;
|
|
2551
2616
|
return `${ctx.baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${listId}`;
|
|
2552
2617
|
}
|
|
@@ -3065,8 +3130,8 @@ async function findExistingTalents(ctx, opts) {
|
|
|
3065
3130
|
talentId: b.talentId,
|
|
3066
3131
|
candidateId: b.candidateId,
|
|
3067
3132
|
talentViewUrl: b.candidateId ? buildTalentViewUrl(ctx.baseUrl, b.candidateId) : null,
|
|
3068
|
-
talentCardUrl: b.talentId ? resolveTalentCardUrl(ctx, b.talentId) : null,
|
|
3069
|
-
talentListLocateUrl: b.talentId ? resolveTalentListLocateUrl(ctx, b.talentId) : null
|
|
3133
|
+
talentCardUrl: b.talentId ? await resolveTalentCardUrl(ctx, b.talentId) : null,
|
|
3134
|
+
talentListLocateUrl: b.talentId ? await resolveTalentListLocateUrl(ctx, b.talentId) : null
|
|
3070
3135
|
};
|
|
3071
3136
|
}
|
|
3072
3137
|
} else {
|
|
@@ -3085,8 +3150,8 @@ async function findExistingTalents(ctx, opts) {
|
|
|
3085
3150
|
formConflicts.existing.push({
|
|
3086
3151
|
talentId: id,
|
|
3087
3152
|
...rec,
|
|
3088
|
-
talentCardUrl: resolveTalentCardUrl(ctx, id),
|
|
3089
|
-
talentListLocateUrl: resolveTalentListLocateUrl(ctx, id),
|
|
3153
|
+
talentCardUrl: await resolveTalentCardUrl(ctx, id),
|
|
3154
|
+
talentListLocateUrl: await resolveTalentListLocateUrl(ctx, id),
|
|
3090
3155
|
recordCardUrl: buildCardUrl(ctx.baseUrl, objId, id)
|
|
3091
3156
|
});
|
|
3092
3157
|
} else formConflicts.unreadable.push(id);
|
|
@@ -3368,8 +3433,8 @@ async function applyCore(args, env, payload) {
|
|
|
3368
3433
|
talentId: updateTalentId,
|
|
3369
3434
|
afterSummary: { mainFieldCount: Object.keys(after.main).length, subRows: after.subRows, subCells: after.subCells },
|
|
3370
3435
|
verifyWarnings: verifyWarnings.length ? verifyWarnings : void 0,
|
|
3371
|
-
talentCardUrl: resolveTalentCardUrl(ctx, updateTalentId),
|
|
3372
|
-
talentListLocateUrl: resolveTalentListLocateUrl(ctx, updateTalentId),
|
|
3436
|
+
talentCardUrl: await resolveTalentCardUrl(ctx, updateTalentId),
|
|
3437
|
+
talentListLocateUrl: await resolveTalentListLocateUrl(ctx, updateTalentId),
|
|
3373
3438
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone, email: built.structured.email || "(\u7A7A)" }
|
|
3374
3439
|
});
|
|
3375
3440
|
}
|
|
@@ -3468,8 +3533,8 @@ async function applyCore(args, env, payload) {
|
|
|
3468
3533
|
for (const m of verification.mismatches) writeWarnings.push("\u843D\u5E93\u56DE\u67E5\u4E0D\u4E00\u81F4\uFF1A" + m.label + " \u671F\u671B " + m.expected + "\uFF0C\u5B9E\u9645 " + m.actual);
|
|
3469
3534
|
}
|
|
3470
3535
|
const result = detailsState === "complete" && !verification.mismatches.length ? "success" : "partial";
|
|
3471
|
-
const talentCardUrl = resolveTalentCardUrl(ctx, talentId);
|
|
3472
|
-
const talentListLocateUrl = resolveTalentListLocateUrl(ctx, talentId);
|
|
3536
|
+
const talentCardUrl = await resolveTalentCardUrl(ctx, talentId);
|
|
3537
|
+
const talentListLocateUrl = await resolveTalentListLocateUrl(ctx, talentId);
|
|
3473
3538
|
return rsSuccess("recruit-stage.resume.import.apply", {
|
|
3474
3539
|
mode: "apply",
|
|
3475
3540
|
result,
|
|
@@ -3995,8 +4060,16 @@ async function buildPlan(opts) {
|
|
|
3995
4060
|
getDsOptions(host, objId, fid("interview_type")),
|
|
3996
4061
|
getDsOptions(host, objId, fid("interview_session"))
|
|
3997
4062
|
]);
|
|
3998
|
-
const
|
|
3999
|
-
|
|
4063
|
+
const typeFull = await getDsOptionsFull(host, objId, fid("interview_type"));
|
|
4064
|
+
const typeId = typeFull.map[type];
|
|
4065
|
+
if (!typeId) {
|
|
4066
|
+
if (typeFull.disabled.some(function(d) {
|
|
4067
|
+
return d.name === type;
|
|
4068
|
+
})) {
|
|
4069
|
+
throw rsFail("\u9762\u8BD5\u65B9\u5F0F\u300C" + type + "\u300D\u5DF2\u7981\u7528\uFF08\u8BE5\u679A\u4E3E\u9879 archive=1\uFF09\uFF0C\u8BF7\u6539\u7528\u5176\u5B83\u9762\u8BD5\u65B9\u5F0F");
|
|
4070
|
+
}
|
|
4071
|
+
throw rsFail("\u9762\u8BD5\u65B9\u5F0F\u300C" + type + "\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08" + Object.keys(typeFull.map).join("/") + "\uFF09");
|
|
4072
|
+
}
|
|
4000
4073
|
const sessionId = sessionMap[session];
|
|
4001
4074
|
if (!sessionId) throw rsFail("\u9762\u8BD5\u8F6E\u6B21\u300C" + session + "\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08" + Object.keys(sessionMap).join("/") + "\uFF09");
|
|
4002
4075
|
const emailFromTalent = String(cand.email || "").trim();
|
|
@@ -4204,7 +4277,11 @@ async function resolveRequiredHint(plan, ctx) {
|
|
|
4204
4277
|
dataDetails: plan.dataDetails
|
|
4205
4278
|
});
|
|
4206
4279
|
}
|
|
4207
|
-
function resolveTalentCardUrl2(ctx, talentId) {
|
|
4280
|
+
async function resolveTalentCardUrl2(ctx, talentId) {
|
|
4281
|
+
if (talentId) {
|
|
4282
|
+
const ui = await talentUiCardUrl(ctx.host, ctx.cache, ctx.baseUrl, String(talentId));
|
|
4283
|
+
if (ui) return ui;
|
|
4284
|
+
}
|
|
4208
4285
|
const pid = ctx.cache.ebdDetailPageId;
|
|
4209
4286
|
if (!pid || !talentId) {
|
|
4210
4287
|
const forms = ctx.cache.forms || {};
|
|
@@ -4432,7 +4509,12 @@ async function applyCore2(args, env, payload) {
|
|
|
4432
4509
|
(m) => "\u843D\u5E93\u56DE\u67E5\u4E0D\u4E00\u81F4\uFF1A" + m.label + " \u671F\u671B " + m.expected + "\uFF0C\u5B9E\u9645 " + m.actual + "\uFF08\u8BE5\u5B57\u6BB5\u53EF\u80FD\u672A\u5199\u5165\uFF09"
|
|
4433
4510
|
);
|
|
4434
4511
|
const detailUrl = buildCardUrl(ctx.baseUrl, plan.objId, formDataId);
|
|
4435
|
-
const listLocateUrl =
|
|
4512
|
+
const listLocateUrl = await resolveInterviewListUrlOrNative(
|
|
4513
|
+
ctx.host,
|
|
4514
|
+
ctx.cache,
|
|
4515
|
+
ctx.baseUrl,
|
|
4516
|
+
ctx.cache.lists?.interview?.listId || ""
|
|
4517
|
+
);
|
|
4436
4518
|
return rsSuccess("recruit-stage.interview.arrange.apply", {
|
|
4437
4519
|
mode: "apply",
|
|
4438
4520
|
result: verification.mismatches.length ? "partial" : "success",
|
|
@@ -4466,10 +4548,17 @@ async function prefill2(args, env) {
|
|
|
4466
4548
|
const typeKey = String(args.type || DEFAULT_INTERVIEW_TYPE);
|
|
4467
4549
|
const typeFid = fields.interview_type;
|
|
4468
4550
|
if (!typeFid) throw rsFail("\u9762\u8BD5\u8BA1\u5212\u7F3A\u5C11\u5B57\u6BB5 interview_type\uFF08ds/fields \u89E3\u6790\u4E0D\u5230\uFF09");
|
|
4469
|
-
const
|
|
4470
|
-
const typeId =
|
|
4471
|
-
if (!typeId)
|
|
4472
|
-
|
|
4551
|
+
const typeFull = await getDsOptionsFull(ctx.host, objId, typeFid);
|
|
4552
|
+
const typeId = typeFull.map[typeKey];
|
|
4553
|
+
if (!typeId) {
|
|
4554
|
+
if (typeFull.disabled.some(function(d) {
|
|
4555
|
+
return d.name === typeKey;
|
|
4556
|
+
})) {
|
|
4557
|
+
throw rsFail("\u9762\u8BD5\u65B9\u5F0F\u300C" + typeKey + "\u300D\u5DF2\u7981\u7528\uFF08\u8BE5\u679A\u4E3E\u9879 archive=1\uFF09\uFF0C\u8BF7\u6539\u7528\u5176\u5B83\u9762\u8BD5\u65B9\u5F0F");
|
|
4558
|
+
}
|
|
4559
|
+
throw rsFail("\u9762\u8BD5\u65B9\u5F0F\u300C" + typeKey + "\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08" + Object.keys(typeFull.map).join("/") + "\uFF09");
|
|
4560
|
+
}
|
|
4561
|
+
const cardUrl = await resolveTalentCardUrl2(ctx, talentId);
|
|
4473
4562
|
const listUrl = await resolveInterviewListUrl(ctx).catch(() => null);
|
|
4474
4563
|
const jsExpr = `(() => { const W = window.WeFormSDK; const i = W && W.getWeFormInstance('ebuilderform', '${formId}'); if (!i) return 'no-form-instance(\u8BF7\u5148\u5728\u4EBA\u624D\u5361\u7247\u70B9\u300C\u5B89\u6392\u9762\u8BD5\u300D\u6253\u5F00\u9762\u8BD5\u5B89\u6392\u8868\u5355)'; try { i.changeFieldValue('field${typeFid}', { value: '${typeId}' }); return 'ok \u9762\u8BD5\u65B9\u5F0F=${typeKey}'; } catch (e) { return 'err:' + e.message; } })()`;
|
|
4475
4564
|
return rsSuccess("recruit-stage.interview.arrange.prefill", {
|
|
@@ -4,8 +4,10 @@ import {
|
|
|
4
4
|
getHrmOperation,
|
|
5
5
|
hasHrmOperation,
|
|
6
6
|
hrmOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-6QYNE6HE.js";
|
|
8
|
+
import "./chunk-IW7A2IQY.js";
|
|
9
|
+
import "./chunk-5QYE52LG.js";
|
|
10
|
+
import "./chunk-JEQHNNSS.js";
|
|
9
11
|
import "./chunk-56EZERK4.js";
|
|
10
12
|
import "./chunk-UG5G54VL.js";
|
|
11
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getWorkflowOperation,
|
|
5
5
|
hasWorkflowOperation,
|
|
6
6
|
workflowOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NBEWUR7L.js";
|
|
8
8
|
import "./chunk-HP7JIYMT.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-2IGZUMNG.js";
|
|
11
11
|
import "./chunk-AJ62BGAW.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-U6R6FZHD.js";
|
|
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getImOperation,
|
|
5
5
|
imOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-72MI3MBX.js";
|
|
7
7
|
import "./chunk-IC62NFM5.js";
|
|
8
8
|
import "./chunk-YLCYX7LE.js";
|
|
9
9
|
import "./chunk-UG5G54VL.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
hasMeetingOperation,
|
|
6
6
|
meetingOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-D2QRZUW4.js";
|
|
8
|
+
import "./chunk-EJVA5ZVB.js";
|
|
9
|
+
import "./chunk-3NV2ETZR.js";
|
|
10
|
+
import "./chunk-BRRW7CWA.js";
|
|
11
|
+
import "./chunk-ZKEUGS2U.js";
|
|
12
|
+
import "./chunk-GEOMANP7.js";
|
|
13
|
+
import "./chunk-KV5SOWMS.js";
|
|
14
|
+
import "./chunk-3X7VOSBA.js";
|
|
15
|
+
import "./chunk-6GWU63YF.js";
|
|
16
|
+
import "./chunk-K3BT54CU.js";
|
|
17
17
|
import "./chunk-7BDPM5ST.js";
|
|
18
18
|
import "./chunk-UG5G54VL.js";
|
|
19
19
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadRooms,
|
|
8
8
|
recommendRooms,
|
|
9
9
|
rememberFrequentRoom
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KV5SOWMS.js";
|
|
11
|
+
import "./chunk-3X7VOSBA.js";
|
|
12
|
+
import "./chunk-6GWU63YF.js";
|
|
13
|
+
import "./chunk-K3BT54CU.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GEOMANP7.js";
|
|
12
|
+
import "./chunk-3X7VOSBA.js";
|
|
13
|
+
import "./chunk-6GWU63YF.js";
|
|
14
|
+
import "./chunk-K3BT54CU.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
createWorkflowHost
|
|
5
|
-
} from "./chunk-HFXK54M4.js";
|
|
6
3
|
import {
|
|
7
4
|
USER_INTENT_RULE_FILE,
|
|
8
5
|
aigroupUserDir,
|
|
@@ -17,7 +14,10 @@ import {
|
|
|
17
14
|
validateRuleFile,
|
|
18
15
|
workflowOperationDefinitions,
|
|
19
16
|
workflowSuccess
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NBEWUR7L.js";
|
|
18
|
+
import {
|
|
19
|
+
createWorkflowHost
|
|
20
|
+
} from "./chunk-HFXK54M4.js";
|
|
21
21
|
import {
|
|
22
22
|
createWorkflowContinuationSigner
|
|
23
23
|
} from "./chunk-HP7JIYMT.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
WorkflowCliError,
|
|
27
27
|
workflowValidationError
|
|
28
28
|
} from "./chunk-WRXSAVKO.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-2IGZUMNG.js";
|
|
30
30
|
import "./chunk-AJ62BGAW.js";
|
|
31
31
|
import {
|
|
32
32
|
reportPlatformError
|
package/dist/core/refs.js
CHANGED
|
@@ -377,7 +377,24 @@ export function pruneRefs(ctx, options = {}) {
|
|
|
377
377
|
/** 轻量 JSON 路径取值,支持 `a.b[0].c`、`$.data.items[0].fid`,并允许省略 `data.` 前缀。 */
|
|
378
378
|
export function pickValue(value, path) {
|
|
379
379
|
let cursor = value;
|
|
380
|
-
|
|
380
|
+
let tokens = tokenizePath(path);
|
|
381
|
+
const rootIsObject = cursor !== null && typeof cursor === 'object' && !Array.isArray(cursor);
|
|
382
|
+
if (rootIsObject && typeof tokens[0] === 'string' && !(tokens[0] in cursor)) {
|
|
383
|
+
const root = cursor;
|
|
384
|
+
if (tokens[0] === 'data' && root.data === undefined) {
|
|
385
|
+
// 兼容以 data 对象为根直接取值的老写法(`data.items` ⇒ `items`)。
|
|
386
|
+
tokens = tokens.slice(1);
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
// 省略 `data.` 前缀的写法(如 `summary` / `items[0].fid`):首段在根对象上不存在时,
|
|
390
|
+
// 自动下钻到 envelope.data 再取一次;显式写了 `data.xxx` 的路径保持原样。
|
|
391
|
+
const data = root.data;
|
|
392
|
+
if (data !== null && typeof data === 'object' && tokens[0] in data) {
|
|
393
|
+
cursor = data;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
for (const token of tokens) {
|
|
381
398
|
if (cursor === null || cursor === undefined) {
|
|
382
399
|
throw new RefError('ref_pick_failed', `--pick 路径 ${path} 在 ${token} 处无法继续`);
|
|
383
400
|
}
|
|
@@ -400,7 +417,7 @@ export function pickValue(value, path) {
|
|
|
400
417
|
return cursor;
|
|
401
418
|
}
|
|
402
419
|
function tokenizePath(path) {
|
|
403
|
-
|
|
420
|
+
const cursor = path.trim().replace(/^\$/, '');
|
|
404
421
|
const tokens = [];
|
|
405
422
|
const pattern = /([^.[\]]+)|\[(\d+)\]/g;
|
|
406
423
|
let match;
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
firstPositionalToken,
|
|
8
8
|
registerCommands,
|
|
9
9
|
toCommandMetadata
|
|
10
|
-
} from "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
12
|
-
import "./chunks/chunk-
|
|
10
|
+
} from "./chunks/chunk-2BQESR2U.js";
|
|
11
|
+
import "./chunks/chunk-2IGZUMNG.js";
|
|
12
|
+
import "./chunks/chunk-GR76ZDDX.js";
|
|
13
13
|
import "./chunks/chunk-AJ62BGAW.js";
|
|
14
14
|
import "./chunks/chunk-6N4JPNFL.js";
|
|
15
15
|
import "./chunks/chunk-6NXT4ICB.js";
|
|
@@ -30,7 +30,7 @@ function lazyShortcut(definition) {
|
|
|
30
30
|
placeholder.allowExcessArguments(true);
|
|
31
31
|
placeholder.helpOption(false);
|
|
32
32
|
placeholder.action(async () => {
|
|
33
|
-
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-
|
|
33
|
+
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-XSAHDK6Z.js");
|
|
34
34
|
await dispatchLazyShortcut(definition, shortcutMetadata());
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -40,17 +40,17 @@ var builtinShortcuts = [
|
|
|
40
40
|
lazyShortcut({
|
|
41
41
|
name: "invoice",
|
|
42
42
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
43
|
-
load: async () => (await import("./chunks/invoice-
|
|
43
|
+
load: async () => (await import("./chunks/invoice-FXWH5GPO.js")).invoiceShortcut
|
|
44
44
|
}),
|
|
45
45
|
lazyShortcut({
|
|
46
46
|
name: "ehr",
|
|
47
47
|
description: "\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B/\u51FA\u52E4/\u85AA\u916C\uFF09CLI",
|
|
48
|
-
load: async () => (await import("./chunks/ehr-
|
|
48
|
+
load: async () => (await import("./chunks/ehr-XI4BIVR2.js")).ehrShortcut
|
|
49
49
|
}),
|
|
50
50
|
lazyShortcut({
|
|
51
51
|
name: "recruit-stage",
|
|
52
52
|
description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
|
|
53
|
-
load: async () => (await import("./chunks/recruit-stage-
|
|
53
|
+
load: async () => (await import("./chunks/recruit-stage-FKWS5UQF.js")).recruitStageShortcut
|
|
54
54
|
}),
|
|
55
55
|
lazyShortcut({
|
|
56
56
|
name: "cowork",
|
|
@@ -65,7 +65,7 @@ var builtinShortcuts = [
|
|
|
65
65
|
lazyShortcut({
|
|
66
66
|
name: "archive-oa",
|
|
67
67
|
description: "E10 \u6863\u6848\u5B9A\u4F4D\u4E0E OA \u5546\u52A1\u5408\u540C\u501F\u9605 CLI",
|
|
68
|
-
load: async () => (await import("./chunks/archive-oa-
|
|
68
|
+
load: async () => (await import("./chunks/archive-oa-57R2FYHV.js")).archiveOaShortcut
|
|
69
69
|
}),
|
|
70
70
|
lazyShortcut({
|
|
71
71
|
name: "calendar",
|
|
@@ -80,7 +80,7 @@ var builtinShortcuts = [
|
|
|
80
80
|
lazyShortcut({
|
|
81
81
|
name: "hrm",
|
|
82
82
|
description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
|
|
83
|
-
load: async () => (await import("./chunks/hrm-
|
|
83
|
+
load: async () => (await import("./chunks/hrm-YGIR3HGF.js")).hrmShortcut
|
|
84
84
|
}),
|
|
85
85
|
lazyShortcut({
|
|
86
86
|
name: "mail",
|
|
@@ -90,7 +90,7 @@ var builtinShortcuts = [
|
|
|
90
90
|
lazyShortcut({
|
|
91
91
|
name: "meeting",
|
|
92
92
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
93
|
-
load: async () => (await import("./chunks/meeting-
|
|
93
|
+
load: async () => (await import("./chunks/meeting-N2FQBHXI.js")).meetingShortcut
|
|
94
94
|
}),
|
|
95
95
|
lazyShortcut({
|
|
96
96
|
name: "okr",
|
|
@@ -110,7 +110,7 @@ var builtinShortcuts = [
|
|
|
110
110
|
lazyShortcut({
|
|
111
111
|
name: "ebuilder-form",
|
|
112
112
|
description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
|
|
113
|
-
load: async () => (await import("./chunks/ebuilder-form-
|
|
113
|
+
load: async () => (await import("./chunks/ebuilder-form-CBYI6CQ6.js")).ebuilderFormShortcut
|
|
114
114
|
}),
|
|
115
115
|
lazyShortcut({
|
|
116
116
|
name: "jiuchuanhui",
|
|
@@ -130,7 +130,7 @@ var builtinShortcuts = [
|
|
|
130
130
|
lazyShortcut({
|
|
131
131
|
name: "im",
|
|
132
132
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
133
|
-
load: async () => (await import("./chunks/im-
|
|
133
|
+
load: async () => (await import("./chunks/im-3RCNL5GT.js")).imShortcut
|
|
134
134
|
}),
|
|
135
135
|
lazyShortcut({
|
|
136
136
|
name: "project",
|
|
@@ -140,7 +140,7 @@ var builtinShortcuts = [
|
|
|
140
140
|
lazyShortcut({
|
|
141
141
|
name: "workflow",
|
|
142
142
|
description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
|
|
143
|
-
load: async () => (await import("./chunks/workflow-
|
|
143
|
+
load: async () => (await import("./chunks/workflow-2TRU2ZSP.js")).workflowShortcut
|
|
144
144
|
}),
|
|
145
145
|
lazyShortcut({
|
|
146
146
|
name: "blog",
|
|
@@ -155,12 +155,17 @@ var builtinShortcuts = [
|
|
|
155
155
|
lazyShortcut({
|
|
156
156
|
name: "contract",
|
|
157
157
|
description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
|
|
158
|
-
load: async () => (await import("./chunks/contract-
|
|
158
|
+
load: async () => (await import("./chunks/contract-N6P2HIIE.js")).contractShortcut
|
|
159
159
|
}),
|
|
160
160
|
lazyShortcut({
|
|
161
161
|
name: "reception",
|
|
162
162
|
description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
|
|
163
|
-
load: async () => (await import("./chunks/reception-
|
|
163
|
+
load: async () => (await import("./chunks/reception-MYOKJULO.js")).receptionShortcut
|
|
164
|
+
}),
|
|
165
|
+
lazyShortcut({
|
|
166
|
+
name: "data",
|
|
167
|
+
description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
|
|
168
|
+
load: async () => (await import("./chunks/data-QO7QWOIV.js")).dataShortcut
|
|
164
169
|
})
|
|
165
170
|
];
|
|
166
171
|
function shortcutMetadata() {
|
|
@@ -61,6 +61,48 @@ export const QYS_ESB_ADD = {
|
|
|
61
61
|
listId: '1190611964371984450',
|
|
62
62
|
successText: '【契约锁加入借阅车】执行成功!',
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* 移出借阅车:`dataIds` 传借阅车行 ID(`borrow-car.list` 的 `rows[].id`),
|
|
66
|
+
* 与加入借阅车传合同行 ID 不同,禁止混用。
|
|
67
|
+
*/
|
|
68
|
+
export const WEAVER_ESB_REMOVE = {
|
|
69
|
+
source: 'weaver',
|
|
70
|
+
esbActionIds: '882413705640943619',
|
|
71
|
+
objId: '882393476189437952',
|
|
72
|
+
listId: '882393480417296390',
|
|
73
|
+
successText: '【移出借阅车】执行成功!',
|
|
74
|
+
};
|
|
75
|
+
export const QYS_ESB_REMOVE = {
|
|
76
|
+
source: 'qys',
|
|
77
|
+
esbActionIds: '882413705640943619',
|
|
78
|
+
objId: '882393476189437952',
|
|
79
|
+
listId: '883819516961857839',
|
|
80
|
+
successText: '【契约锁移出借阅车】执行成功!',
|
|
81
|
+
};
|
|
64
82
|
/** 契约锁默认过滤「处理进度 = 已归档」。 */
|
|
65
83
|
export const QYS_DEFAULT_ARCHIVED_FIELD = 'cljd';
|
|
66
84
|
export const QYS_DEFAULT_ARCHIVED_VALUE = '已归档';
|
|
85
|
+
export const MY_BORROW_CONTRACT = {
|
|
86
|
+
source: 'weaver',
|
|
87
|
+
pageAppId: '100002780000000542',
|
|
88
|
+
pageId: '1335759383610105964',
|
|
89
|
+
compId: 'c922aecea25d4f538d8cb4d89320e916',
|
|
90
|
+
refPluginPackageId: '933846626099339271',
|
|
91
|
+
objId: '1335759383610105884',
|
|
92
|
+
archiveAppId: '2c109885898d48c19e49edd4cfd2bf2f',
|
|
93
|
+
fields: {
|
|
94
|
+
applyDate: '11738424152292925447525441107052728320',
|
|
95
|
+
requestId: '11738424152292925447525434968495886336',
|
|
96
|
+
customer: '11738424152292925447525437940097355783',
|
|
97
|
+
contractNo: '11738424152292925447525437940101550081',
|
|
98
|
+
archiveId: '11738424152292925447525437940101550084',
|
|
99
|
+
applicant: '11738424152292925447525436635463290880',
|
|
100
|
+
expireDate: '11738424152292925447525436280084107264',
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
/** 电子档案打开链接(与界面一致):`/sp/integration/loginSingle?appId=...&archiveId=...`。 */
|
|
104
|
+
export const MY_BORROW_ARCHIVE_OPEN_PATH = '/sp/integration/loginSingle';
|
|
105
|
+
/** 关联流程查看页:`/sp/workflow/flowpage/view/{requestId}`。 */
|
|
106
|
+
export const MY_BORROW_FLOW_VIEW_PATH = '/sp/workflow/flowpage/view';
|
|
107
|
+
/** 授权到期日期的默认上限:查询「未过期」时用「今天 ~ 2099-12-31」。 */
|
|
108
|
+
export const MY_BORROW_EXPIRE_MAX = '2099-12-31';
|
|
@@ -106,7 +106,7 @@ export function createArchiveOaHost(ctx, dependencies = {}) {
|
|
|
106
106
|
return sessionContext;
|
|
107
107
|
}
|
|
108
108
|
async function request(request) {
|
|
109
|
-
const { method, path, query, body, operation, headers: extraHeaders = {}, timeoutMs = 60_000, skipBusinessCheck = false, } = request;
|
|
109
|
+
const { method, path, query, body, formData, operation, headers: extraHeaders = {}, timeoutMs = 60_000, skipBusinessCheck = false, } = request;
|
|
110
110
|
assertArchiveOaPath(path);
|
|
111
111
|
const resolvedMethod = method || (body === undefined ? 'GET' : 'POST');
|
|
112
112
|
const runtime = createE10RequestRuntime(ctx, await ensureSession(), {
|
|
@@ -119,7 +119,7 @@ export function createArchiveOaHost(ctx, dependencies = {}) {
|
|
|
119
119
|
method: resolvedMethod,
|
|
120
120
|
path,
|
|
121
121
|
query: omitEmptyQueryValues(query),
|
|
122
|
-
body,
|
|
122
|
+
...(formData ? { formData } : { body }),
|
|
123
123
|
headers: { 'X-Requested-With': 'XMLHttpRequest', ...extraHeaders },
|
|
124
124
|
timeoutMs,
|
|
125
125
|
}).catch((error) => mapRuntimeNetworkError(error));
|
|
@@ -165,6 +165,20 @@ export const archiveOaShortcut = {
|
|
|
165
165
|
.action(action(async (ctx) => {
|
|
166
166
|
await executeAndPrint(ctx, 'archive-oa.contract.fields', {});
|
|
167
167
|
}));
|
|
168
|
+
const myBorrow = command.command('my-borrow').description('My borrowed contract archives (eBuilder list)');
|
|
169
|
+
withJsonInputOptions(myBorrow.command('list')
|
|
170
|
+
.description('List contract archives I borrowed (default: not expired)')
|
|
171
|
+
.option('--page-no <page>', 'page number, starts from 1')
|
|
172
|
+
.option('--page-size <size>', 'page size, default 10, max 50')
|
|
173
|
+
.option('--include-expired', 'include expired borrows (drop the expire-date filter)'))
|
|
174
|
+
.action(action(async (ctx, options) => {
|
|
175
|
+
const opts = asOptions(options);
|
|
176
|
+
await executeAndPrint(ctx, 'archive-oa.my-borrow.list', await archiveOaInputFrom(options, {
|
|
177
|
+
pageNo: intOption(opts.pageNo),
|
|
178
|
+
pageSize: intOption(opts.pageSize),
|
|
179
|
+
includeExpired: opts.includeExpired === true ? true : undefined,
|
|
180
|
+
}));
|
|
181
|
+
}));
|
|
168
182
|
const qys = command.command('qys').description('Qiyuesuo (case) contract commands');
|
|
169
183
|
withJsonInputOptions(qys.command('list')
|
|
170
184
|
.description('Query Qiyuesuo collaboration contracts (default archived only)')
|
|
@@ -211,6 +225,30 @@ export const archiveOaShortcut = {
|
|
|
211
225
|
confirm: opts.yes === true ? true : undefined,
|
|
212
226
|
}));
|
|
213
227
|
}));
|
|
228
|
+
withJsonInputOptions(borrowCar.command('remove-prepare')
|
|
229
|
+
.description('Prepare removing entries from the borrow car (max 6)')
|
|
230
|
+
.option('--source <source>', 'weaver or qys, default weaver')
|
|
231
|
+
.option('--data-ids <ids>', 'comma separated borrow car row ids'))
|
|
232
|
+
.action(action(async (ctx, options) => {
|
|
233
|
+
const opts = asOptions(options);
|
|
234
|
+
const source = resolveSource(opts.source);
|
|
235
|
+
await executeAndPrint(ctx, borrowCarOperation('remove.prepare', source), await archiveOaInputFrom(options, {
|
|
236
|
+
dataIds: stringListOption(opts.dataIds),
|
|
237
|
+
}));
|
|
238
|
+
}));
|
|
239
|
+
withJsonInputOptions(borrowCar.command('remove-apply')
|
|
240
|
+
.description('Apply removing entries from the borrow car')
|
|
241
|
+
.option('--continuation <token>', 'continuation token from prepare')
|
|
242
|
+
.option('--source <source>', 'weaver or qys, default weaver')
|
|
243
|
+
.option('--yes', 'confirm the write operation'))
|
|
244
|
+
.action(action(async (ctx, options) => {
|
|
245
|
+
const opts = asOptions(options);
|
|
246
|
+
const source = resolveSource(opts.source);
|
|
247
|
+
await executeAndPrint(ctx, borrowCarOperation('remove.apply', source), await archiveOaInputFrom(options, {
|
|
248
|
+
continuation: stringOption(opts.continuation),
|
|
249
|
+
confirm: opts.yes === true ? true : undefined,
|
|
250
|
+
}));
|
|
251
|
+
}));
|
|
214
252
|
const borrow = command.command('borrow').description('Borrow workflow commands');
|
|
215
253
|
withJsonInputOptions(borrow.command('start-url')
|
|
216
254
|
.description('Build the borrow workflow page URL from borrow car entries')
|