@jctrans-materials/shared 1.0.41-beta.9 → 1.0.41

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/index.cjs.js CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -69,6 +69,17 @@ export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
69
69
 
70
70
  export { BoardQueryResult }
71
71
 
72
+ /**
73
+ * 修改/设置密码(需登录)
74
+ */
75
+ export declare function changePwdApi(data: {
76
+ account?: string;
77
+ verificationCodeUuid?: string;
78
+ verificationCodeVal?: string;
79
+ newPassword: string;
80
+ oldPassword?: string;
81
+ }): Promise<any>;
82
+
72
83
  export declare function checkAccountExistsFPApi(data: ForgotPasswordAccountData): Promise<any>;
73
84
 
74
85
  export declare function checkEmailCodeApi(data: {
@@ -951,6 +962,10 @@ export declare interface LocationUnifiedItem {
951
962
 
952
963
  export declare function loginApi(loginData: LoginDataParams): Promise<IResponse<ApiResponse<LoginResponseData>>>;
953
964
 
965
+ /**
966
+ * 验证码登录
967
+ * @description Endpoint changed to /auth/loginByCode
968
+ */
954
969
  export declare function loginByEmailOrMobileCodeApi(data: any): Promise<IResponse<ApiResponse<LoginResponseData>>>;
955
970
 
956
971
  export declare const loginByFacebookApi: (data: any) => Promise<IResponse<ApiResponse<ThirdResponseData>>>;
@@ -1214,16 +1229,38 @@ export declare const RefreshExpiresInTimeKey: string;
1214
1229
 
1215
1230
  export declare const RefreshTokenKey: string;
1216
1231
 
1232
+ /**
1233
+ * @deprecated 已改用 registerCustomizedApi
1234
+ */
1217
1235
  export declare function registerApi(data: any): Promise<any>;
1218
1236
 
1219
1237
  export declare function registerByThirdPartyApi(data: any): Promise<any>;
1220
1238
 
1239
+ /**
1240
+ * 定制化注册接口(统一支持新设公司/加入已有公司)
1241
+ */
1242
+ export declare function registerCustomizedApi(data: any): Promise<any>;
1243
+
1221
1244
  export declare function registerJoinCompanyApi(data: any): Promise<any>;
1222
1245
 
1246
+ /**
1247
+ * @deprecated 已改用 registerThirdPartyCustomizedApi
1248
+ */
1223
1249
  export declare function registerJoinCompanyBindWechatApi(data: any): Promise<any>;
1224
1250
 
1251
+ /**
1252
+ * @deprecated 已改用 registerCustomizedApi
1253
+ */
1225
1254
  export declare function registerJoinCompByThirdPartyApi(data: any): Promise<any>;
1226
1255
 
1256
+ /**
1257
+ * 定制化第三方注册接口(统一支持微信/Facebook/LinkedIn)
1258
+ */
1259
+ export declare function registerThirdPartyCustomizedApi(data: any): Promise<any>;
1260
+
1261
+ /**
1262
+ * @deprecated 已改用 registerThirdPartyCustomizedApi
1263
+ */
1227
1264
  export declare function registerUserCompBindWechatApi(data: any): Promise<any>;
1228
1265
 
1229
1266
  export declare const RememberMeAccountKey: string;
@@ -1369,6 +1406,11 @@ export declare interface SearchWithScopeParams extends SearchByNameParams {
1369
1406
  provinceId?: number;
1370
1407
  }
1371
1408
 
1409
+ /**
1410
+ * 发送邮箱验证码(旧接口)
1411
+ * @deprecated 验证码登录场景已改用 sendLoginCodeCustomizedApi;
1412
+ * 保留供注册/完善信息场景兼容使用
1413
+ */
1372
1414
  export declare function sendEmailCodeApi(data: {
1373
1415
  target: string;
1374
1416
  countryId?: number;
@@ -1376,6 +1418,24 @@ export declare function sendEmailCodeApi(data: {
1376
1418
  uuid?: string;
1377
1419
  }): Promise<any>;
1378
1420
 
1421
+ /**
1422
+ * 验证码登录 - 发送验证码(定制化接口)
1423
+ * @description 仅用于验证码登录场景,会先校验账号是否存在;
1424
+ * 注册/完善信息场景继续使用旧接口 sendEmailCodeApi/sendMobileCodeApi
1425
+ */
1426
+ export declare function sendLoginCodeCustomizedApi(data: {
1427
+ target: string;
1428
+ areaCode?: string;
1429
+ type: string;
1430
+ uuid: string;
1431
+ code: string;
1432
+ }): Promise<any>;
1433
+
1434
+ /**
1435
+ * 发送手机验证码(旧接口)
1436
+ * @deprecated 验证码登录场景已改用 sendLoginCodeCustomizedApi;
1437
+ * 保留供注册/完善信息场景兼容使用
1438
+ */
1379
1439
  export declare function sendMobileCodeApi(data: {
1380
1440
  target: string;
1381
1441
  countryId?: number;
package/dist/index.esm.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jctrans-materials/shared",
3
- "version": "1.0.41-beta.9",
3
+ "version": "1.0.41",
4
4
  "private": false,
5
5
  "description": "Shared utilities including auth, request, crypto, and GrowingIO analytics.",
6
6
  "main": "dist/index.cjs.js",