@chevre/domain 26.1.0-alpha.2 → 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.
@@ -1,6 +1,7 @@
1
1
  import { Connection } from 'mongoose';
2
2
  import { factory } from '../../../factory';
3
3
  import { IModel as IActionModel, IDocType } from '../../mongoose/schemas/action';
4
+ import { IFindAnyActionsParams } from '../../factory/action/createMongoConditions';
4
5
  import { ActionRecipeRepo, IActionRecipe, IRecipeAsActionAttributes } from './actionRecipe';
5
6
  export type IAction4transaction<T extends factory.actionType.AcceptAction | factory.actionType.AuthorizeAction> = T extends factory.actionType.AcceptAction ? factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction : T extends factory.actionType.AuthorizeAction ? (factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction) : never;
6
7
  type IAuthorizeAction = factory.action.authorize.invoice.IAction | factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction | factory.action.authorize.ticketedObject.IAction;
@@ -72,7 +73,45 @@ export declare class ActionProcessRepo<TAction extends IAction<factory.actionTyp
72
73
  * 汎用アクション検索
73
74
  * 継承クラスから呼ぶ想定
74
75
  */
75
- protected findAnyActionsLegacy(params: Pick<factory.action.ISearchConditions, 'limit' | 'page' | 'project' | 'id' | 'actionStatus' | 'typeOf' | 'object' | 'purpose' | 'sameAs'> & {
76
+ protected findAnyActionsLegacy(params: Pick<IFindAnyActionsParams, 'limit' | 'page' | 'project' | 'id' | 'actionStatus' | 'typeOf' | 'purpose' | 'sameAs'> & {
77
+ object?: {
78
+ id?: never;
79
+ movieTickets?: never;
80
+ object?: never;
81
+ orderNumber?: never;
82
+ reservationFor?: never;
83
+ reservationNumber?: never;
84
+ event?: never;
85
+ paymentMethod?: {
86
+ accountId?: {
87
+ $eq?: string;
88
+ };
89
+ /**
90
+ * 決済アクションの決済方法ID
91
+ */
92
+ paymentMethodId?: {
93
+ $eq?: string;
94
+ $in?: string[];
95
+ };
96
+ typeOf?: never;
97
+ };
98
+ /**
99
+ * 承認アクションの決済方法ID
100
+ */
101
+ paymentMethodId?: {
102
+ $eq?: string;
103
+ };
104
+ typeOf?: {
105
+ $eq?: string;
106
+ $in?: string[];
107
+ };
108
+ /**
109
+ * 確定アクション、採用アクションなどの資産取引番号
110
+ */
111
+ transactionNumber?: {
112
+ $eq?: string;
113
+ };
114
+ };
76
115
  sort?: never;
77
116
  actionStatusTypes?: never;
78
117
  agent?: never;
@@ -6,10 +6,7 @@ export type IMinimizedPurchaseNumberAuthResult = Pick<factory.action.check.payme
6
6
  knyknrNoInfoOut: Omit<factory.action.check.paymentMethod.movieTicket.IPurchaseNumberInfo, 'ykknInfo' | 'mkknInfo'>[] | null;
7
7
  };
8
8
  type StartableActionType = factory.actionType.CheckAction;
9
- type ICheckMovieTicketAction = Pick<factory.action.check.paymentMethod.movieTicket.IAction, 'actionStatus' | 'agent' | 'endDate' | 'error' | 'expires' | 'id' | 'instrument' | 'object' | 'project' | 'purpose' | 'sameAs' | 'startDate' | 'typeOf'> & {
10
- potentialActions?: never;
11
- result?: never;
12
- };
9
+ type ICheckMovieTicketAction = factory.action.check.paymentMethod.movieTicket.IAction;
13
10
  /**
14
11
  * 決済カード認証アクションリポジトリ
15
12
  */
@@ -23,7 +20,7 @@ export declare class CheckMovieTicketActionRepo extends DedicatedActionProcessRe
23
20
  */
24
21
  private readonly legacyActionModel;
25
22
  constructor(connection: Connection);
26
- startCheckMovieTicketAction(attributes: Pick<factory.action.check.paymentMethod.movieTicket.IAttributes, 'agent' | 'instrument' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> & {
23
+ startCheckMovieTicketAction(attributes: Pick<factory.action.check.paymentMethod.movieTicket.IAttributes, 'agent' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> & {
27
24
  potentialActions?: never;
28
25
  }, options?: {
29
26
  recipe?: IRecipeAsActionAttributes<factory.recipe.RecipeCategory.checkMovieTicket>;
@@ -47,7 +44,7 @@ export declare class CheckMovieTicketActionRepo extends DedicatedActionProcessRe
47
44
  purpose?: {
48
45
  id: string;
49
46
  };
50
- }): Promise<Pick<ICheckMovieTicketAction, "error" | "id" | "purpose" | "actionStatus"> | null>;
47
+ }): Promise<Pick<import("@chevre/factory/lib/chevre/action/check/paymentMethod/movieTicket").IAction, "error" | "id" | "purpose" | "actionStatus"> | null>;
51
48
  /**
52
49
  * アクションIDからレシピのafterMediaを参照する
53
50
  */
@@ -106,6 +103,6 @@ export declare class CheckMovieTicketActionRepo extends DedicatedActionProcessRe
106
103
  */
107
104
  id: string;
108
105
  };
109
- }): Promise<Pick<ICheckMovieTicketAction, "id"> | null>;
106
+ }): Promise<Pick<import("@chevre/factory/lib/chevre/action/check/paymentMethod/movieTicket").IAction, "id"> | null>;
110
107
  }
111
108
  export {};
@@ -2,6 +2,7 @@ import type { Connection, FilterQuery } from 'mongoose';
2
2
  import { factory } from '../factory';
3
3
  import type { IDocType } from './mongoose/schemas/action';
4
4
  import { IKeyOfProjection, IAction, IActionRecipe, ActionProcessRepo } from './action/anyAction/actionProcess';
5
+ import { IFindAnyActionsParams } from './factory/action/createMongoConditions';
5
6
  type IAvailableActionRecipe = IActionRecipe<Exclude<factory.recipe.RecipeCategory, factory.recipe.RecipeCategory.publishPaymentUrl | factory.recipe.RecipeCategory.checkMovieTicket | factory.recipe.RecipeCategory.acceptCOAOffer | factory.recipe.RecipeCategory.authorizeInvoice | factory.recipe.RecipeCategory.authorizeInvoice3ds | factory.recipe.RecipeCategory.payCreditCard | factory.recipe.RecipeCategory.payMovieTicket | factory.recipe.RecipeCategory.refundCreditCard | factory.recipe.RecipeCategory.refundMovieTicket>>;
6
7
  type StartableActionType = factory.actionType;
7
8
  export type IAction4transaction<T extends factory.actionType.AcceptAction | factory.actionType.AuthorizeAction> = T extends factory.actionType.AcceptAction ? factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction : T extends factory.actionType.AuthorizeAction ? (factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction) : never;
@@ -17,7 +18,7 @@ export declare class AdminActionRepo extends ActionProcessRepo<IAction<Startable
17
18
  /**
18
19
  * 汎用アクション検索
19
20
  */
20
- adminFindAnyActions(params: factory.action.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IAction<StartableActionType>[]>;
21
+ adminFindAnyActions(params: IFindAnyActionsParams, inclusion: IKeyOfProjection[]): Promise<IAction<StartableActionType>[]>;
21
22
  /**
22
23
  * 取引に対するアクションを検索する
23
24
  */
@@ -5,15 +5,7 @@ type IAction = IDocType & {
5
5
  id: string;
6
6
  };
7
7
  type IKeyOfProjection = keyof IDocType;
8
- type IFindParams = Pick<factory.action.ISearchConditions, 'limit' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> & {
9
- id?: string;
10
- sameAs?: {
11
- id?: string;
12
- };
13
- purpose?: {
14
- id?: string;
15
- };
16
- };
8
+ type IFindParams = factory.action.check.paymentMethod.movieTicket.IFindParams;
17
9
  /**
18
10
  * 決済カード認証アクション(専用コレクション分離済)管理リポジトリ
19
11
  */
@@ -23,7 +15,7 @@ export declare class AdminCheckMovieTicketActionRepo {
23
15
  */
24
16
  private readonly checkMovieTicketActionModel;
25
17
  constructor(connection: Connection);
26
- static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'project' | 'purpose' | 'sameAs' | 'startFrom' | 'startThrough'>): FilterQuery<Pick<import("@chevre/factory/lib/chevre/action/check/paymentMethod/movieTicket").IAction, "object" | "error" | "project" | "typeOf" | "expires" | "startDate" | "endDate" | "instrument" | "agent" | "purpose" | "sameAs" | "actionStatus">>[];
18
+ static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'project' | 'purpose' | 'sameAs' | 'startFrom' | 'startThrough'>): FilterQuery<IDocType>[];
27
19
  findCheckMovieTicketActions(params: IFindParams, inclusion: IKeyOfProjection[]): Promise<IAction[]>;
28
20
  }
29
21
  export {};
@@ -12,10 +12,9 @@ const AVAILABLE_PROJECT_FIELDS = [
12
12
  'object',
13
13
  'startDate',
14
14
  'endDate',
15
- 'instrument',
16
15
  'expires',
17
16
  'purpose',
18
- 'typeOf'
17
+ 'sameAs'
19
18
  ];
20
19
  /**
21
20
  * 決済カード認証アクション(専用コレクション分離済)管理リポジトリ
@@ -1,4 +1,5 @@
1
1
  import { FilterQuery } from 'mongoose';
2
2
  import { factory } from '../../../factory';
3
3
  import { IDocType } from '../../mongoose/schemas/action';
4
- export declare function createMongoConditions(params: factory.action.ISearchConditions): FilterQuery<IDocType>[];
4
+ export type IFindAnyActionsParams = factory.action.ISearchConditions;
5
+ export declare function createMongoConditions(params: IFindAnyActionsParams): FilterQuery<IDocType>[];
@@ -57,42 +57,46 @@ function createMongoConditions(params) {
57
57
  if (typeof instrumentOrderNumberEq === 'string') {
58
58
  andConditions.push({ 'instrument.orderNumber': { $exists: true, $eq: instrumentOrderNumberEq } });
59
59
  }
60
- const locationIdEq = params.location?.id?.$eq;
61
- if (typeof locationIdEq === 'string') {
62
- andConditions.push({
63
- 'location.id': {
64
- $exists: true,
65
- $eq: locationIdEq
66
- }
67
- });
68
- }
69
- const locationIdentifierEq = params.location?.identifier?.$eq;
70
- if (typeof locationIdentifierEq === 'string') {
71
- andConditions.push({
72
- 'location.identifier': {
73
- $exists: true,
74
- $eq: locationIdentifierEq
75
- }
76
- });
77
- }
78
- const objectMovieTicketsIdentifierEq = params.object?.movieTickets?.identifier?.$eq;
79
- if (typeof objectMovieTicketsIdentifierEq === 'string') {
80
- andConditions.push({
81
- 'object.movieTickets.identifier': {
82
- $exists: true,
83
- $eq: objectMovieTicketsIdentifierEq
84
- }
85
- });
86
- }
87
- const objectMovieTicketsServiceOutputReservationForIdEq = params.object?.movieTickets?.serviceOutput?.reservationFor?.id?.$eq;
88
- if (typeof objectMovieTicketsServiceOutputReservationForIdEq === 'string') {
89
- andConditions.push({
90
- 'object.movieTickets.serviceOutput.reservationFor.id': {
91
- $exists: true,
92
- $eq: objectMovieTicketsServiceOutputReservationForIdEq
93
- }
94
- });
95
- }
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
+ // }
80
+ // 認証アクションのコレクション分離につき廃止(2026-08-21~)
81
+ // const objectMovieTicketsIdentifierEq = params.object?.movieTickets?.identifier?.$eq;
82
+ // if (typeof objectMovieTicketsIdentifierEq === 'string') {
83
+ // andConditions.push({
84
+ // 'object.movieTickets.identifier': {
85
+ // $exists: true,
86
+ // $eq: objectMovieTicketsIdentifierEq
87
+ // }
88
+ // });
89
+ // }
90
+ // 認証アクションのコレクション分離につき廃止(2026-08-21~)
91
+ // const objectMovieTicketsServiceOutputReservationForIdEq = params.object?.movieTickets?.serviceOutput?.reservationFor?.id?.$eq;
92
+ // if (typeof objectMovieTicketsServiceOutputReservationForIdEq === 'string') {
93
+ // andConditions.push({
94
+ // 'object.movieTickets.serviceOutput.reservationFor.id': {
95
+ // $exists: true,
96
+ // $eq: objectMovieTicketsServiceOutputReservationForIdEq
97
+ // }
98
+ // });
99
+ // }
96
100
  const objectPaymentMethodIdEq = params.object?.paymentMethodId?.$eq;
97
101
  if (typeof objectPaymentMethodIdEq === 'string') {
98
102
  andConditions.push({
@@ -165,15 +169,16 @@ function createMongoConditions(params) {
165
169
  }
166
170
  });
167
171
  }
168
- const objectPaymentMethodTypeOfEq = params.object?.paymentMethod?.typeOf?.$eq;
169
- if (typeof objectPaymentMethodTypeOfEq === 'string') {
170
- andConditions.push({
171
- 'object.paymentMethod.typeOf': {
172
- $exists: true,
173
- $eq: objectPaymentMethodTypeOfEq
174
- }
175
- });
176
- }
172
+ // 認証アクションのコレクション分離につき廃止(2026-08-21~)
173
+ // const objectPaymentMethodTypeOfEq = params.object?.paymentMethod?.typeOf?.$eq;
174
+ // if (typeof objectPaymentMethodTypeOfEq === 'string') {
175
+ // andConditions.push({
176
+ // 'object.paymentMethod.typeOf': {
177
+ // $exists: true,
178
+ // $eq: objectPaymentMethodTypeOfEq
179
+ // }
180
+ // });
181
+ // }
177
182
  const objectTypeOfEq = params.object?.typeOf?.$eq;
178
183
  if (typeof objectTypeOfEq === 'string') {
179
184
  andConditions.push({
@@ -1,7 +1,7 @@
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 = Pick<factory.action.check.paymentMethod.movieTicket.IAction, 'actionStatus' | 'agent' | 'endDate' | 'error' | 'expires' | 'instrument' | 'object' | 'project' | 'purpose' | 'sameAs' | 'startDate' | 'typeOf'> & {};
4
+ type IDocType = Pick<factory.action.check.paymentMethod.movieTicket.IAction, 'actionStatus' | 'agent' | 'endDate' | 'error' | 'expires' | 'object' | 'project' | 'purpose' | 'sameAs' | 'startDate' | 'typeOf'>;
5
5
  type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
6
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
7
7
  type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
@@ -18,10 +18,7 @@ const schemaDefinition = {
18
18
  error: mongoose_1.SchemaTypes.Mixed,
19
19
  endDate: Date,
20
20
  purpose: mongoose_1.SchemaTypes.Mixed,
21
- instrument: mongoose_1.SchemaTypes.Mixed,
22
21
  sameAs: mongoose_1.SchemaTypes.Mixed,
23
- // potentialActions: SchemaTypes.Mixed,
24
- // result: SchemaTypes.Mixed,
25
22
  };
26
23
  const schemaOptions = {
27
24
  autoIndex: settings_1.MONGO_AUTO_INDEX,
@@ -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 = Omit<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>, 'id' | 'replacer'>;
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,24 +155,6 @@ const indexes = [
173
155
  }
174
156
  }
175
157
  ],
176
- [
177
- { 'object.movieTickets.identifier': 1, startDate: -1 },
178
- {
179
- name: 'searchByObjectMovieTicketsIdentifier',
180
- partialFilterExpression: {
181
- 'object.movieTickets.identifier': { $exists: true }
182
- }
183
- }
184
- ],
185
- [
186
- { 'object.movieTickets.serviceOutput.reservationFor.id': 1, startDate: -1 },
187
- {
188
- name: 'searchByObjectMovieTicketsServiceOutputReservationForId',
189
- partialFilterExpression: {
190
- 'object.movieTickets.serviceOutput.reservationFor.id': { $exists: true }
191
- }
192
- }
193
- ],
194
158
  [
195
159
  { 'object.paymentMethod.accountId': 1, startDate: -1 },
196
160
  {
@@ -209,15 +173,6 @@ const indexes = [
209
173
  }
210
174
  }
211
175
  ],
212
- [
213
- { 'object.paymentMethod.typeOf': 1, startDate: -1 },
214
- {
215
- name: 'searchByObjectPaymentMethodTypeOf',
216
- partialFilterExpression: {
217
- 'object.paymentMethod.typeOf': { $exists: true }
218
- }
219
- }
220
- ],
221
176
  [
222
177
  { 'object.paymentMethodId': 1, startDate: -1 },
223
178
  {
@@ -236,16 +191,6 @@ const indexes = [
236
191
  }
237
192
  }
238
193
  ],
239
- // 承認アクションのobject.event廃止につき検索条件も廃止(2026-07-07~)
240
- // [
241
- // { 'object.event.id': 1, startDate: -1 },
242
- // {
243
- // name: 'searchByObjectEventId',
244
- // partialFilterExpression: {
245
- // 'object.event.id': { $exists: true }
246
- // }
247
- // }
248
- // ],
249
194
  [
250
195
  { 'about.id': 1, startDate: -1 },
251
196
  {
@@ -345,60 +290,6 @@ const indexes = [
345
290
  }
346
291
  }
347
292
  ],
348
- // [
349
- // { 'fromLocation.typeOf': 1, startDate: -1 },
350
- // {
351
- // name: 'searchByFromLocationTypeOf',
352
- // partialFilterExpression: {
353
- // 'fromLocation.typeOf': { $exists: true }
354
- // }
355
- // }
356
- // ],
357
- // [
358
- // { 'fromLocation.accountNumber': 1, startDate: -1 },
359
- // {
360
- // name: 'searchByFromLocationAccountNumber',
361
- // partialFilterExpression: {
362
- // 'fromLocation.accountNumber': { $exists: true }
363
- // }
364
- // }
365
- // ],
366
- // [
367
- // { 'fromLocation.accountType': 1, startDate: -1 },
368
- // {
369
- // name: 'searchByFromLocationAccountType',
370
- // partialFilterExpression: {
371
- // 'fromLocation.accountType': { $exists: true }
372
- // }
373
- // }
374
- // ],
375
- // [
376
- // { 'toLocation.typeOf': 1, startDate: -1 },
377
- // {
378
- // name: 'searchByToLocationTypeOf',
379
- // partialFilterExpression: {
380
- // 'toLocation.typeOf': { $exists: true }
381
- // }
382
- // }
383
- // ],
384
- // [
385
- // { 'toLocation.accountNumber': 1, startDate: -1 },
386
- // {
387
- // name: 'searchByToLocationAccountNumber',
388
- // partialFilterExpression: {
389
- // 'toLocation.accountNumber': { $exists: true }
390
- // }
391
- // }
392
- // ],
393
- // [
394
- // { 'toLocation.accountType': 1, startDate: -1 },
395
- // {
396
- // name: 'searchByToLocationAccountType',
397
- // partialFilterExpression: {
398
- // 'toLocation.accountType': { $exists: true }
399
- // }
400
- // }
401
- // ],
402
293
  [
403
294
  { 'instrument.transactionNumber': 1, startDate: -1 },
404
295
  {
@@ -473,6 +364,66 @@ const indexes = [
473
364
  }
474
365
  }
475
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
+ // ],
476
427
  ];
477
428
  exports.indexes = indexes;
478
429
  /**
@@ -85,7 +85,15 @@ const indexes = [
85
85
  [
86
86
  { 'recipeFor.id': 1, dateCreated: -1 },
87
87
  { name: 'searchByRecipeForId' }
88
- ]
88
+ ],
89
+ // テスト環境ではユニークインデックス適用済(2026-08-21~)
90
+ // [
91
+ // { 'recipeFor.id': 1 }, // support unique index(2026-08-21~)
92
+ // {
93
+ // unique: true,
94
+ // name: 'uniqueActionId'
95
+ // }
96
+ // ]
89
97
  ];
90
98
  exports.indexes = indexes;
91
99
  /**
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.3.0",
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.2"
91
+ "version": "26.1.0-alpha.4"
92
92
  }