@chevre/domain 22.7.0 → 22.8.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.
|
@@ -24,7 +24,7 @@ class OwnershipInfoRepo {
|
|
|
24
24
|
}
|
|
25
25
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
26
26
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
27
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
28
28
|
const andConditions = [];
|
|
29
29
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
30
30
|
/* istanbul ignore else */
|
|
@@ -96,15 +96,15 @@ class OwnershipInfoRepo {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
// 互換性維持対応
|
|
99
|
-
if (params.typeOfGood === undefined || params.typeOfGood === null) {
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
if (typeof params.typeOfGood.id === 'string') {
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
if (Array.isArray(params.typeOfGood.ids)) {
|
|
106
|
-
|
|
107
|
-
}
|
|
99
|
+
// if (params.typeOfGood === undefined || params.typeOfGood === null) {
|
|
100
|
+
// params.typeOfGood = {};
|
|
101
|
+
// }
|
|
102
|
+
// if (typeof (<any>params.typeOfGood).id === 'string') {
|
|
103
|
+
// params.typeOfGood.id = { $eq: (<any>params.typeOfGood).id };
|
|
104
|
+
// }
|
|
105
|
+
// if (Array.isArray((<any>params.typeOfGood).ids)) {
|
|
106
|
+
// params.typeOfGood.id = { $in: (<any>params.typeOfGood).ids };
|
|
107
|
+
// }
|
|
108
108
|
const typeOfGoodIdEq = (_l = (_k = params.typeOfGood) === null || _k === void 0 ? void 0 : _k.id) === null || _l === void 0 ? void 0 : _l.$eq;
|
|
109
109
|
if (typeof typeOfGoodIdEq === 'string') {
|
|
110
110
|
andConditions.push({
|
|
@@ -171,15 +171,16 @@ class OwnershipInfoRepo {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
174
|
+
// discontinue(2024-12-26~)
|
|
175
|
+
// const ownedByMembershipNumberIn = params.ownedBy?.memberOf?.membershipNumber?.$in;
|
|
176
|
+
// if (Array.isArray(ownedByMembershipNumberIn)) {
|
|
177
|
+
// andConditions.push({
|
|
178
|
+
// 'ownedBy.memberOf.membershipNumber': {
|
|
179
|
+
// $exists: true,
|
|
180
|
+
// $in: ownedByMembershipNumberIn
|
|
181
|
+
// }
|
|
182
|
+
// });
|
|
183
|
+
// }
|
|
183
184
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
184
185
|
/* istanbul ignore else */
|
|
185
186
|
if (params.ownedFrom instanceof Date) {
|
|
@@ -206,7 +207,7 @@ class OwnershipInfoRepo {
|
|
|
206
207
|
ownedFrom: { $lte: ownedFromLte }
|
|
207
208
|
});
|
|
208
209
|
}
|
|
209
|
-
const acquiredFromIdIn = (
|
|
210
|
+
const acquiredFromIdIn = (_t = (_s = params.acquiredFrom) === null || _s === void 0 ? void 0 : _s.id) === null || _t === void 0 ? void 0 : _t.$in;
|
|
210
211
|
if (Array.isArray(acquiredFromIdIn)) {
|
|
211
212
|
andConditions.push({
|
|
212
213
|
'acquiredFrom.id': {
|
|
@@ -442,7 +443,6 @@ class OwnershipInfoRepo {
|
|
|
442
443
|
if (params.ownedBy.typeOf === factory.organizationType.Organization) {
|
|
443
444
|
newOwner = {
|
|
444
445
|
id: params.ownedBy.id,
|
|
445
|
-
// project: params.ownedBy.project,
|
|
446
446
|
typeOf: params.ownedBy.typeOf
|
|
447
447
|
};
|
|
448
448
|
}
|
|
@@ -2,7 +2,6 @@ import * as COA from '@motionpicture/coa-service';
|
|
|
2
2
|
import { IAcceptedOfferWithoutDetail } from './factory';
|
|
3
3
|
import * as factory from '../../../../factory';
|
|
4
4
|
export import WebAPIIdentifier = factory.service.webAPI.Identifier;
|
|
5
|
-
export type IMembershipOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.permit.IPermit>;
|
|
6
5
|
export interface IAppliesToSurfrock {
|
|
7
6
|
identifier: string;
|
|
8
7
|
serviceOutput: {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "4.
|
|
14
|
+
"@chevre/factory": "4.392.0-alpha.0",
|
|
15
15
|
"@cinerino/sdk": "10.19.0-alpha.2",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.3.0",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"postversion": "git push origin --tags",
|
|
113
113
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
114
114
|
},
|
|
115
|
-
"version": "22.
|
|
115
|
+
"version": "22.8.0-alpha.0"
|
|
116
116
|
}
|