@chevre/domain 21.21.0-alpha.11 → 21.21.0-alpha.12

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.
@@ -54,6 +54,7 @@ export declare class MongoRepository {
54
54
  settings?: {
55
55
  sendEmailMessage?: factory.project.ISendEmailMessageSettings;
56
56
  sendgridApiKey?: string;
57
+ tokenIssuers?: string[];
57
58
  };
58
59
  subscription?: {
59
60
  useEventServiceAsProduct?: boolean;
@@ -109,9 +109,9 @@ class MongoRepository {
109
109
  });
110
110
  }
111
111
  findByIdAndIUpdate(params) {
112
- var _a, _b, _c, _d, _e, _f;
112
+ var _a, _b, _c, _d, _e, _f, _g, _h;
113
113
  return __awaiter(this, void 0, void 0, function* () {
114
- yield this.projectModel.findOneAndUpdate({ _id: params.id }, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ updatedAt: new Date() }, (typeof params.alternateName === 'string' && params.alternateName.length > 0)
114
+ yield this.projectModel.findOneAndUpdate({ _id: params.id }, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ updatedAt: new Date() }, (typeof params.alternateName === 'string' && params.alternateName.length > 0)
115
115
  ? { alternateName: params.alternateName }
116
116
  : undefined), (typeof params.name === 'string' && params.name.length > 0) ? { name: params.name } : undefined), (typeof params.logo === 'string' && params.logo.length > 0) ? { logo: params.logo } : undefined), (typeof ((_c = (_b = (_a = params.settings) === null || _a === void 0 ? void 0 : _a.sendEmailMessage) === null || _b === void 0 ? void 0 : _b.sender) === null || _c === void 0 ? void 0 : _c.email) === 'string')
117
117
  ? {
@@ -121,9 +121,11 @@ class MongoRepository {
121
121
  }
122
122
  : undefined), (typeof ((_d = params.settings) === null || _d === void 0 ? void 0 : _d.sendgridApiKey) === 'string')
123
123
  ? { 'settings.sendgridApiKey': params.settings.sendgridApiKey }
124
- : undefined), (typeof ((_e = params.subscription) === null || _e === void 0 ? void 0 : _e.useEventServiceAsProduct) === 'boolean')
124
+ : undefined), (Array.isArray((_e = params.settings) === null || _e === void 0 ? void 0 : _e.tokenIssuers))
125
+ ? { 'settings.tokenIssuers': (_f = params.settings) === null || _f === void 0 ? void 0 : _f.tokenIssuers }
126
+ : undefined), (typeof ((_g = params.subscription) === null || _g === void 0 ? void 0 : _g.useEventServiceAsProduct) === 'boolean')
125
127
  ? { 'subscription.useEventServiceAsProduct': params.subscription.useEventServiceAsProduct }
126
- : undefined), (typeof ((_f = params.hasMerchantReturnPolicy) === null || _f === void 0 ? void 0 : _f.sameAs) === 'string')
128
+ : undefined), (typeof ((_h = params.hasMerchantReturnPolicy) === null || _h === void 0 ? void 0 : _h.sameAs) === 'string')
127
129
  ? { 'hasMerchantReturnPolicy.sameAs': params.hasMerchantReturnPolicy.sameAs }
128
130
  : undefined), { $unset: {
129
131
  'settings.cognito': 1 // 廃止(2023-11-10~)
package/package.json CHANGED
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "21.21.0-alpha.11"
113
+ "version": "21.21.0-alpha.12"
114
114
  }