gemcap-be-common 1.4.247 → 1.4.248
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.
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import mongoose from 'mongoose';
|
|
25
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
26
26
|
import Joi from 'joi';
|
|
27
27
|
export interface IAuditorContact {
|
|
28
28
|
auditorId: mongoose.Types.ObjectId;
|
|
@@ -34,11 +34,7 @@ export interface IAuditorContact {
|
|
|
34
34
|
comment?: string;
|
|
35
35
|
order?: number;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
_id: mongoose.Types.ObjectId;
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
|
-
}
|
|
37
|
+
export type IAuditorContactDoc = HydratedDocument<IAuditorContact>;
|
|
42
38
|
export interface IAuditorContactLean extends IAuditorContact {
|
|
43
39
|
_id: mongoose.Types.ObjectId;
|
|
44
40
|
createdAt: Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
1
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
2
2
|
import Joi from 'joi';
|
|
3
3
|
|
|
4
4
|
import { MODEL_NAMES } from './_models';
|
|
@@ -14,11 +14,7 @@ export interface IAuditorContact {
|
|
|
14
14
|
order?: number;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
_id: mongoose.Types.ObjectId;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
}
|
|
17
|
+
export type IAuditorContactDoc = HydratedDocument<IAuditorContact>;
|
|
22
18
|
|
|
23
19
|
export interface IAuditorContactLean extends IAuditorContact {
|
|
24
20
|
_id: mongoose.Types.ObjectId;
|