@clownlee/cores 1.0.21 → 1.0.22
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/dist/apis/auth.d.ts +6 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/apis/auth.d.ts
CHANGED
|
@@ -21,4 +21,10 @@ export default class SubAppAuthApis {
|
|
|
21
21
|
* @returns AccessToken和RefreshToken
|
|
22
22
|
*/
|
|
23
23
|
getSubAppToken(clientId: string, code: string, redirectUri?: string): Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* 获取租户列表 API(供注册/新增用户等场景选择租户)
|
|
26
|
+
* @param type 租户类型:LOGIN(登录)或 REGISTER(注册)
|
|
27
|
+
* @returns 租户列表
|
|
28
|
+
*/
|
|
29
|
+
getTenants(type?: 'LOGIN' | 'REGISTER'): Promise<any>;
|
|
24
30
|
}
|
package/dist/index.js
CHANGED
|
@@ -2990,6 +2990,16 @@ class SubAppAuthApis {
|
|
|
2990
2990
|
redirectUri
|
|
2991
2991
|
});
|
|
2992
2992
|
}
|
|
2993
|
+
/**
|
|
2994
|
+
* 获取租户列表 API(供注册/新增用户等场景选择租户)
|
|
2995
|
+
* @param type 租户类型:LOGIN(登录)或 REGISTER(注册)
|
|
2996
|
+
* @returns 租户列表
|
|
2997
|
+
*/
|
|
2998
|
+
async getTenants(type = "REGISTER") {
|
|
2999
|
+
return await this.http.post("/api/v1/iam/auth/register/tenants", {
|
|
3000
|
+
type
|
|
3001
|
+
});
|
|
3002
|
+
}
|
|
2993
3003
|
}
|
|
2994
3004
|
let Apis$4 = class Apis2 {
|
|
2995
3005
|
constructor(config) {
|