openyida 2026.5.19 → 2026.5.20-beta.0
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 +22 -1
- package/lib/app/create-form.js +1750 -83
- package/lib/core/command-manifest.js +3 -0
- package/lib/permission/save-permission.js +47 -12
- package/lib/process/configure-process.js +433 -23
- package/package.json +1 -1
- package/yida-skills/SKILL.md +4 -4
- package/yida-skills/skills/yida-business-rule/SKILL.md +1 -0
- package/yida-skills/skills/yida-create-form-page/SKILL.md +151 -1
- package/yida-skills/skills/yida-form-permission/SKILL.md +13 -6
- package/yida-skills/skills/yida-process-rule/SKILL.md +92 -1
package/README.md
CHANGED
|
@@ -200,6 +200,24 @@ openyida data create form APP_XXX FORM_XXX --data-file .cache/openyida/data-impo
|
|
|
200
200
|
openyida get-permission APP_XXX FORM_XXX
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
+
`configure-process` 的流程 JSON 中,审批人可配置为发起人、指定成员、指定角色、部门主管或直属主管,例如:
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"nodes": [
|
|
208
|
+
{
|
|
209
|
+
"type": "approval",
|
|
210
|
+
"name": "主管审批",
|
|
211
|
+
"approver": {
|
|
212
|
+
"type": "user",
|
|
213
|
+
"users": [{ "id": "manager7350", "name": "九神" }],
|
|
214
|
+
"multiApproverType": "all"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
203
221
|
When creating or updating test data with `openyida data`, Yida date fields must use 13-digit millisecond timestamps, for example `"dateField_xxx": 1719705600000`. Do not submit `YYYY-MM-DD` strings for `DateField` or `CascadeDateField` values.
|
|
204
222
|
Temporary JSON, CSV, and one-off import scripts should live under `.cache/openyida/` so generated run artifacts do not clutter the repository root.
|
|
205
223
|
|
|
@@ -290,6 +308,9 @@ For overseas apps, pass `--locale en_US` or `--locale ja_JP` on creation command
|
|
|
290
308
|
|---------|-------------|
|
|
291
309
|
| `openyida create-form create <appType> "<name>" <fields.json> [--locale zh_CN\|en_US\|ja_JP] [--open\|--no-open]` | Create a form page |
|
|
292
310
|
| `openyida create-form update <appType> <formUuid> <changes.json> [--locale zh_CN\|en_US\|ja_JP] [--open\|--no-open]` | Update a form page |
|
|
311
|
+
| `openyida create-form patch <appType> <formUuid> <patch.json> [--open\|--no-open]` | Apply controlled schema patches for designer-only form settings |
|
|
312
|
+
| `openyida create-form rule <appType> <formUuid> <rules.json> [--open\|--no-open]` | Configure field show/hide linkage and onChange auto-assignment rules |
|
|
313
|
+
| `openyida create-form bind-datasource <appType> <formUuid> <fieldLabelOrId> <datasource.json> [--open\|--no-open]` | Bind URL/search data sources to SelectField/MultiSelectField-style option fields |
|
|
293
314
|
| `openyida create-form add-option <appType> <formUuid> <fieldLabel> <option1> [option2] ...` | Append options to a SelectField/RadioField/CheckboxField/MultiSelectField |
|
|
294
315
|
| `openyida list-forms <appType> [--keyword <text>]` | List forms in an application |
|
|
295
316
|
| `openyida get-schema <appType> <formUuid\|--all> [--field <labelOrFieldId>]` | Fetch one form schema, batch export all, or pick a single field's full props |
|
|
@@ -310,7 +331,7 @@ For overseas apps, pass `--locale en_US` or `--locale ja_JP` on creation command
|
|
|
310
331
|
| `openyida task-center <type> [options]` | Query todo, created, processed, CC, or proxy-submitted tasks |
|
|
311
332
|
| `openyida basic-info <overview\|commodity\|grant\|capacity\|quota\|abs-path\|dataflow\|i18n\|domain>` | Query organization basic info, capacity, quotas, fixed-domain records, and domain settings |
|
|
312
333
|
| `openyida get-permission <appType> <formUuid>` | Query form permission configuration |
|
|
313
|
-
| `openyida save-permission <appType> <formUuid> [options]` | Save form permission configuration |
|
|
334
|
+
| `openyida save-permission <appType> <formUuid> [options]` | Save form permission configuration, including raw `--field-permission <json>` |
|
|
314
335
|
| `openyida corp-manager <sub-command>` | Manage platform admins, sub-admins, app admins, and address book visibility |
|
|
315
336
|
| `openyida verify-short-url <appType> <formUuid> <url>` | Verify a short URL |
|
|
316
337
|
| `openyida save-share-config <appType> <formUuid> <url> <isOpen> [openAuth]` | Save public access or sharing configuration |
|