@chevre/domain 28.0.0-alpha.23 → 28.0.0-alpha.24
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.
|
@@ -40,28 +40,6 @@ export declare class AdminEventSeriesRepo {
|
|
|
40
40
|
};
|
|
41
41
|
id: string;
|
|
42
42
|
}): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* 既存施設コンテンツの最大バージョンを集計する
|
|
45
|
-
*/
|
|
46
|
-
aggregateMaxVersion(params: {
|
|
47
|
-
project: {
|
|
48
|
-
id: {
|
|
49
|
-
$eq: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
workPerformed: {
|
|
53
|
-
identifier: {
|
|
54
|
-
$eq: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
location: {
|
|
58
|
-
branchCode: {
|
|
59
|
-
$in: string[];
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}): Promise<{
|
|
63
|
-
maxVersion: string;
|
|
64
|
-
}>;
|
|
65
43
|
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, factory.eventSeries.IAttributes & {
|
|
66
44
|
_id: string;
|
|
67
45
|
}, import("./mongoose/virtuals").IVirtuals, {}> & factory.eventSeries.IAttributes & {
|
|
@@ -130,37 +130,41 @@ class AdminEventSeriesRepo {
|
|
|
130
130
|
}, { projection: { _id: 1 } })
|
|
131
131
|
.exec();
|
|
132
132
|
}
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
async aggregateMaxVersion(params
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
133
|
+
// /**
|
|
134
|
+
// * 既存施設コンテンツの最大バージョンを集計する
|
|
135
|
+
// */
|
|
136
|
+
// public async aggregateMaxVersion(params: {
|
|
137
|
+
// project: { id: { $eq: string } };
|
|
138
|
+
// workPerformed: { identifier: { $eq: string } };
|
|
139
|
+
// location: { branchCode: { $in: string[] } };
|
|
140
|
+
// }): Promise<{ maxVersion: string }> {
|
|
141
|
+
// const aggregations = await this.eventSeriesModel.aggregate<{ maxVersion: number }>([
|
|
142
|
+
// {
|
|
143
|
+
// $match: {
|
|
144
|
+
// 'project.id': { $eq: params.project.id.$eq },
|
|
145
|
+
// 'workPerformed.identifier': { $exists: true, $eq: params.workPerformed.identifier.$eq },
|
|
146
|
+
// 'workPerformed.version': { $exists: true },
|
|
147
|
+
// 'location.branchCode': { $exists: true, $in: params.location.branchCode.$in }
|
|
148
|
+
// }
|
|
149
|
+
// },
|
|
150
|
+
// {
|
|
151
|
+
// $project: {
|
|
152
|
+
// // workPerformed: '$workPerformed',
|
|
153
|
+
// version: { $toLong: '$workPerformed.version' } // support YYYYMMDDHHmmss
|
|
154
|
+
// }
|
|
155
|
+
// },
|
|
156
|
+
// {
|
|
157
|
+
// $group: {
|
|
158
|
+
// _id: null,
|
|
159
|
+
// maxVersion: { $max: '$version' }
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
162
|
+
// ])
|
|
163
|
+
// .exec();
|
|
164
|
+
// const firstMaxVersion = aggregations.at(0)?.maxVersion;
|
|
165
|
+
// const maxVersion: string = (typeof firstMaxVersion === 'number') ? String(firstMaxVersion) : '0';
|
|
166
|
+
// return { maxVersion };
|
|
167
|
+
// }
|
|
164
168
|
getCursor(conditions, projection) {
|
|
165
169
|
return this.eventSeriesModel.find(conditions, projection)
|
|
166
170
|
.sort({ startDate: factory_1.factory.sortType.Descending })
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
type ISearchConditions = Pick<factory.eventSeries.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'name' | 'organizer' | 'project' | 'startFrom' | 'startThrough' | 'videoFormat'
|
|
4
|
-
workPerformed?: never;
|
|
5
|
-
/**
|
|
6
|
-
* コンテンツコード
|
|
7
|
-
*/
|
|
8
|
-
movieIdentifier?: string;
|
|
9
|
-
/**
|
|
10
|
-
* コンテンツバージョン
|
|
11
|
-
*/
|
|
12
|
-
movieVersion?: string;
|
|
13
|
-
};
|
|
3
|
+
type ISearchConditions = Pick<factory.eventSeries.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'name' | 'organizer' | 'project' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed' | 'movieIdentifier' | 'movieVersion'>;
|
|
14
4
|
type IKeyOfProjection = Exclude<keyof factory.eventSeries.IEvent, 'id' | 'videoFormat'>;
|
|
15
5
|
/**
|
|
16
6
|
* 施設コンテンツリポジトリ
|
|
@@ -88,10 +88,6 @@ const indexes = [
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
],
|
|
91
|
-
[
|
|
92
|
-
{ typeOf: 1, startDate: 1 },
|
|
93
|
-
{ name: 'searchByTypeOf' }
|
|
94
|
-
],
|
|
95
91
|
[
|
|
96
92
|
{ eventStatus: 1, startDate: 1 },
|
|
97
93
|
{ name: 'searchByEventStatus' }
|
|
@@ -182,15 +178,6 @@ const indexes = [
|
|
|
182
178
|
name: 'searchByOffersItemOfferedId'
|
|
183
179
|
}
|
|
184
180
|
],
|
|
185
|
-
[
|
|
186
|
-
{ 'offers.seller.makesOffer': 1, startDate: 1 },
|
|
187
|
-
{
|
|
188
|
-
name: 'searchBySellerMakesOffer',
|
|
189
|
-
partialFilterExpression: {
|
|
190
|
-
'offers.seller.makesOffer': { $exists: true }
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
181
|
[
|
|
195
182
|
{ 'offers.seller.makesOffer.availableAtOrFrom.id': 1, startDate: 1 },
|
|
196
183
|
{
|
|
@@ -74,14 +74,6 @@ const indexes = [
|
|
|
74
74
|
{ 'organizer.id': 1, startDate: 1 },
|
|
75
75
|
{ name: 'organizerId' }
|
|
76
76
|
],
|
|
77
|
-
[
|
|
78
|
-
{ typeOf: 1, startDate: 1 },
|
|
79
|
-
{ name: 'typeOf' }
|
|
80
|
-
],
|
|
81
|
-
[
|
|
82
|
-
{ eventStatus: 1, startDate: 1 },
|
|
83
|
-
{ name: 'eventStatus' }
|
|
84
|
-
],
|
|
85
77
|
[
|
|
86
78
|
{ 'location.id': 1, startDate: 1 },
|
|
87
79
|
{
|
|
@@ -146,15 +138,6 @@ const indexes = [
|
|
|
146
138
|
}
|
|
147
139
|
}
|
|
148
140
|
],
|
|
149
|
-
[
|
|
150
|
-
{ 'soundFormat.typeOf': 1, startDate: 1 },
|
|
151
|
-
{
|
|
152
|
-
name: 'soundFormatTypeOf',
|
|
153
|
-
partialFilterExpression: {
|
|
154
|
-
'soundFormat.typeOf': { $exists: true }
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
141
|
[
|
|
159
142
|
{ 'name.ja': 1, startDate: 1 },
|
|
160
143
|
{
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.1090.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.1090.0",
|
|
14
|
-
"@chevre/factory": "11.1.0-alpha.
|
|
14
|
+
"@chevre/factory": "11.1.0-alpha.3",
|
|
15
15
|
"@motionpicture/coa-service": "10.0.0",
|
|
16
16
|
"@motionpicture/gmo-service": "6.1.0-alpha.0",
|
|
17
17
|
"@sendgrid/client": "8.1.4",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"postversion": "git push origin --tags",
|
|
89
89
|
"prepublishOnly": "npm run clean && npm run build"
|
|
90
90
|
},
|
|
91
|
-
"version": "28.0.0-alpha.
|
|
91
|
+
"version": "28.0.0-alpha.24"
|
|
92
92
|
}
|