@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.
|
@@ -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), (
|
|
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 ((
|
|
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