lzh-common 0.0.267 → 0.0.268

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.
@@ -1,3 +1,4 @@
1
+ import { IUserInfoDB } from "../user/base.js";
1
2
  export type IVerifySmsClientCodeReq = {
2
3
  /** 手机号 */
3
4
  phone: string;
@@ -14,4 +15,15 @@ export type IVerifySmsClientCodeReq = {
14
15
  export type IVerifySmsClientCodeRes = {
15
16
  user_id: number;
16
17
  };
18
+ /** 请求参数:手机号登录/注册 */
19
+ export type IAuthSmsLoginReq = {
20
+ /** 手机号 */
21
+ phone: string;
22
+ /** 短信验证码 */
23
+ code: string;
24
+ /** 用户open_id */
25
+ open_id: string;
26
+ };
27
+ /** 返回参数:手机号登录/注册 */
28
+ export type IAuthSmsLoginRes = Pick<IUserInfoDB, 'id' | 'open_id' | 'phone_number'> & Partial<IUserInfoDB>;
17
29
  //# sourceMappingURL=sms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sms.d.ts","sourceRoot":"","sources":["../../src/auth/sms.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU;IACV,KAAK,EAAE,MAAM,CAAC;IACd,YAAY;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"sms.d.ts","sourceRoot":"","sources":["../../src/auth/sms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU;IACV,KAAK,EAAE,MAAM,CAAC;IACd,YAAY;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAMF,oBAAoB;AACpB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU;IACV,KAAK,EAAE,MAAM,CAAC;IACd,YAAY;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAoB;AACpB,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAC,SAAS,GAAC,cAAc,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lzh-common",
3
- "version": "0.0.267",
3
+ "version": "0.0.268",
4
4
  "description": "Shared TypeScript interfaces",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",