openxiangda 1.0.264 → 1.0.265
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 +31 -22
- package/openxiangda-skills/SKILL.md +15 -12
- package/openxiangda-skills/references/school-contact-relations.md +78 -60
- package/openxiangda-skills/skills/openxiangda-page/SKILL.md +1 -1
- package/package.json +1 -1
- package/packages/sdk/dist/runtime/index.d.mts +1 -1
- package/packages/sdk/dist/runtime/index.d.ts +1 -1
- package/packages/sdk/dist/runtime/react.d.mts +12 -5
- package/packages/sdk/dist/runtime/react.d.ts +12 -5
- package/templates/openxiangda-react-spa/AGENTS.md +7 -2
- package/templates/sy-lowcode-app-workspace/AGENTS.md +20 -19
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<!-- OpenXiangda-Policy-Version: 7 -->
|
|
2
|
+
|
|
2
3
|
# OpenXiangda
|
|
3
4
|
|
|
4
5
|
OpenXiangda is a lightweight CLI and skill package for private low-code platforms.
|
|
@@ -361,7 +362,7 @@ The dev host also calls the backend runtime route resolver for the current `/vie
|
|
|
361
362
|
Built-in route defaults come from the `openxiangda` SDK: `StandardFormPage`, `FormSubmitTemplate`, `FormDetailTemplate`, `ProcessDetailTemplate`, and `DataManagementList`. Workspaces can override whole built-in pages from `src/runtime/builtin-overrides.tsx`; exact `formUuid` entries win before the `*` fallback.
|
|
362
363
|
|
|
363
364
|
```tsx
|
|
364
|
-
import type { BuiltinRouteOverrides } from "openxiangda/runtime"
|
|
365
|
+
import type { BuiltinRouteOverrides } from "openxiangda/runtime";
|
|
365
366
|
|
|
366
367
|
export const runtimeRouteOverrides: BuiltinRouteOverrides = {
|
|
367
368
|
"form-submit": {
|
|
@@ -371,7 +372,7 @@ export const runtimeRouteOverrides: BuiltinRouteOverrides = {
|
|
|
371
372
|
"form-detail": {},
|
|
372
373
|
"process-detail": {},
|
|
373
374
|
"data-manage-list": {},
|
|
374
|
-
}
|
|
375
|
+
};
|
|
375
376
|
```
|
|
376
377
|
|
|
377
378
|
AI / Playwright verification should use real user identity, not a bypass mode. The backend exposes `POST /openxiangda-api/v1/apps/:appType/verification-login-links` for platform admins to create a short-lived, single-use `loginUrl` for a target user and redirect URI. Playwright can open the returned URL directly; the backend writes cookies and redirects back to the local or tenant `/view/...` page. Test users can be created with `POST /openxiangda-api/v1/apps/:appType/test-users`; they use the `__ox_ai_test__:<appType>:<key>` ID prefix and are intended to be used through verification login links.
|
|
@@ -379,13 +380,13 @@ AI / Playwright verification should use real user identity, not a bypass mode. T
|
|
|
379
380
|
An independent production user shell can call `resolveBrowserRuntimeRoute()` from `openxiangda/runtime` first. It posts the current `/view/...` path to `/openxiangda-api/v1/apps/:appType/runtime/routes/resolve`; the backend classifies the route as `custom-page`, `builtin-route`, `legacy-fallback`, or `not-found`. Code pages return backend-authorized bootstrap data directly, so the shell can pass that to `mountBrowserPageRuntime()` or mount with `createBrowserPageContext()` without reusing the legacy view workbench logic. Built-in routes can be rendered with `BuiltinRouteRenderer`, which loads form schema through the same `/service` proxy and keeps backend permission checks authoritative.
|
|
380
381
|
|
|
381
382
|
```ts
|
|
382
|
-
import { resolveBrowserRuntimeRoute } from "openxiangda/runtime"
|
|
383
|
+
import { resolveBrowserRuntimeRoute } from "openxiangda/runtime";
|
|
383
384
|
|
|
384
385
|
const route = await resolveBrowserRuntimeRoute({
|
|
385
386
|
appType: "APP_XXXX",
|
|
386
387
|
path: window.location.pathname,
|
|
387
388
|
search: window.location.search,
|
|
388
|
-
})
|
|
389
|
+
});
|
|
389
390
|
```
|
|
390
391
|
|
|
391
392
|
Local workspace state is authoritative. If the current folder has no `.openxiangda/state.json` app binding, create a new app instead of searching the platform for a similar app name:
|
|
@@ -415,16 +416,16 @@ openxiangda form export customer --mode package --profile dev --output ./exports
|
|
|
415
416
|
|
|
416
417
|
运行时页面读取当前用户信息时,优先使用 `sdk.user.getCurrent<PageUserRecord>()`。用户对象会返回常规组织成员关系 `departments`,也会返回系统维护的所属单位字段 `affiliatedDepartmentId` / `affiliatedDepartment`。`departments` 表示用户真实所在的部门、班级、专业等成员关系;`affiliatedDepartment` 表示业务上用于统计、筛选和展示的归属单位,通常是学院、单位或在源单位缺失时可用的具体部门节点,不用于替代权限部门成员关系。
|
|
417
418
|
|
|
418
|
-
钉钉家校通讯录的家长、学生、教师身份和明确监护关系使用 `sdk.organization.schoolContact.*`(页面)或 `ctx.organization.schoolContact.*`(App Function)。已登录非游客用户无需给应用角色额外绑定权限,默认可查询当前租户全部关系,返回平台用户 ID、手机号、钉钉 userid
|
|
419
|
+
钉钉家校通讯录的家长、学生、教师身份和明确监护关系使用 `sdk.organization.schoolContact.*`(页面)或 `ctx.organization.schoolContact.*`(App Function)。已登录非游客用户无需给应用角色额外绑定权限,默认可查询当前租户全部关系,返回平台用户 ID、手机号、钉钉 userid 和姓名;`teachers.list` 还返回 `teacher.managedClasses`、`class.headTeachers` 和同步/人工 `source`,用于班主任双向查询。应用可显式声明 `:self:read` / `:class:read` 收紧范围。完整示例见 [`docs/dingtalk-school-contact-relations.md`](docs/dingtalk-school-contact-relations.md)。
|
|
419
420
|
|
|
420
421
|
```ts
|
|
421
|
-
import type { PageUserRecord } from "openxiangda/runtime"
|
|
422
|
+
import type { PageUserRecord } from "openxiangda/runtime";
|
|
422
423
|
|
|
423
|
-
const currentUser = await sdk.user.getCurrent<PageUserRecord>()
|
|
424
|
-
const user = currentUser.result
|
|
424
|
+
const currentUser = await sdk.user.getCurrent<PageUserRecord>();
|
|
425
|
+
const user = currentUser.result;
|
|
425
426
|
|
|
426
|
-
const affiliatedDepartmentName = user?.affiliatedDepartment?.name
|
|
427
|
-
const affiliatedDepartmentExternalId = user?.affiliatedDepartment?.externalId
|
|
427
|
+
const affiliatedDepartmentName = user?.affiliatedDepartment?.name;
|
|
428
|
+
const affiliatedDepartmentExternalId = user?.affiliatedDepartment?.externalId;
|
|
428
429
|
```
|
|
429
430
|
|
|
430
431
|
工程化资源放在工作区 `src/resources/` 下,由 `openxiangda resource validate|plan|publish|pull` 管理。`workspace publish` 会先构建并注册 workspace 表单/页面,再执行非破坏性资源 upsert,这样菜单、权限组、流程和表单设置可以解析最新的 profile-local ID。需要删除平台中 manifest 未声明的资源时,显式传 `--prune`。连接器页面运行时通过 `sdk.connector.invoke()` / `sdk.connector.call("connector.api")` 调用平台运行时接口,第三方密钥只保存在后端连接器配置中。
|
|
@@ -460,7 +461,15 @@ React SPA 新应用的无需登录访问统一使用 `/view/:appType/public/*`
|
|
|
460
461
|
"text/csv",
|
|
461
462
|
"application/json"
|
|
462
463
|
],
|
|
463
|
-
"allowedExtensions": [
|
|
464
|
+
"allowedExtensions": [
|
|
465
|
+
"pdf",
|
|
466
|
+
"docx",
|
|
467
|
+
"xlsx",
|
|
468
|
+
"pptx",
|
|
469
|
+
"txt",
|
|
470
|
+
"csv",
|
|
471
|
+
"json"
|
|
472
|
+
],
|
|
464
473
|
"maxSizeBytes": 31457280,
|
|
465
474
|
"visibility": "private",
|
|
466
475
|
"pathPrefix": "public/register/attachments/"
|
|
@@ -477,10 +486,10 @@ React SPA 新应用的无需登录访问统一使用 `/view/:appType/public/*`
|
|
|
477
486
|
公开页面里的图片和附件分两类处理。真正可以对公网长期公开的资产,例如仪器封面图、公开说明书、门户 banner,应上传到平台公开文件区,默认 bucket 为 `public-assets`,上传后保存的 `url` / `previewUrl` / `downloadUrl` 会是 `/file/public/...`,未登录浏览器可以直接读取并被浏览器/CDN 缓存。仍可能包含隐私、审批材料、订单报告、结算单、维保现场照片的附件不要放入公开区,应继续保存在私有 bucket,并通过登录态或受控文件票据访问。
|
|
478
487
|
|
|
479
488
|
```ts
|
|
480
|
-
import { createFormRuntimeApi } from "openxiangda"
|
|
489
|
+
import { createFormRuntimeApi } from "openxiangda";
|
|
481
490
|
|
|
482
|
-
const api = createFormRuntimeApi({ baseUrl: "/service" })
|
|
483
|
-
const file = await api.uploadPublicFile(imageFile, "public-assets")
|
|
491
|
+
const api = createFormRuntimeApi({ baseUrl: "/service" });
|
|
492
|
+
const file = await api.uploadPublicFile(imageFile, "public-assets");
|
|
484
493
|
|
|
485
494
|
// file.url === "/service/file/public/public-assets/..."
|
|
486
495
|
// file.visibility === "public"
|
|
@@ -503,7 +512,7 @@ import {
|
|
|
503
512
|
这些独立 API 必须在模板默认提供的 `OpenXiangdaProvider` 和 `OpenXiangdaPageProvider` 内使用。它们会从 PageSdk 获取当前 `appType`,并统一处理 preview ticket、metadata 和二进制文件响应。默认覆盖 PDF、常见媒体、文本、DOCX 和 XLSX,更多 DOC/XLS/PPT、ODF 格式由部署侧 ONLYOFFICE 配置决定。只有在需要复制、分享或新窗口打开预览页时,才通过 PageSdk `sdk.createFileAccessTicket(..., "preview", { appType })` 获取并打开 `previewPageUrl`;不要直接打开文件内容流 `previewUrl`。
|
|
504
513
|
|
|
505
514
|
```tsx
|
|
506
|
-
import { ImageField } from "openxiangda"
|
|
515
|
+
import { ImageField } from "openxiangda";
|
|
507
516
|
|
|
508
517
|
<ImageField
|
|
509
518
|
fieldId="photos"
|
|
@@ -514,9 +523,9 @@ import { ImageField } from "openxiangda"
|
|
|
514
523
|
enabled: true,
|
|
515
524
|
skipBelowBytes: 200 * 1024,
|
|
516
525
|
thumb: { maxWidth: 320, maxHeight: 320, quality: 0.72 },
|
|
517
|
-
preview: { maxWidth: 1280, maxHeight: 1280, quality: 0.82 }
|
|
526
|
+
preview: { maxWidth: 1280, maxHeight: 1280, quality: 0.82 },
|
|
518
527
|
}}
|
|
519
|
-
|
|
528
|
+
/>;
|
|
520
529
|
```
|
|
521
530
|
|
|
522
531
|
压缩默认 `format: "source"`,会尽量沿用原图片格式。如果显式输出 `webp`、`png` 或 `jpeg`,对应 OSS storage resource 的 `allowedExtensions` 也要包含该扩展名。
|
|
@@ -602,15 +611,15 @@ openxiangda organization account-reset-password user-alice --profile dev --body-
|
|
|
602
611
|
页面 SDK 和 App Function 使用同一套后端权限:
|
|
603
612
|
|
|
604
613
|
```ts
|
|
605
|
-
const capabilities = await sdk.organization.capabilities()
|
|
614
|
+
const capabilities = await sdk.organization.capabilities();
|
|
606
615
|
if (!capabilities.result?.canManage) {
|
|
607
|
-
throw new Error("当前账号没有组织账号管理权限")
|
|
616
|
+
throw new Error("当前账号没有组织账号管理权限");
|
|
608
617
|
}
|
|
609
618
|
|
|
610
619
|
await sdk.organization.departments.create({
|
|
611
620
|
name: "销售部",
|
|
612
621
|
parentId: "dept-root",
|
|
613
|
-
})
|
|
622
|
+
});
|
|
614
623
|
|
|
615
624
|
await sdk.organization.accounts.create({
|
|
616
625
|
id: "user-alice",
|
|
@@ -618,12 +627,12 @@ await sdk.organization.accounts.create({
|
|
|
618
627
|
password: initialPassword,
|
|
619
628
|
name: "Alice",
|
|
620
629
|
departmentIds: ["dept-sales"],
|
|
621
|
-
})
|
|
630
|
+
});
|
|
622
631
|
|
|
623
632
|
// App Function / trusted JS uses ctx.organization with the same permission check.
|
|
624
633
|
await ctx.organization.accounts.resetPassword("user-alice", {
|
|
625
634
|
newPassword,
|
|
626
|
-
})
|
|
635
|
+
});
|
|
627
636
|
```
|
|
628
637
|
|
|
629
638
|
应用登录能力通过 auth resource 和 runtime SDK 提供:登录配置放在 `src/resources/auth/<code>.json`,默认 React SPA 模板已包含 `/view/:appType/login`,自定义页面可使用 `createAuthClient({ appType, servicePrefix })` 或 `LoginPage` / `useAuth` from `openxiangda/runtime/react`。钉钉登录默认使用 `dingtalkFlow="auto"`:只有明确位于钉钉容器且 JSAPI 可用时才走免登码,普通浏览器会请求应用级 OAuth 地址并跳转钉钉认证页;自定义页可调用 `getDingTalkOAuthUrl({ returnUrl })` 接入相同能力。手机号验证码、CAS/SSO 或其他外部登录可以由 App Function provider 校验外部凭证,但 provider 只能返回 `phone` / `email` / `externalId` / `unionId` 等身份声明;平台后端按 auth resource 策略执行账号匹配、绑定、创建或拒绝,并由平台统一签发 token/cookie。默认注册策略是拒绝,开启自动注册或白名单注册前必须确认身份匹配键、默认角色、验证码 TTL/频率/失败次数、审计字段和错误文案策略。
|
|
@@ -4,6 +4,7 @@ description: "Use OpenXiangda for private low-code platform work: app workspaces
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- OpenXiangda-Policy-Version: 7 -->
|
|
7
|
+
|
|
7
8
|
# OpenXiangda
|
|
8
9
|
|
|
9
10
|
OpenXiangda connects an AI coding workspace to the private low-code platform through a normal-user profile and `/openxiangda-api/v1`. External backends using AK/SK are a separate `openxiangda-open-api` flow.
|
|
@@ -57,18 +58,18 @@ content/source/parent verification and never overwrites immutable storage.
|
|
|
57
58
|
|
|
58
59
|
## Decide the track
|
|
59
60
|
|
|
60
|
-
| Intent
|
|
61
|
-
|
|
|
62
|
-
| Diagnose, snapshot, compare, explain an error
|
|
63
|
-
| Login, profile, release, CLI/state issue
|
|
64
|
-
| Create or bind an app
|
|
65
|
-
| Form/schema/data view
|
|
66
|
-
| React/classic page
|
|
67
|
-
| Function, automation, workflow, JS_CODE
|
|
68
|
-
| Roles, permission groups, data scope
|
|
61
|
+
| Intent | Read next | First action |
|
|
62
|
+
| ------------------------------------------------------ | ---------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
63
|
+
| Diagnose, snapshot, compare, explain an error | `openxiangda-inspect` | read-only snapshot/inspect |
|
|
64
|
+
| Login, profile, release, CLI/state issue | `openxiangda-core` | resolve explicit profile and workspace |
|
|
65
|
+
| Create or bind an app | `openxiangda-app` | inspect local binding, then init/bind |
|
|
66
|
+
| Form/schema/data view | `openxiangda-form` | inspect the target form and schema |
|
|
67
|
+
| React/classic page | `openxiangda-page` | inspect the target route/page |
|
|
68
|
+
| Function, automation, workflow, JS_CODE | `openxiangda-workflow-automation` | inspect the exact resource codes |
|
|
69
|
+
| Roles, permission groups, data scope | `openxiangda-permission-settings` | produce the permission matrix |
|
|
69
70
|
| DingTalk school-contact guardian/student relationships | `openxiangda-page` plus `references/school-contact-relations.md` | use the platform relationship SDK, defaulting to unrestricted tenant scope |
|
|
70
|
-
| New app architecture, auth, public access
|
|
71
|
-
| External backend/OpenAPI/AK-SK
|
|
71
|
+
| New app architecture, auth, public access | `openxiangda-architecture-design` plus the relevant domain skill | run the design gate |
|
|
72
|
+
| External backend/OpenAPI/AK-SK | `openxiangda-open-api` | describe the exact operation |
|
|
72
73
|
|
|
73
74
|
## Scope before work
|
|
74
75
|
|
|
@@ -194,7 +195,9 @@ The lease is app-level promotion ownership, while worktree ownership prevents tw
|
|
|
194
195
|
- Read school-contact guardian/student and teacher/class relationships through
|
|
195
196
|
`sdk.organization.schoolContact` or the trusted App Function bridge. Use
|
|
196
197
|
`SCHOOL_HEAD_TEACHER` only for global identity and `teachers.list` for the
|
|
197
|
-
exact class relationship.
|
|
198
|
+
exact class relationship; consume `teacher.managedClasses` and
|
|
199
|
+
`class.headTeachers` for the two relationship directions and inspect
|
|
200
|
+
`source` when synced/manual provenance matters. Keep the
|
|
198
201
|
authenticated non-guest default tenant-wide scope without adding an app-role
|
|
199
202
|
permission binding unless the product explicitly requires self/class
|
|
200
203
|
restrictions; never infer relations from department membership.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 家校通讯录关系
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
家校关系由平台组织中心统一同步和维护。同步成员和人工成员都直接位于班级部门下,通过 `guardian`、`student`、`teacher` 和班主任标记区分,不再依赖“家长/学生/老师”子部门。应用不得直连钉钉,也不得根据班级成员自行推断家长和学生关系。
|
|
4
4
|
|
|
5
5
|
## 权限与默认范围
|
|
6
6
|
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
13
|
-
"apiPermissionCodes": [
|
|
14
|
-
"app:organization:school-contact:read"
|
|
15
|
-
]
|
|
13
|
+
"apiPermissionCodes": ["app:organization:school-contact:read"]
|
|
16
14
|
}
|
|
17
15
|
```
|
|
18
16
|
|
|
@@ -31,11 +29,11 @@
|
|
|
31
29
|
|
|
32
30
|
每次成功的钉钉家校通讯录全量同步都会对账并维护四种平台层系统身份角色:
|
|
33
31
|
|
|
34
|
-
| 展示名 | 稳定角色编码
|
|
35
|
-
|
|
|
36
|
-
| 家长
|
|
37
|
-
| 学生
|
|
38
|
-
| 老师
|
|
32
|
+
| 展示名 | 稳定角色编码 | 含义 |
|
|
33
|
+
| ------ | --------------------- | --------------------------------------------- |
|
|
34
|
+
| 家长 | `SCHOOL_GUARDIAN` | 在家校成员关系中作为 guardian |
|
|
35
|
+
| 学生 | `SCHOOL_STUDENT` | 在家校成员关系中作为 student |
|
|
36
|
+
| 老师 | `SCHOOL_TEACHER` | 在家校成员关系中作为 teacher |
|
|
39
37
|
| 班主任 | `SCHOOL_HEAD_TEACHER` | 至少一个 teacher 班级成员带 `is_adviser=true` |
|
|
40
38
|
|
|
41
39
|
身份角色可组合,一个平台用户可以同时是老师和家长;角色由同步维护,不能在平台角色管理中手工分配、修改、删除,也不会被当前平台角色切换隐藏。应用权限组把这些编码填入 `platformRoleCodes`,与应用角色 `roles` 是并列的 OR 条件;两个数组都为空仍表示不限制。
|
|
@@ -44,10 +42,11 @@
|
|
|
44
42
|
|
|
45
43
|
```ts
|
|
46
44
|
const isGuardian =
|
|
47
|
-
sdk.context.permissions?.platformRoleCodes?.includes("SCHOOL_GUARDIAN")
|
|
45
|
+
sdk.context.permissions?.platformRoleCodes?.includes("SCHOOL_GUARDIAN");
|
|
48
46
|
|
|
49
|
-
const isHeadTeacher =
|
|
50
|
-
|
|
47
|
+
const isHeadTeacher = sdk.context.permissions?.platformRoleCodes?.includes(
|
|
48
|
+
"SCHOOL_HEAD_TEACHER",
|
|
49
|
+
);
|
|
51
50
|
```
|
|
52
51
|
|
|
53
52
|
`SCHOOL_HEAD_TEACHER` 只说明当前用户至少担任一个班的班主任。班主任是班级维度的关系;要判断具体班级,必须使用下方 `teachers.list` 返回的 `isHeadTeacher`,不能用全局角色推断。
|
|
@@ -75,9 +74,9 @@ const response = await sdk.organization.schoolContact.relations.list({
|
|
|
75
74
|
classId,
|
|
76
75
|
page: 1,
|
|
77
76
|
pageSize: 20,
|
|
78
|
-
})
|
|
77
|
+
});
|
|
79
78
|
|
|
80
|
-
const relations = response.result?.items || []
|
|
79
|
+
const relations = response.result?.items || [];
|
|
81
80
|
```
|
|
82
81
|
|
|
83
82
|
常用方法:
|
|
@@ -86,23 +85,31 @@ const relations = response.result?.items || []
|
|
|
86
85
|
await sdk.organization.schoolContact.children.list(guardianUserId, {
|
|
87
86
|
page: 1,
|
|
88
87
|
pageSize: 20,
|
|
89
|
-
})
|
|
88
|
+
});
|
|
90
89
|
|
|
91
90
|
await sdk.organization.schoolContact.guardians.list(studentUserId, {
|
|
92
91
|
page: 1,
|
|
93
92
|
pageSize: 20,
|
|
94
|
-
})
|
|
93
|
+
});
|
|
95
94
|
|
|
96
|
-
await sdk.organization.schoolContact.myFamily.get({ pageSize: 50 })
|
|
95
|
+
await sdk.organization.schoolContact.myFamily.get({ pageSize: 50 });
|
|
97
96
|
|
|
98
97
|
await sdk.organization.schoolContact.teachers.list({
|
|
99
98
|
classId,
|
|
100
99
|
isHeadTeacher: true,
|
|
101
100
|
page: 1,
|
|
102
101
|
pageSize: 20,
|
|
103
|
-
})
|
|
102
|
+
});
|
|
104
103
|
```
|
|
105
104
|
|
|
105
|
+
`teachers.list` 的每个结果同时提供两个方向的班主任信息:
|
|
106
|
+
|
|
107
|
+
- `teacher.managedClasses`:该老师当前作为班主任管理的全部班级。
|
|
108
|
+
- `class.headTeachers`:该班级当前的全部班主任。
|
|
109
|
+
- `source`:班级身份来源,值为 `dingtalk_school_contact` 或 `manual`。
|
|
110
|
+
|
|
111
|
+
这两个字段可直接用于“我管理的班级”和“班级班主任”场景,不要在应用中自行维护第二份映射。
|
|
112
|
+
|
|
106
113
|
关系列表支持以下服务端过滤条件:
|
|
107
114
|
|
|
108
115
|
- `userId`、`guardianUserId`、`studentUserId`:平台用户 ID。
|
|
@@ -128,38 +135,38 @@ await sdk.organization.schoolContact.teachers.list({
|
|
|
128
135
|
App Function、Automation 或 Workflow 中需要复用关系时,调用对应的受控后端桥接:
|
|
129
136
|
|
|
130
137
|
```ts
|
|
131
|
-
export default async function(ctx, input) {
|
|
138
|
+
export default async function (ctx, input) {
|
|
132
139
|
const result = await ctx.organization.schoolContact.relations.list({
|
|
133
140
|
guardianUserId: input.guardianUserId,
|
|
134
141
|
page: 1,
|
|
135
142
|
pageSize: 20,
|
|
136
|
-
})
|
|
143
|
+
});
|
|
137
144
|
|
|
138
|
-
return result.items
|
|
145
|
+
return result.items;
|
|
139
146
|
}
|
|
140
147
|
```
|
|
141
148
|
|
|
142
149
|
查询某位老师担任班主任的班级:
|
|
143
150
|
|
|
144
151
|
```ts
|
|
145
|
-
export default async function(ctx, input) {
|
|
152
|
+
export default async function (ctx, input) {
|
|
146
153
|
return await ctx.organization.schoolContact.teachers.list({
|
|
147
154
|
userId: input.teacherUserId,
|
|
148
155
|
isHeadTeacher: true,
|
|
149
156
|
page: 1,
|
|
150
157
|
pageSize: 100,
|
|
151
|
-
})
|
|
158
|
+
});
|
|
152
159
|
}
|
|
153
160
|
```
|
|
154
161
|
|
|
155
162
|
对应方法为:
|
|
156
163
|
|
|
157
164
|
```ts
|
|
158
|
-
ctx.organization.schoolContact.relations.list(params)
|
|
159
|
-
ctx.organization.schoolContact.teachers.list(params)
|
|
160
|
-
ctx.organization.schoolContact.children.list(userId, params)
|
|
161
|
-
ctx.organization.schoolContact.guardians.list(userId, params)
|
|
162
|
-
ctx.organization.schoolContact.myFamily.get(params)
|
|
165
|
+
ctx.organization.schoolContact.relations.list(params);
|
|
166
|
+
ctx.organization.schoolContact.teachers.list(params);
|
|
167
|
+
ctx.organization.schoolContact.children.list(userId, params);
|
|
168
|
+
ctx.organization.schoolContact.guardians.list(userId, params);
|
|
169
|
+
ctx.organization.schoolContact.myFamily.get(params);
|
|
163
170
|
```
|
|
164
171
|
|
|
165
172
|
运行时使用平台提供的真实操作者做权限校验。不要信任页面 input 中伪造的租户、角色或当前用户 ID。
|
|
@@ -168,31 +175,31 @@ ctx.organization.schoolContact.myFamily.get(params)
|
|
|
168
175
|
|
|
169
176
|
```ts
|
|
170
177
|
interface SchoolContactRelation {
|
|
171
|
-
relationId: string
|
|
172
|
-
relationCode: string | null
|
|
173
|
-
relationName: string | null
|
|
178
|
+
relationId: string;
|
|
179
|
+
relationCode: string | null;
|
|
180
|
+
relationName: string | null;
|
|
174
181
|
guardian: {
|
|
175
|
-
userId: string
|
|
176
|
-
dingtalkUserId: string
|
|
177
|
-
name: string
|
|
178
|
-
mobile: string | null
|
|
179
|
-
}
|
|
182
|
+
userId: string;
|
|
183
|
+
dingtalkUserId: string | null;
|
|
184
|
+
name: string;
|
|
185
|
+
mobile: string | null;
|
|
186
|
+
};
|
|
180
187
|
student: {
|
|
181
|
-
userId: string
|
|
182
|
-
dingtalkUserId: string
|
|
183
|
-
name: string
|
|
184
|
-
mobile: string | null
|
|
185
|
-
}
|
|
188
|
+
userId: string;
|
|
189
|
+
dingtalkUserId: string | null;
|
|
190
|
+
name: string;
|
|
191
|
+
mobile: string | null;
|
|
192
|
+
};
|
|
186
193
|
class: {
|
|
187
|
-
id: string
|
|
188
|
-
dingtalkClassId: string
|
|
189
|
-
name: string
|
|
190
|
-
campusName: string | null
|
|
191
|
-
periodName: string | null
|
|
192
|
-
gradeName: string | null
|
|
193
|
-
}
|
|
194
|
-
syncedAt: string
|
|
195
|
-
syncState: "current" | "not_synced" | "disabled"
|
|
194
|
+
id: string;
|
|
195
|
+
dingtalkClassId: string;
|
|
196
|
+
name: string;
|
|
197
|
+
campusName: string | null;
|
|
198
|
+
periodName: string | null;
|
|
199
|
+
gradeName: string | null;
|
|
200
|
+
};
|
|
201
|
+
syncedAt: string;
|
|
202
|
+
syncState: "current" | "not_synced" | "disabled";
|
|
196
203
|
}
|
|
197
204
|
```
|
|
198
205
|
|
|
@@ -200,22 +207,33 @@ interface SchoolContactRelation {
|
|
|
200
207
|
|
|
201
208
|
```ts
|
|
202
209
|
interface SchoolContactTeacherMembership {
|
|
203
|
-
membershipId: string
|
|
210
|
+
membershipId: string;
|
|
204
211
|
teacher: {
|
|
205
|
-
userId: string
|
|
206
|
-
dingtalkUserId: string
|
|
207
|
-
name: string
|
|
208
|
-
mobile: string | null
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
userId: string;
|
|
213
|
+
dingtalkUserId: string | null;
|
|
214
|
+
name: string;
|
|
215
|
+
mobile: string | null;
|
|
216
|
+
managedClasses: SchoolContactRelation["class"][];
|
|
217
|
+
};
|
|
218
|
+
class: SchoolContactRelation["class"] & {
|
|
219
|
+
headTeachers: Array<{
|
|
220
|
+
userId: string;
|
|
221
|
+
dingtalkUserId: string | null;
|
|
222
|
+
name: string;
|
|
223
|
+
mobile: string | null;
|
|
224
|
+
}>;
|
|
225
|
+
};
|
|
226
|
+
isHeadTeacher: boolean;
|
|
227
|
+
source: "dingtalk_school_contact" | "manual";
|
|
228
|
+
syncedAt: string;
|
|
229
|
+
syncState: "current" | "not_synced" | "disabled";
|
|
214
230
|
}
|
|
215
231
|
```
|
|
216
232
|
|
|
217
233
|
手机号可能为空。`sync.state=disabled` 表示管理员关闭了后续同步,现有数据仍保留但可能过期;业务页面在对时效敏感时应展示 `lastSuccessfulSyncAt`。
|
|
218
234
|
|
|
235
|
+
平台管理员人工添加的班级身份也会由 `teachers.list` 返回,并标记 `source=manual`。人工家长/学生身份会维护对应平台身份和班级归属,但不会自动生成监护关系;只有明确存在的家庭关系才会出现在 `relations`、`children`、`guardians` 和 `myFamily`。
|
|
236
|
+
|
|
219
237
|
## 持久化边界
|
|
220
238
|
|
|
221
239
|
- 平台关系是当前事实,不要复制全量关系到应用表单或 Data View。
|
|
@@ -36,7 +36,7 @@ openxiangda workspace publish --profile <name> --page <pageCode>
|
|
|
36
36
|
- ✅ For external APIs use `src/resources/connectors/<code>.json` + `sdk.connector.invoke()`; for joined read-only lists use row data views + `sdk.dataView.query`; for stable dashboard metrics use aggregate data views + `sdk.dataView.stats`.
|
|
37
37
|
- ✅ Choose data view `storageMode` deliberately: `materialized` for refreshed reports/lists that tolerate delay, `live` for bounded real-time multi-form reads.
|
|
38
38
|
- ✅ For reusable backend orchestration use App Function (`src/functions/<functionCode>/index.ts` + `src/resources/functions/<functionCode>.json`) and call `sdk.function.invoke(code, { input })`; keep page components out of multi-table business orchestration.
|
|
39
|
-
- ✅ 家长、学生、教师、班主任身份或班级/监护关系页面使用 `sdk.organization.schoolContact.*`;先读 `references/school-contact-relations.md`。用 `SCHOOL_HEAD_TEACHER` 判断全局身份,用 `teachers.list({ classId, isHeadTeacher: true })`
|
|
39
|
+
- ✅ 家长、学生、教师、班主任身份或班级/监护关系页面使用 `sdk.organization.schoolContact.*`;先读 `references/school-contact-relations.md`。用 `SCHOOL_HEAD_TEACHER` 判断全局身份,用 `teachers.list({ classId, isHeadTeacher: true })` 判断具体班主任班级,并直接读取 `teacher.managedClasses` / `class.headTeachers`;默认使用已登录用户的租户内全部关系,仅在业务要求时声明 self/class 收紧范围,并保持服务端分页。
|
|
40
40
|
- ✅ Filters, search bars, modal forms, drawers, and inline edits use platform components for platform data fields, otherwise `antd` / `antd-mobile` controls.
|
|
41
41
|
- ❌ Single-file giant pages. Split per `references/best-practices.md`.
|
|
42
42
|
- ❌ Hardcoded `/view/...&isRenderNav=false` URLs scattered through page code; use the runtime navigation helper.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageContext, PageInfo, PageBridgeApi } from './react.mjs';
|
|
2
|
-
export { AdminList, AdminListBatchAction, AdminListColumn, AdminListColumnPreference, AdminListDataSource, AdminListDataSourceOptions, AdminListDataViewSourceOptions, AdminListDensity, AdminListExportDownloadOptions, AdminListExportInput, AdminListExportScope, AdminListExportTask, AdminListExportTaskStatus, AdminListFormSourceOptions, AdminListFunctionSourceOptions, AdminListLockedPreference, AdminListOption, AdminListPreference, AdminListPreferenceStore, AdminListProps, AdminListQuery, AdminListResult, AdminListRowAction, AdminListSearchField, AdminListSearchFieldType, AdminListSearchPreference, AdminListSelectionChange, AdminListSort, AdminListSortDirection, ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionAttachmentReference, AppFunctionBase64File, AppFunctionConnectorApi, AppFunctionContext, AppFunctionContextV2, AppFunctionDataViewApi, AppFunctionFileReadInput, AppFunctionFileReadOptions, AppFunctionFilesApi, AppFunctionFormApi, AppFunctionFormDeleteResult, AppFunctionFormFileReadOptions, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionHttpApi, AppFunctionHttpRequest, AppFunctionHttpResponse, AppFunctionManifestV2, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionPlatformApi, AppFunctionPlatformApiRequest, AppFunctionPlatformApiResponse, AppFunctionPlatformHttpApi, AppFunctionPlatformRolesApi, AppFunctionProcessApi, AppFunctionProcessStartResult, AppFunctionProcessTaskResult, AppFunctionProcessWithdrawResult, AppFunctionRoleBatchAddResult, AppFunctionRoleListParams, AppFunctionRoleMemberMutationResult, AppFunctionRoleUsersParams, AppFunctionRuntimeContext, AppFunctionSecretRef, AppFunctionSecrets, AppFunctionUtils, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AttachmentPreviewList, AttachmentPreviewListProps, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFileAccessTicketOptions, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkBrowserContext, DingTalkClient, DingTalkExternalBrowserGuide, DingTalkExternalBrowserGuideProps, DingTalkLoginEnvironment, DingTalkLoginFlow, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, DingTalkOAuthStartInput, DingTalkOAuthStartResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FileAccessTicketAction, FileAccessTicketPurpose, FileAccessTicketResult, FilePreviewController, FilePreviewItem, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImagePreviewGrid, ImagePreviewGridProps, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoadDingTalkClientOptions, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestCache, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, PublicFormGrant, PublicStorageAction, PublicStorageGrant, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, RequestDingTalkAuthCodeOptions, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeAuthGuard, RuntimeAuthGuardProps, RuntimeAuthState, RuntimeAuthStatus, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SchoolContactClass, SchoolContactPerson, SchoolContactRelationListParams, SchoolContactRelationListResult, SchoolContactRelationRecord, SchoolContactSyncState, SchoolContactTeacherListParams, SchoolContactTeacherListResult, SchoolContactTeacherMembershipRecord, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, StructuredExportCellStyle, StructuredExportColumnDefinition, StructuredExportCreateParams, StructuredExportFormatDefinition, StructuredExportFormatType, StructuredExportGetParams, StructuredExportScope, StructuredExportSheetDefinition, StructuredExportSourceDefinition, StructuredExportStyleRule, StructuredExportTask, StructuredExportTaskStatus, StructuredExportValueDefinition, StructuredExportWorkbookDefinition, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, TrustedNodeV2Context, UiPermissionListParams, UpdateApiPermissionParams, UpdateDingTalkCardParams, UpdateDingTalkCardResult, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseFilePreviewOptions, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.mjs';
|
|
2
|
+
export { AdminList, AdminListBatchAction, AdminListColumn, AdminListColumnPreference, AdminListDataSource, AdminListDataSourceOptions, AdminListDataViewSourceOptions, AdminListDensity, AdminListExportDownloadOptions, AdminListExportInput, AdminListExportScope, AdminListExportTask, AdminListExportTaskStatus, AdminListFormSourceOptions, AdminListFunctionSourceOptions, AdminListLockedPreference, AdminListOption, AdminListPreference, AdminListPreferenceStore, AdminListProps, AdminListQuery, AdminListResult, AdminListRowAction, AdminListSearchField, AdminListSearchFieldType, AdminListSearchPreference, AdminListSelectionChange, AdminListSort, AdminListSortDirection, ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionAttachmentReference, AppFunctionBase64File, AppFunctionConnectorApi, AppFunctionContext, AppFunctionContextV2, AppFunctionDataViewApi, AppFunctionFileReadInput, AppFunctionFileReadOptions, AppFunctionFilesApi, AppFunctionFormApi, AppFunctionFormDeleteResult, AppFunctionFormFileReadOptions, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionHttpApi, AppFunctionHttpRequest, AppFunctionHttpResponse, AppFunctionManifestV2, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionPlatformApi, AppFunctionPlatformApiRequest, AppFunctionPlatformApiResponse, AppFunctionPlatformHttpApi, AppFunctionPlatformRolesApi, AppFunctionProcessApi, AppFunctionProcessStartResult, AppFunctionProcessTaskResult, AppFunctionProcessWithdrawResult, AppFunctionRoleBatchAddResult, AppFunctionRoleListParams, AppFunctionRoleMemberMutationResult, AppFunctionRoleUsersParams, AppFunctionRuntimeContext, AppFunctionSecretRef, AppFunctionSecrets, AppFunctionUtils, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AttachmentPreviewList, AttachmentPreviewListProps, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFileAccessTicketOptions, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkBrowserContext, DingTalkClient, DingTalkExternalBrowserGuide, DingTalkExternalBrowserGuideProps, DingTalkLoginEnvironment, DingTalkLoginFlow, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, DingTalkOAuthStartInput, DingTalkOAuthStartResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FileAccessTicketAction, FileAccessTicketPurpose, FileAccessTicketResult, FilePreviewController, FilePreviewItem, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImagePreviewGrid, ImagePreviewGridProps, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoadDingTalkClientOptions, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestCache, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, PublicFormGrant, PublicStorageAction, PublicStorageGrant, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, RequestDingTalkAuthCodeOptions, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeAuthGuard, RuntimeAuthGuardProps, RuntimeAuthState, RuntimeAuthStatus, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SchoolContactClass, SchoolContactPerson, SchoolContactRelationListParams, SchoolContactRelationListResult, SchoolContactRelationRecord, SchoolContactSyncState, SchoolContactTeacher, SchoolContactTeacherListParams, SchoolContactTeacherListResult, SchoolContactTeacherMembershipRecord, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, StructuredExportCellStyle, StructuredExportColumnDefinition, StructuredExportCreateParams, StructuredExportFormatDefinition, StructuredExportFormatType, StructuredExportGetParams, StructuredExportScope, StructuredExportSheetDefinition, StructuredExportSourceDefinition, StructuredExportStyleRule, StructuredExportTask, StructuredExportTaskStatus, StructuredExportValueDefinition, StructuredExportWorkbookDefinition, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, TrustedNodeV2Context, UiPermissionListParams, UpdateApiPermissionParams, UpdateDingTalkCardParams, UpdateDingTalkCardResult, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseFilePreviewOptions, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.mjs';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { b as FormSchema, a as FormRuntimeApi, c as FormRuntimeApiConfig } from '../ProcessPreview-DSUIJi5V.mjs';
|
|
5
5
|
export { e as extractFieldsFromComponentsTree } from '../dataManagementApi-p_HOhQnA.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageContext, PageInfo, PageBridgeApi } from './react.js';
|
|
2
|
-
export { AdminList, AdminListBatchAction, AdminListColumn, AdminListColumnPreference, AdminListDataSource, AdminListDataSourceOptions, AdminListDataViewSourceOptions, AdminListDensity, AdminListExportDownloadOptions, AdminListExportInput, AdminListExportScope, AdminListExportTask, AdminListExportTaskStatus, AdminListFormSourceOptions, AdminListFunctionSourceOptions, AdminListLockedPreference, AdminListOption, AdminListPreference, AdminListPreferenceStore, AdminListProps, AdminListQuery, AdminListResult, AdminListRowAction, AdminListSearchField, AdminListSearchFieldType, AdminListSearchPreference, AdminListSelectionChange, AdminListSort, AdminListSortDirection, ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionAttachmentReference, AppFunctionBase64File, AppFunctionConnectorApi, AppFunctionContext, AppFunctionContextV2, AppFunctionDataViewApi, AppFunctionFileReadInput, AppFunctionFileReadOptions, AppFunctionFilesApi, AppFunctionFormApi, AppFunctionFormDeleteResult, AppFunctionFormFileReadOptions, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionHttpApi, AppFunctionHttpRequest, AppFunctionHttpResponse, AppFunctionManifestV2, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionPlatformApi, AppFunctionPlatformApiRequest, AppFunctionPlatformApiResponse, AppFunctionPlatformHttpApi, AppFunctionPlatformRolesApi, AppFunctionProcessApi, AppFunctionProcessStartResult, AppFunctionProcessTaskResult, AppFunctionProcessWithdrawResult, AppFunctionRoleBatchAddResult, AppFunctionRoleListParams, AppFunctionRoleMemberMutationResult, AppFunctionRoleUsersParams, AppFunctionRuntimeContext, AppFunctionSecretRef, AppFunctionSecrets, AppFunctionUtils, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AttachmentPreviewList, AttachmentPreviewListProps, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFileAccessTicketOptions, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkBrowserContext, DingTalkClient, DingTalkExternalBrowserGuide, DingTalkExternalBrowserGuideProps, DingTalkLoginEnvironment, DingTalkLoginFlow, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, DingTalkOAuthStartInput, DingTalkOAuthStartResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FileAccessTicketAction, FileAccessTicketPurpose, FileAccessTicketResult, FilePreviewController, FilePreviewItem, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImagePreviewGrid, ImagePreviewGridProps, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoadDingTalkClientOptions, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestCache, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, PublicFormGrant, PublicStorageAction, PublicStorageGrant, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, RequestDingTalkAuthCodeOptions, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeAuthGuard, RuntimeAuthGuardProps, RuntimeAuthState, RuntimeAuthStatus, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SchoolContactClass, SchoolContactPerson, SchoolContactRelationListParams, SchoolContactRelationListResult, SchoolContactRelationRecord, SchoolContactSyncState, SchoolContactTeacherListParams, SchoolContactTeacherListResult, SchoolContactTeacherMembershipRecord, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, StructuredExportCellStyle, StructuredExportColumnDefinition, StructuredExportCreateParams, StructuredExportFormatDefinition, StructuredExportFormatType, StructuredExportGetParams, StructuredExportScope, StructuredExportSheetDefinition, StructuredExportSourceDefinition, StructuredExportStyleRule, StructuredExportTask, StructuredExportTaskStatus, StructuredExportValueDefinition, StructuredExportWorkbookDefinition, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, TrustedNodeV2Context, UiPermissionListParams, UpdateApiPermissionParams, UpdateDingTalkCardParams, UpdateDingTalkCardResult, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseFilePreviewOptions, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.js';
|
|
2
|
+
export { AdminList, AdminListBatchAction, AdminListColumn, AdminListColumnPreference, AdminListDataSource, AdminListDataSourceOptions, AdminListDataViewSourceOptions, AdminListDensity, AdminListExportDownloadOptions, AdminListExportInput, AdminListExportScope, AdminListExportTask, AdminListExportTaskStatus, AdminListFormSourceOptions, AdminListFunctionSourceOptions, AdminListLockedPreference, AdminListOption, AdminListPreference, AdminListPreferenceStore, AdminListProps, AdminListQuery, AdminListResult, AdminListRowAction, AdminListSearchField, AdminListSearchFieldType, AdminListSearchPreference, AdminListSelectionChange, AdminListSort, AdminListSortDirection, ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionAttachmentReference, AppFunctionBase64File, AppFunctionConnectorApi, AppFunctionContext, AppFunctionContextV2, AppFunctionDataViewApi, AppFunctionFileReadInput, AppFunctionFileReadOptions, AppFunctionFilesApi, AppFunctionFormApi, AppFunctionFormDeleteResult, AppFunctionFormFileReadOptions, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionHttpApi, AppFunctionHttpRequest, AppFunctionHttpResponse, AppFunctionManifestV2, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionPlatformApi, AppFunctionPlatformApiRequest, AppFunctionPlatformApiResponse, AppFunctionPlatformHttpApi, AppFunctionPlatformRolesApi, AppFunctionProcessApi, AppFunctionProcessStartResult, AppFunctionProcessTaskResult, AppFunctionProcessWithdrawResult, AppFunctionRoleBatchAddResult, AppFunctionRoleListParams, AppFunctionRoleMemberMutationResult, AppFunctionRoleUsersParams, AppFunctionRuntimeContext, AppFunctionSecretRef, AppFunctionSecrets, AppFunctionUtils, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AttachmentPreviewList, AttachmentPreviewListProps, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFileAccessTicketOptions, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkBrowserContext, DingTalkClient, DingTalkExternalBrowserGuide, DingTalkExternalBrowserGuideProps, DingTalkLoginEnvironment, DingTalkLoginFlow, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, DingTalkOAuthStartInput, DingTalkOAuthStartResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FileAccessTicketAction, FileAccessTicketPurpose, FileAccessTicketResult, FilePreviewController, FilePreviewItem, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImagePreviewGrid, ImagePreviewGridProps, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoadDingTalkClientOptions, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestCache, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, PublicFormGrant, PublicStorageAction, PublicStorageGrant, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, RequestDingTalkAuthCodeOptions, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeAuthGuard, RuntimeAuthGuardProps, RuntimeAuthState, RuntimeAuthStatus, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SchoolContactClass, SchoolContactPerson, SchoolContactRelationListParams, SchoolContactRelationListResult, SchoolContactRelationRecord, SchoolContactSyncState, SchoolContactTeacher, SchoolContactTeacherListParams, SchoolContactTeacherListResult, SchoolContactTeacherMembershipRecord, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, StructuredExportCellStyle, StructuredExportColumnDefinition, StructuredExportCreateParams, StructuredExportFormatDefinition, StructuredExportFormatType, StructuredExportGetParams, StructuredExportScope, StructuredExportSheetDefinition, StructuredExportSourceDefinition, StructuredExportStyleRule, StructuredExportTask, StructuredExportTaskStatus, StructuredExportValueDefinition, StructuredExportWorkbookDefinition, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, TrustedNodeV2Context, UiPermissionListParams, UpdateApiPermissionParams, UpdateDingTalkCardParams, UpdateDingTalkCardResult, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseFilePreviewOptions, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.js';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { b as FormSchema, a as FormRuntimeApi, c as FormRuntimeApiConfig } from '../ProcessPreview-DSUIJi5V.js';
|
|
5
5
|
export { e as extractFieldsFromComponentsTree } from '../dataManagementApi-Ro9itwm8.js';
|
|
@@ -412,7 +412,7 @@ interface OrganizationListResult<TItem = unknown> {
|
|
|
412
412
|
}
|
|
413
413
|
interface SchoolContactPerson {
|
|
414
414
|
userId: string;
|
|
415
|
-
dingtalkUserId: string;
|
|
415
|
+
dingtalkUserId: string | null;
|
|
416
416
|
name: string;
|
|
417
417
|
mobile: string | null;
|
|
418
418
|
}
|
|
@@ -423,6 +423,12 @@ interface SchoolContactClass {
|
|
|
423
423
|
campusName: string | null;
|
|
424
424
|
periodName: string | null;
|
|
425
425
|
gradeName: string | null;
|
|
426
|
+
/** Current head teachers for this class. Populated by teachers.list. */
|
|
427
|
+
headTeachers?: SchoolContactPerson[];
|
|
428
|
+
}
|
|
429
|
+
interface SchoolContactTeacher extends SchoolContactPerson {
|
|
430
|
+
/** Classes currently managed by this teacher as head teacher. */
|
|
431
|
+
managedClasses: SchoolContactClass[];
|
|
426
432
|
}
|
|
427
433
|
interface SchoolContactSyncState {
|
|
428
434
|
enabled: boolean;
|
|
@@ -458,9 +464,10 @@ interface SchoolContactRelationListParams {
|
|
|
458
464
|
}
|
|
459
465
|
interface SchoolContactTeacherMembershipRecord {
|
|
460
466
|
membershipId: string;
|
|
461
|
-
teacher:
|
|
467
|
+
teacher: SchoolContactTeacher;
|
|
462
468
|
class: SchoolContactClass;
|
|
463
469
|
isHeadTeacher: boolean;
|
|
470
|
+
source: "dingtalk_school_contact" | "manual";
|
|
464
471
|
syncedAt: string | Date;
|
|
465
472
|
syncState: SchoolContactSyncState["state"];
|
|
466
473
|
}
|
|
@@ -881,12 +888,12 @@ interface FormCreateParams {
|
|
|
881
888
|
draft?: boolean;
|
|
882
889
|
startProcess?: boolean;
|
|
883
890
|
autoStartProcess?: boolean;
|
|
884
|
-
processStartMode?:
|
|
891
|
+
processStartMode?: "auto" | "manual" | "draft" | "delayed" | "none" | string;
|
|
885
892
|
/**
|
|
886
893
|
* Legacy compatibility only. New code should not infer a created row by
|
|
887
894
|
* submitted field values; the save API returns identifiers, not full row data.
|
|
888
895
|
*/
|
|
889
|
-
lookupAfterCreate?: boolean |
|
|
896
|
+
lookupAfterCreate?: boolean | "legacy";
|
|
890
897
|
lookupFields?: string[];
|
|
891
898
|
}
|
|
892
899
|
interface FormUpdateParams {
|
|
@@ -3199,4 +3206,4 @@ declare function requestDingTalkAuthCode({ clientId, corpId, client, timeoutMs,
|
|
|
3199
3206
|
declare function getDingTalkOAuthRecoveryMessage(search?: string | URLSearchParams): "检测到授权过程中切换了浏览器,请在当前浏览器重新点击“使用钉钉登录”。" | undefined;
|
|
3200
3207
|
declare const DingTalkExternalBrowserGuide: React__default.FC<DingTalkExternalBrowserGuideProps>;
|
|
3201
3208
|
|
|
3202
|
-
export { AdminList, type AdminListBatchAction, type AdminListColumn, type AdminListColumnPreference, type AdminListDataSource, type AdminListDataSourceOptions, type AdminListDataViewSourceOptions, type AdminListDensity, type AdminListExportDownloadOptions, type AdminListExportInput, type AdminListExportScope, type AdminListExportTask, type AdminListExportTaskStatus, type AdminListFormSourceOptions, type AdminListFunctionSourceOptions, type AdminListLockedPreference, type AdminListOption, type AdminListPreference, type AdminListPreferenceStore, type AdminListProps, type AdminListQuery, type AdminListResult, type AdminListRowAction, type AdminListSearchField, type AdminListSearchFieldType, type AdminListSearchPreference, type AdminListSelectionChange, type AdminListSort, type AdminListSortDirection, type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionAttachmentReference, type AppFunctionBase64File, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionContextV2, type AppFunctionDataViewApi, type AppFunctionFileReadInput, type AppFunctionFileReadOptions, type AppFunctionFilesApi, type AppFunctionFormApi, type AppFunctionFormDeleteResult, type AppFunctionFormFileReadOptions, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionHttpApi, type AppFunctionHttpRequest, type AppFunctionHttpResponse, type AppFunctionManifestV2, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionPlatformApi, type AppFunctionPlatformApiRequest, type AppFunctionPlatformApiResponse, type AppFunctionPlatformHttpApi, type AppFunctionPlatformRolesApi, type AppFunctionProcessApi, type AppFunctionProcessStartResult, type AppFunctionProcessTaskResult, type AppFunctionProcessWithdrawResult, type AppFunctionRoleBatchAddResult, type AppFunctionRoleListParams, type AppFunctionRoleMemberMutationResult, type AppFunctionRoleUsersParams, type AppFunctionRuntimeContext, type AppFunctionSecretRef, type AppFunctionSecrets, type AppFunctionUtils, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkBrowserContext, type DingTalkClient, DingTalkExternalBrowserGuide, type DingTalkExternalBrowserGuideProps, type DingTalkLoginEnvironment, type DingTalkLoginFlow, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type DingTalkOAuthStartInput, type DingTalkOAuthStartResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoadDingTalkClientOptions, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestCache, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicFormGrant, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type RequestDingTalkAuthCodeOptions, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SchoolContactClass, type SchoolContactPerson, type SchoolContactRelationListParams, type SchoolContactRelationListResult, type SchoolContactRelationRecord, type SchoolContactSyncState, type SchoolContactTeacherListParams, type SchoolContactTeacherListResult, type SchoolContactTeacherMembershipRecord, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type StructuredExportCellStyle, type StructuredExportColumnDefinition, type StructuredExportCreateParams, type StructuredExportFormatDefinition, type StructuredExportFormatType, type StructuredExportGetParams, type StructuredExportScope, type StructuredExportSheetDefinition, type StructuredExportSourceDefinition, type StructuredExportStyleRule, type StructuredExportTask, type StructuredExportTaskStatus, type StructuredExportValueDefinition, type StructuredExportWorkbookDefinition, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type TrustedNodeV2Context, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateDingTalkCardParams, type UpdateDingTalkCardResult, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
|
|
3209
|
+
export { AdminList, type AdminListBatchAction, type AdminListColumn, type AdminListColumnPreference, type AdminListDataSource, type AdminListDataSourceOptions, type AdminListDataViewSourceOptions, type AdminListDensity, type AdminListExportDownloadOptions, type AdminListExportInput, type AdminListExportScope, type AdminListExportTask, type AdminListExportTaskStatus, type AdminListFormSourceOptions, type AdminListFunctionSourceOptions, type AdminListLockedPreference, type AdminListOption, type AdminListPreference, type AdminListPreferenceStore, type AdminListProps, type AdminListQuery, type AdminListResult, type AdminListRowAction, type AdminListSearchField, type AdminListSearchFieldType, type AdminListSearchPreference, type AdminListSelectionChange, type AdminListSort, type AdminListSortDirection, type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionAttachmentReference, type AppFunctionBase64File, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionContextV2, type AppFunctionDataViewApi, type AppFunctionFileReadInput, type AppFunctionFileReadOptions, type AppFunctionFilesApi, type AppFunctionFormApi, type AppFunctionFormDeleteResult, type AppFunctionFormFileReadOptions, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionHttpApi, type AppFunctionHttpRequest, type AppFunctionHttpResponse, type AppFunctionManifestV2, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionPlatformApi, type AppFunctionPlatformApiRequest, type AppFunctionPlatformApiResponse, type AppFunctionPlatformHttpApi, type AppFunctionPlatformRolesApi, type AppFunctionProcessApi, type AppFunctionProcessStartResult, type AppFunctionProcessTaskResult, type AppFunctionProcessWithdrawResult, type AppFunctionRoleBatchAddResult, type AppFunctionRoleListParams, type AppFunctionRoleMemberMutationResult, type AppFunctionRoleUsersParams, type AppFunctionRuntimeContext, type AppFunctionSecretRef, type AppFunctionSecrets, type AppFunctionUtils, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkBrowserContext, type DingTalkClient, DingTalkExternalBrowserGuide, type DingTalkExternalBrowserGuideProps, type DingTalkLoginEnvironment, type DingTalkLoginFlow, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type DingTalkOAuthStartInput, type DingTalkOAuthStartResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoadDingTalkClientOptions, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestCache, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicFormGrant, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type RequestDingTalkAuthCodeOptions, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SchoolContactClass, type SchoolContactPerson, type SchoolContactRelationListParams, type SchoolContactRelationListResult, type SchoolContactRelationRecord, type SchoolContactSyncState, type SchoolContactTeacher, type SchoolContactTeacherListParams, type SchoolContactTeacherListResult, type SchoolContactTeacherMembershipRecord, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type StructuredExportCellStyle, type StructuredExportColumnDefinition, type StructuredExportCreateParams, type StructuredExportFormatDefinition, type StructuredExportFormatType, type StructuredExportGetParams, type StructuredExportScope, type StructuredExportSheetDefinition, type StructuredExportSourceDefinition, type StructuredExportStyleRule, type StructuredExportTask, type StructuredExportTaskStatus, type StructuredExportValueDefinition, type StructuredExportWorkbookDefinition, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type TrustedNodeV2Context, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateDingTalkCardParams, type UpdateDingTalkCardResult, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
|
|
@@ -412,7 +412,7 @@ interface OrganizationListResult<TItem = unknown> {
|
|
|
412
412
|
}
|
|
413
413
|
interface SchoolContactPerson {
|
|
414
414
|
userId: string;
|
|
415
|
-
dingtalkUserId: string;
|
|
415
|
+
dingtalkUserId: string | null;
|
|
416
416
|
name: string;
|
|
417
417
|
mobile: string | null;
|
|
418
418
|
}
|
|
@@ -423,6 +423,12 @@ interface SchoolContactClass {
|
|
|
423
423
|
campusName: string | null;
|
|
424
424
|
periodName: string | null;
|
|
425
425
|
gradeName: string | null;
|
|
426
|
+
/** Current head teachers for this class. Populated by teachers.list. */
|
|
427
|
+
headTeachers?: SchoolContactPerson[];
|
|
428
|
+
}
|
|
429
|
+
interface SchoolContactTeacher extends SchoolContactPerson {
|
|
430
|
+
/** Classes currently managed by this teacher as head teacher. */
|
|
431
|
+
managedClasses: SchoolContactClass[];
|
|
426
432
|
}
|
|
427
433
|
interface SchoolContactSyncState {
|
|
428
434
|
enabled: boolean;
|
|
@@ -458,9 +464,10 @@ interface SchoolContactRelationListParams {
|
|
|
458
464
|
}
|
|
459
465
|
interface SchoolContactTeacherMembershipRecord {
|
|
460
466
|
membershipId: string;
|
|
461
|
-
teacher:
|
|
467
|
+
teacher: SchoolContactTeacher;
|
|
462
468
|
class: SchoolContactClass;
|
|
463
469
|
isHeadTeacher: boolean;
|
|
470
|
+
source: "dingtalk_school_contact" | "manual";
|
|
464
471
|
syncedAt: string | Date;
|
|
465
472
|
syncState: SchoolContactSyncState["state"];
|
|
466
473
|
}
|
|
@@ -881,12 +888,12 @@ interface FormCreateParams {
|
|
|
881
888
|
draft?: boolean;
|
|
882
889
|
startProcess?: boolean;
|
|
883
890
|
autoStartProcess?: boolean;
|
|
884
|
-
processStartMode?:
|
|
891
|
+
processStartMode?: "auto" | "manual" | "draft" | "delayed" | "none" | string;
|
|
885
892
|
/**
|
|
886
893
|
* Legacy compatibility only. New code should not infer a created row by
|
|
887
894
|
* submitted field values; the save API returns identifiers, not full row data.
|
|
888
895
|
*/
|
|
889
|
-
lookupAfterCreate?: boolean |
|
|
896
|
+
lookupAfterCreate?: boolean | "legacy";
|
|
890
897
|
lookupFields?: string[];
|
|
891
898
|
}
|
|
892
899
|
interface FormUpdateParams {
|
|
@@ -3199,4 +3206,4 @@ declare function requestDingTalkAuthCode({ clientId, corpId, client, timeoutMs,
|
|
|
3199
3206
|
declare function getDingTalkOAuthRecoveryMessage(search?: string | URLSearchParams): "检测到授权过程中切换了浏览器,请在当前浏览器重新点击“使用钉钉登录”。" | undefined;
|
|
3200
3207
|
declare const DingTalkExternalBrowserGuide: React__default.FC<DingTalkExternalBrowserGuideProps>;
|
|
3201
3208
|
|
|
3202
|
-
export { AdminList, type AdminListBatchAction, type AdminListColumn, type AdminListColumnPreference, type AdminListDataSource, type AdminListDataSourceOptions, type AdminListDataViewSourceOptions, type AdminListDensity, type AdminListExportDownloadOptions, type AdminListExportInput, type AdminListExportScope, type AdminListExportTask, type AdminListExportTaskStatus, type AdminListFormSourceOptions, type AdminListFunctionSourceOptions, type AdminListLockedPreference, type AdminListOption, type AdminListPreference, type AdminListPreferenceStore, type AdminListProps, type AdminListQuery, type AdminListResult, type AdminListRowAction, type AdminListSearchField, type AdminListSearchFieldType, type AdminListSearchPreference, type AdminListSelectionChange, type AdminListSort, type AdminListSortDirection, type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionAttachmentReference, type AppFunctionBase64File, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionContextV2, type AppFunctionDataViewApi, type AppFunctionFileReadInput, type AppFunctionFileReadOptions, type AppFunctionFilesApi, type AppFunctionFormApi, type AppFunctionFormDeleteResult, type AppFunctionFormFileReadOptions, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionHttpApi, type AppFunctionHttpRequest, type AppFunctionHttpResponse, type AppFunctionManifestV2, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionPlatformApi, type AppFunctionPlatformApiRequest, type AppFunctionPlatformApiResponse, type AppFunctionPlatformHttpApi, type AppFunctionPlatformRolesApi, type AppFunctionProcessApi, type AppFunctionProcessStartResult, type AppFunctionProcessTaskResult, type AppFunctionProcessWithdrawResult, type AppFunctionRoleBatchAddResult, type AppFunctionRoleListParams, type AppFunctionRoleMemberMutationResult, type AppFunctionRoleUsersParams, type AppFunctionRuntimeContext, type AppFunctionSecretRef, type AppFunctionSecrets, type AppFunctionUtils, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkBrowserContext, type DingTalkClient, DingTalkExternalBrowserGuide, type DingTalkExternalBrowserGuideProps, type DingTalkLoginEnvironment, type DingTalkLoginFlow, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type DingTalkOAuthStartInput, type DingTalkOAuthStartResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoadDingTalkClientOptions, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestCache, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicFormGrant, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type RequestDingTalkAuthCodeOptions, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SchoolContactClass, type SchoolContactPerson, type SchoolContactRelationListParams, type SchoolContactRelationListResult, type SchoolContactRelationRecord, type SchoolContactSyncState, type SchoolContactTeacherListParams, type SchoolContactTeacherListResult, type SchoolContactTeacherMembershipRecord, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type StructuredExportCellStyle, type StructuredExportColumnDefinition, type StructuredExportCreateParams, type StructuredExportFormatDefinition, type StructuredExportFormatType, type StructuredExportGetParams, type StructuredExportScope, type StructuredExportSheetDefinition, type StructuredExportSourceDefinition, type StructuredExportStyleRule, type StructuredExportTask, type StructuredExportTaskStatus, type StructuredExportValueDefinition, type StructuredExportWorkbookDefinition, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type TrustedNodeV2Context, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateDingTalkCardParams, type UpdateDingTalkCardResult, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
|
|
3209
|
+
export { AdminList, type AdminListBatchAction, type AdminListColumn, type AdminListColumnPreference, type AdminListDataSource, type AdminListDataSourceOptions, type AdminListDataViewSourceOptions, type AdminListDensity, type AdminListExportDownloadOptions, type AdminListExportInput, type AdminListExportScope, type AdminListExportTask, type AdminListExportTaskStatus, type AdminListFormSourceOptions, type AdminListFunctionSourceOptions, type AdminListLockedPreference, type AdminListOption, type AdminListPreference, type AdminListPreferenceStore, type AdminListProps, type AdminListQuery, type AdminListResult, type AdminListRowAction, type AdminListSearchField, type AdminListSearchFieldType, type AdminListSearchPreference, type AdminListSelectionChange, type AdminListSort, type AdminListSortDirection, type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionAttachmentReference, type AppFunctionBase64File, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionContextV2, type AppFunctionDataViewApi, type AppFunctionFileReadInput, type AppFunctionFileReadOptions, type AppFunctionFilesApi, type AppFunctionFormApi, type AppFunctionFormDeleteResult, type AppFunctionFormFileReadOptions, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionHttpApi, type AppFunctionHttpRequest, type AppFunctionHttpResponse, type AppFunctionManifestV2, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionPlatformApi, type AppFunctionPlatformApiRequest, type AppFunctionPlatformApiResponse, type AppFunctionPlatformHttpApi, type AppFunctionPlatformRolesApi, type AppFunctionProcessApi, type AppFunctionProcessStartResult, type AppFunctionProcessTaskResult, type AppFunctionProcessWithdrawResult, type AppFunctionRoleBatchAddResult, type AppFunctionRoleListParams, type AppFunctionRoleMemberMutationResult, type AppFunctionRoleUsersParams, type AppFunctionRuntimeContext, type AppFunctionSecretRef, type AppFunctionSecrets, type AppFunctionUtils, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, DINGTALK_OAUTH_BROWSER_CONTEXT_CHANGED, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkBrowserContext, type DingTalkClient, DingTalkExternalBrowserGuide, type DingTalkExternalBrowserGuideProps, type DingTalkLoginEnvironment, type DingTalkLoginFlow, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type DingTalkOAuthStartInput, type DingTalkOAuthStartResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoadDingTalkClientOptions, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestCache, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicFormGrant, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type RequestDingTalkAuthCodeOptions, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SchoolContactClass, type SchoolContactPerson, type SchoolContactRelationListParams, type SchoolContactRelationListResult, type SchoolContactRelationRecord, type SchoolContactSyncState, type SchoolContactTeacher, type SchoolContactTeacherListParams, type SchoolContactTeacherListResult, type SchoolContactTeacherMembershipRecord, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type StructuredExportCellStyle, type StructuredExportColumnDefinition, type StructuredExportCreateParams, type StructuredExportFormatDefinition, type StructuredExportFormatType, type StructuredExportGetParams, type StructuredExportScope, type StructuredExportSheetDefinition, type StructuredExportSourceDefinition, type StructuredExportStyleRule, type StructuredExportTask, type StructuredExportTaskStatus, type StructuredExportValueDefinition, type StructuredExportWorkbookDefinition, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type TrustedNodeV2Context, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateDingTalkCardParams, type UpdateDingTalkCardResult, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAdminListPreferenceStore, createAuthClient, createDataViewAdminListSource, createFormAdminListSource, createFunctionAdminListSource, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, detectDingTalkLoginEnvironment, getAuthErrorExtra, getAuthErrorReason, getDingTalkClient, getDingTalkOAuthRecoveryMessage, isAuthChallengeRequired, isAuthClientError, isDingTalkContainer, isDingTalkJsApiReady, isWeChatBrowser, loadDingTalkClient, mergeAdminListPreference, requestDingTalkAuthCode, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<!-- OpenXiangda-Policy-Version: 7 -->
|
|
2
|
+
|
|
2
3
|
# AGENTS.md — OpenXiangda React SPA 应用工作区
|
|
3
4
|
|
|
4
5
|
本工作区是标准 React 18 + Vite + React Router 应用。默认模板只提供应用壳、账号菜单和一个首页,不是开发验证控制台。
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
- 调查预算默认为一次覆盖完整调用链的 CodeGraph 查询,只有明确缺失符号时再补一次精确查询;普通任务只加载一个领域技能。租约、构建或部署状态未变化时不重复输出相同进度,使用 `openxiangda task status --watch` 等待状态变化。
|
|
18
19
|
- 账号、角色、权限、数据范围、组织账号、RBAC、查询参数授权需求必须先运行 `openxiangda design gates --topic permissions --json`,选择 `managed-platform-account` / `existing-platform-user-assignment` / `static-role-permission` / `query-param-context`,输出权限矩阵后再实现。
|
|
19
20
|
- 应用角色只读查询组织账号时声明 `app:organization:read`;创建、修改账号/部门或重置密码时声明 `app:organization:manage`。创建角色、分配成员或维护权限组也必须在角色资源的 `apiPermissionCodes` 声明对应的 `app:role:manage`、`app:page-permission-group:manage`、`app:form-permission-group:manage`。
|
|
20
|
-
- 家校关系页面调用 `sdk.organization.schoolContact.*`;用 `SCHOOL_HEAD_TEACHER` 判断全局班主任身份,用 `teachers.list` 的 `isHeadTeacher`
|
|
21
|
+
- 家校关系页面调用 `sdk.organization.schoolContact.*`;用 `SCHOOL_HEAD_TEACHER` 判断全局班主任身份,用 `teachers.list` 的 `isHeadTeacher`、`teacher.managedClasses` 和 `class.headTeachers` 判断具体班级双向关系。已登录非游客用户无需绑定应用角色权限,默认范围是当前租户全部关系。只有明确需要本人或任教班级限制时才声明 `:self:read` / `:class:read`。
|
|
21
22
|
- 默认用户界面保持克制:左侧应用导航、顶部账号信息、首页内容区域。
|
|
22
23
|
- 不在默认可见页面展示 SDK、Runtime、Cookie、Proxy、Playwright、AI 验证、调试上下文、构建号等开发语言。
|
|
23
24
|
- 使用 React Router 管理路由,路由定义在 `src/app/router.tsx`。
|
|
@@ -128,7 +129,11 @@ React SPA 页面需要声明菜单 code、route code 和 path pattern。默认
|
|
|
128
129
|
页面中可以使用:
|
|
129
130
|
|
|
130
131
|
```tsx
|
|
131
|
-
import {
|
|
132
|
+
import {
|
|
133
|
+
PermissionBoundary,
|
|
134
|
+
useAppMenus,
|
|
135
|
+
useRuntimeBootstrap,
|
|
136
|
+
} from "openxiangda/runtime/react";
|
|
132
137
|
```
|
|
133
138
|
|
|
134
139
|
`PermissionBoundary` 只能做展示保护,不能替代后端权限。不要硬编码角色、前端模拟权限、只判断 query 参数或用空数组兜底伪装成功。后端返回 401 时跳登录,403 时展示无权限状态。
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<!-- OpenXiangda-Policy-Version: 7 -->
|
|
2
|
+
|
|
2
3
|
# AGENTS.md — OpenXiangda 工作区 AI 强约束
|
|
3
4
|
|
|
4
5
|
> 任何 AI(Qoder / Claude / Codex / Cursor / Copilot 等)在本工作区操作前 **必须先读完本文件**。
|
|
@@ -24,25 +25,25 @@ Delivery V2 自动从期望状态按资源指纹计算精确范围,使用 CLI
|
|
|
24
25
|
|
|
25
26
|
## 路由表 — 用户意图 → 命令 / skill
|
|
26
27
|
|
|
27
|
-
| 用户说(中 / 英)
|
|
28
|
-
|
|
29
|
-
| 发布 / 上线 / 部署 / publish / deploy
|
|
30
|
-
| 晋级生产
|
|
31
|
-
| 发布失败 / 断点续跑
|
|
32
|
-
| 创建应用 / 新建 app / 初始化工作区
|
|
33
|
-
| 绑定已有应用
|
|
34
|
-
| 创建 / 改表单字段、schema、表单页
|
|
35
|
-
| 导出表单数据 / 图片 / 附件 / Excel / zip
|
|
36
|
-
| 创建 / 改自定义代码页、portal、看板
|
|
37
|
-
| 审批流程 / 流程节点 / JS_CODE
|
|
38
|
-
| 自动化 / 定时任务 / 提交触发 / cron
|
|
28
|
+
| 用户说(中 / 英) | 用 skill | 第一条命令 |
|
|
29
|
+
| --------------------------------------------------------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| 发布 / 上线 / 部署 / publish / deploy | `openxiangda-core` | `openxiangda check --environment preproduction` → `openxiangda deploy preproduction` |
|
|
31
|
+
| 晋级生产 | `openxiangda-core` | `openxiangda deploy production --package <packageDigest>` |
|
|
32
|
+
| 发布失败 / 断点续跑 | `openxiangda-core` | `openxiangda status <runId>` → `openxiangda retry <runId>` |
|
|
33
|
+
| 创建应用 / 新建 app / 初始化工作区 | `openxiangda-app` | `openxiangda workspace init <dir> --profile <name> --app-name "..."` |
|
|
34
|
+
| 绑定已有应用 | `openxiangda-app` | `openxiangda workspace bind --profile <name> --app-type APP_XXX` |
|
|
35
|
+
| 创建 / 改表单字段、schema、表单页 | `openxiangda-form` | 编辑表单并声明 form-setting bundle → `resource publish form-setting --only <code>` 暂存;整应用由 `app-finalize` 激活 |
|
|
36
|
+
| 导出表单数据 / 图片 / 附件 / Excel / zip | `openxiangda-form` | `openxiangda form export <formCode> --mode xlsx | xlsx-images | package --profile <name>` |
|
|
37
|
+
| 创建 / 改自定义代码页、portal、看板 | `openxiangda-page` | 编辑 `src/pages/<code>/` → `workspace publish --page <code>` |
|
|
38
|
+
| 审批流程 / 流程节点 / JS_CODE | `openxiangda-workflow-automation` | `openxiangda workflow validate / create / publish` |
|
|
39
|
+
| 自动化 / 定时任务 / 提交触发 / cron | `openxiangda-workflow-automation` | `openxiangda automation validate / create / publish / enable` |
|
|
39
40
|
| 账号 / 角色 / 权限组 / 字段权限 / 数据范围 / 查询参数授权 | `openxiangda-permission-settings` | 先 `openxiangda design gates --topic permissions --json`,再 `openxiangda permission ...` / `openxiangda settings ...` |
|
|
40
|
-
| 查应用结构 / 快照 / 对比 / 排查 / 报错
|
|
41
|
-
| 登录 / 切平台 / token / whoami
|
|
42
|
-
| 多表只读联表查询 / 报表数据源
|
|
43
|
-
| 调外部 / 第三方 API / 钉钉 / 自建系统
|
|
44
|
-
| 外部后端 / 三方系统调用享搭 / AK/SK / 开放接口
|
|
45
|
-
| 资源诊断 / 小步修复 / 同步 manifest
|
|
41
|
+
| 查应用结构 / 快照 / 对比 / 排查 / 报错 | `openxiangda-inspect` | `openxiangda app snapshot <APP_XXX> --profile <name> --json` |
|
|
42
|
+
| 登录 / 切平台 / token / whoami | `openxiangda-core` | `openxiangda env --profile <name>` / `openxiangda auth status` |
|
|
43
|
+
| 多表只读联表查询 / 报表数据源 | `openxiangda-form`(data view) | 在 `src/resources/data-views/<code>.json` 声明 → `resource publish` |
|
|
44
|
+
| 调外部 / 第三方 API / 钉钉 / 自建系统 | `openxiangda-page`(connector) | 在 `src/resources/connectors/<code>.json` 声明 → `sdk.connector.invoke()` |
|
|
45
|
+
| 外部后端 / 三方系统调用享搭 / AK/SK / 开放接口 | `openxiangda-open-api` | `openxiangda open-api spec list --search <keyword> --json` |
|
|
46
|
+
| 资源诊断 / 小步修复 / 同步 manifest | 对应资源 skill | `openxiangda route | public-access | auth-config | function | connector | notification | data-view | menu | permission ... --dry-run` |
|
|
46
47
|
|
|
47
48
|
## 必须遵守
|
|
48
49
|
|
|
@@ -51,7 +52,7 @@ Delivery V2 自动从期望状态按资源指纹计算精确范围,使用 CLI
|
|
|
51
52
|
- ✅ L2/L3 保留 context → propose → 用户确认 → approve;默认只创建 change/coverage/release,完整文档由 `sdd render` 按需生成。approval、coverage 与实际发布范围为硬门禁,未完成的任务/证据/规格文案只告警。需要严格文档门禁时显式配置 `strictDocumentation: true`。
|
|
52
53
|
- ✅ 涉及账号、角色、权限、数据范围、组织账号、RBAC、查询参数授权时,先跑 `openxiangda design gates --topic permissions --json`,选择 `managed-platform-account` / `existing-platform-user-assignment` / `static-role-permission` / `query-param-context`,并输出权限矩阵后再改资源。
|
|
53
54
|
- ✅ 某个应用角色如果要查询组织账号,声明 `app:organization:read`;如需创建、修改账号/部门或重置密码,再声明 `app:organization:manage`。角色设置、页面/表单权限组等能力同样通过 `src/resources/roles/<code>.json` 的 `apiPermissionCodes` 显式授权,例如 `app:role:manage`、`app:page-permission-group:manage`、`app:form-permission-group:manage`。
|
|
54
|
-
- ✅ 查询家校通讯录的家长、学生、教师、班主任身份和班级/监护关系时使用 `sdk.organization.schoolContact.*` / `ctx.organization.schoolContact.*`。`SCHOOL_HEAD_TEACHER` 只判断全局身份,具体班级必须读取 `teachers.list` 的 `isHeadTeacher`。已登录非游客用户无需绑定应用角色权限,默认查询当前租户全部关系;只有明确要求时才声明 `:self:read` 或 `:class:read` 收紧。
|
|
55
|
+
- ✅ 查询家校通讯录的家长、学生、教师、班主任身份和班级/监护关系时使用 `sdk.organization.schoolContact.*` / `ctx.organization.schoolContact.*`。`SCHOOL_HEAD_TEACHER` 只判断全局身份,具体班级必须读取 `teachers.list` 的 `isHeadTeacher`、`teacher.managedClasses` 和 `class.headTeachers`。已登录非游客用户无需绑定应用角色权限,默认查询当前租户全部关系;只有明确要求时才声明 `:self:read` 或 `:class:read` 收紧。
|
|
55
56
|
- ✅ 单文件改动默认按 change 和逻辑资源增量发布:`workspace plan --profile <name> --change <change> --changed`,再 `workspace publish --profile <name> --change <change> --only pages/a,forms/b --dry-run` → 正式发布。
|
|
56
57
|
- ✅ 用户 token 在 `~/.openxiangda/profiles.json`;项目 state 在 `.openxiangda/state.json`(只存 ID)。
|
|
57
58
|
- ✅ 共享环境(`APP_OSS_*`、反馈机器人等)在 `~/.openxiangda/.env`,项目 `.env` 仅做 per-workspace override。
|