@chevre/domain 24.0.0-alpha.27 → 24.0.0-alpha.28

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.
Files changed (78) hide show
  1. package/lib/chevre/errorHandler.js +1 -1
  2. package/lib/chevre/repo/accountTitle.d.ts +7 -3
  3. package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
  4. package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
  5. package/lib/chevre/repo/action/actionProcess.js +3 -3
  6. package/lib/chevre/repo/action.d.ts +8 -7
  7. package/lib/chevre/repo/action.js +0 -2
  8. package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
  9. package/lib/chevre/repo/assetTransaction.d.ts +48 -22
  10. package/lib/chevre/repo/categoryCode.d.ts +8 -3
  11. package/lib/chevre/repo/comment.d.ts +7 -3
  12. package/lib/chevre/repo/creativeWork.d.ts +8 -7
  13. package/lib/chevre/repo/customer.d.ts +8 -3
  14. package/lib/chevre/repo/event.d.ts +11 -23
  15. package/lib/chevre/repo/event.js +22 -23
  16. package/lib/chevre/repo/eventSeries.d.ts +10 -4
  17. package/lib/chevre/repo/identity.d.ts +12 -3
  18. package/lib/chevre/repo/identityProvider.d.ts +7 -18
  19. package/lib/chevre/repo/issuer.d.ts +8 -8
  20. package/lib/chevre/repo/member.d.ts +7 -3
  21. package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
  22. package/lib/chevre/repo/message.js +1 -1
  23. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +1 -1
  24. package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
  25. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
  26. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +1 -1
  27. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +1 -1
  28. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
  29. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
  30. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
  31. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
  32. package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +1 -1
  33. package/lib/chevre/repo/mongoose/schemas/identity.d.ts +1 -1
  34. package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +1 -1
  35. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -1
  36. package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +1 -1
  37. package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
  38. package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +1 -1
  39. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +1 -1
  40. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -1
  41. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
  42. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
  43. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +1 -1
  44. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
  45. package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +1 -1
  46. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -1
  47. package/lib/chevre/repo/mongoose/schemas/product.d.ts +1 -1
  48. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +1 -1
  49. package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
  50. package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +1 -1
  51. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +1 -1
  52. package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +1 -1
  53. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +1 -1
  54. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -1
  55. package/lib/chevre/repo/mongoose/schemas/task.d.ts +1 -1
  56. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +1 -1
  57. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +5 -2
  58. package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +1 -1
  59. package/lib/chevre/repo/movieTicketType.d.ts +2 -1
  60. package/lib/chevre/repo/offerCatalog.d.ts +8 -4
  61. package/lib/chevre/repo/order.d.ts +10 -4
  62. package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
  63. package/lib/chevre/repo/paymentService.d.ts +8 -8
  64. package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
  65. package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
  66. package/lib/chevre/repo/potentialAction.d.ts +7 -26
  67. package/lib/chevre/repo/priceSpecification.d.ts +47 -22
  68. package/lib/chevre/repo/priceSpecification.js +0 -6
  69. package/lib/chevre/repo/product.d.ts +7 -3
  70. package/lib/chevre/repo/project.d.ts +8 -11
  71. package/lib/chevre/repo/reservation.d.ts +18 -6
  72. package/lib/chevre/repo/reserveInterface.js +4 -4
  73. package/lib/chevre/repo/role.d.ts +39 -3
  74. package/lib/chevre/repo/schedule.js +1 -1
  75. package/lib/chevre/repo/seller.d.ts +7 -50
  76. package/lib/chevre/repo/task.d.ts +7 -67
  77. package/lib/chevre/repo/transaction.d.ts +103 -13
  78. package/package.json +3 -3
@@ -84,7 +84,7 @@ async function handleMongoError(error) {
84
84
  // handle CastError(2025-10-27~)
85
85
  // CastError: Cast to ObjectId failed for value "xxx" (type string) at path "_id" for model "xxxxxxxxxxxxx"
86
86
  if (handledError instanceof mongooseError.CastError) {
87
- handledError = new factory_1.errors.Argument(`${handledError.model?.modelName}.${handledError.path}`, (handledError.reason instanceof Error) ? handledError.reason.message : handledError.message);
87
+ handledError = new factory_1.errors.Argument(`${handledError.path}`, (handledError.reason instanceof Error) ? handledError.reason.message : handledError.message);
88
88
  }
89
89
  return handledError;
90
90
  }
@@ -12,11 +12,15 @@ export declare class AccountTitleRepo {
12
12
  id: string;
13
13
  };
14
14
  }): Promise<void>;
15
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle> & factory.accountTitle.IAccountTitle & {
15
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle, {}, {}> & factory.accountTitle.IAccountTitle & {
16
16
  _id: import("mongoose").Types.ObjectId;
17
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle> & factory.accountTitle.IAccountTitle & {
17
+ } & {
18
+ __v: number;
19
+ }, import("mongoose").QueryOptions<factory.accountTitle.IAccountTitle>, (import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle, {}, {}> & factory.accountTitle.IAccountTitle & {
18
20
  _id: import("mongoose").Types.ObjectId;
19
- }>>;
21
+ } & {
22
+ __v: number;
23
+ }) | null>;
20
24
  unsetUnnecessaryFields(params: {
21
25
  filter: any;
22
26
  $unset: any;
@@ -25,8 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.AcceptCOAOfferActionRepo = void 0;
27
27
  const factory = __importStar(require("../../factory"));
28
- // import { MONGO_MAX_TIME_MS } from '../settings';
29
- // import { createSchema, IModel as IActionModel, modelName } from './mongoose/schemas/action';
30
28
  // import { createSchema as createRecipeSchema, IModel as IActionRecipeModel, modelName as recipeModelName } from './mongoose/schemas/actionRecipe';
31
29
  const actionProcess_1 = require("./actionProcess");
32
30
  /**
@@ -141,5 +141,5 @@ export declare class ActionProcessRepo<TAction extends IAction<factory.actionTyp
141
141
  };
142
142
  sort?: factory.action.ISortOrder;
143
143
  }): Promise<TAction[]>;
144
- protected upsertRecipe(savingRecipe: Pick<IRecipeAsDocument, 'project' | 'recipeCategory' | 'recipeFor' | 'step' | 'typeOf'>): Promise<import("mongoose").UpdateWriteOpResult>;
144
+ protected upsertRecipe(savingRecipe: Pick<IRecipeAsDocument, 'project' | 'recipeCategory' | 'recipeFor' | 'step' | 'typeOf'>): Promise<void>;
145
145
  }
@@ -778,9 +778,9 @@ class ActionProcessRepo {
778
778
  $setOnInsert: setOnInsert,
779
779
  $set: setKeys
780
780
  };
781
- return this.actionRecipeModel.updateOne(filter, update, {
782
- upsert: true,
783
- includeResultMetadata: true
781
+ await this.actionRecipeModel.updateOne(filter, update, {
782
+ upsert: true
783
+ // includeResultMetadata: true
784
784
  })
785
785
  .exec();
786
786
  }
@@ -1,5 +1,6 @@
1
1
  import { FilterQuery, UpdateQuery } from 'mongoose';
2
2
  import * as factory from '../factory';
3
+ import type { IDocType } from './mongoose/schemas/action';
3
4
  import { IAction, IKeyOfProjection, ActionProcessRepo, ICancelActionAction, IActionRecipe } from './action/actionProcess';
4
5
  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.offer.moneyTransfer.IAction | factory.action.authorize.offer.product.IAction | factory.action.authorize.paymentMethod.any.IAction) : never;
5
6
  export { ICancelActionAction };
@@ -101,19 +102,19 @@ export declare class ActionRepo extends ActionProcessRepo<IAction<StartableActio
101
102
  }): Promise<{
102
103
  deletedCount?: number;
103
104
  } | null>;
104
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
105
- identifier?: string;
106
- }> & Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
105
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
107
106
  identifier?: string;
108
107
  } & {
109
108
  _id: import("mongoose").Types.ObjectId;
110
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
111
- identifier?: string;
112
- }> & Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
109
+ } & {
110
+ __v: number;
111
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/action").IAction<import("@chevre/factory/lib/action").IAttributes<factory.actionType, any, any>>, "id"> & {
113
112
  identifier?: string;
114
113
  } & {
115
114
  _id: import("mongoose").Types.ObjectId;
116
- }>>;
115
+ } & {
116
+ __v: number;
117
+ }) | null>;
117
118
  unsetUnnecessaryFields(params: {
118
119
  filter: FilterQuery<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>>;
119
120
  $unset: any;
@@ -29,8 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ActionRepo = void 0;
30
30
  const moment_1 = __importDefault(require("moment"));
31
31
  const factory = __importStar(require("../factory"));
32
- // import { MONGO_MAX_TIME_MS } from '../settings';
33
- // import { createSchema, IModel as IActionModel, modelName } from './mongoose/schemas/action';
34
32
  // import { createSchema as createRecipeSchema, IModel as IActionRecipeModel, modelName as recipeModelName } from './mongoose/schemas/actionRecipe';
35
33
  const actionProcess_1 = require("./action/actionProcess");
36
34
  /**
@@ -59,11 +59,15 @@ export declare class AggregateOfferRepo {
59
59
  };
60
60
  id: string;
61
61
  }): Promise<void>;
62
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, IAggregateOfferDocType> & IAggregateOfferDocType & Required<{
62
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, IAggregateOfferDocType, {}, {}> & IAggregateOfferDocType & Required<{
63
63
  _id: string;
64
- }>, import("mongoose").QueryOptions<Document<unknown, {}, IAggregateOfferDocType> & IAggregateOfferDocType & Required<{
64
+ }> & {
65
+ __v: number;
66
+ }, import("mongoose").QueryOptions<IAggregateOfferDocType>, (Document<unknown, {}, IAggregateOfferDocType, {}, {}> & IAggregateOfferDocType & Required<{
65
67
  _id: string;
66
- }>>>;
68
+ }> & {
69
+ __v: number;
70
+ }) | null>;
67
71
  unsetUnnecessaryFields(params: {
68
72
  filter: FilterQuery<factory.aggregateOffer.IAggregateOffer>;
69
73
  $unset: any;
@@ -224,49 +224,49 @@ export declare class AssetTransactionRepo {
224
224
  seller?: any;
225
225
  } & {
226
226
  _id: import("mongoose").Types.ObjectId;
227
- } & Required<{
228
- _id: import("mongoose").Types.ObjectId;
229
- }>) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
227
+ } & {
228
+ __v: number;
229
+ }) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
230
230
  id: string;
231
231
  } & {
232
232
  seller?: any;
233
233
  } & {
234
234
  _id: import("mongoose").Types.ObjectId;
235
- } & Required<{
236
- _id: import("mongoose").Types.ObjectId;
237
- }>) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
235
+ } & {
236
+ __v: number;
237
+ }) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
238
238
  id: string;
239
239
  } & {
240
240
  seller?: any;
241
241
  } & {
242
242
  _id: import("mongoose").Types.ObjectId;
243
- } & Required<{
244
- _id: import("mongoose").Types.ObjectId;
245
- }>) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
243
+ } & {
244
+ __v: number;
245
+ }) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
246
246
  id: string;
247
247
  } & {
248
248
  seller?: any;
249
249
  } & {
250
250
  _id: import("mongoose").Types.ObjectId;
251
- } & Required<{
252
- _id: import("mongoose").Types.ObjectId;
253
- }>) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
251
+ } & {
252
+ __v: number;
253
+ }) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
254
254
  id: string;
255
255
  } & {
256
256
  seller?: any;
257
257
  } & {
258
258
  _id: import("mongoose").Types.ObjectId;
259
- } & Required<{
260
- _id: import("mongoose").Types.ObjectId;
261
- }>) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
259
+ } & {
260
+ __v: number;
261
+ }) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
262
262
  id: string;
263
263
  } & {
264
264
  seller?: any;
265
265
  } & {
266
266
  _id: import("mongoose").Types.ObjectId;
267
- } & Required<{
268
- _id: import("mongoose").Types.ObjectId;
269
- }>)>;
267
+ } & {
268
+ __v: number;
269
+ })>;
270
270
  /**
271
271
  * 互換性維持対応専用
272
272
  */
@@ -286,81 +286,107 @@ export declare class AssetTransactionRepo {
286
286
  }): Promise<void>;
287
287
  getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
288
288
  seller?: any;
289
- }> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
289
+ }, {}, {}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
290
290
  id: string;
291
291
  } & {
292
292
  seller?: any;
293
293
  } & {
294
294
  _id: import("mongoose").Types.ObjectId;
295
+ } & {
296
+ __v: number;
295
297
  }) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
296
298
  id: string;
297
299
  } & {
298
300
  seller?: any;
299
301
  } & {
300
302
  _id: import("mongoose").Types.ObjectId;
303
+ } & {
304
+ __v: number;
301
305
  }) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
302
306
  id: string;
303
307
  } & {
304
308
  seller?: any;
305
309
  } & {
306
310
  _id: import("mongoose").Types.ObjectId;
311
+ } & {
312
+ __v: number;
307
313
  }) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
308
314
  id: string;
309
315
  } & {
310
316
  seller?: any;
311
317
  } & {
312
318
  _id: import("mongoose").Types.ObjectId;
319
+ } & {
320
+ __v: number;
313
321
  }) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
314
322
  id: string;
315
323
  } & {
316
324
  seller?: any;
317
325
  } & {
318
326
  _id: import("mongoose").Types.ObjectId;
327
+ } & {
328
+ __v: number;
319
329
  }) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
320
330
  id: string;
321
331
  } & {
322
332
  seller?: any;
323
333
  } & {
324
334
  _id: import("mongoose").Types.ObjectId;
325
- })), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
335
+ } & {
336
+ __v: number;
337
+ })), import("mongoose").QueryOptions<(import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
326
338
  seller?: any;
327
- }> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
339
+ }>, (import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
340
+ seller?: any;
341
+ }, {}, {}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
328
342
  id: string;
329
343
  } & {
330
344
  seller?: any;
331
345
  } & {
332
346
  _id: import("mongoose").Types.ObjectId;
347
+ } & {
348
+ __v: number;
333
349
  }) | (import("@chevre/factory/lib/assetTransaction/moneyTransfer").IAttributes & {
334
350
  id: string;
335
351
  } & {
336
352
  seller?: any;
337
353
  } & {
338
354
  _id: import("mongoose").Types.ObjectId;
355
+ } & {
356
+ __v: number;
339
357
  }) | (import("@chevre/factory/lib/assetTransaction/pay").IAttributes & {
340
358
  id: string;
341
359
  } & {
342
360
  seller?: any;
343
361
  } & {
344
362
  _id: import("mongoose").Types.ObjectId;
363
+ } & {
364
+ __v: number;
345
365
  }) | (import("@chevre/factory/lib/assetTransaction/refund").IAttributes & {
346
366
  id: string;
347
367
  } & {
348
368
  seller?: any;
349
369
  } & {
350
370
  _id: import("mongoose").Types.ObjectId;
371
+ } & {
372
+ __v: number;
351
373
  }) | (import("@chevre/factory/lib/assetTransaction/registerService").IAttributes & {
352
374
  id: string;
353
375
  } & {
354
376
  seller?: any;
355
377
  } & {
356
378
  _id: import("mongoose").Types.ObjectId;
379
+ } & {
380
+ __v: number;
357
381
  }) | (import("@chevre/factory/lib/assetTransaction/reserve").IAttributes & {
358
382
  id: string;
359
383
  } & {
360
384
  seller?: any;
361
385
  } & {
362
386
  _id: import("mongoose").Types.ObjectId;
363
- }))>>;
387
+ } & {
388
+ __v: number;
389
+ }))) | null>;
364
390
  unsetUnnecessaryFields(params: {
365
391
  filter: any;
366
392
  $unset: any;
@@ -1,4 +1,5 @@
1
1
  import { AnyExpression, Connection, FilterQuery, Types } from 'mongoose';
2
+ import { IDocType } from './mongoose/schemas/categoryCode';
2
3
  import * as factory from '../factory';
3
4
  type IUnset = {
4
5
  [key in keyof Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'color' | 'image'>]?: 1;
@@ -66,11 +67,15 @@ export declare class CategoryCodeRepo {
66
67
  id: string;
67
68
  };
68
69
  }): Promise<void>;
69
- getCursor(conditions: FilterQuery<factory.categoryCode.ICategoryCode>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.categoryCode.ICategoryCode> & factory.categoryCode.ICategoryCode & {
70
+ getCursor(conditions: FilterQuery<factory.categoryCode.ICategoryCode>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
70
71
  _id: Types.ObjectId;
71
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.categoryCode.ICategoryCode> & factory.categoryCode.ICategoryCode & {
72
+ } & {
73
+ __v: number;
74
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
72
75
  _id: Types.ObjectId;
73
- }>>;
76
+ } & {
77
+ __v: number;
78
+ }) | null>;
74
79
  unsetUnnecessaryFields(params: {
75
80
  filter: FilterQuery<factory.categoryCode.ICategoryCode>;
76
81
  $unset: any;
@@ -30,9 +30,13 @@ export declare class CommentRepo {
30
30
  deleteById(params: {
31
31
  id: string;
32
32
  }): Promise<void>;
33
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
33
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment, {}, {}> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
34
34
  _id: import("mongoose").Types.ObjectId;
35
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
35
+ } & {
36
+ __v: number;
37
+ }, import("mongoose").QueryOptions<import("@chevre/factory/lib/creativeWork/comment").IComment>, (import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment, {}, {}> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
36
38
  _id: import("mongoose").Types.ObjectId;
37
- }>>;
39
+ } & {
40
+ __v: number;
41
+ }) | null>;
38
42
  }
@@ -1,6 +1,7 @@
1
1
  import type { BulkWriteResult } from 'mongodb';
2
2
  import { Connection, FilterQuery, Types } from 'mongoose';
3
3
  import * as factory from '../factory';
4
+ import { IDocType } from './mongoose/schemas/creativeWork';
4
5
  type IKeyOfProjection = keyof factory.creativeWork.movie.ICreativeWork;
5
6
  /**
6
7
  * コンテンツリポジトリ
@@ -48,19 +49,19 @@ export declare class CreativeWorkRepo {
48
49
  id: string;
49
50
  };
50
51
  }): Promise<void>;
51
- getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
52
- description?: string;
53
- }> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
52
+ getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/creativeWork/movie").ICreativeWork, "id"> & {
54
53
  description?: string;
55
54
  } & {
56
55
  _id: Types.ObjectId;
57
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
58
- description?: string;
59
- }> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
56
+ } & {
57
+ __v: number;
58
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/creativeWork/movie").ICreativeWork, "id"> & {
60
59
  description?: string;
61
60
  } & {
62
61
  _id: Types.ObjectId;
63
- }>>;
62
+ } & {
63
+ __v: number;
64
+ }) | null>;
64
65
  unsetUnnecessaryFields(params: {
65
66
  filter: FilterQuery<factory.creativeWork.movie.ICreativeWork>;
66
67
  $unset: any;
@@ -1,4 +1,5 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
+ import { IDocType } from './mongoose/schemas/customer';
2
3
  import * as factory from '../factory';
3
4
  type IUnset = {
4
5
  [key in keyof Pick<factory.customer.ICustomer, 'telephone' | 'url'>]?: 1;
@@ -27,11 +28,15 @@ export declare class CustomerRepo {
27
28
  deleteById(params: {
28
29
  id: string;
29
30
  }): Promise<void>;
30
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.customer.ICustomer> & factory.customer.ICustomer & {
31
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
31
32
  _id: import("mongoose").Types.ObjectId;
32
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.customer.ICustomer> & factory.customer.ICustomer & {
33
+ } & {
34
+ __v: number;
35
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
33
36
  _id: import("mongoose").Types.ObjectId;
34
- }>>;
37
+ } & {
38
+ __v: number;
39
+ }) | null>;
35
40
  unsetUnnecessaryFields(params: {
36
41
  filter: any;
37
42
  $unset: any;
@@ -124,17 +124,6 @@ export declare class EventRepo {
124
124
  * イベントを検索する(inclusion projection)
125
125
  */
126
126
  projectEventFields(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<Omit<factory.event.screeningEvent.IEvent, 'aggregateOffer'>[]>;
127
- findByAdditionalProperty(params: {
128
- project: {
129
- id: string;
130
- };
131
- additionalProperty: factory.propertyValue.IPropertyValue<string>;
132
- }): Promise<(import("mongoose").FlattenMaps<import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
133
- _id: string;
134
- aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
135
- }> & Required<{
136
- _id: string;
137
- }>)[]>;
138
127
  /**
139
128
  * apiで公開属性を検索する(2024-10-13~)
140
129
  */
@@ -302,28 +291,27 @@ export declare class EventRepo {
302
291
  getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
303
292
  _id: string;
304
293
  aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
305
- }> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
294
+ }, {}, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
306
295
  _id: string;
307
296
  aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
308
297
  } & Required<{
309
298
  _id: string;
310
- }>, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
299
+ }> & {
300
+ __v: number;
301
+ }, import("mongoose").QueryOptions<import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
311
302
  _id: string;
312
303
  aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
313
- }> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
304
+ }>, (import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
305
+ _id: string;
306
+ aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
307
+ }, {}, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
314
308
  _id: string;
315
309
  aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
316
310
  } & Required<{
317
311
  _id: string;
318
- }>>>;
319
- addAvailableAtOrFrom(params: {
320
- id: string;
321
- offers: {
322
- seller: {
323
- makesOffer: factory.event.screeningEvent.ISellerMakesOffer;
324
- };
325
- };
326
- }): Promise<void>;
312
+ }> & {
313
+ __v: number;
314
+ }) | null>;
327
315
  unsetUnnecessaryFields(params: {
328
316
  filter: FilterQuery<factory.event.screeningEvent.IEvent>;
329
317
  $unset: IUnset;
@@ -566,20 +566,6 @@ class EventRepo {
566
566
  .lean() // lean(2024-08-01~)
567
567
  .exec();
568
568
  }
569
- async findByAdditionalProperty(params) {
570
- const query = this.eventModel.find({
571
- 'project.id': { $eq: params.project.id },
572
- additionalProperty: { $eq: params.additionalProperty }
573
- }, { _id: 1 });
574
- // if (typeof params.limit === 'number' && params.limit > 0) {
575
- // const page: number = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
576
- // query.limit(params.limit)
577
- // .skip(params.limit * (page - 1));
578
- // }
579
- return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
580
- .lean()
581
- .exec();
582
- }
583
569
  /**
584
570
  * apiで公開属性を検索する(2024-10-13~)
585
571
  */
@@ -720,7 +706,9 @@ class EventRepo {
720
706
  return this.eventModel.updateOne({
721
707
  _id: { $eq: params.id },
722
708
  'project.id': { $eq: params.project.id }
723
- }, { $set: { eventStatus: factory.eventStatusType.EventCancelled } }, { includeResultMetadata: true })
709
+ }, { $set: { eventStatus: factory.eventStatusType.EventCancelled } }, {
710
+ // includeResultMetadata: true
711
+ })
724
712
  .exec();
725
713
  }
