@longvansoftware/storefront-js-client 3.0.8 → 3.1.0

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.
@@ -121,8 +121,8 @@ exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
121
121
  }
122
122
  `;
123
123
  exports.CREATE_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
124
- mutation CreateUserDetail($userLoginId: String!, $partnerId: String!) {
125
- createUserDetail(userLoginId: $userLoginId, partnerId: $partnerId) {
124
+ mutation CreateUserDetail($userLoginId: String!, $orgId: String!) {
125
+ createUserDetail(userLoginId: $userLoginId, orgId: $orgId) {
126
126
  partyId
127
127
  orgId
128
128
  fullName
@@ -144,7 +144,25 @@ exports.CREATE_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
144
144
  `;
145
145
  exports.CREATE_ORG_MUTATION = (0, graphql_tag_1.gql) `
146
146
  mutation CreateOrg($orgName: String!) {
147
- createOrg(orgName: $orgName)
147
+ createOrg(orgName: $orgName) {
148
+ id
149
+ partyId
150
+ codeId
151
+ groupName
152
+ groupType
153
+ shortName
154
+ groupNameLocal
155
+ officeSiteName
156
+ comments
157
+ logoImageUrl
158
+ isIncorporated
159
+ federalTaxId
160
+ description
161
+ deleted
162
+ status
163
+ positionIndexId
164
+ prefix
165
+ }
148
166
  }
149
167
  `;
150
168
  exports.ADD_ROLE_USER_MUTATION = (0, graphql_tag_1.gql) `
@@ -162,7 +162,7 @@ class AuthService extends serviceSDK_1.Service {
162
162
  return __awaiter(this, void 0, void 0, function* () {
163
163
  const variables = {
164
164
  userLoginId,
165
- partnerId: this.orgId,
165
+ orgId: this.orgId,
166
166
  };
167
167
  try {
168
168
  const response = yield this.graphqlMutation(mutations_1.CREATE_USER_DETAIL_MUTATION, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.0.8",
3
+ "version": "3.1.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [