@snugdesk/core 0.2.26 → 0.2.27

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.
@@ -2184,9 +2184,7 @@ class TeamService {
2184
2184
  ${FIELDS_TEAM}
2185
2185
  }
2186
2186
  }`;
2187
- const gqlAPIServiceArguments = {
2188
- id,
2189
- };
2187
+ const gqlAPIServiceArguments = { id };
2190
2188
  const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2191
2189
  return response.data.getTeam;
2192
2190
  }
@@ -2196,15 +2194,26 @@ class TeamService {
2196
2194
  ${FIELDS_TEAM_MEMBER}
2197
2195
  }
2198
2196
  }`;
2199
- const gqlAPIServiceArguments = {
2200
- input,
2201
- };
2197
+ const gqlAPIServiceArguments = { input };
2202
2198
  if (condition) {
2203
2199
  gqlAPIServiceArguments.condition = condition;
2204
2200
  }
2205
2201
  const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2206
2202
  return response.data.createTeamMember;
2207
2203
  }
2204
+ async UpdateTeamMember(input, condition) {
2205
+ const statement = `mutation UpdateTeamMember($input: UpdateTeamMemberInput!, $condition: ModelTeamMemberConditionInput) {
2206
+ updateTeamMember(input: $input, condition: $condition) {
2207
+ ${FIELDS_TEAM_MEMBER}
2208
+ }
2209
+ }`;
2210
+ const gqlAPIServiceArguments = { input };
2211
+ if (condition) {
2212
+ gqlAPIServiceArguments.condition = condition;
2213
+ }
2214
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2215
+ return response.data.updateTeamMember;
2216
+ }
2208
2217
  async ListTeamMembershipsByUserId(userId, createdAt, sortDirection, filter, limit, nextToken) {
2209
2218
  const statement = `query ListTeamMembershipsByUserId($userId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelTeamMemberFilterInput, $limit: Int, $nextToken: String) {
2210
2219
  listTeamMembershipsByUserId(