weaver-work-cli 0.1.54 → 0.1.57
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-ZQ4A4TV6.js → archive-4SQAVTIB.js} +3 -2
- package/dist/chunks/{archive-oa-57R2FYHV.js → archive-oa-W2UEJ67L.js} +137 -8
- package/dist/chunks/{asset-ZOJVBWZH.js → asset-EGZEABBI.js} +3 -2
- package/dist/chunks/{asset-idle-XGB5IPGT.js → asset-idle-EBUZBB6M.js} +3 -2
- package/dist/chunks/{attachment-content-2EPEI4HV.js → attachment-content-QGM5MLQE.js} +4 -3
- package/dist/chunks/{blog-QSHLZSFW.js → blog-2YKMWOWI.js} +3 -2
- package/dist/chunks/{caizhilian-KCQYFH72.js → caizhilian-QJ4FLSQJ.js} +5 -4
- package/dist/chunks/{calendar-DLGMRJQA.js → calendar-H4QTJCUY.js} +3 -2
- package/dist/chunks/{chunk-XPQN4E5O.js → chunk-44KJ7WFA.js} +300 -55
- package/dist/chunks/{chunk-CZNZKOHR.js → chunk-4GG72JAT.js} +2 -2
- package/dist/chunks/{chunk-YIKSL36S.js → chunk-5N222HK6.js} +2 -2
- package/dist/chunks/{chunk-XHMJBRLZ.js → chunk-6DVL5IN5.js} +4 -1
- package/dist/chunks/{chunk-JJRIT2ZN.js → chunk-6MS3RLPO.js} +5 -334
- package/dist/chunks/{chunk-QUDHSMG3.js → chunk-7EBV7Q3R.js} +112 -27
- package/dist/chunks/{chunk-CNVZETM5.js → chunk-AHJZIMCX.js} +1 -1
- package/dist/chunks/{chunk-TGAGQV4I.js → chunk-CQ4OVCKG.js} +2 -2
- package/dist/chunks/{chunk-2BQESR2U.js → chunk-DVR2EDUU.js} +99 -34
- package/dist/chunks/{chunk-7KKI5KDY.js → chunk-FDAJC7R4.js} +4 -4
- package/dist/chunks/{chunk-GR76ZDDX.js → chunk-FMNCSYIG.js} +2 -2
- package/dist/chunks/{chunk-6LGLI46Q.js → chunk-L2LMBFG5.js} +1 -1
- package/dist/chunks/{chunk-DLY5GUXX.js → chunk-PH7N4UFT.js} +1 -1
- package/dist/chunks/{chunk-U6R6FZHD.js → chunk-SFM3M2L3.js} +286 -93
- package/dist/chunks/chunk-SHYQUBY3.js +48 -0
- package/dist/chunks/{chunk-HFXK54M4.js → chunk-TGM7BWEH.js} +2 -2
- package/dist/chunks/{chunk-Z7B7QSR2.js → chunk-TJUAGZU7.js} +11 -11
- package/dist/chunks/{chunk-LYOFRYC4.js → chunk-UI66EMOR.js} +4 -4
- package/dist/chunks/{chunk-762M5XJS.js → chunk-VMCCRWFO.js} +2 -2
- package/dist/chunks/{chunk-FE3CQAAM.js → chunk-WHJIUKJW.js} +681 -48
- package/dist/chunks/{chunk-PGO4ILMQ.js → chunk-WMB3SMXI.js} +1 -1
- package/dist/chunks/chunk-WMRNO6IU.js +337 -0
- package/dist/chunks/{chunk-6NXT4ICB.js → chunk-WVH5ESDA.js} +1 -1
- package/dist/chunks/{chunk-O6RIBG5E.js → chunk-XU3FL3AW.js} +4 -4
- package/dist/chunks/{chunk-Z6UUBY37.js → chunk-Z4IPY5GV.js} +2 -2
- package/dist/chunks/{conflict-K2IAKKFR.js → conflict-VAFFPUY3.js} +2 -2
- package/dist/chunks/{contract-LJRAXVZU.js → contract-LLRKMLQQ.js} +2655 -1319
- package/dist/chunks/{cowork-3ACICHDQ.js → cowork-2RDFBZWB.js} +3 -2
- package/dist/chunks/{create-flow-UL37MZGP.js → create-flow-TVYE3IOH.js} +6 -6
- package/dist/chunks/{data-WK5CQXNF.js → data-WVICO3DT.js} +57 -11
- package/dist/chunks/{ebuilder-form-CBYI6CQ6.js → ebuilder-form-TWSXS5NA.js} +7 -6
- package/dist/chunks/{ehr-XI4BIVR2.js → ehr-52GBKNJR.js} +3 -2
- package/dist/chunks/{env-BZDB5OVZ.js → env-BVVFIN4P.js} +2 -2
- package/dist/chunks/{esb-4BQHNP5C.js → esb-HJSXCEOM.js} +5 -4
- package/dist/chunks/{factory-VD3YI6N7.js → factory-RCQ36LLE.js} +1 -1
- package/dist/chunks/{fna-ECOYBQYL.js → fna-OBACRT3J.js} +72 -3
- package/dist/chunks/{group-chat-DHNVO76L.js → group-chat-YFZDUUY3.js} +3 -3
- package/dist/chunks/{host-TUOIOEMC.js → host-2BKMPWDH.js} +4 -3
- package/dist/chunks/{host-3TNBMDTR.js → host-KJT3G5D2.js} +4 -3
- package/dist/chunks/{host-7OWWPLM4.js → host-KOWUMNAY.js} +4 -3
- package/dist/chunks/{host-M4XP5URR.js → host-MFXRA2MY.js} +4 -3
- package/dist/chunks/{host-7NTIBSPK.js → host-TTSGY5NZ.js} +4 -3
- package/dist/chunks/{host-G3VU7SDW.js → host-W4JCNRFS.js} +4 -3
- package/dist/chunks/{hrm-YGIR3HGF.js → hrm-AK3WGBMN.js} +4 -3
- package/dist/chunks/{im-TN2JYVGJ.js → im-JZSBPO4Z.js} +4 -3
- package/dist/chunks/{invoice-V7ZTITUO.js → invoice-7JGSEWT5.js} +22 -9
- package/dist/chunks/{jiuchuanhui-ASFZBMPU.js → jiuchuanhui-K4EQU6GK.js} +3 -2
- package/dist/chunks/{lazy-dispatch-XSAHDK6Z.js → lazy-dispatch-JHGFCKJN.js} +5 -4
- package/dist/chunks/{mail-M3HJF5ER.js → mail-IKVCQCVZ.js} +3 -2
- package/dist/chunks/{meeting-OWG4O2XH.js → meeting-JOHV4RH3.js} +14 -12
- package/dist/chunks/minute-doc-JLS4KMFZ.js +156 -0
- package/dist/chunks/{okr-EVX7FB5G.js → okr-KV43FPPX.js} +3 -2
- package/dist/chunks/{operations-J7PUIVWZ.js → operations-ZPWBMYKE.js} +5 -4
- package/dist/chunks/{plan-2QJQEPBO.js → plan-WOYR4WEG.js} +3 -2
- package/dist/chunks/{project-XELELW2T.js → project-CQJKBUIL.js} +3 -2
- package/dist/chunks/{reception-QGPNTGHG.js → reception-MPBU3JXC.js} +3 -2
- package/dist/chunks/{recruit-stage-XCMVEQA2.js → recruit-stage-USTTRHOX.js} +3 -2
- package/dist/chunks/{registry-CJOVECZD.js → registry-GURQG4ZV.js} +3 -2
- package/dist/chunks/{registry-ASYCWF2U.js → registry-LITYOH2W.js} +12 -10
- package/dist/chunks/{registry-QJCZ2GVG.js → registry-SS5J2FZQ.js} +5 -4
- package/dist/chunks/{room-recommend-LSVAMGKV.js → room-recommend-62MECG4J.js} +4 -4
- package/dist/chunks/{schedule-7QOPRUU4.js → schedule-6QRXIBGU.js} +4 -4
- package/dist/chunks/{smart-extract-FOUYNIG3.js → smart-extract-APX2PNIN.js} +3 -2
- package/dist/chunks/{workflow-YHXFIU63.js → workflow-WMPW3WSB.js} +5 -4
- package/dist/index.js +33 -32
- package/dist/internal/e10/auth/agent-host-key.js +68 -0
- package/dist/internal/e10/auth/agent-hosts.js +250 -0
- package/dist/internal/e10/auth/commands.js +99 -30
- package/dist/internal/e10/auth/paths.js +9 -0
- package/dist/internal/e10/auth/session.js +17 -0
- package/dist/internal/e10/auth/xiaoe.js +37 -3
- package/dist/shortcuts/archive-oa/operations/contract-modules.js +106 -0
- package/dist/shortcuts/archive-oa/operations/contract.js +38 -4
- package/dist/shortcuts/archive-oa/operations/registry.js +2 -1
- package/dist/shortcuts/contract/index.js +6 -7
- package/dist/shortcuts/contract/manifest.js +101 -24
- package/dist/shortcuts/contract/ooxml/docx-table.js +75 -3
- package/dist/shortcuts/contract/ooxml/xlsx.js +49 -13
- package/dist/shortcuts/contract/operations/card-action.js +113 -12
- package/dist/shortcuts/contract/operations/card-ebdf-list.js +29 -7
- package/dist/shortcuts/contract/operations/card-plan.js +75 -9
- package/dist/shortcuts/contract/operations/card-risk-report.js +2 -2
- package/dist/shortcuts/contract/operations/card.js +1 -1
- package/dist/shortcuts/contract/operations/clause-library.js +88 -16
- package/dist/shortcuts/contract/operations/compare-screen.js +378 -0
- package/dist/shortcuts/contract/operations/compare.js +1 -1
- package/dist/shortcuts/contract/operations/credit-page.js +1 -1
- package/dist/shortcuts/contract/operations/docx-slots.js +1000 -0
- package/dist/shortcuts/contract/operations/flow.js +2 -2
- package/dist/shortcuts/contract/operations/quote-to-contract.js +495 -0
- package/dist/shortcuts/contract/operations/quote.js +2 -229
- package/dist/shortcuts/contract/operations/recommend.js +1 -1
- package/dist/shortcuts/contract/operations/registry.js +6 -2
- package/dist/shortcuts/contract/operations/review.js +230 -4
- package/dist/shortcuts/contract/operations/save-recognize.js +122 -3
- package/dist/shortcuts/contract/operations/template.js +11 -10
- package/dist/shortcuts/data/operations/ds.js +5 -5
- package/dist/shortcuts/data/operations/shared.js +76 -4
- package/dist/shortcuts/fna/manifest.js +7 -2
- package/dist/shortcuts/fna/operations/budget.js +68 -0
- package/dist/shortcuts/invoice/manifest.js +8 -3
- package/dist/shortcuts/invoice/operations/reim.js +10 -3
- package/dist/shortcuts/meeting/minute-doc.js +153 -0
- package/dist/shortcuts/meeting/operations/compose-outcome.js +176 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +26 -0
- package/dist/shortcuts/meeting/operations/eb/decision-task-batch.js +144 -0
- package/dist/shortcuts/meeting/operations/eb/decision.js +92 -4
- package/dist/shortcuts/meeting/operations/eb/index.js +133 -4
- package/dist/shortcuts/meeting/operations/eb/meeting-link.js +90 -0
- package/dist/shortcuts/meeting/operations/from-group-chat.js +46 -0
- package/dist/shortcuts/meeting/operations/minute-content.js +61 -0
- package/dist/shortcuts/meeting/operations/registry.js +14 -1
- package/dist/shortcuts/meeting/operations/self-check.js +49 -0
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +114 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +72 -46
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +41 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +46 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +18 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroupAdd.js +51 -0
- package/docs/e10-auth.md +78 -0
- package/docs/fna.md +8 -3
- package/docs/invoice.md +1 -1
- package/package.json +4 -2
- package/scripts/pack-offline.mjs +228 -0
- package/scripts/package-skill.mjs +14 -5
- package/skill-template/business-info.json +3 -0
- package/skill-template/domains/qiyecheng.md +4 -3
- package/skills/weaver-e10-archive-oa/SKILL.md +6 -1
- package/skills/weaver-e10-archive-oa/references/contract-search.md +91 -4
- package/skills/weaver-e10-jinchengda/SKILL.md +100 -81
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +11 -6
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +38 -12
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +20 -6
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +8 -3
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +56 -13
- package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +7 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +11 -5
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +38 -7
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +13 -25
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -8
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +8 -6
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +10 -7
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +26 -18
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -13
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +5 -3
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +105 -49
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +3 -6
- package/skills/weaver-e10-meeting/SKILL.md +47 -9
- package/skills/weaver-e10-qiyecheng/SKILL.md +16 -7
- package/skills/weaver-e10-qiyecheng/references/budget.md +77 -3
- package/skills/weaver-e10-qiyecheng/references/catalog.md +6 -4
- package/skills/weaver-e10-qiyecheng/references/getEnabledTemplate-api.md +255 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +70 -25
- package/skills/weaver-e10-workflow/SKILL.md +54 -40
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +134 -0
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +102 -80
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +23 -13
- package/skills/weaver-e10-workflow/references/workflow-query.md +68 -46
- package/skills/weaver-e10-workflow/references/workflow-view.md +21 -13
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +317 -332
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
- package/skills/weaver-e10-yepiaotong.zip +0 -0
- package/dist/shortcuts/contract/ooxml/docx.js +0 -295
- package/dist/shortcuts/contract/operations/docx-fillfromquote.js +0 -532
- package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +0 -178
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +0 -1270
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +0 -998
- package/skills/weaver-e10-workflow/tools/todo-serve.cjs +0 -327
|
@@ -11,11 +11,12 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WVH5ESDA.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SFM3M2L3.js";
|
|
19
|
+
import "./chunk-SHYQUBY3.js";
|
|
19
20
|
import {
|
|
20
21
|
CliError,
|
|
21
22
|
isCliError,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
resolveWorkflowId,
|
|
23
23
|
shapeBrowserValues,
|
|
24
24
|
shouldAutoPickFlow
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-7EBV7Q3R.js";
|
|
26
|
+
import "./chunk-XU3FL3AW.js";
|
|
27
|
+
import "./chunk-UI66EMOR.js";
|
|
28
|
+
import "./chunk-AHJZIMCX.js";
|
|
29
|
+
import "./chunk-L2LMBFG5.js";
|
|
30
|
+
import "./chunk-6DVL5IN5.js";
|
|
31
31
|
import "./chunk-7BDPM5ST.js";
|
|
32
32
|
import "./chunk-UG5G54VL.js";
|
|
33
33
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WVH5ESDA.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SFM3M2L3.js";
|
|
12
|
+
import "./chunk-SHYQUBY3.js";
|
|
12
13
|
import {
|
|
13
14
|
CliError
|
|
14
15
|
} from "./chunk-UG5G54VL.js";
|
|
@@ -196,8 +197,35 @@ function needArg(input, key, flag) {
|
|
|
196
197
|
|
|
197
198
|
// src/shortcuts/data/operations/shared.ts
|
|
198
199
|
import { readFileSync } from "node:fs";
|
|
200
|
+
var LONG_INT_PATTERN = /([:[,]\s*)(-?\d{16,})(?=\s*[,}\]])/g;
|
|
199
201
|
function quoteLongInts(raw) {
|
|
200
|
-
|
|
202
|
+
let out = "";
|
|
203
|
+
let i = 0;
|
|
204
|
+
while (i < raw.length) {
|
|
205
|
+
if (raw[i] === '"') {
|
|
206
|
+
let end2 = i + 1;
|
|
207
|
+
while (end2 < raw.length) {
|
|
208
|
+
const ch = raw[end2];
|
|
209
|
+
if (ch === "\\") {
|
|
210
|
+
end2 += 2;
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
if (ch === '"') {
|
|
214
|
+
end2 += 1;
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
end2 += 1;
|
|
218
|
+
}
|
|
219
|
+
out += raw.slice(i, end2);
|
|
220
|
+
i = end2;
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
let end = i;
|
|
224
|
+
while (end < raw.length && raw[end] !== '"') end += 1;
|
|
225
|
+
out += raw.slice(i, end).replace(LONG_INT_PATTERN, '$1"$2"');
|
|
226
|
+
i = end;
|
|
227
|
+
}
|
|
228
|
+
return out;
|
|
201
229
|
}
|
|
202
230
|
function parseJsonSafe(raw) {
|
|
203
231
|
return JSON.parse(quoteLongInts(String(raw).replace(/^\uFEFF+/, "")));
|
|
@@ -246,18 +274,26 @@ function applyAppId(dto, appId) {
|
|
|
246
274
|
function normRelationship(value) {
|
|
247
275
|
return value === "0" || value === 0 || value === false ? "0" : "1";
|
|
248
276
|
}
|
|
277
|
+
function hasEffectiveConditionStr(node) {
|
|
278
|
+
return !!node && typeof node.conditionStr === "string" && node.conditionStr.trim() !== "";
|
|
279
|
+
}
|
|
249
280
|
function isConditionGroup(node) {
|
|
250
|
-
|
|
281
|
+
if (!node) return false;
|
|
282
|
+
if (Array.isArray(node.conditionList) && node.conditionList.length > 0) return true;
|
|
283
|
+
return !node.fieldId && !node.conditionId && hasEffectiveConditionStr(node);
|
|
251
284
|
}
|
|
252
285
|
function buildConditionNode(node, key, parentKey) {
|
|
253
286
|
if (isConditionGroup(node)) {
|
|
254
287
|
return {
|
|
288
|
+
...node,
|
|
255
289
|
key,
|
|
256
290
|
relationship: normRelationship(node.relationship),
|
|
257
291
|
isParent: true,
|
|
258
292
|
parentNode: parentKey,
|
|
259
293
|
mainField: node.mainField !== false,
|
|
260
|
-
|
|
294
|
+
// 纯 conditionStr 组(conditionList 为 null/空)原样透传,后端靠根节点 conditionStr 过滤;
|
|
295
|
+
// 有子节点才递归重建,保证 parentNode/key 逐级挂接。
|
|
296
|
+
conditionList: Array.isArray(node.conditionList) && node.conditionList.length ? node.conditionList.map((child, index) => buildConditionNode(child, `${key}_${index}`, key)) : node.conditionList ?? null
|
|
261
297
|
};
|
|
262
298
|
}
|
|
263
299
|
const fieldId = node && (node.fieldId || node.conditionId) || "";
|
|
@@ -280,7 +316,10 @@ function buildConditionNode(node, key, parentKey) {
|
|
|
280
316
|
conditionValue: node.conditionValue ?? "",
|
|
281
317
|
fieldValue: node.fieldValue || "",
|
|
282
318
|
mainField: node.mainField !== false,
|
|
283
|
-
ignoreCaseMark: node.ignoreCaseMark || false
|
|
319
|
+
ignoreCaseMark: node.ignoreCaseMark || false,
|
|
320
|
+
// SQL 串过滤两个关键字段透传(缺失时补 null,与后端 DTO 口径一致)
|
|
321
|
+
conditionStr: node.conditionStr ?? null,
|
|
322
|
+
filterConditionType: node.filterConditionType ?? null
|
|
284
323
|
};
|
|
285
324
|
}
|
|
286
325
|
function parseWhere(value) {
|
|
@@ -297,9 +336,16 @@ function parseWhere(value) {
|
|
|
297
336
|
return { key: rootKey, relationship: "1", isParent: true, parentNode: "", mainField: true, conditionList: children };
|
|
298
337
|
}
|
|
299
338
|
if (typeof raw !== "object") throw dataValidationError("where_invalid", "--where \u987B\u4E3A\u6761\u4EF6\u6570\u7EC4\u6216\u6761\u4EF6\u6811\u5BF9\u8C61");
|
|
300
|
-
if (!Array.isArray(raw.conditionList) || !raw.conditionList.length) return null;
|
|
339
|
+
if ((!Array.isArray(raw.conditionList) || !raw.conditionList.length) && !hasEffectiveConditionStr(raw)) return null;
|
|
301
340
|
return buildConditionNode(raw, rootKey, "");
|
|
302
341
|
}
|
|
342
|
+
function parseWhereArg(input) {
|
|
343
|
+
const raw = input.where_raw;
|
|
344
|
+
if (raw !== void 0 && raw !== null && raw !== true && raw !== "") {
|
|
345
|
+
return readJsonArg(raw, "--where-raw");
|
|
346
|
+
}
|
|
347
|
+
return parseWhere(input.where);
|
|
348
|
+
}
|
|
303
349
|
function parseStat(value) {
|
|
304
350
|
const raw = readJsonArg(value, "--stat");
|
|
305
351
|
const list = Array.isArray(raw) ? raw : [raw];
|
|
@@ -641,7 +687,7 @@ async function dsList(input, host) {
|
|
|
641
687
|
);
|
|
642
688
|
dto.queryFields = fieldIds.map((field) => ({ fieldId: field, fieldName: field, objId: String(tableId), mainField: true }));
|
|
643
689
|
dto.orderFields = parseOrder(input.order);
|
|
644
|
-
const conditionTree =
|
|
690
|
+
const conditionTree = parseWhereArg(input);
|
|
645
691
|
if (conditionTree) dto.conditionTrees = conditionTree;
|
|
646
692
|
dto.queryCount = true;
|
|
647
693
|
const response = await host.request({
|
|
@@ -667,7 +713,7 @@ async function dsChart(input, host) {
|
|
|
667
713
|
);
|
|
668
714
|
dto.groupFields = groupBy.map((field) => ({ fieldId: field, fieldName: field, objId: String(tableId), mainField: true }));
|
|
669
715
|
dto.groupStatFields = statFields.map((stat) => ({ ...stat, objId: String(tableId) }));
|
|
670
|
-
const conditionTree =
|
|
716
|
+
const conditionTree = parseWhereArg(input);
|
|
671
717
|
if (conditionTree) dto.conditionTrees = conditionTree;
|
|
672
718
|
const response = await host.request({
|
|
673
719
|
method: "POST",
|
|
@@ -688,7 +734,7 @@ async function dsStat(input, host) {
|
|
|
688
734
|
const session = await host.session();
|
|
689
735
|
const dto = applyAppId(baseDto(session, tableId, groupId, 1, 10, "getStatData"), input.app_id);
|
|
690
736
|
dto.statFields = statFields.map((stat) => ({ ...stat, objId: String(tableId) }));
|
|
691
|
-
const conditionTree =
|
|
737
|
+
const conditionTree = parseWhereArg(input);
|
|
692
738
|
if (conditionTree) dto.conditionTrees = conditionTree;
|
|
693
739
|
const response = await host.request({
|
|
694
740
|
method: "POST",
|
|
@@ -707,7 +753,7 @@ async function dsCount(input, host) {
|
|
|
707
753
|
const tableId = needArg(input, "table");
|
|
708
754
|
const session = await host.session();
|
|
709
755
|
const dto = applyAppId(baseDto(session, tableId, groupId, 1, 10, "getCountData"), input.app_id);
|
|
710
|
-
const conditionTree =
|
|
756
|
+
const conditionTree = parseWhereArg(input);
|
|
711
757
|
if (conditionTree) dto.conditionTrees = conditionTree;
|
|
712
758
|
const response = await host.request({
|
|
713
759
|
method: "POST",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createEbuilderFormContinuationSigner
|
|
5
|
+
} from "./chunk-YWX377BY.js";
|
|
3
6
|
import {
|
|
4
7
|
ebuilderFormManifest,
|
|
5
8
|
executeEbuilderFormOperation
|
|
6
9
|
} from "./chunk-G7PQWD4L.js";
|
|
7
10
|
import {
|
|
8
11
|
createEbuilderFormHost
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
createEbuilderFormContinuationSigner
|
|
12
|
-
} from "./chunk-YWX377BY.js";
|
|
12
|
+
} from "./chunk-5N222HK6.js";
|
|
13
13
|
import {
|
|
14
14
|
ebuilderValidationError
|
|
15
15
|
} from "./chunk-Z3GDFVJR.js";
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
reportPlatformError
|
|
18
18
|
} from "./chunk-6N4JPNFL.js";
|
|
19
19
|
import "./chunk-7BDPM5ST.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WVH5ESDA.js";
|
|
21
|
+
import "./chunk-SFM3M2L3.js";
|
|
22
|
+
import "./chunk-SHYQUBY3.js";
|
|
22
23
|
import {
|
|
23
24
|
isCliError,
|
|
24
25
|
toErrorEnvelope
|
|
@@ -53,11 +53,12 @@ import {
|
|
|
53
53
|
createE10RequestRuntime,
|
|
54
54
|
isE10SessionExpiredResponse,
|
|
55
55
|
requireE10Session
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-WVH5ESDA.js";
|
|
57
57
|
import {
|
|
58
58
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
59
59
|
getActiveProfile
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-SFM3M2L3.js";
|
|
61
|
+
import "./chunk-SHYQUBY3.js";
|
|
61
62
|
import {
|
|
62
63
|
isCliError,
|
|
63
64
|
toErrorEnvelope
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
meetingStateDir,
|
|
7
7
|
readCache,
|
|
8
8
|
resolveMeetingEnvMode
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-L2LMBFG5.js";
|
|
10
|
+
import "./chunk-6DVL5IN5.js";
|
|
11
11
|
import "./chunk-7BDPM5ST.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
assertNoForbiddenKeys,
|
|
10
10
|
esbManifest,
|
|
11
11
|
getEsbOperation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PH7N4UFT.js";
|
|
13
13
|
import {
|
|
14
14
|
createEsbHost
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CQ4OVCKG.js";
|
|
16
16
|
import {
|
|
17
17
|
esbValidationError
|
|
18
18
|
} from "./chunk-TXUG266F.js";
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
reportPlatformError
|
|
21
21
|
} from "./chunk-6N4JPNFL.js";
|
|
22
22
|
import "./chunk-7BDPM5ST.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WVH5ESDA.js";
|
|
24
|
+
import "./chunk-SFM3M2L3.js";
|
|
25
|
+
import "./chunk-SHYQUBY3.js";
|
|
25
26
|
import {
|
|
26
27
|
isCliError,
|
|
27
28
|
toErrorEnvelope
|
|
@@ -12,11 +12,12 @@ import {
|
|
|
12
12
|
createE10RequestRuntime,
|
|
13
13
|
isE10SessionExpiredResponse,
|
|
14
14
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WVH5ESDA.js";
|
|
16
16
|
import {
|
|
17
17
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
18
18
|
getActiveProfile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SFM3M2L3.js";
|
|
20
|
+
import "./chunk-SHYQUBY3.js";
|
|
20
21
|
import {
|
|
21
22
|
CliError,
|
|
22
23
|
isCliError,
|
|
@@ -596,9 +597,73 @@ var fnaBudgetExecuteList = {
|
|
|
596
597
|
});
|
|
597
598
|
}
|
|
598
599
|
};
|
|
600
|
+
var fnaBudgetTemplateList = {
|
|
601
|
+
name: "fna.budget.template.list",
|
|
602
|
+
resource: "budget",
|
|
603
|
+
method: "budget.template.list",
|
|
604
|
+
action: "fna.budget.template.list",
|
|
605
|
+
summary: "\u9884\u7B97\u6A21\u677F\u6E05\u5355\uFF1A\u6309\u5E74\u5EA6\u8FD4\u56DE\u5F53\u524D\u79DF\u6237\u5DF2\u53D1\u5E03\u3001\u4E14\u5F53\u524D\u767B\u5F55\u4EBA\u6709\u6A21\u677F\u6267\u884C\u6743\u9650\u7684\u9884\u7B97\u6A21\u677F\uFF0C\u5265\u79BB\u6807\u9898\u672B\u5C3E\u300C(YYYY\u5E74)\u300D\u7ED9\u51FA baseName \u4E0E budgetYear\uFF0C\u7528\u4E8E\u9009 templateId \u518D\u67E5\u9884\u7B97\u6267\u884C\u62A5\u8868",
|
|
606
|
+
capability: "budget",
|
|
607
|
+
risk: READ,
|
|
608
|
+
inputSchema: schemaOf(
|
|
609
|
+
{
|
|
610
|
+
yearsValue: {
|
|
611
|
+
type: "integer",
|
|
612
|
+
minimum: 1900,
|
|
613
|
+
maximum: 2999,
|
|
614
|
+
description: "\u9884\u7B97\u5E74\u5EA6\uFF08\u53EF\u9009\uFF0C\u5982 2026\uFF09\u3002\u4E0D\u4F20\u8FD4\u56DE\u5168\u90E8\u5DF2\u53D1\u5E03\u6A21\u677F\uFF1B\u4F20\u5165\u65F6\u7ED3\u679C\u4ECD\u53EF\u80FD\u5305\u542B\u65E0\u5468\u671F\u6A21\u677F\uFF08\u670D\u52A1\u7AEF\u6761\u4EF6\u4E3A group_year=:yearsValue OR compile_method=2\uFF09\uFF0C\u9700\u6309 budgetYear \u81EA\u884C\u4E8C\u6B21\u5224\u65AD"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{ description: "\u9884\u7B97\uFF1A\u6709\u6548\u6A21\u677F\u6E05\u5355\uFF08\u4E1A\u52A1\u5E74\u5EA6\u53EF\u9009\uFF0C\u53EA\u8BFB\uFF09" }
|
|
618
|
+
),
|
|
619
|
+
handler: async (args, { host }) => {
|
|
620
|
+
let yearsValue;
|
|
621
|
+
if (args.yearsValue !== void 0 && args.yearsValue !== null && args.yearsValue !== "") {
|
|
622
|
+
const text = String(args.yearsValue).trim();
|
|
623
|
+
if (!/^\d+$/.test(text)) {
|
|
624
|
+
throw fnaValidationError("number_invalid", "yearsValue \u5FC5\u987B\u662F\u6574\u6570\u5E74\u4EFD\uFF08\u5982 2026\uFF09");
|
|
625
|
+
}
|
|
626
|
+
yearsValue = Number(text);
|
|
627
|
+
if (!Number.isSafeInteger(yearsValue) || yearsValue < 1900 || yearsValue > 2999) {
|
|
628
|
+
throw fnaValidationError("years_value_invalid", "yearsValue \u5FC5\u987B\u662F 1900-2999 \u7684\u56DB\u4F4D\u5E74\u4EFD\uFF08\u5982 2026\uFF09");
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
const response = await host.request({
|
|
632
|
+
method: "GET",
|
|
633
|
+
path: "/api/fna/template/information/getEnabledTemplate",
|
|
634
|
+
...yearsValue === void 0 ? {} : { query: { yearsValue } }
|
|
635
|
+
});
|
|
636
|
+
const tree = unwrapData(response);
|
|
637
|
+
const nodes = Array.isArray(tree?.data) ? tree.data : [];
|
|
638
|
+
const templates = nodes.map((node) => {
|
|
639
|
+
const templateId = node?.id === void 0 || node?.id === null ? "" : String(node.id).trim();
|
|
640
|
+
const title = typeof node?.title === "string" && node.title ? node.title : typeof node?.content === "string" ? node.content : "";
|
|
641
|
+
const matched = title.match(/^(.*?)\s*[((]\s*(\d{4})\s*年\s*[))]\s*$/);
|
|
642
|
+
const baseName = matched ? matched[1].trim() : title.trim();
|
|
643
|
+
return {
|
|
644
|
+
templateId,
|
|
645
|
+
title: title.trim(),
|
|
646
|
+
baseName: baseName || title.trim(),
|
|
647
|
+
budgetYear: matched ? Number(matched[2]) : null
|
|
648
|
+
};
|
|
649
|
+
}).filter((item) => item.templateId.length > 0);
|
|
650
|
+
return fnaSuccess(
|
|
651
|
+
"fna.budget.template.list",
|
|
652
|
+
{
|
|
653
|
+
total: templates.length,
|
|
654
|
+
yearsValue: yearsValue ?? null,
|
|
655
|
+
templates
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
hint: "\u7ED3\u679C\u53EA\u542B\u300C\u5DF2\u53D1\u5E03 + \u5F53\u524D\u4EBA\u6709\u6267\u884C\u6743\u9650\u300D\u7684\u6A21\u677F\uFF0C\u540C\u4E00\u79DF\u6237\u4E0D\u540C\u4EBA\u6761\u6570\u53EF\u80FD\u4E0D\u540C\uFF1BtemplateId \u4E00\u5F8B\u6309\u5B57\u7B26\u4E32\u4F7F\u7528\uFF08\u8D85 2^53 \u8F6C\u6570\u5B57\u4F1A\u4E22\u7CBE\u5EA6\uFF09\uFF1BbudgetYear \u4E3A null \u8868\u793A\u65E0\u5468\u671F\u6A21\u677F\uFF08\u4E0D\u53D7\u5E74\u5EA6\u9650\u5236\uFF0C\u4EFB\u4F55\u5E74\u5EA6\u67E5\u8BE2\u90FD\u4F1A\u8FD4\u56DE\uFF09\uFF1B\u672C\u63A5\u53E3\u65E0\u6392\u5E8F\u4FDD\u8BC1\uFF0C\u9700\u8981\u65F6\u5728\u672C\u5730\u6392\u5E8F"
|
|
659
|
+
}
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
};
|
|
599
663
|
var budgetOperations = [
|
|
600
664
|
fnaBudgetApplicationDetail,
|
|
601
|
-
fnaBudgetExecuteList
|
|
665
|
+
fnaBudgetExecuteList,
|
|
666
|
+
fnaBudgetTemplateList
|
|
602
667
|
];
|
|
603
668
|
|
|
604
669
|
// src/shortcuts/fna/operations/audit.ts
|
|
@@ -1617,6 +1682,10 @@ var FNA_WITHHELD = [
|
|
|
1617
1682
|
name: "fna.loan.confirm.repay",
|
|
1618
1683
|
reason: "\u501F\u6B3E\u7BA1\u7406\u83DC\u5355\u63D0\u4F9B\u300C\u786E\u8BA4\u5DF2\u8FD8 confirmRepay\u300D\u6309\u94AE\uFF0C\u4F46\u6E90\u8D44\u6599\u672A\u63D0\u4F9B\u5176\u63A5\u53E3\u8DEF\u5F84\u3001\u8BF7\u6C42\u65B9\u6CD5\u3001\u5173\u952E\u5B57\u6BB5\u4E0E\u786E\u8BA4\u6761\u4EF6\uFF0C\u672A\u5B9E\u73B0\uFF1B\u4E0D\u5F97\u731C\u6D4B\u63A5\u53E3\u3002"
|
|
1619
1684
|
},
|
|
1685
|
+
{
|
|
1686
|
+
name: "fna.budget.template.noauth",
|
|
1687
|
+
reason: "getEnabledTemplateNoAuth \u4E3A @WeaPermission(publicPermission=true) \u7684\u514D\u83DC\u5355\u6743\u9650\u7248\u672C\uFF0C\u8DF3\u8FC7 e-builder \u6A21\u677F\u8FC7\u6EE4\u4E0E\u6A21\u677F\u6267\u884C\u6743\u9650\u8FC7\u6EE4\uFF0C\u80FD\u8FD4\u56DE\u79DF\u6237\u4E0B\u5168\u90E8\u5DF2\u53D1\u5E03\u6A21\u677F\uFF08\u542B\u5F53\u524D\u4EBA\u65E0\u6743\u6267\u884C\u7684\u6A21\u677F\uFF09\uFF1B\u4EC5\u9650 AI \u62A5\u8868\u7B49\u53D7\u63A7\u5185\u90E8\u573A\u666F\uFF0C\u66B4\u9732\u7ED9 Agent \u4F1A\u7ED5\u8FC7\u6743\u9650\u8FB9\u754C\uFF0C\u6545\u4E0D\u5C01\u88C5\u3002\u9700\u8981\u6A21\u677F\u6E05\u5355\u65F6\u7528 fna.budget.template.list\u3002"
|
|
1688
|
+
},
|
|
1620
1689
|
{
|
|
1621
1690
|
name: "fna.resolve.person.workflow",
|
|
1622
1691
|
reason: "\u59D3\u540D\u2192employeeId\u3001\u6D41\u7A0B\u540D\u2192workflowId \u7684\u89E3\u6790\u4F9D\u8D56\u4EBA\u5458/\u6D41\u7A0B\u57FA\u8868\u63A5\u53E3\uFF0C\u6E90\u8D44\u6599\u672A\u63D0\u4F9B\uFF1B\u9700\u8981\u65F6\u8BF7\u4F7F\u7528\u5DF2\u63D0\u4F9B\u7684 ID \u6216\u7531\u7528\u6237\u5728\u5BF9\u8BDD\u4E2D\u63D0\u4F9B\u3002"
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ensureMeetingGroupChat,
|
|
7
7
|
meetingEbGroupChatOperations,
|
|
8
8
|
savePendingForm
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TJUAGZU7.js";
|
|
10
|
+
import "./chunk-L2LMBFG5.js";
|
|
11
|
+
import "./chunk-6DVL5IN5.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TGM7BWEH.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-WVH5ESDA.js";
|
|
11
|
+
import "./chunk-SFM3M2L3.js";
|
|
12
|
+
import "./chunk-SHYQUBY3.js";
|
|
12
13
|
import "./chunk-UG5G54VL.js";
|
|
13
14
|
import "./chunk-BUSC6UAE.js";
|
|
14
15
|
export {
|
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CQ4OVCKG.js";
|
|
10
10
|
import "./chunk-TXUG266F.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WVH5ESDA.js";
|
|
12
|
+
import "./chunk-SFM3M2L3.js";
|
|
13
|
+
import "./chunk-SHYQUBY3.js";
|
|
13
14
|
import "./chunk-UG5G54VL.js";
|
|
14
15
|
import "./chunk-BUSC6UAE.js";
|
|
15
16
|
export {
|
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5N222HK6.js";
|
|
11
11
|
import "./chunk-Z3GDFVJR.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WVH5ESDA.js";
|
|
13
|
+
import "./chunk-SFM3M2L3.js";
|
|
14
|
+
import "./chunk-SHYQUBY3.js";
|
|
14
15
|
import "./chunk-UG5G54VL.js";
|
|
15
16
|
import "./chunk-BUSC6UAE.js";
|
|
16
17
|
export {
|
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4GG72JAT.js";
|
|
11
11
|
import "./chunk-IC62NFM5.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WVH5ESDA.js";
|
|
13
|
+
import "./chunk-SFM3M2L3.js";
|
|
14
|
+
import "./chunk-SHYQUBY3.js";
|
|
14
15
|
import "./chunk-UG5G54VL.js";
|
|
15
16
|
import "./chunk-BUSC6UAE.js";
|
|
16
17
|
export {
|
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
caizhilianBusinessMessage,
|
|
9
9
|
createCaizhilianHost,
|
|
10
10
|
isCaizhilianBusinessSuccess
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VMCCRWFO.js";
|
|
12
12
|
import "./chunk-P5GQRWDC.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WVH5ESDA.js";
|
|
14
|
+
import "./chunk-SFM3M2L3.js";
|
|
15
|
+
import "./chunk-SHYQUBY3.js";
|
|
15
16
|
import "./chunk-UG5G54VL.js";
|
|
16
17
|
import "./chunk-BUSC6UAE.js";
|
|
17
18
|
export {
|
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z4IPY5GV.js";
|
|
8
8
|
import "./chunk-56EZERK4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WVH5ESDA.js";
|
|
10
|
+
import "./chunk-SFM3M2L3.js";
|
|
11
|
+
import "./chunk-SHYQUBY3.js";
|
|
11
12
|
import "./chunk-UG5G54VL.js";
|
|
12
13
|
import "./chunk-BUSC6UAE.js";
|
|
13
14
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createHrmHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z4IPY5GV.js";
|
|
6
6
|
import {
|
|
7
7
|
getHrmOperation,
|
|
8
8
|
hrmOperationDefinitions
|
|
@@ -19,8 +19,9 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
reportPlatformError
|
|
21
21
|
} from "./chunk-6N4JPNFL.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-WVH5ESDA.js";
|
|
23
|
+
import "./chunk-SFM3M2L3.js";
|
|
24
|
+
import "./chunk-SHYQUBY3.js";
|
|
24
25
|
import {
|
|
25
26
|
isCliError,
|
|
26
27
|
toErrorEnvelope
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createImHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4GG72JAT.js";
|
|
6
6
|
import {
|
|
7
7
|
createImContinuationSigner
|
|
8
8
|
} from "./chunk-KIHNAS25.js";
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
} from "./chunk-IC62NFM5.js";
|
|
18
18
|
import "./chunk-KMRT7NAT.js";
|
|
19
19
|
import "./chunk-7BDPM5ST.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WVH5ESDA.js";
|
|
21
|
+
import "./chunk-SFM3M2L3.js";
|
|
22
|
+
import "./chunk-SHYQUBY3.js";
|
|
22
23
|
import {
|
|
23
24
|
isCliError,
|
|
24
25
|
toErrorEnvelope
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
invoicePartialError,
|
|
9
9
|
invoiceValidationError,
|
|
10
10
|
isInvoiceNetworkError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FMNCSYIG.js";
|
|
12
12
|
import {
|
|
13
13
|
reportPlatformError
|
|
14
14
|
} from "./chunk-6N4JPNFL.js";
|
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
CONTINUATION_TTL_MS,
|
|
17
17
|
CONTINUATION_TTL_SECONDS
|
|
18
18
|
} from "./chunk-7BDPM5ST.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-WVH5ESDA.js";
|
|
20
|
+
import "./chunk-SFM3M2L3.js";
|
|
21
|
+
import "./chunk-SHYQUBY3.js";
|
|
21
22
|
import {
|
|
22
23
|
isCliError,
|
|
23
24
|
toErrorEnvelope
|
|
@@ -1296,15 +1297,20 @@ var invoiceOperations = [
|
|
|
1296
1297
|
}
|
|
1297
1298
|
},
|
|
1298
1299
|
outputSchema: objectSchema({
|
|
1299
|
-
result:
|
|
1300
|
-
|
|
1300
|
+
result: objectSchema({
|
|
1301
|
+
code: { type: "integer" },
|
|
1302
|
+
msg: { type: "string" },
|
|
1303
|
+
status: { type: "boolean" },
|
|
1304
|
+
data: requestListDataSchema,
|
|
1305
|
+
fail: { type: "boolean" }
|
|
1306
|
+
}, ["data"]),
|
|
1301
1307
|
workflow: workflowSchema,
|
|
1302
1308
|
query: objectSchema({
|
|
1303
1309
|
cusCreateDateStart: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u4F7F\u7528\u7684\u53D1\u8D77\u65E5\u671F\u5F00\u59CB" },
|
|
1304
1310
|
cusCreateDateEnd: { type: "string", description: "\u672C\u6B21\u7684\u4E1A\u52A1\u7ED3\u675F\u65E5\uFF08\u53D1\u7ED9\u63A5\u53E3\u65F6\u5DF2\u518D + 1 \u5929\uFF09" },
|
|
1305
1311
|
widened: { type: "boolean", description: "\u662F\u5426\u56E0 7 \u5929\u5185\u67E5\u4E0D\u5230\u800C\u653E\u5BBD\u5230 1 \u4E2A\u6708" }
|
|
1306
1312
|
}, ["cusCreateDateStart", "cusCreateDateEnd", "widened"])
|
|
1307
|
-
}, ["result", "
|
|
1313
|
+
}, ["result", "workflow", "query"])
|
|
1308
1314
|
},
|
|
1309
1315
|
{
|
|
1310
1316
|
name: "invoice.reim.workflow.resolve",
|
|
@@ -3463,9 +3469,16 @@ var InvoiceReimRequestsListOperation = class {
|
|
|
3463
3469
|
widened = true;
|
|
3464
3470
|
result = await query(start);
|
|
3465
3471
|
}
|
|
3466
|
-
const
|
|
3467
|
-
|
|
3468
|
-
return
|
|
3472
|
+
const projected = projectRequestListResult(result);
|
|
3473
|
+
assertBusinessSuccess(projected, `${this.name}_failed`, "\u63A5\u53E3\u8FD4\u56DE\u4E1A\u52A1\u5931\u8D25");
|
|
3474
|
+
return {
|
|
3475
|
+
status: "COMPLETE",
|
|
3476
|
+
data: {
|
|
3477
|
+
result: projected,
|
|
3478
|
+
workflow: workflow(this.name, "COMPLETE"),
|
|
3479
|
+
query: { cusCreateDateStart: start, cusCreateDateEnd: endDate, widened }
|
|
3480
|
+
}
|
|
3481
|
+
};
|
|
3469
3482
|
}
|
|
3470
3483
|
};
|
|
3471
3484
|
var InvoiceReimWorkflowResolveOperation = class {
|
|
@@ -12,11 +12,12 @@ import {
|
|
|
12
12
|
createE10RequestRuntime,
|
|
13
13
|
isE10SessionExpiredResponse,
|
|
14
14
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WVH5ESDA.js";
|
|
16
16
|
import {
|
|
17
17
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
18
18
|
getActiveProfile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SFM3M2L3.js";
|
|
20
|
+
import "./chunk-SHYQUBY3.js";
|
|
20
21
|
import {
|
|
21
22
|
CliError,
|
|
22
23
|
isCliError,
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
createProgram,
|
|
6
6
|
registerCommands,
|
|
7
7
|
toCommandMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DVR2EDUU.js";
|
|
9
9
|
import "./chunk-2IGZUMNG.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FMNCSYIG.js";
|
|
11
11
|
import "./chunk-AJ62BGAW.js";
|
|
12
12
|
import "./chunk-6N4JPNFL.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WVH5ESDA.js";
|
|
14
|
+
import "./chunk-SFM3M2L3.js";
|
|
15
|
+
import "./chunk-SHYQUBY3.js";
|
|
15
16
|
import "./chunk-UG5G54VL.js";
|
|
16
17
|
import "./chunk-BUSC6UAE.js";
|
|
17
18
|
|
|
@@ -11,11 +11,12 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WVH5ESDA.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SFM3M2L3.js";
|
|
19
|
+
import "./chunk-SHYQUBY3.js";
|
|
19
20
|
import {
|
|
20
21
|
CliError,
|
|
21
22
|
isCliError,
|