@chevre/domain 20.3.0 → 20.4.0-alpha.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.
@@ -29,8 +29,9 @@ export declare class MongoRepository {
29
29
  id: string;
30
30
  };
31
31
  member: {
32
- id: string;
33
32
  hasRole?: factory.iam.IMemberHasRole;
33
+ id: string;
34
+ image?: string;
34
35
  name?: string;
35
36
  };
36
37
  }): Promise<void>;
@@ -188,7 +188,7 @@ class MongoRepository {
188
188
  const doc = yield this.memberModel.findOneAndUpdate({
189
189
  'project.id': { $eq: params.project.id },
190
190
  'member.id': { $eq: params.member.id }
191
- }, Object.assign(Object.assign({ updatedAt: new Date() }, (Array.isArray(params.member.hasRole)) ? { 'member.hasRole': params.member.hasRole } : undefined), (typeof params.member.name === 'string') ? { 'member.name': params.member.name } : undefined))
191
+ }, Object.assign(Object.assign(Object.assign({ updatedAt: new Date() }, (Array.isArray(params.member.hasRole)) ? { 'member.hasRole': params.member.hasRole } : undefined), (typeof params.member.image === 'string') ? { 'member.image': params.member.image } : undefined), (typeof params.member.name === 'string') ? { 'member.name': params.member.name } : undefined))
192
192
  .exec();
193
193
  if (doc === null) {
194
194
  throw new factory.errors.NotFound(this.memberModel.modelName);
@@ -920,7 +920,7 @@ class MongoRepository {
920
920
  aggregate.project((projection !== undefined && projection !== null)
921
921
  ? projection
922
922
  : {
923
- _id: 0,
923
+ // _id: 0,
924
924
  __v: 0,
925
925
  createdAt: 0,
926
926
  updatedAt: 0
@@ -42,6 +42,7 @@ class CognitoRepository {
42
42
  givenName: '',
43
43
  familyName: '',
44
44
  email: '',
45
+ image: '',
45
46
  telephone: '',
46
47
  additionalProperty: additionalProperty
47
48
  };
@@ -60,6 +61,10 @@ class CognitoRepository {
60
61
  // tslint:disable-next-line:max-line-length no-single-line-block-comment
61
62
  profile.email = (userAttribute.Value !== undefined) ? userAttribute.Value : /* istanbul ignore next: please write tests */ '';
62
63
  break;
64
+ case 'picture':
65
+ // tslint:disable-next-line:max-line-length no-single-line-block-comment
66
+ profile.image = (userAttribute.Value !== undefined) ? userAttribute.Value : /* istanbul ignore next: please write tests */ '';
67
+ break;
63
68
  case 'phone_number':
64
69
  // tslint:disable-next-line:max-line-length no-single-line-block-comment
65
70
  profile.telephone = (userAttribute.Value !== undefined) ? userAttribute.Value : /* istanbul ignore next: please write tests */ '';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.288.0",
12
+ "@chevre/factory": "4.289.0-alpha.0",
13
13
  "@cinerino/sdk": "3.139.0",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
@@ -120,5 +120,5 @@
120
120
  "postversion": "git push origin --tags",
121
121
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
122
122
  },
123
- "version": "20.3.0"
123
+ "version": "20.4.0-alpha.0"
124
124
  }