weekly-cockpit 0.3.11 → 0.3.12
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/commands.js +4 -0
- package/package.json +1 -1
package/commands.js
CHANGED
|
@@ -82,6 +82,10 @@ export const COMMANDS = {
|
|
|
82
82
|
catch (e) { throw Object.assign(new Error(`--file 读取/解析失败:${e.message}`), { exit: 2 }); }
|
|
83
83
|
return callApi({ method: 'POST', path: '/api/v1/reports/import', body, env });
|
|
84
84
|
} },
|
|
85
|
+
// 3c 会议:folotoy 订阅自动入库,CLI 查看与人工确认
|
|
86
|
+
'meeting list': { run: ({ env }) => callApi({ method: 'GET', path: '/api/v1/meetings', env }) },
|
|
87
|
+
'meeting show': { run: ({ p, env }) => callApi({ method: 'GET', path: `/api/v1/meetings/${p[0]}`, env }) },
|
|
88
|
+
'meeting edit': { run: ({ p, flags, env }) => callApi({ method: 'PATCH', path: `/api/v1/meetings/${p[0]}`, body: { title: str(flags.title), status: str(flags.status), heldAt: str(flags.heldAt), baseVersion: num(flags.baseVersion) }, env }) },
|
|
85
89
|
'trash list': { run: ({ env }) => callApi({ method: 'GET', path: '/api/v1/ledger/trash', env }) },
|
|
86
90
|
'trash restore': { run: ({ p, env }) => callApi({ method: 'POST', path: `/api/v1/ledger/trash/${p[0]}/${p[1]}/restore`, env }) },
|
|
87
91
|
'trash clear': { l2: true, run: ({ env }) => callApi({ method: 'DELETE', path: '/api/v1/ledger/trash', body: { confirm: true }, env }) },
|