@chevre/domain 26.1.0-alpha.3 → 26.1.0-alpha.4
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.
|
@@ -57,24 +57,26 @@ function createMongoConditions(params) {
|
|
|
57
57
|
if (typeof instrumentOrderNumberEq === 'string') {
|
|
58
58
|
andConditions.push({ 'instrument.orderNumber': { $exists: true, $eq: instrumentOrderNumberEq } });
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
60
|
+
// 使用アクションのコレクション分離につき廃止(2026-08-22~)
|
|
61
|
+
// const locationIdEq = params.location?.id?.$eq;
|
|
62
|
+
// if (typeof locationIdEq === 'string') {
|
|
63
|
+
// andConditions.push({
|
|
64
|
+
// 'location.id': {
|
|
65
|
+
// $exists: true,
|
|
66
|
+
// $eq: locationIdEq
|
|
67
|
+
// }
|
|
68
|
+
// });
|
|
69
|
+
// }
|
|
70
|
+
// 使用アクションのコレクション分離につき廃止(2026-08-22~)
|
|
71
|
+
// const locationIdentifierEq = params.location?.identifier?.$eq;
|
|
72
|
+
// if (typeof locationIdentifierEq === 'string') {
|
|
73
|
+
// andConditions.push({
|
|
74
|
+
// 'location.identifier': {
|
|
75
|
+
// $exists: true,
|
|
76
|
+
// $eq: locationIdentifierEq
|
|
77
|
+
// }
|
|
78
|
+
// });
|
|
79
|
+
// }
|
|
78
80
|
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
79
81
|
// const objectMovieTicketsIdentifierEq = params.object?.movieTickets?.identifier?.$eq;
|
|
80
82
|
// if (typeof objectMovieTicketsIdentifierEq === 'string') {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import { factory } from '../../../factory';
|
|
4
|
-
type IDocType =
|
|
4
|
+
type IDocType = Pick<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
6
|
+
'about' | 'actionStatus' | 'agent' | 'cancelAction' | 'description' | 'endDate' | 'error' | 'expires' | 'identifier' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'result' | 'sameAs' | 'startDate' | 'typeOf'>;
|
|
5
7
|
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
9
|
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
@@ -101,24 +101,6 @@ const indexes = [
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
|
-
[
|
|
105
|
-
{ 'location.id': 1, startDate: -1 },
|
|
106
|
-
{
|
|
107
|
-
name: 'searchByLocationId',
|
|
108
|
-
partialFilterExpression: {
|
|
109
|
-
'location.id': { $exists: true }
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
{ 'location.identifier': 1, startDate: -1 },
|
|
115
|
-
{
|
|
116
|
-
name: 'searchByLocationIdentifier',
|
|
117
|
-
partialFilterExpression: {
|
|
118
|
-
'location.identifier': { $exists: true }
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
104
|
[
|
|
123
105
|
{ 'agent.typeOf': 1, startDate: -1 },
|
|
124
106
|
{
|
|
@@ -173,26 +155,6 @@ const indexes = [
|
|
|
173
155
|
}
|
|
174
156
|
}
|
|
175
157
|
],
|
|
176
|
-
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
177
|
-
// [
|
|
178
|
-
// { 'object.movieTickets.identifier': 1, startDate: -1 },
|
|
179
|
-
// {
|
|
180
|
-
// name: 'searchByObjectMovieTicketsIdentifier',
|
|
181
|
-
// partialFilterExpression: {
|
|
182
|
-
// 'object.movieTickets.identifier': { $exists: true }
|
|
183
|
-
// }
|
|
184
|
-
// }
|
|
185
|
-
// ],
|
|
186
|
-
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
187
|
-
// [
|
|
188
|
-
// { 'object.movieTickets.serviceOutput.reservationFor.id': 1, startDate: -1 },
|
|
189
|
-
// {
|
|
190
|
-
// name: 'searchByObjectMovieTicketsServiceOutputReservationForId',
|
|
191
|
-
// partialFilterExpression: {
|
|
192
|
-
// 'object.movieTickets.serviceOutput.reservationFor.id': { $exists: true }
|
|
193
|
-
// }
|
|
194
|
-
// }
|
|
195
|
-
// ],
|
|
196
158
|
[
|
|
197
159
|
{ 'object.paymentMethod.accountId': 1, startDate: -1 },
|
|
198
160
|
{
|
|
@@ -211,16 +173,6 @@ const indexes = [
|
|
|
211
173
|
}
|
|
212
174
|
}
|
|
213
175
|
],
|
|
214
|
-
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
215
|
-
// [
|
|
216
|
-
// { 'object.paymentMethod.typeOf': 1, startDate: -1 },
|
|
217
|
-
// {
|
|
218
|
-
// name: 'searchByObjectPaymentMethodTypeOf',
|
|
219
|
-
// partialFilterExpression: {
|
|
220
|
-
// 'object.paymentMethod.typeOf': { $exists: true }
|
|
221
|
-
// }
|
|
222
|
-
// }
|
|
223
|
-
// ],
|
|
224
176
|
[
|
|
225
177
|
{ 'object.paymentMethodId': 1, startDate: -1 },
|
|
226
178
|
{
|
|
@@ -239,16 +191,6 @@ const indexes = [
|
|
|
239
191
|
}
|
|
240
192
|
}
|
|
241
193
|
],
|
|
242
|
-
// 承認アクションのobject.event廃止につき検索条件も廃止(2026-07-07~)
|
|
243
|
-
// [
|
|
244
|
-
// { 'object.event.id': 1, startDate: -1 },
|
|
245
|
-
// {
|
|
246
|
-
// name: 'searchByObjectEventId',
|
|
247
|
-
// partialFilterExpression: {
|
|
248
|
-
// 'object.event.id': { $exists: true }
|
|
249
|
-
// }
|
|
250
|
-
// }
|
|
251
|
-
// ],
|
|
252
194
|
[
|
|
253
195
|
{ 'about.id': 1, startDate: -1 },
|
|
254
196
|
{
|
|
@@ -348,60 +290,6 @@ const indexes = [
|
|
|
348
290
|
}
|
|
349
291
|
}
|
|
350
292
|
],
|
|
351
|
-
// [
|
|
352
|
-
// { 'fromLocation.typeOf': 1, startDate: -1 },
|
|
353
|
-
// {
|
|
354
|
-
// name: 'searchByFromLocationTypeOf',
|
|
355
|
-
// partialFilterExpression: {
|
|
356
|
-
// 'fromLocation.typeOf': { $exists: true }
|
|
357
|
-
// }
|
|
358
|
-
// }
|
|
359
|
-
// ],
|
|
360
|
-
// [
|
|
361
|
-
// { 'fromLocation.accountNumber': 1, startDate: -1 },
|
|
362
|
-
// {
|
|
363
|
-
// name: 'searchByFromLocationAccountNumber',
|
|
364
|
-
// partialFilterExpression: {
|
|
365
|
-
// 'fromLocation.accountNumber': { $exists: true }
|
|
366
|
-
// }
|
|
367
|
-
// }
|
|
368
|
-
// ],
|
|
369
|
-
// [
|
|
370
|
-
// { 'fromLocation.accountType': 1, startDate: -1 },
|
|
371
|
-
// {
|
|
372
|
-
// name: 'searchByFromLocationAccountType',
|
|
373
|
-
// partialFilterExpression: {
|
|
374
|
-
// 'fromLocation.accountType': { $exists: true }
|
|
375
|
-
// }
|
|
376
|
-
// }
|
|
377
|
-
// ],
|
|
378
|
-
// [
|
|
379
|
-
// { 'toLocation.typeOf': 1, startDate: -1 },
|
|
380
|
-
// {
|
|
381
|
-
// name: 'searchByToLocationTypeOf',
|
|
382
|
-
// partialFilterExpression: {
|
|
383
|
-
// 'toLocation.typeOf': { $exists: true }
|
|
384
|
-
// }
|
|
385
|
-
// }
|
|
386
|
-
// ],
|
|
387
|
-
// [
|
|
388
|
-
// { 'toLocation.accountNumber': 1, startDate: -1 },
|
|
389
|
-
// {
|
|
390
|
-
// name: 'searchByToLocationAccountNumber',
|
|
391
|
-
// partialFilterExpression: {
|
|
392
|
-
// 'toLocation.accountNumber': { $exists: true }
|
|
393
|
-
// }
|
|
394
|
-
// }
|
|
395
|
-
// ],
|
|
396
|
-
// [
|
|
397
|
-
// { 'toLocation.accountType': 1, startDate: -1 },
|
|
398
|
-
// {
|
|
399
|
-
// name: 'searchByToLocationAccountType',
|
|
400
|
-
// partialFilterExpression: {
|
|
401
|
-
// 'toLocation.accountType': { $exists: true }
|
|
402
|
-
// }
|
|
403
|
-
// }
|
|
404
|
-
// ],
|
|
405
293
|
[
|
|
406
294
|
{ 'instrument.transactionNumber': 1, startDate: -1 },
|
|
407
295
|
{
|
|
@@ -476,6 +364,66 @@ const indexes = [
|
|
|
476
364
|
}
|
|
477
365
|
}
|
|
478
366
|
]
|
|
367
|
+
// 使用アクションのコレクション分離につき廃止(2026-08-22~)
|
|
368
|
+
// [
|
|
369
|
+
// { 'location.id': 1, startDate: -1 },
|
|
370
|
+
// {
|
|
371
|
+
// name: 'searchByLocationId',
|
|
372
|
+
// partialFilterExpression: {
|
|
373
|
+
// 'location.id': { $exists: true }
|
|
374
|
+
// }
|
|
375
|
+
// }
|
|
376
|
+
// ],
|
|
377
|
+
// 使用アクションのコレクション分離につき廃止(2026-08-22~)
|
|
378
|
+
// [
|
|
379
|
+
// { 'location.identifier': 1, startDate: -1 },
|
|
380
|
+
// {
|
|
381
|
+
// name: 'searchByLocationIdentifier',
|
|
382
|
+
// partialFilterExpression: {
|
|
383
|
+
// 'location.identifier': { $exists: true }
|
|
384
|
+
// }
|
|
385
|
+
// }
|
|
386
|
+
// ],
|
|
387
|
+
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
388
|
+
// [
|
|
389
|
+
// { 'object.movieTickets.identifier': 1, startDate: -1 },
|
|
390
|
+
// {
|
|
391
|
+
// name: 'searchByObjectMovieTicketsIdentifier',
|
|
392
|
+
// partialFilterExpression: {
|
|
393
|
+
// 'object.movieTickets.identifier': { $exists: true }
|
|
394
|
+
// }
|
|
395
|
+
// }
|
|
396
|
+
// ],
|
|
397
|
+
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
398
|
+
// [
|
|
399
|
+
// { 'object.movieTickets.serviceOutput.reservationFor.id': 1, startDate: -1 },
|
|
400
|
+
// {
|
|
401
|
+
// name: 'searchByObjectMovieTicketsServiceOutputReservationForId',
|
|
402
|
+
// partialFilterExpression: {
|
|
403
|
+
// 'object.movieTickets.serviceOutput.reservationFor.id': { $exists: true }
|
|
404
|
+
// }
|
|
405
|
+
// }
|
|
406
|
+
// ],
|
|
407
|
+
// 認証アクションのコレクション分離につき廃止(2026-08-21~)
|
|
408
|
+
// [
|
|
409
|
+
// { 'object.paymentMethod.typeOf': 1, startDate: -1 },
|
|
410
|
+
// {
|
|
411
|
+
// name: 'searchByObjectPaymentMethodTypeOf',
|
|
412
|
+
// partialFilterExpression: {
|
|
413
|
+
// 'object.paymentMethod.typeOf': { $exists: true }
|
|
414
|
+
// }
|
|
415
|
+
// }
|
|
416
|
+
// ],
|
|
417
|
+
// 承認アクションのobject.event廃止につき検索条件も廃止(2026-07-07~)
|
|
418
|
+
// [
|
|
419
|
+
// { 'object.event.id': 1, startDate: -1 },
|
|
420
|
+
// {
|
|
421
|
+
// name: 'searchByObjectEventId',
|
|
422
|
+
// partialFilterExpression: {
|
|
423
|
+
// 'object.event.id': { $exists: true }
|
|
424
|
+
// }
|
|
425
|
+
// }
|
|
426
|
+
// ],
|
|
479
427
|
];
|
|
480
428
|
exports.indexes = indexes;
|
|
481
429
|
/**
|
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": "10.4.0-alpha.
|
|
14
|
+
"@chevre/factory": "10.4.0-alpha.2",
|
|
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": "26.1.0-alpha.
|
|
91
|
+
"version": "26.1.0-alpha.4"
|
|
92
92
|
}
|