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

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 (103) hide show
  1. package/lib/chevre/repo/accountTitle.d.ts +3 -3
  2. package/lib/chevre/repo/accountTransaction.js +1 -2
  3. package/lib/chevre/repo/action.d.ts +3 -3
  4. package/lib/chevre/repo/aggregateAction.js +0 -1
  5. package/lib/chevre/repo/aggregateOffer.d.ts +3 -3
  6. package/lib/chevre/repo/assetTransaction.d.ts +4 -9
  7. package/lib/chevre/repo/categoryCode.d.ts +3 -3
  8. package/lib/chevre/repo/comment.d.ts +3 -3
  9. package/lib/chevre/repo/creativeWork.d.ts +3 -3
  10. package/lib/chevre/repo/customer.d.ts +3 -3
  11. package/lib/chevre/repo/event.d.ts +4 -4
  12. package/lib/chevre/repo/eventSeries.d.ts +4 -4
  13. package/lib/chevre/repo/identity.d.ts +3 -3
  14. package/lib/chevre/repo/identityProvider.d.ts +3 -3
  15. package/lib/chevre/repo/issuer.d.ts +3 -3
  16. package/lib/chevre/repo/member.d.ts +3 -3
  17. package/lib/chevre/repo/merchantReturnPolicy.d.ts +3 -3
  18. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +3 -2
  19. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -3
  20. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -3
  21. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +5 -4
  22. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +3 -2
  23. package/lib/chevre/repo/mongoose/schemas/action.d.ts +3 -2
  24. package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +4 -3
  25. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +3 -2
  26. package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +3 -2
  27. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +3 -2
  28. package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +3 -2
  29. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +4 -3
  30. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -3
  31. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -3
  32. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +3 -2
  33. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +3 -2
  34. package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +3 -2
  35. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -3
  36. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +3 -2
  37. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +3 -2
  38. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +3 -2
  39. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -3
  40. package/lib/chevre/repo/mongoose/schemas/event.d.ts +3 -2
  41. package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +3 -2
  42. package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +3 -2
  43. package/lib/chevre/repo/mongoose/schemas/identity.d.ts +3 -2
  44. package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +3 -2
  45. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +3 -2
  46. package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +3 -2
  47. package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -3
  48. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -3
  49. package/lib/chevre/repo/mongoose/schemas/message.d.ts +3 -2
  50. package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +3 -2
  51. package/lib/chevre/repo/mongoose/schemas/note.d.ts +3 -2
  52. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +3 -2
  53. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +3 -2
  54. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +3 -2
  55. package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -3
  56. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +3 -2
  57. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +3 -2
  58. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +3 -2
  59. package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +4 -3
  60. package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +4 -3
  61. package/lib/chevre/repo/mongoose/schemas/place.d.ts +3 -2
  62. package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +3 -2
  63. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -2
  64. package/lib/chevre/repo/mongoose/schemas/product.d.ts +3 -2
  65. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +4 -3
  66. package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +3 -2
  67. package/lib/chevre/repo/mongoose/schemas/project.d.ts +3 -2
  68. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -3
  69. package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +4 -3
  70. package/lib/chevre/repo/mongoose/schemas/role.d.ts +3 -2
  71. package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +4 -3
  72. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +3 -2
  73. package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +3 -2
  74. package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +3 -2
  75. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +4 -3
  76. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +3 -2
  77. package/lib/chevre/repo/mongoose/schemas/task.d.ts +3 -2
  78. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -3
  79. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +3 -2
  80. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +3 -2
  81. package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +3 -2
  82. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -3
  83. package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +3 -2
  84. package/lib/chevre/repo/mongoose/virtuals.d.ts +3 -0
  85. package/lib/chevre/repo/mongoose/virtuals.js +2 -0
  86. package/lib/chevre/repo/offerCatalog.d.ts +3 -3
  87. package/lib/chevre/repo/order.d.ts +4 -9
  88. package/lib/chevre/repo/ownershipInfo.d.ts +3 -3
  89. package/lib/chevre/repo/paymentService.d.ts +1 -14
  90. package/lib/chevre/repo/paymentService.js +5 -5
  91. package/lib/chevre/repo/pendingReservation.js +0 -1
  92. package/lib/chevre/repo/place/movieTheater.d.ts +3 -3
  93. package/lib/chevre/repo/place/screeningRoom.d.ts +3 -3
  94. package/lib/chevre/repo/potentialAction.d.ts +3 -3
  95. package/lib/chevre/repo/priceSpecification.d.ts +7 -5
  96. package/lib/chevre/repo/priceSpecification.js +9 -7
  97. package/lib/chevre/repo/product.d.ts +4 -4
  98. package/lib/chevre/repo/project.d.ts +3 -3
  99. package/lib/chevre/repo/reservation.d.ts +4 -15
  100. package/lib/chevre/repo/seller.d.ts +3 -3
  101. package/lib/chevre/repo/task.d.ts +3 -3
  102. package/lib/chevre/repo/transaction.d.ts +4 -3
  103. package/package.json +1 -1
@@ -1,13 +1,14 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.project.IProject, 'id'> & {
4
5
  _id: string;
5
6
  aggregateReservation?: any;
6
7
  makesOffer?: factory.project.IMakesOffer[];
7
8
  };
8
- type IModel = Model<IDocType>;
9
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
9
10
  type ISchemaDefinition = SchemaDefinition<IDocType>;
10
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
11
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
11
12
  declare const modelName = "Project";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  declare function createSchema(): ISchema;
@@ -1,14 +1,15 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = (Omit<factory.reservation.IReservation<factory.reservationType.BusReservation>, 'id'> | Omit<factory.reservation.IReservation<factory.reservationType.EventReservation>, 'id'>) & {
4
5
  _id: string;
5
6
  bookingAgent?: any;
6
7
  previousReservationStatus?: factory.reservationStatusType;
7
8
  };
8
- type IModel = Model<IDocType>;
9
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
9
10
  type ISchemaDefinition = SchemaDefinition<IDocType>;
10
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
11
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
11
12
  declare const modelName = "Reservation";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  declare function createSchema(): ISchema;
14
- export { createSchema, IModel, indexes, modelName };
15
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,11 +1,12 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import * as factory from '../../../factory';
3
+ import { IVirtuals } from '../virtuals';
3
4
  export type IWebAPI = Omit<factory.service.webAPI.IServiceWithChannel, 'id'>;
4
5
  type IDocType = IWebAPI;
5
- type IModel = Model<IDocType>;
6
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
6
7
  type ISchemaDefinition = SchemaDefinition<IDocType>;
7
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
8
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
8
9
  declare const modelName = "ReserveInterface";
9
10
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
10
11
  declare function createSchema(): ISchema;
11
- export { createSchema, IModel, indexes, modelName };
12
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Pick<factory.role.organizationRole.IRole, 'permissions' | 'roleName' | 'typeOf' | 'member' | 'memberOf'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "Role";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
@@ -1,10 +1,11 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.schedule.IEventWithSchedule, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "Schedule";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
10
- export { createSchema, IModel, indexes, modelName };
11
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.seller.ISeller, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "Seller";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.sellerReturnPolicy.ISellerReturnPolicy, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "SellerReturnPolicy";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
@@ -1,4 +1,5 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../../virtuals';
2
3
  /**
3
4
  * The place is open if the opens property is specified, and closed otherwise.
4
5
  */
@@ -9,9 +10,9 @@ interface IOpeningHoursSpecification {
9
10
  validThrough: Date;
10
11
  }
11
12
  type IDocType = IOpeningHoursSpecification;
12
- type IModel = Model<IDocType>;
13
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
13
14
  type ISchemaDefinition = SchemaDefinition<IDocType>;
14
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
15
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
15
16
  declare const modelName = "Service.AvailableHour";
16
17
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
17
18
  declare function createSchema(): ISchema;
@@ -1,10 +1,11 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.permit.IPermit, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "ServiceOutput";
8
9
  declare function createSchema(): ISchema;
9
10
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
10
- export { createSchema, IModel, indexes, modelName };
11
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,6 +1,7 @@
1
1
  import type { Algorithm } from 'jsonwebtoken';
2
2
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
3
3
  import * as factory from '../../../factory';
4
+ import { IVirtuals } from '../virtuals';
4
5
  interface IOnOrderStatusChanged {
5
6
  /**
6
7
  * AggService通知先
@@ -182,9 +183,9 @@ export interface ISetting {
182
183
  useMongo4transactionNumberFrom?: Date;
183
184
  }
184
185
  type IDocType = ISetting;
185
- type IModel = Model<IDocType>;
186
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
186
187
  type ISchemaDefinition = SchemaDefinition<IDocType>;
187
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
188
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
188
189
  declare const modelName = "Setting";
189
190
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
190
191
  declare function createSchema(): ISchema;
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.task.ITask<factory.taskName>, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "Task";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  type IDocType = any;
3
- type IModel = Model<IDocType>;
4
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
4
5
  type ISchemaDefinition = SchemaDefinition<IDocType>;
5
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
6
7
  declare const modelName = "Telemetry";
7
8
  declare function createSchema(): ISchema;
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
- export { createSchema, IModel, indexes, modelName };
10
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,4 +1,5 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  export interface ITicketIssuedBy {
4
5
  id: string;
@@ -19,9 +20,9 @@ export interface ITicket {
19
20
  issuedBy: ITicketIssuedBy;
20
21
  }
21
22
  type IDocType = Omit<ITicket, 'id'>;
22
- type IModel = Model<IDocType>;
23
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
23
24
  type ISchemaDefinition = SchemaDefinition<IDocType>;
24
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
25
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
25
26
  declare const modelName = "Ticket";
26
27
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
27
28
  declare function createSchema(): ISchema;
@@ -1,12 +1,13 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IPlaceOrder = Omit<factory.transaction.placeOrder.ITransaction, 'id'>;
4
5
  type IReturnOrder = Omit<factory.transaction.returnOrder.ITransaction, 'id'>;
5
6
  type IMoneyTransfer = Omit<factory.transaction.moneyTransfer.ITransaction, 'id'>;
6
7
  type IDocType = IPlaceOrder | IReturnOrder | IMoneyTransfer;
7
- type IModel = Model<IDocType>;
8
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
8
9
  type ISchemaDefinition = SchemaDefinition<IDocType>;
9
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
10
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
10
11
  declare const modelName = "Transaction";
11
12
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
12
13
  declare function createSchema(): ISchema;
@@ -1,4 +1,5 @@
1
1
  import { Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  declare enum DataCatalogIdentifier {
4
5
  confirmationNumber = "confirmationNumber",
@@ -31,9 +32,9 @@ interface IDataFeed {
31
32
  };
32
33
  }
33
34
  type IDocType = IDataFeed;
34
- type IModel = Model<IDocType>;
35
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
35
36
  type ISchemaDefinition = SchemaDefinition<IDocType>;
36
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
37
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
37
38
  declare const modelName = "TransactionNumber";
38
39
  declare function createSchema(): ISchema;
39
40
  export { createSchema, IDocType, IModel, modelName, DataCatalogIdentifier };
@@ -1,10 +1,11 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.trip.ITrip<factory.tripType>, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "Trip";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
10
- export { createSchema, IModel, indexes, modelName };
11
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,9 +1,10 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import { IVirtuals } from '../virtuals';
2
3
  import * as factory from '../../../factory';
3
4
  type IDocType = Omit<factory.creativeWork.certification.webSite.ICertification, 'id'>;
4
- type IModel = Model<IDocType>;
5
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
5
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
7
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
7
8
  declare const modelName = "WebSite";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  declare function createSchema(): ISchema;
@@ -0,0 +1,3 @@
1
+ export interface IVirtuals {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -169,7 +169,7 @@ export declare class OfferCatalogRepo {
169
169
  id: string;
170
170
  };
171
171
  }): Promise<void>;
172
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
172
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
173
173
  _id: string;
174
174
  alternateName?: any;
175
175
  dateSynced?: Date;
@@ -177,7 +177,7 @@ export declare class OfferCatalogRepo {
177
177
  _id: string;
178
178
  }> & {
179
179
  __v: number;
180
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
180
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
181
181
  _id: string;
182
182
  alternateName?: any;
183
183
  dateSynced?: Date;
@@ -185,7 +185,7 @@ export declare class OfferCatalogRepo {
185
185
  _id: string;
186
186
  }> & {
187
187
  __v: number;
188
- }) | null>;
188
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
189
189
  unsetUnnecessaryFields(params: {
190
190
  filter: FilterQuery<factory.offerCatalog.IOfferCatalog>;
191
191
  $unset: any;
@@ -1,5 +1,6 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
2
  import * as factory from '../factory';
3
+ import { IDocType } from './mongoose/schemas/order';
3
4
  type IOrderWithoutAcceptedOffers = factory.order.IOrder;
4
5
  type IKeyOfProjection = Extract<keyof IOrderWithoutAcceptedOffers, 'broker' | 'confirmationNumber' | 'customer' | 'dateReturned' | 'identifier' | 'name' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'orderedItem' | 'paymentMethods' | 'previousOrderStatus' | 'price' | 'priceCurrency' | 'project' | 'returner' | 'seller' | 'typeOf' | 'url'> | 'paymentMethods.accountId' | 'paymentMethods.name' | 'paymentMethods.paymentMethod' | 'paymentMethods.paymentMethodId' | 'paymentMethods.totalPaymentDue' | 'paymentMethods.additionalProperty' | 'paymentMethods.issuedThrough' | 'customer.id' | 'customer.typeOf';
5
6
  export type IReturnedOrder = Pick<IOrderWithoutAcceptedOffers, 'project' | 'typeOf' | 'orderNumber' | 'dateReturned' | 'id' | 'customer' | 'returner' | 'seller' | 'price' | 'priceCurrency' | 'orderDate'> & {
@@ -142,25 +143,19 @@ export declare class OrderRepo {
142
143
  }): Promise<(IOrderWithoutAcceptedOffers & {
143
144
  id: string;
144
145
  })[]>;
145
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
146
- acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
147
- }, {}, {}> & Omit<factory.order.IOrder, "id"> & {
146
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.order.IOrder, "id"> & {
148
147
  acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
149
148
  } & {
150
149
  _id: import("mongoose").Types.ObjectId;
151
150
  } & {
152
151
  __v: number;
153
- }, import("mongoose").QueryOptions<Omit<factory.order.IOrder, "id"> & {
154
- acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
155
- }>, (import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
156
- acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
157
- }, {}, {}> & Omit<factory.order.IOrder, "id"> & {
152
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.order.IOrder, "id"> & {
158
153
  acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
159
154
  } & {
160
155
  _id: import("mongoose").Types.ObjectId;
161
156
  } & {
162
157
  __v: number;
163
- }) | null>;
158
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
164
159
  unsetUnnecessaryFields(params: {
165
160
  filter: FilterQuery<factory.order.IOrder>;
166
161
  $unset: any;
@@ -74,19 +74,19 @@ export declare class OwnershipInfoRepo {
74
74
  $lt: Date;
75
75
  };
76
76
  }): Promise<void>;
77
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
77
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
78
78
  _id: string;
79
79
  } & Required<{
80
80
  _id: string;
81
81
  }> & {
82
82
  __v: number;
83
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
83
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
84
84
  _id: string;
85
85
  } & Required<{
86
86
  _id: string;
87
87
  }> & {
88
88
  __v: number;
89
- }) | null>;
89
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
90
90
  /**
91
91
  * 所有者を追加する
92
92
  */
@@ -1,6 +1,6 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
2
  import * as factory from '../factory';
3
- import { IModel, IDocType } from './mongoose/schemas/paymentService';
3
+ import { IModel } from './mongoose/schemas/paymentService';
4
4
  type IUnsetKey = keyof Pick<factory.service.paymentService.IService, 'additionalProperty' | 'availableChannel' | 'serviceOutput' | 'serviceType'>;
5
5
  type IKeyOfProjection4paymentService = keyof factory.service.paymentService.IService;
6
6
  /**
@@ -73,19 +73,6 @@ export declare class PaymentServiceRepo {
73
73
  filter: any;
74
74
  $unset: any;
75
75
  }): Promise<import("mongoose").UpdateWriteOpResult>;
76
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
77
- provider?: factory.service.paymentService.IProvider[];
78
- } & {
79
- _id: import("mongoose").Types.ObjectId;
80
- } & {
81
- __v: number;
82
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
83
- provider?: factory.service.paymentService.IProvider[];
84
- } & {
85
- _id: import("mongoose").Types.ObjectId;
86
- } & {
87
- __v: number;
88
- }) | null>;
89
76
  getModel(): IModel;
90
77
  }
91
78
  export {};
@@ -443,11 +443,11 @@ class PaymentServiceRepo {
443
443
  return this.paymentServiceModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
444
444
  .exec();
445
445
  }
446
- getCursor(conditions, projection) {
447
- return this.paymentServiceModel.find(conditions, projection)
448
- .sort({ productID: factory.sortType.Ascending })
449
- .cursor();
450
- }
446
+ // public getCursor(conditions: any, projection: any) {
447
+ // return this.paymentServiceModel.find(conditions, projection)
448
+ // .sort({ productID: factory.sortType.Ascending })
449
+ // .cursor();
450
+ // }
451
451
  getModel() {
452
452
  return this.paymentServiceModel;
453
453
  }
@@ -40,7 +40,6 @@ class PendingReservationRepo {
40
40
  // private readonly aggregateReservationModel: IModel;
41
41
  pendingReservationModel;
42
42
  constructor(connection) {
43
- // this.aggregateReservationModel = connection.model(modelName, createSchema());
44
43
  this.pendingReservationModel = connection.model(pendingReservation_1.modelName, (0, pendingReservation_1.createSchema)());
45
44
  }
46
45
  static CREATE_FILTER_QUERY(params) {
@@ -95,19 +95,19 @@ export declare class MovieTheaterRepo {
95
95
  id: string;
96
96
  };
97
97
  }): Promise<void>;
98
- getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
98
+ getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
99
99
  hasPOS?: factory.place.movieTheater.IPOS[];
100
100
  } & {
101
101
  _id: import("mongoose").Types.ObjectId;
102
102
  } & {
103
103
  __v: number;
104
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
104
+ }, "id"> & import("../mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
105
105
  hasPOS?: factory.place.movieTheater.IPOS[];
106
106
  } & {
107
107
  _id: import("mongoose").Types.ObjectId;
108
108
  } & {
109
109
  __v: number;
110
- }) | null>;
110
+ }, "id"> & import("../mongoose/virtuals").IVirtuals) | null>;
111
111
  unsetUnnecessaryFields(params: {
112
112
  filter: any;
113
113
  $unset: any;
@@ -124,7 +124,7 @@ export declare class ScreeningRoomRepo {
124
124
  id: string;
125
125
  };
126
126
  }): Promise<void>;
127
- getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
127
+ getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
128
128
  description?: any;
129
129
  openingHoursSpecification?: any;
130
130
  smokingAllowed?: boolean;
@@ -135,7 +135,7 @@ export declare class ScreeningRoomRepo {
135
135
  _id: import("mongoose").Types.ObjectId;
136
136
  } & {
137
137
  __v: number;
138
- }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
138
+ }, "id"> & import("../mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
139
139
  description?: any;
140
140
  openingHoursSpecification?: any;
141
141
  smokingAllowed?: boolean;
@@ -146,6 +146,6 @@ export declare class ScreeningRoomRepo {
146
146
  _id: import("mongoose").Types.ObjectId;
147
147
  } & {
148
148
  __v: number;
149
- }) | null>;
149
+ }, "id"> & import("../mongoose/virtuals").IVirtuals) | null>;
150
150
  }
151
151
  export {};
@@ -24,14 +24,14 @@ export declare class PotentialActionRepo {
24
24
  id: string;
25
25
  }>;
26
26
  projectFields(conditions: factory.potentialAction.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.potentialAction.IPotentialAction[]>;
27
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
27
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
28
28
  _id: import("mongoose").Types.ObjectId;
29
29
  } & {
30
30
  __v: number;
31
- }, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
31
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
32
32
  _id: import("mongoose").Types.ObjectId;
33
33
  } & {
34
34
  __v: number;
35
- }) | null>;
35
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
36
36
  }
37
37
  export {};
@@ -13,13 +13,15 @@ export declare class PriceSpecificationRepo {
13
13
  findById<T extends factory.priceSpecificationType>(params: {
14
14
  id: string;
15
15
  }): Promise<factory.priceSpecification.IPriceSpecification<T>>;
16
- save<T extends factory.priceSpecificationType>(params: {
16
+ save<T extends factory.priceSpecificationType.CategoryCodeChargeSpecification | factory.priceSpecificationType.MovieTicketTypeChargeSpecification>(params: {
17
17
  id?: string;
18
18
  attributes: factory.priceSpecification.IPriceSpecification<T> & {
19
19
  id?: never;
20
20
  $unset?: never;
21
21
  };
22
- }): Promise<Pick<factory.priceSpecification.IPriceSpecification<T>, 'id'>>;
22
+ }): Promise<{
23
+ id: string;
24
+ }>;
23
25
  /**
24
26
  * 削除する
25
27
  */
@@ -34,7 +36,7 @@ export declare class PriceSpecificationRepo {
34
36
  id: string;
35
37
  };
36
38
  }): Promise<void>;
37
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & (({
39
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
38
40
  project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
39
41
  name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
40
42
  price: number;
@@ -67,7 +69,7 @@ export declare class PriceSpecificationRepo {
67
69
  _id: import("mongoose").Types.ObjectId;
68
70
  } & {
69
71
  __v: number;
70
- })), import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & (({
72
+ }), "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
71
73
  project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
72
74
  name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
73
75
  price: number;
@@ -100,7 +102,7 @@ export declare class PriceSpecificationRepo {
100
102
  _id: import("mongoose").Types.ObjectId;
101
103
  } & {
102
104
  __v: number;
103
- }))) | null>;
105
+ }), "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
104
106
  unsetUnnecessaryFields(params: {
105
107
  filter: any;
106
108
  $unset: any;
@@ -220,24 +220,26 @@ class PriceSpecificationRepo {
220
220
  return doc;
221
221
  }
222
222
  async save(params) {
223
- let doc;
223
+ let savedId;
224
224
  if (typeof params.id !== 'string') {
225
225
  const { $unset, id, ...creatingDoc } = params.attributes;
226
- doc = await this.priceSpecificationModel.create(creatingDoc);
226
+ const createdDoc = await this.priceSpecificationModel.create(creatingDoc);
227
+ savedId = createdDoc.id;
227
228
  }
228
229
  else {
229
230
  // 上書き禁止属性を除外(2022-08-24~)
230
231
  const { $unset, id, project, typeOf, ...updateFields } = params.attributes;
231
- doc = await this.priceSpecificationModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
232
+ const updatedDoc = await this.priceSpecificationModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
232
233
  $set: updateFields
233
234
  }, { upsert: false, new: true, projection: { _id: 1 } })
234
235
  .lean() // lean(2024-08-06~)
235
236
  .exec();
237
+ if (updatedDoc === null) {
238
+ throw new factory.errors.NotFound(this.priceSpecificationModel.modelName);
239
+ }
240
+ savedId = updatedDoc._id.toString();
236
241
  }
237
- if (doc === null) {
238
- throw new factory.errors.NotFound(this.priceSpecificationModel.modelName);
239
- }
240
- return { id: doc._id?.toString() };
242
+ return { id: savedId };
241
243
  }
242
244
  /**
243
245
  * 削除する
@@ -1,7 +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 { IDocTypeAsProduct } from './mongoose/schemas/product';
4
+ import { IDocType, IDocTypeAsProduct } from './mongoose/schemas/product';
5
5
  type IKeyOfProjection = keyof factory.product.IProduct | 'hasOfferCatalog.id';
6
6
  /**
7
7
  * プロダクト検索条件
@@ -103,15 +103,15 @@ export declare class ProductRepo {
103
103
  id: string;
104
104
  };
105
105
  }): Promise<void>;
106
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("./mongoose/schemas/product").IDocType, {}, {}> & IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
106
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
107
107
  _id: Types.ObjectId;
108
108
  } & {
109
109
  __v: number;
110
- }, import("mongoose").QueryOptions<import("./mongoose/schemas/product").IDocType>, (import("mongoose").Document<unknown, {}, import("./mongoose/schemas/product").IDocType, {}, {}> & IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
110
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
111
111
  _id: Types.ObjectId;
112
112
  } & {
113
113
  __v: number;
114
- }) | null>;
114
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
115
115
  unsetUnnecessaryFields(params: {
116
116
  filter: FilterQuery<factory.product.IProduct>;
117
117
  $unset: any;