@longvansoftware/storefront-js-client 3.8.3 → 3.8.5

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.
@@ -193,8 +193,15 @@ exports.CREATE_USER_DETAIL_MUTATION_V3 = (0, graphql_tag_1.gql) `
193
193
  $orgId: String
194
194
  $phone: String
195
195
  $name: String
196
+ $email: String
196
197
  ) {
197
- createUserDetail(userLoginId: $userLoginId, orgId: $orgId, phone: $phone) {
198
+ createUserDetail(
199
+ userLoginId: $userLoginId
200
+ orgId: $orgId
201
+ phone: $phone
202
+ name: $name
203
+ email: $email
204
+ ) {
198
205
  partyId
199
206
  orgId
200
207
  fullName
@@ -38,7 +38,7 @@ export declare class AuthService extends Service {
38
38
  linkingUserLoginAndUserDetail(userLoginId: string, partyId: string): Promise<any>;
39
39
  createUserDetail(userLoginId: string): Promise<any>;
40
40
  createUserDetailV2(userLoginId: string, phone: string): Promise<any>;
41
- createUserDetailV3(userLoginId: string, phone: string, name: string): Promise<any>;
41
+ createUserDetailV3(userLoginId: string, phone: string, name: string, email: string): Promise<any>;
42
42
  sendSmsVerifyCode(username: string): Promise<any>;
43
43
  verifyCode(username: string, code: string): Promise<any>;
44
44
  resetPassword(username: string, newPassword: string, accessToken: string): Promise<any>;
@@ -191,16 +191,17 @@ class AuthService extends serviceSDK_1.Service {
191
191
  }
192
192
  });
193
193
  }
194
- createUserDetailV3(userLoginId, phone, name) {
194
+ createUserDetailV3(userLoginId, phone, name, email) {
195
195
  return __awaiter(this, void 0, void 0, function* () {
196
196
  const variables = {
197
197
  userLoginId,
198
198
  orgId: this.orgId,
199
199
  phone,
200
- name
200
+ name,
201
+ email,
201
202
  };
202
203
  try {
203
- const response = yield this.graphqlMutation(mutations_1.CREATE_USER_DETAIL_MUTATION_V2, variables);
204
+ const response = yield this.graphqlMutation(mutations_1.CREATE_USER_DETAIL_MUTATION_V3, variables);
204
205
  return response.createUserDetail;
205
206
  }
206
207
  catch (error) {
@@ -344,7 +345,7 @@ class AuthService extends serviceSDK_1.Service {
344
345
  groupTenantId,
345
346
  };
346
347
  try {
347
- const response = yield this.graphqlMutation(mutations_1.CREATE_ORG_MUTATION, variables);
348
+ const response = yield this.graphqlMutationV2(mutations_1.CREATE_ORG_MUTATION, variables);
348
349
  return response.createOrg;
349
350
  }
350
351
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.8.3",
3
+ "version": "3.8.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [