qing-client 0.0.54 → 0.0.55
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 +4 -0
- package/package.json +1 -1
package/README.MD
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* **提供商与用量**(provider、usage)
|
|
11
11
|
* **组织与多租户**(org)
|
|
12
12
|
* **投递流与 Ez 能力**(deliveryStream、ezAbility)
|
|
13
|
+
* **IM 群组**(im:群组创建、列表、入群门槛等)
|
|
13
14
|
* **静态 HTML 托管**(gateway-h5,frontHost)
|
|
14
15
|
|
|
15
16
|
该 SDK 为 **公开 npm 包**,任何 **拥有合法账号的第三方开发者** 均可使用。
|
|
@@ -142,6 +143,7 @@ const client = new Client({
|
|
|
142
143
|
gatewayH5ServiceUrl: "http://gateway-h5-service",
|
|
143
144
|
deliveryStreamServiceUrl: "http://delivery-stream-service",
|
|
144
145
|
ezAbilityServiceUrl: "http://ez-ability-service",
|
|
146
|
+
imServiceUrl: "http://im-service",
|
|
145
147
|
});
|
|
146
148
|
```
|
|
147
149
|
|
|
@@ -182,6 +184,7 @@ client.setUserContext({
|
|
|
182
184
|
| `client.frontHost` | 静态 HTML 托管(gateway-h5) |
|
|
183
185
|
| `client.deliveryStream` | 投递流 |
|
|
184
186
|
| `client.ezAbility` | Ez 能力 |
|
|
187
|
+
| `client.im` | IM 群组(群组管理、入群门槛等) |
|
|
185
188
|
|
|
186
189
|
`client.files` 与 `client.file` 指向同一后端(fileServiceUrl),仅路径前缀不同;也可单独 `import { FileService } from "qing-client"` 并传入配置(如 `new FileService(config, 'files')` 或 `'file'`)。
|
|
187
190
|
|
|
@@ -277,6 +280,7 @@ client.setUserContext({
|
|
|
277
280
|
- **client.org**:组织/项目/应用 CRUD、解析等,见 `OrgService` 与 `types/org`。
|
|
278
281
|
- **client.deliveryStream**:投递流、版本、需求等,见 `DeliveryStreamService` 与 `types/delivery-stream`。
|
|
279
282
|
- **client.ezAbility**:需求枚举、PRD/MVPRD 生成、任务查询等,见 `EzAbilityService` 与 `types/ez-ability`。
|
|
283
|
+
- **client.im**:群组创建、列表;支持 `pid`/`org_id`、`memberIds`、入群门槛(requireAdmin/requireSuperAdmin),见 `ImService` 与 `types/im`。
|
|
280
284
|
- **client.files / client.file**:文件服务(files 为新路由,file 兼容老项目);方法同下。
|
|
281
285
|
- **FileService**(独立实例):`createFile`、`getFileById`、`listFiles`、`getStorageStats`、`generateOSSUploadSign`、`getFolderTree`、`getDownloadUrl` 等,见 `FileService` 与 `types/file`。构造时可选 `new FileService(config, 'files')` 或 `'file'`。
|
|
282
286
|
|