@q2devel/q2-core 1.0.76 → 1.0.77

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.
@@ -3,6 +3,13 @@ import { Response } from './resetPasswordSevice.types';
3
3
  type ResetPasswordParams = {
4
4
  email: string;
5
5
  };
6
+ type SendNewPasswordParams = {
7
+ uid: string;
8
+ timestamp: string;
9
+ hash: string;
10
+ new_password: string;
11
+ };
6
12
  export declare const resetPassword: (ctx: CoreContext, { email }: ResetPasswordParams) => Promise<Response>;
13
+ export declare const sendNewPassword: (ctx: CoreContext, { uid, timestamp, hash, new_password }: SendNewPasswordParams) => Promise<Response>;
7
14
  export {};
8
15
  //# sourceMappingURL=resetPassword.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resetPassword.service.d.ts","sourceRoot":"","sources":["../../../../api/user/resetPassword/resetPassword.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,GACtB,KAAK,WAAW,EAChB,WAAW,mBAAmB,KAC/B,OAAO,CAAC,QAAQ,CAGlB,CAAA"}
1
+ {"version":3,"file":"resetPassword.service.d.ts","sourceRoot":"","sources":["../../../../api/user/resetPassword/resetPassword.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,qBAAqB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,aAAa,GACtB,KAAK,WAAW,EAChB,WAAW,mBAAmB,KAC/B,OAAO,CAAC,QAAQ,CAGlB,CAAA;AAED,eAAO,MAAM,eAAe,GACxB,KAAK,WAAW,EAChB,wCAAwC,qBAAqB,KAC9D,OAAO,CAAC,QAAQ,CAQlB,CAAA"}
@@ -2,3 +2,12 @@ export const resetPassword = async (ctx, { email }) => {
2
2
  const { data } = await ctx.axios.get(`/api/user/reset/${email}`);
3
3
  return data;
4
4
  };
5
+ export const sendNewPassword = async (ctx, { uid, timestamp, hash, new_password }) => {
6
+ const { data } = await ctx.axios.post(`/api/user/reset/password`, {
7
+ uid,
8
+ timestamp,
9
+ hash,
10
+ new_password,
11
+ });
12
+ return data;
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q2devel/q2-core",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {