icms-api 0.1.7 → 0.1.9

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.
@@ -17,6 +17,28 @@ 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
+ * @param account 邮箱地址
35
+ * @returns 是否发送成功
36
+ */
37
+ sendVCode(account: string): Promise<boolean>;
38
+ /**
39
+ * 检查用户名(手机号/邮箱)是否已注册
40
+ */
41
+ checkRegistered(username: string): Promise<boolean>;
20
42
  loadI18nList(): Promise<Array<I18NWebsite>>;
21
43
  loadWebsite(params?: Readonly<{
22
44
  showNav?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "icms-api",
3
3
  "private": false,
4
- "version": "0.1.7",
4
+ "version": "0.1.9",
5
5
  "description": "对iCMS内容管理系统API的封装,使用该API能快速使用iCMS搭建您的WebApp!",
6
6
  "type": "module",
7
7
  "main": "./dist/icms-api.cjs.js",