icms-api 0.1.7 → 0.1.8
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/icms-api.cjs.js +1 -1
- package/dist/icms-api.cjs.js.map +1 -1
- package/dist/icms-api.client.cjs.js +1 -1
- package/dist/icms-api.client.cjs.js.map +1 -1
- package/dist/icms-api.client.es.js +10 -0
- package/dist/icms-api.client.es.js.map +1 -1
- package/dist/icms-api.es.js +2 -0
- package/dist/icms-api.es.js.map +1 -1
- package/dist/icms-api.umd.js +1 -1
- package/dist/icms-api.umd.js.map +1 -1
- package/dist/types/client.d.ts +16 -0
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -17,6 +17,22 @@ export declare class ICMSClient {
|
|
|
17
17
|
password: string;
|
|
18
18
|
}>): Promise<Member | undefined>;
|
|
19
19
|
logout(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* 注册 C 端会员(手机号/邮箱 + 密码)
|
|
22
|
+
* @param username 手机号或邮箱
|
|
23
|
+
* @param password 密码
|
|
24
|
+
* @param nickname 昵称(可选)
|
|
25
|
+
* @returns 注册成功且已登录时返回 Member,否则 undefined
|
|
26
|
+
*/
|
|
27
|
+
register({ username, password, nickname }: Readonly<{
|
|
28
|
+
username: string;
|
|
29
|
+
password: string;
|
|
30
|
+
nickname?: string;
|
|
31
|
+
}>): Promise<Member | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* 检查用户名(手机号/邮箱)是否已注册
|
|
34
|
+
*/
|
|
35
|
+
checkRegistered(username: string): Promise<boolean>;
|
|
20
36
|
loadI18nList(): Promise<Array<I18NWebsite>>;
|
|
21
37
|
loadWebsite(params?: Readonly<{
|
|
22
38
|
showNav?: boolean;
|