@chevre/domain 24.0.0-alpha.27 → 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 (114) 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/accountTransaction.js +1 -2
  4. package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
  5. package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
  6. package/lib/chevre/repo/action/actionProcess.js +3 -3
  7. package/lib/chevre/repo/action.d.ts +8 -7
  8. package/lib/chevre/repo/action.js +0 -2
  9. package/lib/chevre/repo/aggregateAction.js +0 -1
  10. package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
  11. package/lib/chevre/repo/assetTransaction.d.ts +46 -25
  12. package/lib/chevre/repo/categoryCode.d.ts +8 -3
  13. package/lib/chevre/repo/comment.d.ts +7 -3
  14. package/lib/chevre/repo/creativeWork.d.ts +8 -7
  15. package/lib/chevre/repo/customer.d.ts +8 -3
  16. package/lib/chevre/repo/event.d.ts +11 -23
  17. package/lib/chevre/repo/event.js +22 -23
  18. package/lib/chevre/repo/eventSeries.d.ts +10 -4
  19. package/lib/chevre/repo/identity.d.ts +12 -3
  20. package/lib/chevre/repo/identityProvider.d.ts +7 -18
  21. package/lib/chevre/repo/issuer.d.ts +8 -8
  22. package/lib/chevre/repo/member.d.ts +7 -3
  23. package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
  24. package/lib/chevre/repo/message.js +1 -1
  25. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +4 -3
  26. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -3
  27. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -3
  28. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +5 -4
  29. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +3 -2
  30. package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -3
  31. package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +4 -3
  32. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +5 -4
  33. package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +3 -2
  34. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -3
  35. package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +3 -2
  36. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +4 -3
  37. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -3
  38. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -3
  39. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -3
  40. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +5 -4
  41. package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +3 -2
  42. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -3
  43. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +5 -4
  44. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +5 -4
  45. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +5 -4
  46. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -3
  47. package/lib/chevre/repo/mongoose/schemas/event.d.ts +3 -2
  48. package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +4 -3
  49. package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +3 -2
  50. package/lib/chevre/repo/mongoose/schemas/identity.d.ts +4 -3
  51. package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +4 -3
  52. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +4 -3
  53. package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +4 -3
  54. package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -3
  55. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -3
  56. package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -4
  57. package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +4 -3
  58. package/lib/chevre/repo/mongoose/schemas/note.d.ts +3 -2
  59. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -3
  60. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -3
  61. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +5 -4
  62. package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -3
  63. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +5 -4
  64. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +4 -3
  65. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +4 -3
  66. package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +4 -3
  67. package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +4 -3
  68. package/lib/chevre/repo/mongoose/schemas/place.d.ts +3 -2
  69. package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +4 -3
  70. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +6 -3
  71. package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -3
  72. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +5 -4
  73. package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +3 -2
  74. package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -3
  75. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -3
  76. package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +4 -3
  77. package/lib/chevre/repo/mongoose/schemas/role.d.ts +3 -2
  78. package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +5 -4
  79. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -3
  80. package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +4 -3
  81. package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +3 -2
  82. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +5 -4
  83. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +4 -3
  84. package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -3
  85. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -3
  86. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +4 -3
  87. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -4
  88. package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +3 -2
  89. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -3
  90. package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +4 -3
  91. package/lib/chevre/repo/mongoose/virtuals.d.ts +3 -0
  92. package/lib/chevre/repo/mongoose/virtuals.js +2 -0
  93. package/lib/chevre/repo/movieTicketType.d.ts +2 -1
  94. package/lib/chevre/repo/offerCatalog.d.ts +8 -4
  95. package/lib/chevre/repo/order.d.ts +8 -7
  96. package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
  97. package/lib/chevre/repo/paymentService.d.ts +0 -13
  98. package/lib/chevre/repo/paymentService.js +5 -5
  99. package/lib/chevre/repo/pendingReservation.js +0 -1
  100. package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
  101. package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
  102. package/lib/chevre/repo/potentialAction.d.ts +7 -26
  103. package/lib/chevre/repo/priceSpecification.d.ts +51 -24
  104. package/lib/chevre/repo/priceSpecification.js +9 -13
  105. package/lib/chevre/repo/product.d.ts +8 -4
  106. package/lib/chevre/repo/project.d.ts +8 -11
  107. package/lib/chevre/repo/reservation.d.ts +14 -13
  108. package/lib/chevre/repo/reserveInterface.js +4 -4
  109. package/lib/chevre/repo/role.d.ts +39 -3
  110. package/lib/chevre/repo/schedule.js +1 -1
  111. package/lib/chevre/repo/seller.d.ts +7 -50
  112. package/lib/chevre/repo/task.d.ts +7 -67
  113. package/lib/chevre/repo/transaction.d.ts +104 -13
  114. package/package.json +3 -3
@@ -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.identityProvider.IIdentityProvider, '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 = "IdentityProvider";
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,13 +1,14 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import * as factory from '../../../factory';
3
- export type IDocType = factory.issuer.IIssuer & {
3
+ import { IVirtuals } from '../virtuals';
4
+ export type IDocType = Omit<factory.issuer.IIssuer, 'id'> & {
4
5
  hasMemberProgram?: (factory.issuer.IMemberProgram & {
5
6
  hasTiers?: Pick<factory.issuer.IMemberProgramTier, 'identifier' | 'typeOf'>[];
6
7
  })[];
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 = "Issuer";
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 IMemberOfRole = Pick<factory.iam.IMemberOfRole, 'hasRole' | 'id' | 'image' | 'name' | 'typeOf' | 'username'>;
4
5
  type IGlobalMember = Pick<factory.iam.IMember, 'typeOf'> & {
5
6
  member: IMemberOfRole;
6
7
  };
7
8
  type IDocType = IGlobalMember;
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 = "Member.Global";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  declare function createSchema(): ISchema;
14
- export { createSchema, IGlobalMember, IModel, indexes, modelName };
15
+ export { createSchema, IDocType, IGlobalMember, IModel, indexes, modelName };
@@ -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 = factory.iam.IMember;
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 = "Member";
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,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 = factory.unitPriceOffer.IOfferMerchantReturnPolicy;
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 = "MerchantReturnPolicy";
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,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 type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
4
5
  datePublished: Date;
@@ -15,11 +16,11 @@ export type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
15
16
  typeOf: factory.organizationType.Corporation;
16
17
  };
17
18
  };
18
- type IDocType = IEmailMessage;
19
- type IModel = Model<IDocType>;
19
+ type IDocType = Omit<IEmailMessage, 'id'>;
20
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
20
21
  type ISchemaDefinition = SchemaDefinition<IDocType>;
21
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
22
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
22
23
  declare const modelName = "Message";
23
24
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
24
25
  declare function createSchema(): ISchema;
25
- export { createSchema, IModel, indexes, modelName };
26
+ 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
- type IDocType = factory.movieTicketType.IMovieTicketType;
4
- type IModel = Model<IDocType>;
4
+ type IDocType = Omit<factory.movieTicketType.IMovieTicketType, 'id'>;
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 = "MovieTicketType";
8
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
9
10
  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 IDocType = Pick<factory.creativeWork.noteDigitalDocument.INoteDigitalDocument, 'creator' | 'dateCreated' | 'dateModified' | 'editor' | 'hasDigitalDocumentPermission' | 'identifier' | 'project' | 'text' | 'typeOf' | 'version'> & {
4
5
  about: factory.creativeWork.noteDigitalDocument.IAbout;
5
6
  provider: factory.creativeWork.noteDigitalDocument.IProviderAsProject | factory.creativeWork.noteDigitalDocument.IProviderAsSeller;
6
7
  };
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 = "Note";
11
12
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
12
13
  declare function createSchema(): ISchema;
@@ -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
- export type IDocType = factory.offerCatalog.IOfferCatalog & {
4
+ export type IDocType = Omit<factory.offerCatalog.IOfferCatalog, 'id'> & {
4
5
  _id: string;
5
6
  alternateName?: any;
6
7
  dateSynced?: Date;
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 = "OfferCatalog";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  declare function createSchema(): ISchema;
@@ -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
- export type IDocType = factory.offerCatalog.IOfferCatalog & {
4
+ export type IDocType = Omit<factory.offerCatalog.IOfferCatalog, 'id'> & {
4
5
  _id: string;
5
6
  alternateName?: any;
6
7
  dateSynced?: Date;
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 = "OfferCatalogItem";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  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
- type IDocType = factory.offerItemCondition.IOfferItemCondition;
4
- type IModel = Model<IDocType>;
4
+ type IDocType = Omit<factory.offerItemCondition.IOfferItemCondition, 'id'>;
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 = "OfferItemCondition";
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,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 IDocType = Omit<factory.order.IOrder, 'id'> & {
4
5
  acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
5
6
  };
6
- type IModel = Model<IDocType>;
7
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
7
8
  type ISchemaDefinition = SchemaDefinition<IDocType>;
8
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
9
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
9
10
  declare const modelName = "Order";
10
11
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
11
12
  declare function createSchema(): ISchema;
12
- export { createSchema, IModel, indexes, modelName };
13
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -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
- type IDocType = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
4
+ type IDocType = Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, 'id'> & {
4
5
  _id: string;
5
6
  };
6
- type IModel = Model<IDocType>;
7
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
7
8
  type ISchemaDefinition = SchemaDefinition<IDocType>;
8
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
9
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
9
10
  declare const modelName = "OwnershipInfo";
10
11
  declare function createSchema(): ISchema;
11
12
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
12
- export { createSchema, IModel, indexes, modelName };
13
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -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 IDocType = Omit<factory.service.paymentService.IService, 'id'> & {
4
5
  provider?: factory.service.paymentService.IProvider[];
5
6
  };
6
- type IModel = Model<IDocType>;
7
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
7
8
  type ISchemaDefinition = SchemaDefinition<IDocType>;
8
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
9
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
9
10
  declare const modelName = "PaymentService";
10
11
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
11
12
  declare function createSchema(): ISchema;
12
- export { createSchema, IModel, indexes, modelName };
13
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -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.serviceChannel.IServiceChannel, '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 = "PaymentServiceChannel";
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,5 +1,6 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import * as factory from '../../../factory';
3
+ import { IVirtuals } from '../virtuals';
3
4
  interface ISubReservation {
4
5
  identifier: string;
5
6
  }
@@ -30,10 +31,10 @@ interface IReservationPackage {
30
31
  expires: Date;
31
32
  }
32
33
  type IDocType = IReservationPackage;
33
- type IModel = Model<IDocType>;
34
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
34
35
  type ISchemaDefinition = SchemaDefinition<IDocType>;
35
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
36
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
36
37
  declare const modelName = "PendingReservation";
37
38
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
38
39
  declare function createSchema(): ISchema;
39
- export { createSchema, IModel, ISubReservation, IReservationPackage, indexes, modelName };
40
+ export { createSchema, IDocType, IModel, ISubReservation, IReservationPackage, indexes, modelName };
@@ -1,5 +1,6 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import * as factory from '../../../factory';
3
+ import { IVirtuals } from '../virtuals';
3
4
  interface IAggregateReservation {
4
5
  project: {
5
6
  id: string;
@@ -15,10 +16,10 @@ interface IAggregateReservation {
15
16
  expires: Date;
16
17
  }
17
18
  type IDocType = IAggregateReservation;
18
- type IModel = Model<IDocType>;
19
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
19
20
  type ISchemaDefinition = SchemaDefinition<IDocType>;
20
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
21
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
21
22
  declare const modelName = "PendingReservationAggregate";
22
23
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
23
24
  declare function createSchema(): ISchema;
24
- export { createSchema, IModel, IAggregateReservation, indexes, modelName };
25
+ export { createSchema, IDocType, IModel, IAggregateReservation, 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
  type ISeatSection = Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'typeOf'> & {
4
5
  containsPlace?: factory.place.seat.IPlace[];
@@ -9,9 +10,9 @@ type IDocType = Omit<factory.place.screeningRoom.IPlace, 'containsPlace'> & {
9
10
  smokingAllowed?: boolean;
10
11
  containsPlace: ISeatSection[];
11
12
  };
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 = "Place";
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
2
  import * as factory from '../../../factory';
3
+ import { IVirtuals } from '../virtuals';
3
4
  type IDocType = Omit<factory.potentialAction.IPotentialAction, '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 = "PotentialAction";
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,12 +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
- export type IDocType = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType> & {
4
+ type ICategoryCodeChargeSpecification = Omit<factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.CategoryCodeChargeSpecification>, 'id'>;
5
+ type IMovieTicketTypeChargeSpecification = Omit<factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.MovieTicketTypeChargeSpecification>, 'id'>;
6
+ export type IDocType = (ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification) & {
4
7
  validFrom?: Date;
5
8
  validThrough?: Date;
6
9
  };
7
- type IModel = Model<IDocType>;
10
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
8
11
  type ISchemaDefinition = SchemaDefinition<IDocType>;
9
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
12
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
10
13
  declare const modelName = "PriceSpecification";
11
14
  declare function createSchema(): ISchema;
12
15
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
@@ -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 IDocTypeAsProduct = Omit<factory.product.IProduct, 'id'>;
4
5
  interface IDocTypeAsProductOffer {
5
6
  offers?: never;
6
7
  }
7
8
  type IDocType = IDocTypeAsProduct & IDocTypeAsProductOffer;
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 = "Product";
12
13
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
13
14
  declare function createSchema(): ISchema;
14
- export { createSchema, IDocTypeAsProduct, IDocTypeAsProductOffer, IModel, indexes, modelName };
15
+ export { createSchema, IDocType, IDocTypeAsProduct, IDocTypeAsProductOffer, 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 IProductModel {
4
5
  id?: string;
@@ -22,11 +23,11 @@ export interface IProductModel {
22
23
  }[];
23
24
  }[];
24
25
  }
25
- type IDocType = IProductModel;
26
- type IModel = Model<IDocType>;
26
+ type IDocType = Omit<IProductModel, 'id'>;
27
+ type IModel = Model<IDocType, {}, {}, IVirtuals>;
27
28
  type ISchemaDefinition = SchemaDefinition<IDocType>;
28
- type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
29
+ type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
29
30
  declare const modelName = "ProductModel";
30
31
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
31
32
  declare function createSchema(): ISchema;
32
- export { createSchema, IModel, indexes, modelName };
33
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -1,12 +1,13 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import * as factory from '../../../factory';
3
+ import { IVirtuals } from '../virtuals';
3
4
  type IDocType = Omit<factory.productOffer.IProductOffer, 'acceptedPaymentMethod' | 'validForMemberTier'> & {
4
5
  acceptedPaymentMethod?: factory.productOffer.IAcceptedPaymentMethod;
5
6
  validForMemberTier?: factory.productOffer.IValidForMemberTier;
6
7
  };
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 = "ProductOffer";
11
12
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
12
13
  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.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;
14
- export { createSchema, IModel, indexes, modelName };
15
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -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
- type IDocType = factory.schedule.IEventWithSchedule;
4
- type IModel = Model<IDocType>;
4
+ type IDocType = Omit<factory.schedule.IEventWithSchedule, 'id'>;
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,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.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;
10
- export { createSchema, IModel, indexes, modelName };
11
+ export { createSchema, IDocType, IModel, indexes, modelName };
@@ -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.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;
10
- export { createSchema, IModel, indexes, modelName };
11
+ 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
  /**
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
- type IDocType = factory.permit.IPermit;
4
- type IModel = Model<IDocType>;
4
+ type IDocType = Omit<factory.permit.IPermit, 'id'>;
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,10 +183,10 @@ 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;
191
- export { createSchema, IModel, indexes, modelName };
192
+ export { createSchema, IDocType, IModel, indexes, modelName };