weaver-work-cli 0.1.1 → 0.1.4
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 +187 -76
- package/dist/cmd/setup/index.js +5 -5
- package/dist/cmd/skills/index.js +1 -1
- package/dist/core/hooks.js +7 -0
- package/dist/index.js +0 -0
- package/dist/internal/e10/auth/commands.js +160 -55
- package/dist/internal/e10/auth/crypto.js +7 -22
- package/dist/internal/e10/auth/session.js +1 -1
- package/dist/internal/e10/auth/xiaoe.js +268 -0
- package/dist/internal/e10/context.js +16 -2
- package/dist/internal/e10/index.js +1 -0
- package/dist/internal/e10/request-runtime.js +344 -0
- package/dist/internal/skills/install.js +48 -6
- package/dist/internal/skills/reader.js +27 -0
- package/dist/shortcuts/archive/continuation.js +70 -0
- package/dist/shortcuts/archive/errors.js +53 -0
- package/dist/shortcuts/archive/host.js +197 -0
- package/dist/shortcuts/archive/index.js +363 -0
- package/dist/shortcuts/archive/manifest.js +45 -0
- package/dist/shortcuts/archive/operations/archive-info.js +55 -0
- package/dist/shortcuts/archive/operations/borrow-car.js +146 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +200 -0
- package/dist/shortcuts/archive/operations/confirm.js +46 -0
- package/dist/shortcuts/archive/operations/download.js +238 -0
- package/dist/shortcuts/archive/operations/flow-url.js +240 -0
- package/dist/shortcuts/archive/operations/fonds.js +95 -0
- package/dist/shortcuts/archive/operations/getPageUrl.js +137 -0
- package/dist/shortcuts/archive/operations/registry.js +43 -0
- package/dist/shortcuts/archive/operations/search.js +88 -0
- package/dist/shortcuts/archive/operations/shared.js +120 -0
- package/dist/shortcuts/archive/operations/types.js +23 -0
- package/dist/shortcuts/archive/operations/upload.js +182 -0
- package/dist/shortcuts/archive/operations.js +13 -0
- package/dist/shortcuts/archive/render/search-format.js +276 -0
- package/dist/shortcuts/archive/render/search-view.js +125 -0
- package/dist/shortcuts/asset/continuation.js +70 -0
- package/dist/shortcuts/asset/errors.js +67 -0
- package/dist/shortcuts/asset/host.js +438 -0
- package/dist/shortcuts/asset/index.js +255 -0
- package/dist/shortcuts/asset/manifest.js +471 -0
- package/dist/shortcuts/asset/operations/query.js +249 -0
- package/dist/shortcuts/asset/operations/registry.js +85 -0
- package/dist/shortcuts/asset/operations/shared.js +100 -0
- package/dist/shortcuts/asset/operations/type-cache.js +49 -0
- package/dist/shortcuts/asset/operations/types.js +1 -0
- package/dist/shortcuts/asset/operations/viewlink.js +117 -0
- package/dist/shortcuts/asset/operations/write.js +435 -0
- package/dist/shortcuts/asset/operations.js +9 -0
- package/dist/shortcuts/calendar/continuation.js +70 -0
- package/dist/shortcuts/calendar/errors.js +53 -0
- package/dist/shortcuts/calendar/host.js +148 -0
- package/dist/shortcuts/calendar/index.js +125 -0
- package/dist/shortcuts/calendar/manifest.js +26 -0
- package/dist/shortcuts/calendar/operations/read.js +259 -0
- package/dist/shortcuts/calendar/operations/registry.js +31 -0
- package/dist/shortcuts/calendar/operations/shared.js +132 -0
- package/dist/shortcuts/calendar/operations/types.js +25 -0
- package/dist/shortcuts/calendar/operations/write.js +439 -0
- package/dist/shortcuts/calendar/operations.js +8 -0
- package/dist/shortcuts/ehr/continuation.js +70 -0
- package/dist/shortcuts/ehr/errors.js +53 -0
- package/dist/shortcuts/ehr/host.js +213 -0
- package/dist/shortcuts/ehr/index.js +205 -0
- package/dist/shortcuts/ehr/manifest.js +47 -0
- package/dist/shortcuts/ehr/operations/attend-read.js +373 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +514 -0
- package/dist/shortcuts/ehr/operations/hr-contact.js +363 -0
- package/dist/shortcuts/ehr/operations/hr-ds.js +298 -0
- package/dist/shortcuts/ehr/operations/hr-report.js +386 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +1629 -0
- package/dist/shortcuts/ehr/operations/recruit.js +803 -0
- package/dist/shortcuts/ehr/operations/registry.js +43 -0
- package/dist/shortcuts/ehr/operations/salary.js +319 -0
- package/dist/shortcuts/ehr/operations/shared.js +246 -0
- package/dist/shortcuts/ehr/operations/types.js +25 -0
- package/dist/shortcuts/ehr/operations.js +25 -0
- package/dist/shortcuts/esb/continuation.js +70 -0
- package/dist/shortcuts/esb/errors.js +65 -0
- package/dist/shortcuts/esb/host.js +187 -0
- package/dist/shortcuts/esb/index.js +112 -0
- package/dist/shortcuts/esb/manifest.js +91 -0
- package/dist/shortcuts/esb/operations/input-format.js +31 -0
- package/dist/shortcuts/esb/operations/registry.js +48 -0
- package/dist/shortcuts/esb/operations/shared.js +152 -0
- package/dist/shortcuts/esb/operations/trigger.js +76 -0
- package/dist/shortcuts/esb/operations/types.js +21 -0
- package/dist/shortcuts/esb/operations.js +15 -0
- package/dist/shortcuts/fna/continuation.js +70 -0
- package/dist/shortcuts/fna/errors.js +59 -0
- package/dist/shortcuts/fna/host.js +146 -0
- package/dist/shortcuts/fna/index.js +111 -0
- package/dist/shortcuts/fna/manifest.js +41 -0
- package/dist/shortcuts/fna/operations/budget.js +124 -0
- package/dist/shortcuts/fna/operations/expense-center.js +148 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +212 -0
- package/dist/shortcuts/fna/operations/loan.js +195 -0
- package/dist/shortcuts/fna/operations/registry.js +35 -0
- package/dist/shortcuts/fna/operations/shared.js +210 -0
- package/dist/shortcuts/fna/operations/types.js +25 -0
- package/dist/shortcuts/fna/operations.js +19 -0
- package/dist/shortcuts/hrm/errors.js +38 -0
- package/dist/shortcuts/hrm/host.js +156 -0
- package/dist/shortcuts/hrm/index.js +111 -0
- package/dist/shortcuts/hrm/manifest.js +32 -0
- package/dist/shortcuts/hrm/operations/employee.js +338 -0
- package/dist/shortcuts/hrm/operations/org.js +110 -0
- package/dist/shortcuts/hrm/operations/position.js +176 -0
- package/dist/shortcuts/hrm/operations/registry.js +33 -0
- package/dist/shortcuts/hrm/operations/shared.js +143 -0
- package/dist/shortcuts/hrm/operations/types.js +23 -0
- package/dist/shortcuts/hrm/operations.js +19 -0
- package/dist/shortcuts/index.js +20 -0
- package/dist/shortcuts/invoice/host.js +99 -94
- package/dist/shortcuts/invoice/index.js +65 -61
- package/dist/shortcuts/invoice/manifest.js +222 -14
- package/dist/shortcuts/invoice/operations/browse-field.js +17 -0
- package/dist/shortcuts/invoice/operations/issuing.js +198 -0
- package/dist/shortcuts/invoice/operations/ocr-preview.js +6 -3
- package/dist/shortcuts/invoice/operations/registry.js +17 -0
- package/dist/shortcuts/invoice/operations/reim.js +401 -0
- package/dist/shortcuts/invoice/operations/shared.js +271 -6
- package/dist/shortcuts/invoice/operations/validate-preview.js +1 -1
- package/dist/shortcuts/jiuchuanhui/cache.js +441 -0
- package/dist/shortcuts/jiuchuanhui/continuation.js +70 -0
- package/dist/shortcuts/jiuchuanhui/errors.js +59 -0
- package/dist/shortcuts/jiuchuanhui/host.js +159 -0
- package/dist/shortcuts/jiuchuanhui/index.js +109 -0
- package/dist/shortcuts/jiuchuanhui/manifest.js +469 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +214 -0
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +157 -0
- package/dist/shortcuts/jiuchuanhui/operations/generic.js +146 -0
- package/dist/shortcuts/jiuchuanhui/operations/registry.js +133 -0
- package/dist/shortcuts/jiuchuanhui/operations/shared.js +158 -0
- package/dist/shortcuts/jiuchuanhui/operations/types.js +1 -0
- package/dist/shortcuts/jiuchuanhui/operations.js +8 -0
- package/dist/shortcuts/mail/continuation.js +70 -0
- package/dist/shortcuts/mail/errors.js +53 -0
- package/dist/shortcuts/mail/host.js +182 -0
- package/dist/shortcuts/mail/index.js +519 -0
- package/dist/shortcuts/mail/manifest.js +38 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +79 -0
- package/dist/shortcuts/mail/operations/mail-contacts.js +195 -0
- package/dist/shortcuts/mail/operations/mail-manage.js +335 -0
- package/dist/shortcuts/mail/operations/mail-read.js +508 -0
- package/dist/shortcuts/mail/operations/mail-send.js +474 -0
- package/dist/shortcuts/mail/operations/mail-sign.js +203 -0
- package/dist/shortcuts/mail/operations/mail-template.js +170 -0
- package/dist/shortcuts/mail/operations/registry.js +41 -0
- package/dist/shortcuts/mail/operations/shared.js +64 -0
- package/dist/shortcuts/mail/operations/types.js +27 -0
- package/dist/shortcuts/mail/operations.js +19 -0
- package/dist/shortcuts/plan/continuation.js +70 -0
- package/dist/shortcuts/plan/errors.js +70 -0
- package/dist/shortcuts/plan/host.js +180 -0
- package/dist/shortcuts/plan/index.js +150 -0
- package/dist/shortcuts/plan/manifest.js +53 -0
- package/dist/shortcuts/plan/operations/link.js +256 -0
- package/dist/shortcuts/plan/operations/read.js +259 -0
- package/dist/shortcuts/plan/operations/registry.js +33 -0
- package/dist/shortcuts/plan/operations/shared.js +246 -0
- package/dist/shortcuts/plan/operations/types.js +49 -0
- package/dist/shortcuts/plan/operations/version.js +49 -0
- package/dist/shortcuts/plan/operations/write.js +710 -0
- package/dist/shortcuts/plan/operations.js +8 -0
- package/docs/SKILL.md +11 -7
- package/docs/_catalog.md +23 -5
- package/docs/agent-invoice.md +31 -10
- package/docs/agent-skill-install.md +211 -0
- package/docs/calendar.md +87 -0
- package/docs/e10-auth.md +28 -9
- package/docs/ehr.md +186 -0
- package/docs/esb.md +64 -0
- package/docs/fna.md +72 -0
- package/docs/hrm.md +89 -0
- package/docs/invoice.md +66 -20
- package/docs/jiuchuanhui.md +131 -0
- package/docs/operation-manual.md +443 -0
- package/docs/plan.md +82 -0
- package/docs/wenshuding.md +129 -0
- package/docs/ziguanjia.md +89 -0
- package/package.json +4 -4
- package/scripts/package-skill.mjs +127 -34
- package/scripts/postbuild.mjs +13 -0
- package/skill-template/business-info.json +13 -2
- package/skill-template/domains/calendar.md +15 -0
- package/skill-template/domains/esb.md +13 -0
- package/skill-template/domains/hrm.md +16 -0
- package/skill-template/domains/jiuchuanhui.md +23 -0
- package/skill-template/domains/jucailin.md +22 -0
- package/skill-template/domains/mail.md +21 -0
- package/skill-template/domains/plan.md +17 -0
- package/skill-template/domains/qiyecheng.md +17 -0
- package/skill-template/domains/shared.md +9 -3
- package/skill-template/domains/skill-maker.md +10 -0
- package/skill-template/domains/wenshuding.md +22 -0
- package/skill-template/domains/{invoice.md → yepiaotong.md} +4 -0
- package/skill-template/domains/ziguanjia.md +21 -0
- package/skill-template/master-skill-template.md +12 -6
- package/skill-template/skill-template.md +40 -9
- package/skills/weaver-e10-calendar/SKILL.md +101 -0
- package/skills/weaver-e10-calendar/product.json +8 -0
- package/skills/weaver-e10-calendar/references/calendar-app-check.md +65 -0
- package/skills/weaver-e10-calendar/references/calendar-dict.md +55 -0
- package/skills/weaver-e10-calendar/references/calendar-query.md +70 -0
- package/skills/weaver-e10-calendar/references/calendar-write.md +97 -0
- package/skills/weaver-e10-calendar/references/source-manifest.json +54 -0
- package/skills/weaver-e10-esb/SKILL.md +102 -0
- package/skills/weaver-e10-esb/product.json +8 -0
- package/skills/weaver-e10-esb/references/input-format.md +52 -0
- package/skills/weaver-e10-esb/references/source-manifest.json +242 -0
- package/skills/weaver-e10-esb/references/trigger.md +99 -0
- package/skills/weaver-e10-hrm/SKILL.md +87 -0
- package/skills/weaver-e10-hrm/product.json +8 -0
- package/skills/weaver-e10-hrm/references/employee.md +109 -0
- package/skills/weaver-e10-hrm/references/org.md +95 -0
- package/skills/weaver-e10-hrm/references/position.md +95 -0
- package/skills/weaver-e10-hrm/references/source-manifest.json +121 -0
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +174 -0
- package/skills/weaver-e10-jiuchuanhui/product.json +8 -0
- package/skills/weaver-e10-jiuchuanhui/references/cache.md +110 -0
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +61 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact-plan.md +56 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact-records.md +48 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact.md +56 -0
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +69 -0
- package/skills/weaver-e10-jiuchuanhui/references/disabled-capabilities.md +24 -0
- package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +60 -0
- package/skills/weaver-e10-jiuchuanhui/references/general-helpers.md +59 -0
- package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +60 -0
- package/skills/weaver-e10-jiuchuanhui/references/sale.md +72 -0
- package/skills/weaver-e10-jiuchuanhui/references/source-manifest.json +2632 -0
- package/skills/weaver-e10-jucailin/SKILL.md +101 -0
- package/skills/weaver-e10-jucailin/product.json +8 -0
- package/skills/weaver-e10-jucailin/references/attend-read.md +73 -0
- package/skills/weaver-e10-jucailin/references/attend-write.md +82 -0
- package/skills/weaver-e10-jucailin/references/hr-contact.md +92 -0
- package/skills/weaver-e10-jucailin/references/hr-datasource.md +104 -0
- package/skills/weaver-e10-jucailin/references/hr-report.md +76 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +76 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +70 -0
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +35 -0
- package/skills/weaver-e10-jucailin/references/salary.md +110 -0
- package/skills/weaver-e10-jucailin/references/source-manifest.json +152 -0
- package/skills/weaver-e10-mail/SKILL.md +151 -0
- package/skills/weaver-e10-mail/product.json +8 -0
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +47 -0
- package/skills/weaver-e10-mail/references/mail-attachment.md +30 -0
- package/skills/weaver-e10-mail/references/mail-blacklist.md +27 -0
- package/skills/weaver-e10-mail/references/mail-contacts.md +33 -0
- package/skills/weaver-e10-mail/references/mail-manage.md +44 -0
- package/skills/weaver-e10-mail/references/mail-read.md +76 -0
- package/skills/weaver-e10-mail/references/mail-send.md +43 -0
- package/skills/weaver-e10-mail/references/mail-sign.md +33 -0
- package/skills/weaver-e10-mail/references/mail-template.md +31 -0
- package/skills/weaver-e10-mail/references/safety-boundaries.md +32 -0
- package/skills/weaver-e10-plan/SKILL.md +139 -0
- package/skills/weaver-e10-plan/product.json +8 -0
- package/skills/weaver-e10-plan/references/plan-collect-and-compose.md +123 -0
- package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +138 -0
- package/skills/weaver-e10-plan/references/plan-report-query.md +154 -0
- package/skills/weaver-e10-plan/references/plan-report-remind.md +104 -0
- package/skills/weaver-e10-plan/references/plan-report-write.md +162 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +858 -0
- package/skills/weaver-e10-qiyecheng/SKILL.md +118 -0
- package/skills/weaver-e10-qiyecheng/product.json +8 -0
- package/skills/weaver-e10-qiyecheng/references/budget.md +65 -0
- package/skills/weaver-e10-qiyecheng/references/catalog.md +56 -0
- package/skills/weaver-e10-qiyecheng/references/expense-center.md +51 -0
- package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +57 -0
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +59 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +698 -0
- package/skills/weaver-e10-shared/SKILL.md +86 -0
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +127 -0
- package/skills/weaver-e10-shared/references/json-output-contract.md +120 -0
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +110 -0
- package/skills/weaver-e10-skill-maker/SKILL.md +77 -0
- package/skills/weaver-e10-skill-maker/product.json +8 -0
- package/skills/weaver-e10-skill-maker/references/business-skill-generation.md +124 -0
- package/skills/weaver-e10-skill-maker/references/detector-validation.md +101 -0
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +230 -0
- package/skills/weaver-e10-skill-maker/references/post-generation-install.md +105 -0
- package/skills/weaver-e10-skill-maker/references/source-update-detection.md +261 -0
- package/skills/weaver-e10-skill-maker/references/weaver-skill-style.md +141 -0
- package/skills/weaver-e10-wenshuding/SKILL.md +157 -0
- package/skills/weaver-e10-wenshuding/product.json +8 -0
- package/skills/weaver-e10-wenshuding/references/archive-agent-entry.md +63 -0
- package/skills/weaver-e10-wenshuding/references/archive-borrow-car.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-disabled-capabilities.md +22 -0
- package/skills/weaver-e10-wenshuding/references/archive-download.md +48 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +46 -0
- package/skills/weaver-e10-wenshuding/references/archive-fonds.md +34 -0
- package/skills/weaver-e10-wenshuding/references/archive-info.md +33 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-upload.md +41 -0
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +517 -0
- package/skills/weaver-e10-yepiaotong/SKILL.md +184 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-add.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +47 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +204 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-delete.md +1 -1
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md +13 -5
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +28 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-download.md +31 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +45 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md +15 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +45 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +120 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +161 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +99 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-ocr-preview.md +14 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +58 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-red.md +261 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +97 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-update.md +1 -1
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-validation-preview.md +10 -3
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1340 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +845 -0
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +94 -0
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +449 -0
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +266 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +494 -0
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +1103 -0
- package/skills/weaver-e10-ziguanjia/SKILL.md +162 -0
- package/skills/weaver-e10-ziguanjia/product.json +8 -0
- package/skills/weaver-e10-ziguanjia/references/source-manifest.json +147 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +65 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-create.md +45 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-depre.md +48 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +22 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-purch.md +57 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-query.md +62 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-repair.md +83 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-resolve.md +49 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-return.md +70 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-update.md +45 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-use.md +60 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-viewlink.md +81 -0
- package/skills/weaver-work-cli-invoice/SKILL.md +0 -103
- package/skills/weaver-work-cli-invoice/references/invoice-agent-entry.md +0 -38
- package/skills/weaver-work-cli-invoice/references/invoice-disabled-capabilities.md +0 -26
- package/skills/weaver-work-cli-invoice/references/invoice-download.md +0 -22
- package/skills/weaver-work-cli-invoice/references/invoice-enterprise-list.md +0 -35
- package/skills/weaver-work-cli-invoice/references/invoice-import.md +0 -28
- package/skills/weaver-work-cli-invoice/references/invoice-personal-list.md +0 -47
- package/skills/weaver-work-cli-shared/SKILL.md +0 -53
- package/skills/weaver-work-cli-shared/references/e10-auth-and-session.md +0 -83
- package/skills/weaver-work-cli-shared/references/json-output-contract.md +0 -61
- package/skills/weaver-work-cli-shared/references/weaver-work-cli-installation.md +0 -61
- /package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/high-risk-write.md +0 -0
- /package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/product.json +0 -0
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
const pageProps = {
|
|
2
|
+
pageNo: { type: 'integer', minimum: 1, default: 1 },
|
|
3
|
+
pageSize: { type: 'integer', minimum: 1, maximum: 200, default: 10 },
|
|
4
|
+
count: { type: 'boolean', description: '是否并行请求总数接口' },
|
|
5
|
+
};
|
|
6
|
+
const idProp = { type: 'string', pattern: '^[1-9]\\d*$' };
|
|
7
|
+
const formProp = {
|
|
8
|
+
type: 'object',
|
|
9
|
+
additionalProperties: true,
|
|
10
|
+
description: '创建/更新表单数据:{ mainTable, detail1?, detail2?, ... } 或 { datas: [...] }。data_key 与明细表名以缓存 config/{pk}.json 为准。',
|
|
11
|
+
};
|
|
12
|
+
const esbWriteProps = (keys) => {
|
|
13
|
+
const props = {};
|
|
14
|
+
for (const key of keys)
|
|
15
|
+
props[key] = { type: 'string', description: `动作流业务参数 ${key}` };
|
|
16
|
+
return props;
|
|
17
|
+
};
|
|
18
|
+
const esbWriteSchema = (keys, required = keys) => ({
|
|
19
|
+
type: 'object',
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
properties: esbWriteProps(keys),
|
|
22
|
+
required,
|
|
23
|
+
});
|
|
24
|
+
function writePair(baseName, title, props, required = [], fixed = {}, withPrepare = true) {
|
|
25
|
+
const list = [];
|
|
26
|
+
if (withPrepare) {
|
|
27
|
+
list.push({
|
|
28
|
+
name: `${baseName}.prepare`,
|
|
29
|
+
risk: 'read-before-write',
|
|
30
|
+
fixed: { ...fixed, stage: 'prepare' },
|
|
31
|
+
inputSchema: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
properties: {
|
|
35
|
+
mainTable: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
properties: props,
|
|
39
|
+
...(required.length ? { required } : {}),
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
required: ['mainTable'],
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
list.push({
|
|
47
|
+
name: `${baseName}.apply`,
|
|
48
|
+
risk: 'high-risk-write',
|
|
49
|
+
fixed: { ...fixed, stage: 'apply' },
|
|
50
|
+
inputSchema: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
additionalProperties: false,
|
|
53
|
+
properties: {
|
|
54
|
+
continuation: { type: 'string', minLength: 1 },
|
|
55
|
+
confirm: { const: true },
|
|
56
|
+
},
|
|
57
|
+
required: ['continuation', 'confirm'],
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
return list;
|
|
61
|
+
}
|
|
62
|
+
export const jiuchuanhuiOperations = [
|
|
63
|
+
// ==================== 发现与配置 ====================
|
|
64
|
+
{
|
|
65
|
+
name: 'jiuchuanhui.cache.init',
|
|
66
|
+
risk: 'local-file-write',
|
|
67
|
+
fixed: { path: 'local:cache', purpose: '九氚汇配置缓存初始化/刷新' },
|
|
68
|
+
inputSchema: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
additionalProperties: false,
|
|
71
|
+
properties: {
|
|
72
|
+
dryRun: { type: 'boolean', description: '只拉取不写入(预览)' },
|
|
73
|
+
verbose: { type: 'boolean', description: '返回更多步骤明细' },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'jiuchuanhui.app.discovery',
|
|
79
|
+
risk: 'read',
|
|
80
|
+
fixed: { path: '/api/bs/ebuilder/app/tags/getAppIds', method: 'GET' },
|
|
81
|
+
inputSchema: {
|
|
82
|
+
type: 'object',
|
|
83
|
+
additionalProperties: false,
|
|
84
|
+
properties: { tag: { type: 'string', default: 'jch-crm-project' } },
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'jiuchuanhui.form.discovery',
|
|
89
|
+
risk: 'read',
|
|
90
|
+
fixed: { path: '/api/ebuilder/form/obj/getObjsByTag', method: 'GET' },
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
additionalProperties: false,
|
|
94
|
+
properties: {
|
|
95
|
+
tag: { type: 'string', description: '表单 tag,如 uf_jch_customer' },
|
|
96
|
+
appId: { type: 'string' },
|
|
97
|
+
},
|
|
98
|
+
required: ['tag', 'appId'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'jiuchuanhui.field.options',
|
|
103
|
+
risk: 'read',
|
|
104
|
+
fixed: { path: '/api/ebuilder/common/ds/options', method: 'GET', sourceType: 'FORM', optionLevel: 1 },
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
additionalProperties: false,
|
|
108
|
+
properties: {
|
|
109
|
+
fieldName: { type: 'string', description: '字段元数据ID(fieldid),不是 data_key 名称' },
|
|
110
|
+
sourceType: { type: 'string', default: 'FORM' },
|
|
111
|
+
objId: { type: 'string', description: '表单对象ID,可省略自动发现' },
|
|
112
|
+
groupId: { type: 'string', description: '应用分组ID,可省略自动发现(默认按 jch-crm-project 发现)' },
|
|
113
|
+
},
|
|
114
|
+
required: ['fieldName', 'sourceType'],
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'jiuchuanhui.rest.cfg.detail',
|
|
119
|
+
risk: 'read',
|
|
120
|
+
fixed: { path: '/api/bs/ebuilder/form/formdata/getRestCfgById', method: 'GET' },
|
|
121
|
+
inputSchema: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
additionalProperties: false,
|
|
124
|
+
properties: {
|
|
125
|
+
apid: { type: 'string', description: '应用 ID' },
|
|
126
|
+
id: { type: 'string', description: '接口配置 ID (cfgId)' },
|
|
127
|
+
},
|
|
128
|
+
required: ['apid', 'id'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'jiuchuanhui.config.id.by.pk',
|
|
133
|
+
risk: 'read',
|
|
134
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '4F6E1A9702864666803CCA6B77B86227' },
|
|
135
|
+
inputSchema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
additionalProperties: false,
|
|
138
|
+
properties: {
|
|
139
|
+
mainTable: {
|
|
140
|
+
type: 'object',
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
properties: { interface_pk: { type: 'string' } },
|
|
143
|
+
required: ['interface_pk'],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
required: ['mainTable'],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'jiuchuanhui.file.preview',
|
|
151
|
+
risk: 'read',
|
|
152
|
+
fixed: { path: '/api/file/preview', method: 'GET', module: 'ebuilderform', authModule: 'ebuilderform', source: 'form' },
|
|
153
|
+
inputSchema: {
|
|
154
|
+
type: 'object',
|
|
155
|
+
additionalProperties: false,
|
|
156
|
+
properties: {
|
|
157
|
+
fileId: { type: 'string' },
|
|
158
|
+
fieldId: { type: 'string' },
|
|
159
|
+
appId: { type: 'string' },
|
|
160
|
+
customParam: { type: ['string', 'object'] },
|
|
161
|
+
},
|
|
162
|
+
required: ['fileId'],
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
// ==================== 客户 ====================
|
|
166
|
+
...writePair('jiuchuanhui.customer.create', '客户创建', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/saveFormData/customer_create_api' }),
|
|
167
|
+
{
|
|
168
|
+
name: 'jiuchuanhui.customer.get',
|
|
169
|
+
risk: 'read',
|
|
170
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataByPk/customer_get_api' },
|
|
171
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: { id: idProp }, required: ['id'] },
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'jiuchuanhui.customer.search',
|
|
175
|
+
risk: 'read',
|
|
176
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcustomer_search_api', countPath: '/api/ebuilder/form/formdata/v2/getFormDataCount/ebcustomer_search_count_api' },
|
|
177
|
+
inputSchema: {
|
|
178
|
+
type: 'object',
|
|
179
|
+
additionalProperties: true,
|
|
180
|
+
description: '搜索条件走 query:支持 searchParams 中的字段(customer_name/status/type/managerid/...),以及事项范围 mine/all/customerSea(必须三选一置空其余为 -1)与分页。',
|
|
181
|
+
properties: pageProps,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'jiuchuanhui.customer.type.search',
|
|
186
|
+
risk: 'read',
|
|
187
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcustomer_type_search_api' },
|
|
188
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'jiuchuanhui.customer.status.search',
|
|
192
|
+
risk: 'read',
|
|
193
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcustomer_status_search_api' },
|
|
194
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'jiuchuanhui.customer.industry.search',
|
|
198
|
+
risk: 'read',
|
|
199
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcustomer_industry_search_api' },
|
|
200
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'jiuchuanhui.customer.open-sea.search',
|
|
204
|
+
risk: 'read',
|
|
205
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/customer_open_sea_search_api' },
|
|
206
|
+
inputSchema: { type: 'object', additionalProperties: true, properties: pageProps },
|
|
207
|
+
},
|
|
208
|
+
...writePair('jiuchuanhui.customer.update', '客户修改', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/updateFormData/customer_update_api' }),
|
|
209
|
+
...writePair('jiuchuanhui.customer.transfer', '客户转移', esbWriteProps(['customerId', 'toUserId', 'remark']), ['customerId', 'toUserId'], { uniqueIndent: '1E44ED7DA9EB46329818E682C2914928' }),
|
|
210
|
+
...writePair('jiuchuanhui.customer.open-sea.release', '客户释放公海', esbWriteProps(['customerId', 'openSeaId', 'remark']), ['customerId', 'openSeaId'], { uniqueIndent: '0E29AD0E708D4964B071D293288B92D7' }),
|
|
211
|
+
...writePair('jiuchuanhui.customer.open-sea.claim', '领取公海客户', esbWriteProps(['customer_id']), ['customer_id'], { uniqueIndent: 'D587CDC892FE41118DD073475C01A2CE' }),
|
|
212
|
+
{
|
|
213
|
+
name: 'jiuchuanhui.customer.duplicate.check',
|
|
214
|
+
risk: 'read',
|
|
215
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: 'D5D0A1C30E7B404B842987C0AD3B749D' },
|
|
216
|
+
inputSchema: {
|
|
217
|
+
type: 'object',
|
|
218
|
+
additionalProperties: false,
|
|
219
|
+
properties: { mainTable: esbWriteSchema(['name', 'simpleName'], ['name', 'simpleName']) },
|
|
220
|
+
required: ['mainTable'],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
...writePair('jiuchuanhui.customer.contact-record.create', '新建客户联系记录', esbWriteProps(['customerId', 'comment_content', 'type', 'rating', 'contact_information', 'contacts', 'next_time', 'next_content', 'next_contact_information', 'next_contacts', 'sync_salechance', 'rel_remind']), ['customerId', 'comment_content'], { uniqueIndent: 'C7A226EEE1324FF3B6E5BD18AF923DE7' }),
|
|
224
|
+
...writePair('jiuchuanhui.customer.contact-record.batch', '批量添加客户联系记录', esbWriteProps(['entityList', 'content']), ['entityList', 'content'], { uniqueIndent: 'D0F315619FE34C669AE738ED68329FAB' }),
|
|
225
|
+
// ==================== 联系人 ====================
|
|
226
|
+
...writePair('jiuchuanhui.contact.create', '联系人创建', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/saveFormData/contact_create_api' }),
|
|
227
|
+
{
|
|
228
|
+
name: 'jiuchuanhui.contact.get',
|
|
229
|
+
risk: 'read',
|
|
230
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataByPk/contact_get_api' },
|
|
231
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: { id: idProp }, required: ['id'] },
|
|
232
|
+
},
|
|
233
|
+
...writePair('jiuchuanhui.contact.update', '联系人修改', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/updateFormData/contact_update_api' }),
|
|
234
|
+
{
|
|
235
|
+
name: 'jiuchuanhui.contact.by-entity.search',
|
|
236
|
+
risk: 'read',
|
|
237
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcontact_search_by_entity_api' },
|
|
238
|
+
inputSchema: {
|
|
239
|
+
type: 'object',
|
|
240
|
+
additionalProperties: true,
|
|
241
|
+
properties: { ...pageProps, customerId: { type: 'string' }, saleChanceId: { type: 'string' } },
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
// ==================== 商机 ====================
|
|
245
|
+
...writePair('jiuchuanhui.sale.create', '商机创建', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/saveFormData/sale_create_api' }),
|
|
246
|
+
{
|
|
247
|
+
name: 'jiuchuanhui.sale.get',
|
|
248
|
+
risk: 'read',
|
|
249
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataByPk/sale_get_api' },
|
|
250
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: { id: idProp }, required: ['id'] },
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'jiuchuanhui.sale.search',
|
|
254
|
+
risk: 'read',
|
|
255
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebsale_search_api', countPath: '/api/ebuilder/form/formdata/v2/getFormDataCount/ebsale_search_count_api' },
|
|
256
|
+
inputSchema: { type: 'object', additionalProperties: true, properties: pageProps },
|
|
257
|
+
},
|
|
258
|
+
...writePair('jiuchuanhui.sale.update', '商机修改', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/updateFormData/sale_update_api' }),
|
|
259
|
+
{
|
|
260
|
+
name: 'jiuchuanhui.sale.stage.search',
|
|
261
|
+
risk: 'read',
|
|
262
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/sale_stage_search_api' },
|
|
263
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'jiuchuanhui.sale.process.search',
|
|
267
|
+
risk: 'read',
|
|
268
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/sale_process_sear_api' },
|
|
269
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: 'jiuchuanhui.sale.lose-reason.search',
|
|
273
|
+
risk: 'read',
|
|
274
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/sale_lose_reason' },
|
|
275
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'jiuchuanhui.rival.search',
|
|
279
|
+
risk: 'read',
|
|
280
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebrival_search_api' },
|
|
281
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: pageProps },
|
|
282
|
+
},
|
|
283
|
+
...writePair('jiuchuanhui.sale.win', '商机赢单', esbWriteProps(['saleId']), ['saleId'], { uniqueIndent: '3B23E782E5084F18A904E895BBD61A96' }),
|
|
284
|
+
...writePair('jiuchuanhui.sale.lose', '商机输单', esbWriteProps(['saleid', 'money', 'reasonids', 'rivals', 'desc']), ['saleid'], { uniqueIndent: 'DE35D926F82F49FDBA26B48B0CA1CB53' }),
|
|
285
|
+
...writePair('jiuchuanhui.sale.invalid', '商机无效', esbWriteProps(['saleId']), ['saleId'], { uniqueIndent: '4D88AB8677D84BAC90B63137E7FA1FF9' }),
|
|
286
|
+
...writePair('jiuchuanhui.sale.pause', '商机暂停', esbWriteProps(['saleId', 'pauseReason', 'restartDate']), ['saleId', 'pauseReason'], { uniqueIndent: '859C73403DCC4F01B02329571BDBD9F3' }),
|
|
287
|
+
...writePair('jiuchuanhui.sale.restart', '商机重启', esbWriteProps(['saleChanceId']), ['saleChanceId'], { uniqueIndent: 'F3004CDCA8A548B5A0DACD3CDE62387A' }),
|
|
288
|
+
...writePair('jiuchuanhui.sale.manager-change', '商机转移/负责人变更', esbWriteProps(['saleChanceId', 'managerId']), ['saleChanceId', 'managerId'], { uniqueIndent: '595F9C6F1C4248929B83086F71363BA7' }),
|
|
289
|
+
...writePair('jiuchuanhui.sale.link-contacts', '商机关联联系人', esbWriteProps(['salechanceId', 'contactIds']), ['salechanceId', 'contactIds'], { uniqueIndent: '1114A713A62F4CA9899CC24ED5902D93' }),
|
|
290
|
+
...writePair('jiuchuanhui.sale.contact-record.create', '新建商机联系记录', esbWriteProps(['saleId', 'comment_content', 'type', 'rating', 'contact_information', 'contacts', 'next_time', 'next_content', 'next_contact_information', 'next_contacts', 'rel_remind']), ['saleId', 'comment_content'], { uniqueIndent: '7BB3A1918186445F9E770862EFA7EDA9' }),
|
|
291
|
+
// ==================== 线索 ====================
|
|
292
|
+
...writePair('jiuchuanhui.clue.create', '线索创建', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/saveFormData/ebclue_ai_create_api' }),
|
|
293
|
+
{
|
|
294
|
+
name: 'jiuchuanhui.clue.get',
|
|
295
|
+
risk: 'read',
|
|
296
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataByPk/ebcluepool_ai_get_api' },
|
|
297
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: { id: idProp }, required: ['id'] },
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'jiuchuanhui.clue.search',
|
|
301
|
+
risk: 'read',
|
|
302
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebclue_ai_search_api', countPath: '/api/ebuilder/form/formdata/v2/getFormDataCount/ebclue_ai_search_count_api' },
|
|
303
|
+
inputSchema: { type: 'object', additionalProperties: true, properties: pageProps },
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: 'jiuchuanhui.clue.pool.search',
|
|
307
|
+
risk: 'read',
|
|
308
|
+
fixed: { path: '/api/ebuilder/form/formdata/v2/getFormDataList/ebcluepool_ai_search_api' },
|
|
309
|
+
inputSchema: { type: 'object', additionalProperties: true, properties: pageProps },
|
|
310
|
+
},
|
|
311
|
+
...writePair('jiuchuanhui.clue.update', '线索修改', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/updateFormData/ebclue_ai_update_api' }),
|
|
312
|
+
...writePair('jiuchuanhui.clue.status-change', '线索状态变更', esbWriteProps(['clueid', 'type', 'newmanager', 'desc']), ['clueid', 'type'], { uniqueIndent: '257CC8DE42234F9191439B229839B8A7' }),
|
|
313
|
+
...writePair('jiuchuanhui.clue.to-customer', '线索转已有客户', esbWriteProps(['clueId', 'customerId']), ['clueId', 'customerId'], { uniqueIndent: '00914C6415EB455DB7FCCC32DBE6E0C3' }),
|
|
314
|
+
...writePair('jiuchuanhui.clue.contact-record.create', '新建线索跟进记录', esbWriteProps(['clueId', 'content', 'clueStatus_MappingId']), ['clueId', 'content', 'clueStatus_MappingId'], { uniqueIndent: 'B3DD120601344320A2B50A042B450681' }),
|
|
315
|
+
// ==================== 联系计划 ====================
|
|
316
|
+
...writePair('jiuchuanhui.contact-plan.create', '创建联系计划', { form: formProp }, ['form'], { path: '/api/ebuilder/form/formdata/v2/saveFormData/ebcontact_plan_create_api' }),
|
|
317
|
+
...writePair('jiuchuanhui.contact-plan.complete', '完成联系计划', esbWriteProps(['planId']), ['planId'], { uniqueIndent: '2595D3556CFC414F85B1A4A8D806EFE5' }),
|
|
318
|
+
// ==================== 联系记录 ====================
|
|
319
|
+
{
|
|
320
|
+
name: 'jiuchuanhui.entity.contact-records.list',
|
|
321
|
+
risk: 'read',
|
|
322
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '364A9713D10C4997AF6EDCAA5296968E' },
|
|
323
|
+
inputSchema: {
|
|
324
|
+
type: 'object',
|
|
325
|
+
additionalProperties: false,
|
|
326
|
+
properties: {
|
|
327
|
+
mainTable: {
|
|
328
|
+
type: 'object',
|
|
329
|
+
additionalProperties: false,
|
|
330
|
+
properties: {
|
|
331
|
+
moduleType: { type: 'string', description: '事项模块标识:customer=客户、clue=线索、saleChance=商机' },
|
|
332
|
+
entityId: { type: 'string' },
|
|
333
|
+
},
|
|
334
|
+
required: ['moduleType', 'entityId'],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
required: ['mainTable'],
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: 'jiuchuanhui.contact-records.by-person-time.list',
|
|
342
|
+
risk: 'read',
|
|
343
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: 'D01DD00978524525AD8728BE1BF9FE79' },
|
|
344
|
+
inputSchema: {
|
|
345
|
+
type: 'object',
|
|
346
|
+
additionalProperties: false,
|
|
347
|
+
properties: { mainTable: esbWriteSchema(['employeeId', 'startData', 'endData']) },
|
|
348
|
+
required: ['mainTable'],
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
// ==================== 通用辅助 ====================
|
|
352
|
+
{
|
|
353
|
+
name: 'jiuchuanhui.entity.id.by-name',
|
|
354
|
+
risk: 'read',
|
|
355
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '7EC1639D5AC24B4DBCEE8D2CB85D4025' },
|
|
356
|
+
inputSchema: {
|
|
357
|
+
type: 'object',
|
|
358
|
+
additionalProperties: false,
|
|
359
|
+
properties: { mainTable: esbWriteSchema(['moduleType', 'name']) },
|
|
360
|
+
required: ['mainTable'],
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: 'jiuchuanhui.user.id.by-name',
|
|
365
|
+
risk: 'read',
|
|
366
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '911C17207E2C4BD29379B5A4001B246E' },
|
|
367
|
+
inputSchema: {
|
|
368
|
+
type: 'object',
|
|
369
|
+
additionalProperties: false,
|
|
370
|
+
properties: { mainTable: esbWriteSchema(['employeeName']) },
|
|
371
|
+
required: ['mainTable'],
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: 'jiuchuanhui.user.current-profile',
|
|
376
|
+
risk: 'read',
|
|
377
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: 'B8F7597190FF419FB9127D6C8272C4FE' },
|
|
378
|
+
inputSchema: { type: 'object', additionalProperties: false, properties: {} },
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: 'jiuchuanhui.entity.permission.judge',
|
|
382
|
+
risk: 'read',
|
|
383
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '6D369F0A84764051A5D7B5AA1245F49A' },
|
|
384
|
+
inputSchema: {
|
|
385
|
+
type: 'object',
|
|
386
|
+
additionalProperties: false,
|
|
387
|
+
properties: { mainTable: esbWriteSchema(['moduleType', 'entityId', 'opType']) },
|
|
388
|
+
required: ['mainTable'],
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: 'jiuchuanhui.company.business-profile.query',
|
|
393
|
+
risk: 'read',
|
|
394
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: 'BAB4DBE204214BB395BA161620A4A1CD' },
|
|
395
|
+
inputSchema: {
|
|
396
|
+
type: 'object',
|
|
397
|
+
additionalProperties: false,
|
|
398
|
+
properties: { mainTable: esbWriteSchema(['companyName']) },
|
|
399
|
+
required: ['mainTable'],
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: 'jiuchuanhui.field.info.by-ids',
|
|
404
|
+
risk: 'read',
|
|
405
|
+
fixed: { path: '/api/esb/server/event/triggerActionFlow', uniqueIndent: '10351A4DC8D4454A9F1957FBE647CD9F' },
|
|
406
|
+
inputSchema: {
|
|
407
|
+
type: 'object',
|
|
408
|
+
additionalProperties: false,
|
|
409
|
+
properties: { mainTable: esbWriteSchema(['fieldids']) },
|
|
410
|
+
required: ['mainTable'],
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: 'jiuchuanhui.browser-option.search',
|
|
415
|
+
risk: 'read',
|
|
416
|
+
fixed: { path: '/api/bcw/common/browser/complete/{customBrowserType}', method: 'POST' },
|
|
417
|
+
inputSchema: {
|
|
418
|
+
type: 'object',
|
|
419
|
+
additionalProperties: false,
|
|
420
|
+
properties: {
|
|
421
|
+
pathParams: {
|
|
422
|
+
type: 'object',
|
|
423
|
+
additionalProperties: false,
|
|
424
|
+
properties: { customBrowserType: { type: 'string' } },
|
|
425
|
+
required: ['customBrowserType'],
|
|
426
|
+
},
|
|
427
|
+
params: {
|
|
428
|
+
type: 'object',
|
|
429
|
+
additionalProperties: true,
|
|
430
|
+
properties: { searchValue: { type: 'string' } },
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
required: ['pathParams'],
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: 'jiuchuanhui.get-rest-cfg-detail',
|
|
438
|
+
risk: 'read',
|
|
439
|
+
fixed: { path: '/api/bs/ebuilder/form/formdata/getRestCfgById', method: 'GET' },
|
|
440
|
+
inputSchema: {
|
|
441
|
+
type: 'object',
|
|
442
|
+
additionalProperties: false,
|
|
443
|
+
properties: {
|
|
444
|
+
apid: { type: 'string' },
|
|
445
|
+
id: { type: 'string' },
|
|
446
|
+
},
|
|
447
|
+
required: ['apid', 'id'],
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
];
|
|
451
|
+
export const jiuchuanhuiManifest = {
|
|
452
|
+
schemaVersion: 1,
|
|
453
|
+
name: 'jiuchuanhui',
|
|
454
|
+
title: '泛微E10九氚汇营销管理(客户/联系人/商机/线索/联系计划/公海)',
|
|
455
|
+
version: '0.1.0',
|
|
456
|
+
host: 'e10-jiuchuanhui',
|
|
457
|
+
status: 'builtin',
|
|
458
|
+
sourceSkill: 'weaver-e10-jiuchuanhui',
|
|
459
|
+
operations: jiuchuanhuiOperations,
|
|
460
|
+
withheldOperations: [
|
|
461
|
+
{
|
|
462
|
+
name: 'jiuchuanhui.sale.stage-advance',
|
|
463
|
+
reason: '商机推进销售阶段依赖缓存中的 sale_stage 配置做阶段 ID 映射与前置校验,属于 Skill 编排层职责;CLI 暴露的 sale.update 与 sale.stage.search 已覆盖基础能力,阶段推进的组合逻辑不在 CLI 硬编码。',
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
};
|
|
467
|
+
export function hasJiuchuanhuiOperation(operation) {
|
|
468
|
+
return jiuchuanhuiOperations.some((item) => item.name === operation);
|
|
469
|
+
}
|