@share-crm/sharedev-cli 0.0.4-rc.36 → 0.0.4-rc.37
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/sharedev.js +26 -14
- package/package.json +1 -1
package/dist/sharedev.js
CHANGED
|
@@ -8642,69 +8642,79 @@ exports.registerAccessNamespace = registerAccessNamespace;
|
|
|
8642
8642
|
const command_ts_1 = __webpack_require__(528);
|
|
8643
8643
|
const index_ts_1 = __webpack_require__(8877);
|
|
8644
8644
|
const ROLE_COMMANDS = [
|
|
8645
|
+
{
|
|
8646
|
+
action: 'queryAllBusinessRoles',
|
|
8647
|
+
command: 'queryAllBusinessRoles',
|
|
8648
|
+
description: '查询全部 CRM 业务角色'
|
|
8649
|
+
},
|
|
8650
|
+
{
|
|
8651
|
+
action: 'queryAllManagementRoles',
|
|
8652
|
+
command: 'queryAllManagementRoles',
|
|
8653
|
+
description: '查询全部系统管理角色'
|
|
8654
|
+
},
|
|
8645
8655
|
{
|
|
8646
8656
|
action: 'queryUserRoleByUserIds',
|
|
8647
|
-
command: '
|
|
8657
|
+
command: 'queryUserRolesByUserIds',
|
|
8648
8658
|
description: '根据人员 ID 查询人员角色详情'
|
|
8649
8659
|
},
|
|
8650
8660
|
{
|
|
8651
8661
|
action: 'queryRolesByName',
|
|
8652
|
-
command: '
|
|
8662
|
+
command: 'queryRolesByName',
|
|
8653
8663
|
description: '根据名称查询业务或管理角色'
|
|
8654
8664
|
},
|
|
8655
8665
|
{
|
|
8656
8666
|
action: 'queryBusinessRolesByName',
|
|
8657
|
-
command: '
|
|
8667
|
+
command: 'queryBusinessRolesByName',
|
|
8658
8668
|
description: '按名称查询 CRM 业务角色'
|
|
8659
8669
|
},
|
|
8660
8670
|
{
|
|
8661
8671
|
action: 'queryManagementRolesByName',
|
|
8662
|
-
command: '
|
|
8672
|
+
command: 'queryManagementRolesByName',
|
|
8663
8673
|
description: '按名称查询系统管理角色'
|
|
8664
8674
|
},
|
|
8665
8675
|
{
|
|
8666
8676
|
action: 'queryBusinessRoleMembers',
|
|
8667
|
-
command: '
|
|
8677
|
+
command: 'queryBusinessRoleMembers',
|
|
8668
8678
|
description: '查询业务角色下的人员'
|
|
8669
8679
|
},
|
|
8670
8680
|
{
|
|
8671
8681
|
action: 'queryManagementRoleMembers',
|
|
8672
|
-
command: '
|
|
8682
|
+
command: 'queryManagementRoleMembers',
|
|
8673
8683
|
description: '查询管理角色下的人员'
|
|
8674
8684
|
},
|
|
8675
8685
|
{
|
|
8676
8686
|
action: 'queryUserAllRoles',
|
|
8677
|
-
command: '
|
|
8687
|
+
command: 'queryUserAllRoles',
|
|
8678
8688
|
description: '查询人员全部管理角色和业务角色'
|
|
8679
8689
|
},
|
|
8680
8690
|
{
|
|
8681
8691
|
action: 'addPeopleToBusinessRole',
|
|
8682
|
-
command: '
|
|
8692
|
+
command: 'addPeopleToBusinessRole',
|
|
8683
8693
|
description: '给业务角色追加人员'
|
|
8684
8694
|
},
|
|
8685
8695
|
{
|
|
8686
8696
|
action: 'addPeopleToManagementRole',
|
|
8687
|
-
command: '
|
|
8697
|
+
command: 'addPeopleToManagementRole',
|
|
8688
8698
|
description: '给管理角色追加人员'
|
|
8689
8699
|
},
|
|
8690
8700
|
{
|
|
8691
8701
|
action: 'addBusinessRolesToPerson',
|
|
8692
|
-
command: '
|
|
8702
|
+
command: 'addBusinessRolesToPerson',
|
|
8693
8703
|
description: '给人员追加业务角色'
|
|
8694
8704
|
},
|
|
8695
8705
|
{
|
|
8696
8706
|
action: 'addManagementRolesToPerson',
|
|
8697
|
-
command: '
|
|
8707
|
+
command: 'addManagementRolesToPerson',
|
|
8698
8708
|
description: '给人员追加管理角色'
|
|
8699
8709
|
},
|
|
8700
8710
|
{
|
|
8701
8711
|
action: 'removePeopleFromBusinessRole',
|
|
8702
|
-
command: '
|
|
8712
|
+
command: 'removePeopleFromBusinessRole',
|
|
8703
8713
|
description: '从业务角色移除人员'
|
|
8704
8714
|
},
|
|
8705
8715
|
{
|
|
8706
8716
|
action: 'removePeopleFromManagementRole',
|
|
8707
|
-
command: '
|
|
8717
|
+
command: 'removePeopleFromManagementRole',
|
|
8708
8718
|
description: '从管理角色移除人员'
|
|
8709
8719
|
}
|
|
8710
8720
|
];
|
|
@@ -15160,6 +15170,8 @@ const SHARE_CLI_COMMAND_PATH_MAP = {
|
|
|
15160
15170
|
},
|
|
15161
15171
|
// Manual addition - role-management Action Centre routes are not generated yet.
|
|
15162
15172
|
accessRole: {
|
|
15173
|
+
queryAllBusinessRoles: ['access', 'role', 'queryAllBusinessRoles'],
|
|
15174
|
+
queryAllManagementRoles: ['access', 'role', 'queryAllManagementRoles'],
|
|
15163
15175
|
queryUserRoleByUserIds: ['access', 'role', 'queryUserRoleByUserIds'],
|
|
15164
15176
|
queryRolesByName: ['access', 'role', 'queryRolesByName'],
|
|
15165
15177
|
queryBusinessRolesByName: ['access', 'role', 'queryBusinessRolesByName'],
|
|
@@ -58744,7 +58756,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
58744
58756
|
/***/ 8330
|
|
58745
58757
|
(module) {
|
|
58746
58758
|
|
|
58747
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.
|
|
58759
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.37","private":false,"description":"sharedev command line tool","type":"module","main":"dist/sharedev.js","bin":{"sharedev":"./bin/cli.mjs"},"author":{"name":"sharecrm-npm"},"files":["dist","bin","README.md"],"scripts":{"build":"tsc --noEmit && webpack --config build/webpack/webpack.prod.cjs","build:debug":"tsc --noEmit && webpack --config build/webpack/webpack.debug.cjs","build:bin":"bun build --compile --target=bun-darwin-x64 src/cli.ts --outfile scripts/sharedev-darwin-x64 && bun build --compile --target=bun-darwin-arm64 src/cli.ts --outfile scripts/sharedev-darwin-arm64 && bun build --compile --target=bun-windows-x64 src/cli.ts --outfile scripts/sharedev-windows-x64.exe","build:all":"npm run build && npm run build:bin","dev":"tsc --noEmit --watch & webpack --config build/webpack/webpack.dev.cjs --watch","dev2":"node src/cli.ts","typecheck":"tsc --noEmit","prettier":"prettier --write ./src/**/*.ts","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage"},"dependencies":{"@clack/prompts":"^1.1.0","@mariozechner/pi-coding-agent":"^0.62.0","axios":"~1.13.0","chalk":"^5.6.2","commander":"^14.0.1","extract-zip":"^2.0.1","fast-xml-parser":"^5.2.5","fs-extra":"^11.3.2","lodash-es":"^4.18.1","ora":"^9.3.0","terser-webpack-plugin":"^5.6.1"},"devDependencies":{"@types/extract-zip":"^2.0.3","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^24.3.0","@vitest/coverage-v8":"^4.1.8","ts-loader":"^9.5.4","typescript":"^5.9.2","vitest":"^3.2.6","webpack":"^5.101.3","webpack-cli":"^6.0.1","webpack-merge":"^6.0.1"},"packageManager":"pnpm@10.17.0"}');
|
|
58748
58760
|
|
|
58749
58761
|
/***/ }
|
|
58750
58762
|
|