@longvansoftware/storefront-js-client 3.8.5 → 3.8.6

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.
@@ -48,8 +48,15 @@ class AuthService extends serviceSDK_1.Service {
48
48
  */
49
49
  register(registerRequest) {
50
50
  return __awaiter(this, void 0, void 0, function* () {
51
- const variables = { registerRequest };
52
- yield this.graphqlMutation(mutations_1.REGISTER_MUTATION, variables);
51
+ const mutation = mutations_1.REGISTER_MUTATION;
52
+ const variables = { orgId: this.orgId, registerRequest };
53
+ try {
54
+ const response = yield this.graphqlMutation(mutation, variables);
55
+ return response;
56
+ }
57
+ catch (error) {
58
+ throw error;
59
+ }
53
60
  });
54
61
  }
55
62
  getUserDetail(accessToken) {
@@ -22,8 +22,6 @@ export interface LoginResponse {
22
22
  export interface RegisterRequest {
23
23
  username: string;
24
24
  fullName: string;
25
- password: string;
26
- userIP: string;
27
25
  }
28
26
  export interface RegisterResponse {
29
27
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.8.5",
3
+ "version": "3.8.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [