@chevre/domain 24.1.0-alpha.7 → 24.1.0-alpha.9

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.
@@ -109,15 +109,15 @@ const indexes = [
109
109
  { attended: 1, bookingTime: -1 },
110
110
  { name: 'searchByAttended-v3' }
111
111
  ],
112
- [
113
- { useActionExists: 1, bookingTime: -1 },
114
- {
115
- name: 'searchByUseActionExists',
116
- partialFilterExpression: {
117
- useActionExists: { $exists: true }
118
- }
119
- }
120
- ],
112
+ // [
113
+ // { useActionExists: 1, bookingTime: -1 },
114
+ // {
115
+ // name: 'searchByUseActionExists',
116
+ // partialFilterExpression: {
117
+ // useActionExists: { $exists: true }
118
+ // }
119
+ // }
120
+ // ],
121
121
  [
122
122
  { additionalTicketText: 1, bookingTime: -1 },
123
123
  {
@@ -127,24 +127,24 @@ const indexes = [
127
127
  }
128
128
  }
129
129
  ],
130
- [
131
- { additionalProperty: 1, bookingTime: -1 },
132
- {
133
- name: 'searchByAdditionalProperty-v3',
134
- partialFilterExpression: {
135
- additionalProperty: { $exists: true }
136
- }
137
- }
138
- ],
139
- [
140
- { 'price.priceComponent.appliesToMovieTicket.identifier': 1, bookingTime: -1 },
141
- {
142
- name: 'searchByPriceComponentAppliesToMovieTicketIdentifier',
143
- partialFilterExpression: {
144
- 'price.priceComponent.appliesToMovieTicket.identifier': { $exists: true }
145
- }
146
- }
147
- ],
130
+ // [
131
+ // { additionalProperty: 1, bookingTime: -1 },
132
+ // {
133
+ // name: 'searchByAdditionalProperty-v3',
134
+ // partialFilterExpression: {
135
+ // additionalProperty: { $exists: true }
136
+ // }
137
+ // }
138
+ // ],
139
+ // [
140
+ // { 'price.priceComponent.appliesToMovieTicket.identifier': 1, bookingTime: -1 },
141
+ // {
142
+ // name: 'searchByPriceComponentAppliesToMovieTicketIdentifier',
143
+ // partialFilterExpression: {
144
+ // 'price.priceComponent.appliesToMovieTicket.identifier': { $exists: true }
145
+ // }
146
+ // }
147
+ // ],
148
148
  [
149
149
  { 'reservationFor.typeOf': 1, bookingTime: -1 },
150
150
  {
@@ -271,42 +271,42 @@ const indexes = [
271
271
  }
272
272
  }
273
273
  ],
274
- [
275
- { 'reservedTicket.ticketType.id': 1, bookingTime: -1 },
276
- {
277
- name: 'searchByReservedTicketTicketTypeId-v3',
278
- partialFilterExpression: {
279
- 'reservedTicket.ticketType.id': { $exists: true }
280
- }
281
- }
282
- ],
283
- [
284
- { 'reservedTicket.ticketType.category.id': 1, bookingTime: -1 },
285
- {
286
- name: 'searchByReservedTicketTicketTypeCategoryId-v3',
287
- partialFilterExpression: {
288
- 'reservedTicket.ticketType.category.id': { $exists: true }
289
- }
290
- }
291
- ],
292
- [
293
- { 'reservedTicket.ticketType.category.codeValue': 1, bookingTime: -1 },
294
- {
295
- name: 'searchByReservedTicketTicketTypeCategoryCodeValue-v3',
296
- partialFilterExpression: {
297
- 'reservedTicket.ticketType.category.codeValue': { $exists: true }
298
- }
299
- }
300
- ],
301
- [
302
- { 'reservedTicket.dateIssued': 1, bookingTime: -1 },
303
- {
304
- name: 'reservedTicketDateIssued',
305
- partialFilterExpression: {
306
- 'reservedTicket.dateIssued': { $exists: true }
307
- }
308
- }
309
- ],
274
+ // [
275
+ // { 'reservedTicket.ticketType.id': 1, bookingTime: -1 },
276
+ // {
277
+ // name: 'searchByReservedTicketTicketTypeId-v3',
278
+ // partialFilterExpression: {
279
+ // 'reservedTicket.ticketType.id': { $exists: true }
280
+ // }
281
+ // }
282
+ // ],
283
+ // [
284
+ // { 'reservedTicket.ticketType.category.id': 1, bookingTime: -1 },
285
+ // {
286
+ // name: 'searchByReservedTicketTicketTypeCategoryId-v3',
287
+ // partialFilterExpression: {
288
+ // 'reservedTicket.ticketType.category.id': { $exists: true }
289
+ // }
290
+ // }
291
+ // ],
292
+ // [
293
+ // { 'reservedTicket.ticketType.category.codeValue': 1, bookingTime: -1 },
294
+ // {
295
+ // name: 'searchByReservedTicketTicketTypeCategoryCodeValue-v3',
296
+ // partialFilterExpression: {
297
+ // 'reservedTicket.ticketType.category.codeValue': { $exists: true }
298
+ // }
299
+ // }
300
+ // ],
301
+ // [
302
+ // { 'reservedTicket.dateIssued': 1, bookingTime: -1 },
303
+ // {
304
+ // name: 'reservedTicketDateIssued',
305
+ // partialFilterExpression: {
306
+ // 'reservedTicket.dateIssued': { $exists: true }
307
+ // }
308
+ // }
309
+ // ],
310
310
  [
311
311
  { 'broker.id': 1, bookingTime: -1 },
312
312
  {
@@ -316,60 +316,60 @@ const indexes = [
316
316
  }
317
317
  }
318
318
  ],
319
- [
320
- { 'broker.name': 1, bookingTime: -1 },
321
- {
322
- name: 'searchByBrokerName',
323
- partialFilterExpression: {
324
- 'broker.name': { $exists: true }
325
- }
326
- }
327
- ],
328
- [
329
- { 'broker.familyName': 1, bookingTime: -1 },
330
- {
331
- name: 'searchByBrokerFamilyName',
332
- partialFilterExpression: {
333
- 'broker.familyName': { $exists: true }
334
- }
335
- }
336
- ],
337
- [
338
- { 'broker.givenName': 1, bookingTime: -1 },
339
- {
340
- name: 'searchByBrokerGivenName',
341
- partialFilterExpression: {
342
- 'broker.givenName': { $exists: true }
343
- }
344
- }
345
- ],
346
- [
347
- { 'broker.identifier': 1, bookingTime: -1 },
348
- {
349
- name: 'searchByBrokerIdentifier',
350
- partialFilterExpression: {
351
- 'broker.identifier': { $exists: true }
352
- }
353
- }
354
- ],
355
- [
356
- { 'programMembershipUsed.identifier': 1, bookingTime: -1 },
357
- {
358
- name: 'searchByProgramMembershipUsedIdentifier',
359
- partialFilterExpression: {
360
- 'programMembershipUsed.identifier': { $exists: true }
361
- }
362
- }
363
- ],
364
- [
365
- { 'programMembershipUsed.issuedThrough.serviceType.codeValue': 1, bookingTime: -1 },
366
- {
367
- name: 'searchByMembershipUsedServiceType',
368
- partialFilterExpression: {
369
- 'programMembershipUsed.issuedThrough.serviceType.codeValue': { $exists: true }
370
- }
371
- }
372
- ],
319
+ // [
320
+ // { 'broker.name': 1, bookingTime: -1 },
321
+ // {
322
+ // name: 'searchByBrokerName',
323
+ // partialFilterExpression: {
324
+ // 'broker.name': { $exists: true }
325
+ // }
326
+ // }
327
+ // ],
328
+ // [
329
+ // { 'broker.familyName': 1, bookingTime: -1 },
330
+ // {
331
+ // name: 'searchByBrokerFamilyName',
332
+ // partialFilterExpression: {
333
+ // 'broker.familyName': { $exists: true }
334
+ // }
335
+ // }
336
+ // ],
337
+ // [
338
+ // { 'broker.givenName': 1, bookingTime: -1 },
339
+ // {
340
+ // name: 'searchByBrokerGivenName',
341
+ // partialFilterExpression: {
342
+ // 'broker.givenName': { $exists: true }
343
+ // }
344
+ // }
345
+ // ],
346
+ // [
347
+ // { 'broker.identifier': 1, bookingTime: -1 },
348
+ // {
349
+ // name: 'searchByBrokerIdentifier',
350
+ // partialFilterExpression: {
351
+ // 'broker.identifier': { $exists: true }
352
+ // }
353
+ // }
354
+ // ],
355
+ // [
356
+ // { 'programMembershipUsed.identifier': 1, bookingTime: -1 },
357
+ // {
358
+ // name: 'searchByProgramMembershipUsedIdentifier',
359
+ // partialFilterExpression: {
360
+ // 'programMembershipUsed.identifier': { $exists: true }
361
+ // }
362
+ // }
363
+ // ],
364
+ // [
365
+ // { 'programMembershipUsed.issuedThrough.serviceType.codeValue': 1, bookingTime: -1 },
366
+ // {
367
+ // name: 'searchByMembershipUsedServiceType',
368
+ // partialFilterExpression: {
369
+ // 'programMembershipUsed.issuedThrough.serviceType.codeValue': { $exists: true }
370
+ // }
371
+ // }
372
+ // ],
373
373
  [
374
374
  { 'underName.id': 1, bookingTime: -1 },
375
375
  {
@@ -32,13 +32,14 @@ interface IAggregateOrder {
32
32
  export type IOrderOnStatusChanged = Pick<IOrderWithoutAcceptedOffers & {
33
33
  id: string;
34
34
  }, 'id' | 'orderNumber' | 'broker' | 'confirmationNumber' | 'customer' | 'dateReturned' | 'name' | 'orderDate' | 'orderStatus' | 'orderedItem' | 'paymentMethods' | 'previousOrderStatus' | 'price' | 'priceCurrency' | 'project' | 'returner' | 'seller' | 'typeOf'>;
35
+ type ISearchConditions = Pick<factory.order.ISearchConditions, 'acceptedOffers' | 'broker' | 'confirmationNumbers' | 'customer' | 'name' | 'orderDate' | 'orderNumbers' | 'orderStatuses' | 'paymentMethods' | 'project' | 'provider' | 'seller'>;
35
36
  /**
36
37
  * 注文リポジトリ
37
38
  */
38
39
  export declare class OrderRepo {
39
40
  private readonly orderModel;
40
41
  constructor(connection: Connection);
41
- static CREATE_MONGO_CONDITIONS(params: Omit<factory.order.ISearchConditions, 'limit' | 'page' | 'sort'>): FilterQuery<factory.order.IOrder>[];
42
+ static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<factory.order.IOrder>[];
42
43
  /**
43
44
  * なければ作成する
44
45
  */