zentao-api 0.9.0 → 0.9.3
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 +1 -1
- package/dist/browser/zentao-api.global.js +18 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/override.js +19 -2
- package/dist/request/html-files.js +7 -43
- package/dist/request/index.d.ts +3 -3
- package/dist/types/module.d.ts +1 -1
- package/dist/types/response.d.ts +7 -0
- package/dist/utils/html.d.ts +18 -0
- package/dist/utils/html.js +55 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/url.d.ts +10 -0
- package/dist/utils/url.js +53 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -424,7 +424,7 @@ Action 的 `resultObjectType` 支持三种定义,`getModuleAction()` 和 `expo
|
|
|
424
424
|
|
|
425
425
|
省略时,在注册阶段为 `object` / `list` 动作补齐所属模块名,为其他形态补齐 `null`。动态规则读取 `beforeRequest` 执行后的 `params[param]`,要求是非空字符串。显式类型也适用于返回 `{id}` 的 `text` 动作。
|
|
426
426
|
|
|
427
|
-
内置类型沿用 SDK 资源名,如 `testcase`、`change` 和 `deliverable`。`my/
|
|
427
|
+
内置类型沿用 SDK 资源名,如 `testcase`、`change` 和 `deliverable`。`my/profile` 返回 `user`,`product/repos` 返回 `repo`;`relation/list` 可能混合多种对象,整体类型为 `null`,可读取各条记录已有的 `objectType`。类型字段不保证 `getObjectProps()` 已收录该类型的字段词典。
|
|
428
428
|
|
|
429
429
|
生成定义的例外在 `scripts/zentao-api-map.json` 中配置 `resultObjectType`,再运行注册表生成器;同一 scoped-list 的各来源必须具有一致的有效类型。
|
|
430
430
|
|