gap-nodejs-sdk 1.0.122 → 1.0.123

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.
@@ -6,7 +6,7 @@ import Base from "../../../../base/Base";
6
6
  export default class Auth extends Base implements AuthAbstractClass {
7
7
  static API_VERSION: GapApiVersion;
8
8
  static login(data: Request.LoginRequest): Promise<Response.LoginResponse>;
9
- static forgetPassword(data: Request.ForgetPasswordRequest): Promise<Response.ForgetPasswordResponse>;
9
+ static forgotPassword(data: Request.ForgotPasswordRequest): Promise<Response.ForgotPasswordResponse>;
10
10
  static getDnsInfo(data: Request.GetDnsInfoRequest): Promise<Response.GetDnsInfoResponse>;
11
11
  }
12
12
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/api/auth.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;WAclE,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CASxG"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/api/auth.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;WAclE,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAW7F,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CASxG"}
@@ -19,11 +19,12 @@ export default class Auth extends Base {
19
19
  return Model.LoginInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
20
20
  });
21
21
  }
22
- static forgetPassword(data) {
22
+ static forgotPassword(data) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
+ const formData = objectToFormData(data);
24
25
  yield this.client.post({
25
26
  path: endpoints.auth.FORGOT_PASSWORD,
26
- data: data
27
+ data: formData
27
28
  });
28
29
  return null;
29
30
  });
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  LOGIN: string;
3
3
  FORGOT_PASSWORD: string;
4
+ RESET_PASSWORD: string;
4
5
  GET_DNS_INFO: string;
5
6
  };
6
7
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/endpoints/auth.ts"],"names":[],"mappings":";;;;;AAAA,wBAIC"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/endpoints/auth.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKC"}
@@ -1,5 +1,6 @@
1
1
  export default {
2
2
  LOGIN: "/v1/user/form/login",
3
3
  FORGOT_PASSWORD: "/v1/user/form/forgot-password",
4
- GET_DNS_INFO: "https://dns.fast-boy.net/site/get-info"
4
+ RESET_PASSWORD: "/v1/user/form/reset-password",
5
+ GET_DNS_INFO: "https://dns.fast-boy.net/site/get-info",
5
6
  };
@@ -3,8 +3,9 @@ export declare type LoginRequest = {
3
3
  password: string;
4
4
  g_client_id: string;
5
5
  };
6
- export declare type ForgetPasswordRequest = {
6
+ export declare type ForgotPasswordRequest = {
7
7
  email: string;
8
+ g_client_id: string;
8
9
  };
9
10
  export declare type GetDnsInfoRequest = {
10
11
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/api/base_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACf,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/api/base_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -9,7 +9,7 @@ export declare type LoginResponse = Nullable<{
9
9
  access_token: string;
10
10
  user_info: UserInfo;
11
11
  }>;
12
- export declare type ForgetPasswordResponse = null;
12
+ export declare type ForgotPasswordResponse = null;
13
13
  declare type AppVersion = Nullable<{
14
14
  id: number;
15
15
  type: string;