726
714
  /**
@@ -829,14 +817,25 @@ class EventRepo {
829
817
  .sort({ startDate: factory.sortType.Descending })
830
818
  .cursor();
831
819
  }
832
- async addAvailableAtOrFrom(params) {
833
- await this.eventModel.updateOne({ _id: { $eq: params.id } }, {
834
- $push: {
835
- 'offers.seller.makesOffer': params.offers.seller.makesOffer
836
- }
837
- }, { includeResultMetadata: true })
838
- .exec();
839
- }
820
+ // public async addAvailableAtOrFrom(params: {
821
+ // id: string;
822
+ // offers: {
823
+ // seller: {
824
+ // makesOffer: factory.event.screeningEvent.ISellerMakesOffer;
825
+ // };
826
+ // };
827
+ // }): Promise<void> {
828
+ // await this.eventModel.updateOne(
829
+ // { _id: { $eq: params.id } },
830
+ // {
831
+ // $push: {
832
+ // 'offers.seller.makesOffer': params.offers.seller.makesOffer
833
+ // }
834
+ // },
835
+ // { includeResultMetadata: true }
836
+ // )
837
+ // .exec();
838
+ // }
840
839
  async unsetUnnecessaryFields(params) {
841
840
  return this.eventModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
842
841
  .exec();
@@ -88,17 +88,23 @@ export declare class EventSeriesRepo {
88
88
  }>;
89
89
  getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.eventSeries.IAttributes & {
90
90
  _id: string;
91
- }> & factory.eventSeries.IAttributes & {
91
+ }, {}, {}> & factory.eventSeries.IAttributes & {
92
92
  _id: string;
93
93
  } & Required<{
94
94
  _id: string;
95
- }>, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.eventSeries.IAttributes & {
95
+ }> & {
96
+ __v: number;
97
+ }, import("mongoose").QueryOptions<factory.eventSeries.IAttributes & {
96
98
  _id: string;
97
- }> & factory.eventSeries.IAttributes & {
99
+ }>, (import("mongoose").Document<unknown, {}, factory.eventSeries.IAttributes & {
100
+ _id: string;
101
+ }, {}, {}> & factory.eventSeries.IAttributes & {
98
102
  _id: string;
99
103
  } & Required<{
100
104
  _id: string;
101
- }>>>;
105
+ }> & {
106
+ __v: number;
107
+ }) | null>;
102
108
  unsetUnnecessaryFields(params: {
103
109
  filter: FilterQuery<factory.eventSeries.IEvent>;
104
110
  $unset: IUnset;
@@ -1,5 +1,6 @@
1
1
  import { Connection, FilterQuery, QueryOptions } from 'mongoose';
2
2
  import * as factory from '../factory';
3
+ import { IDocType } from './mongoose/schemas/identity';
3
4
  type ISavingSoftwareApplicationIdentity = Pick<factory.creativeWork.certification.softwareApplication.ICertification, 'about' | 'project' | 'typeOf'>;
4
5
  type ISavingWebApplicationIdentity = Pick<factory.creativeWork.certification.webApplication.ICertification, 'about' | 'project' | 'typeOf'>;
5
6
  export type ISavingIdentity = (ISavingSoftwareApplicationIdentity | ISavingWebApplicationIdentity) & {
@@ -37,15 +38,23 @@ export declare class IdentityRepo {
37
38
  id: string;
38
39
  };
39
40
  }): Promise<void>;
40
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> | Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id">> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
41
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
41
42
  _id: import("mongoose").Types.ObjectId;
43
+ } & {
44
+ __v: number;
42
45
  }) | (Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id"> & {
43
46
  _id: import("mongoose").Types.ObjectId;
44
- })), QueryOptions<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> | Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id">> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
47
+ } & {
48
+ __v: number;
49
+ })), QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
45
50
  _id: import("mongoose").Types.ObjectId;
51
+ } & {
52
+ __v: number;
46
53
  }) | (Omit<import("@chevre/factory/lib/creativeWork/certification/webApplication").ICertification, "id"> & {
47
54
  _id: import("mongoose").Types.ObjectId;
48
- }))>>;
55
+ } & {
56
+ __v: number;
57
+ }))) | null>;
49
58
  updateIssuedBy2array(params: Pick<ISavingIdentity, 'issuedBy'> & {
50
59
  id: string;
51
60
  }): Promise<void>;