openxiangda 1.0.195 → 1.0.197
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/lib/cli.js +23 -22
- package/package.json +2 -1
package/lib/cli.js
CHANGED
|
@@ -11104,24 +11104,25 @@ async function permission(args) {
|
|
|
11104
11104
|
fail('用法: openxiangda permission role-create <roleCode> --name <text>');
|
|
11105
11105
|
}
|
|
11106
11106
|
const target = getWorkspaceTarget(config, profileName, flags);
|
|
11107
|
-
await
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11107
|
+
const data = await runDirectRequest(config, target, flags, {
|
|
11108
|
+
method: 'POST',
|
|
11109
|
+
path: `/openxiangda-api/v1/apps/${encodeURIComponent(target.appType)}/roles`,
|
|
11110
|
+
body: {
|
|
11111
|
+
code: flags.code || roleCode,
|
|
11112
|
+
name,
|
|
11113
|
+
description: flags.description || '',
|
|
11114
|
+
},
|
|
11115
|
+
}, {
|
|
11116
|
+
returnData: true,
|
|
11117
|
+
mutationLabel: 'permission role-create',
|
|
11118
|
+
});
|
|
11119
|
+
if (!flags['dry-run'] && data?.id) {
|
|
11120
|
+
saveRoleResource(target, roleCode, data.id, {
|
|
11121
|
+
code: data.code,
|
|
11122
|
+
name: data.name,
|
|
11123
|
+
});
|
|
11124
|
+
}
|
|
11125
|
+
return outputDirectResult(data, flags);
|
|
11125
11126
|
}
|
|
11126
11127
|
|
|
11127
11128
|
if (subcommand === 'role-update') {
|
|
@@ -22281,9 +22282,9 @@ function normalizePublicAccessPolicyManifest(bound, policy) {
|
|
|
22281
22282
|
function normalizeScopeDimensionManifest(dimension, bound) {
|
|
22282
22283
|
const code = dimension.code || dimension.resourceCode;
|
|
22283
22284
|
const sourceFormUuid =
|
|
22285
|
+
resolveOptionalFormUuid(bound, dimension.sourceFormCode || dimension.formCode) ||
|
|
22284
22286
|
dimension.sourceFormUuid ||
|
|
22285
|
-
dimension.formUuid
|
|
22286
|
-
resolveOptionalFormUuid(bound, dimension.sourceFormCode || dimension.formCode);
|
|
22287
|
+
dimension.formUuid;
|
|
22287
22288
|
return stripUndefinedValues({
|
|
22288
22289
|
code,
|
|
22289
22290
|
name: dimension.name || dimension.title || code,
|
|
@@ -22302,9 +22303,9 @@ function normalizeScopeDimensionManifest(dimension, bound) {
|
|
|
22302
22303
|
function normalizeScopeGrantSourceManifest(source, bound) {
|
|
22303
22304
|
const code = source.code || source.resourceCode;
|
|
22304
22305
|
const sourceFormUuid =
|
|
22306
|
+
resolveOptionalFormUuid(bound, source.sourceFormCode || source.formCode) ||
|
|
22305
22307
|
source.sourceFormUuid ||
|
|
22306
|
-
source.formUuid
|
|
22307
|
-
resolveOptionalFormUuid(bound, source.sourceFormCode || source.formCode);
|
|
22308
|
+
source.formUuid;
|
|
22308
22309
|
return stripUndefinedValues({
|
|
22309
22310
|
code,
|
|
22310
22311
|
name: source.name || source.title || code,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openxiangda",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.197",
|
|
4
4
|
"description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"bin": {
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"test:profile-isolation": "bash scripts/profile-isolation-smoke.sh",
|
|
82
82
|
"test:resource-plan": "node scripts/resource-plan-smoke.mjs",
|
|
83
83
|
"test:resource-publish-scope": "node scripts/resource-publish-scope-smoke.mjs",
|
|
84
|
+
"test:managed-target-scope-form-resolution": "node scripts/managed-target-scope-form-resolution-smoke.mjs",
|
|
84
85
|
"test:resource-plan-readonly": "node scripts/resource-plan-readonly-smoke.mjs",
|
|
85
86
|
"test:design-gates": "node scripts/design-gates-smoke.mjs",
|
|
86
87
|
"test:resource-cli": "node scripts/resource-cli-smoke.mjs",
|