@chevre/domain 21.0.0-alpha.11 → 21.0.0-alpha.13
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
|
+
const factory = require("../../../factory");
|
|
6
7
|
const modelName = 'Event';
|
|
7
8
|
exports.modelName = modelName;
|
|
8
9
|
/**
|
|
@@ -121,6 +122,28 @@ schema.index({ 'workPerformed.identifier': 1, startDate: 1 }, {
|
|
|
121
122
|
'workPerformed.identifier': { $exists: true }
|
|
122
123
|
}
|
|
123
124
|
});
|
|
125
|
+
schema.index({ 'workPerformed.version': 1, startDate: 1 }, {
|
|
126
|
+
name: 'searchByWorkPerformedVersion',
|
|
127
|
+
partialFilterExpression: {
|
|
128
|
+
'workPerformed.version': { $exists: true }
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
// コンテンツ+バージョンに対するuniqueness
|
|
132
|
+
schema.index({
|
|
133
|
+
'project.id': 1,
|
|
134
|
+
'location.branchCode': 1,
|
|
135
|
+
'workPerformed.identifier': 1,
|
|
136
|
+
'workPerformed.version': 1
|
|
137
|
+
}, {
|
|
138
|
+
unique: true,
|
|
139
|
+
name: 'uniqueScreeningEventSeries',
|
|
140
|
+
partialFilterExpression: {
|
|
141
|
+
typeOf: factory.eventType.ScreeningEventSeries,
|
|
142
|
+
'location.branchCode': { $exists: true },
|
|
143
|
+
'workPerformed.identifier': { $exists: true },
|
|
144
|
+
'workPerformed.version': { $exists: true }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
124
147
|
schema.index({ startDate: 1 }, { name: 'searchByStartDate' });
|
|
125
148
|
schema.index({ endDate: 1, startDate: 1 }, { name: 'searchByEndDate' });
|
|
126
149
|
schema.index({ 'hasOfferCatalog.id': 1, startDate: 1 }, {
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@chevre/factory": "4.
|
|
12
|
+
"@chevre/factory": "4.310.0-alpha.0",
|
|
13
13
|
"@cinerino/sdk": "3.153.0",
|
|
14
14
|
"@motionpicture/coa-service": "9.2.0",
|
|
15
15
|
"@motionpicture/gmo-service": "5.2.0",
|
|
16
16
|
"@sendgrid/mail": "6.4.0",
|
|
17
|
-
"@surfrock/sdk": "1.2.0
|
|
17
|
+
"@surfrock/sdk": "1.2.0",
|
|
18
18
|
"@waiter/domain": "6.1.0",
|
|
19
19
|
"azure-storage": "^2.10.4",
|
|
20
20
|
"cdigit": "2.6.7",
|
|
@@ -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": "21.0.0-alpha.
|
|
123
|
+
"version": "21.0.0-alpha.13"
|
|
124
124
|
}
|