dl-commons 0.1.4 → 0.1.6
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.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/models/interfaces/otp.interface.d.ts +13 -0
- package/dist/models/interfaces/otp.interface.js +3 -0
- package/dist/models/interfaces/otp.interface.js.map +1 -0
- package/dist/models/interfaces/student-embedded.interface.d.ts +2 -2
- package/dist/models/schemas/base.schema.d.ts +25 -6
- package/dist/models/schemas/embedded/archive.schema.d.ts +25 -6
- package/dist/models/schemas/embedded/attachment.schema.d.ts +43 -6
- package/dist/models/schemas/embedded/author.schema.d.ts +61 -6
- package/dist/models/schemas/embedded/contact.schema.d.ts +52 -6
- package/dist/models/schemas/embedded/crop-area.schema.d.ts +43 -6
- package/dist/models/schemas/embedded/date-time-range.schema.d.ts +25 -6
- package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +61 -6
- package/dist/models/schemas/embedded/group-session.schema.d.ts +43 -6
- package/dist/models/schemas/embedded/i18n.embedded.d.ts +34 -6
- package/dist/models/schemas/embedded/location.schema.d.ts +34 -6
- package/dist/models/schemas/embedded/person.schema.d.ts +61 -6
- package/dist/models/schemas/embedded/physical-address.schema.d.ts +43 -6
- package/dist/models/schemas/embedded/picture.schema.d.ts +34 -6
- package/dist/models/schemas/embedded/record.embedded.d.ts +52 -6
- package/dist/models/schemas/embedded/residence.schema.d.ts +43 -6
- package/dist/models/schemas/embedded/s3.schema.d.ts +252 -48
- package/dist/models/schemas/embedded/session-user.schema.d.ts +61 -6
- package/dist/models/schemas/embedded/student-embedded.schema.d.ts +52 -6
- package/dist/models/schemas/embedded/teacher.schema.d.ts +25 -6
- package/dist/models/schemas/embedded/time.schema.d.ts +34 -6
- package/dist/models/schemas/embedded/virtual-address.schema.d.ts +25 -6
- package/dist/models/schemas/identifable.schema.d.ts +16 -6
- package/dist/models/schemas/parent.schema.d.ts +34 -6
- package/dist/models/schemas/session.schema.d.ts +52 -6
- package/dist/models/schemas/session.schema.js +1 -0
- package/dist/models/schemas/session.schema.js.map +1 -1
- package/dist/services/iam.service.d.ts +3 -0
- package/dist/services/iam.service.js +25 -0
- package/dist/services/iam.service.js.map +1 -1
- package/dist/services/otp.service.d.ts +17 -0
- package/dist/services/otp.service.js +111 -0
- package/dist/services/otp.service.js.map +1 -0
- package/dist/services/sessions.service.js +3 -0
- package/dist/services/sessions.service.js.map +1 -1
- package/dist/transformers/common.transformer.d.ts +1 -1
- package/dist/utils/helper.utils.d.ts +3 -2
- package/dist/utils/helper.utils.js +8 -1
- package/dist/utils/helper.utils.js.map +1 -1
- package/package.json +61 -61
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { MongoIdsPipe } from './pipes/mongo-ids.pipe';
|
|
|
36
36
|
import { SessionsService } from './services/sessions.service';
|
|
37
37
|
import { transformers } from './transformers/common.transformer';
|
|
38
38
|
import { IUser } from './models/interfaces/user.interface';
|
|
39
|
+
import { IOTP } from './models/interfaces/otp.interface';
|
|
39
40
|
import { SessionUser, SessionUserDocument, SessionUserSchema } from './models/schemas/embedded/session-user.schema';
|
|
40
41
|
import { Session, SessionDocument, SessionSchema } from './models/schemas/session.schema';
|
|
41
42
|
import { DictionariesService } from './services/dictionaries.service';
|
|
@@ -51,9 +52,11 @@ import { GroupSessionSchema, GroupSessionDocument, GroupSession } from './models
|
|
|
51
52
|
import { TeacherSchema, TeacherDocument, Teacher } from './models/schemas/embedded/teacher.schema';
|
|
52
53
|
import { ISMTPAPIConfig } from './models/interfaces/smtp-api-config.interface';
|
|
53
54
|
import { SMTPService } from './services/smtp.service';
|
|
55
|
+
import { OTPService } from './services/otp.service';
|
|
54
56
|
import { Time, TimeDocument, TimeSchema } from './models/schemas/embedded/time.schema';
|
|
55
57
|
import { FileLogInitType, S3FileState } from './models/enums/s3.enum';
|
|
56
58
|
import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IFileEmbedded } from './models/interfaces/s3.interface';
|
|
59
|
+
import { IFileRequest } from './models/interfaces/dl-storage.interface';
|
|
57
60
|
import { S3, S3Schema, S3Document, LogInitiatorDocument, LogInitiatorSchema, LogInitiator, FileLog, FileLogSchema, FileLogDocument, FileMetaDocument, FileMetaSchema, FileMeta, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedDocument, FileEmbeddedSchema } from './models/schemas/embedded/s3.schema';
|
|
58
61
|
import { IUserMeta } from './models/interfaces/user-meta.interface';
|
|
59
62
|
import { ICropArea } from './models/interfaces/crop-area.interface';
|
|
@@ -87,4 +90,5 @@ import { StudentsService } from './services/students.service';
|
|
|
87
90
|
import { GroupsService } from './services/groups.service';
|
|
88
91
|
import { Logger } from './utils/logger.class';
|
|
89
92
|
import { AppLoggerService } from './services/app-logger.service';
|
|
90
|
-
|
|
93
|
+
import { sameId } from './utils/helper.utils';
|
|
94
|
+
export { Logger, PermissionsScannerService, SessionsService, DictionariesService, SMTPService, OTPService, StorageService, IAMService, StudentsService, GroupsService, AppLoggerService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, APP__MONGO__CS, DL_SESSIONS__MONGO__CS, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, UserType, WeekDay, GroupState, S3FileState, FileLogInitType, AttachmentType, VirtualAddressType, LocationType, I18nDTO, CropAreaDTO, IDParams, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IOTP, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, ICropArea, IAttachment, IPicture, IAuthor, IFileEmbedded, IFileRequest, IPhysicalAddress, IDateTimeRange, IVirtualAddress, ILocation, IArchive, Identifable, IdentifableSchema, IdentifableDocument, Base, BaseSchema, BaseDocument, Record, RecordSchema, RecordDocument, I18n, I18nSchema, I18nDocument, Residence, ResidenceSchema, ResidenceDocument, Contact, ContactSchema, ContactDocument, Person, PersonSchema, PersonDocument, DictionaryEmbedded, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, SessionUser, SessionUserSchema, SessionUserDocument, Session, SessionSchema, SessionDocument, GroupSessionSchema, GroupSessionDocument, GroupSession, TeacherSchema, TeacherDocument, Teacher, StudentEmbeddedSchema, StudentEmbeddedDocument, StudentEmbedded, TimeSchema, TimeDocument, Time, S3, S3Schema, S3Document, LogInitiator, LogInitiatorSchema, LogInitiatorDocument, FileLog, FileLogSchema, FileLogDocument, FileMeta, FileMetaSchema, FileMetaDocument, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedSchema, FileEmbeddedDocument, CropArea, CropAreaSchema, CropAreaDocument, Attachment, AttachmentSchema, AttachmentDocument, Picture, PictureSchema, PictureDocument, Author, AuthorSchema, AuthorDocument, PhysicalAddress, PhysicalAddressSchema, PhysicalAddressDocument, DateTimeRange, DateTimeRangeSchema, DateTimeRangeDocument, VirtualAddress, VirtualAddressSchema, VirtualAddressDocument, Location, LocationSchema, LocationDocument, Archive, ArchiveSchema, ArchiveDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, sameId, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.ArchiveSchema = exports.Archive = exports.LocationSchema = exports.Location = exports.VirtualAddressSchema = exports.VirtualAddress = void 0;
|
|
3
|
+
exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.IDParams = exports.CropAreaDTO = exports.I18nDTO = exports.LocationType = exports.VirtualAddressType = exports.AttachmentType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserType = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.DL_SESSIONS__MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AllowPermissions = exports.PermissionGuard = exports.AccessTokenGuard = exports.SortDirection = exports.RESTSort = exports.RESTResult = exports.RESTResponseBody = exports.RESTRequestBody = exports.RESTQueryParams = exports.RESTPaging = exports.RESTPage = exports.RESTError = exports.AppLoggerService = exports.GroupsService = exports.StudentsService = exports.IAMService = exports.StorageService = exports.OTPService = exports.SMTPService = exports.DictionariesService = exports.SessionsService = exports.PermissionsScannerService = exports.Logger = void 0;
|
|
4
|
+
exports.DateTimeRange = exports.PhysicalAddressSchema = exports.PhysicalAddress = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachmentSchema = exports.Attachment = exports.CropAreaSchema = exports.CropArea = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = exports.Session = exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = void 0;
|
|
5
|
+
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.sameId = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.ArchiveSchema = exports.Archive = exports.LocationSchema = exports.Location = exports.VirtualAddressSchema = exports.VirtualAddress = exports.DateTimeRangeSchema = void 0;
|
|
6
6
|
const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
|
|
7
7
|
Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
|
|
8
8
|
const dl_commons_module_1 = require("./dl-commons.module");
|
|
@@ -100,6 +100,8 @@ Object.defineProperty(exports, "TeacherSchema", { enumerable: true, get: functio
|
|
|
100
100
|
Object.defineProperty(exports, "Teacher", { enumerable: true, get: function () { return teacher_schema_1.Teacher; } });
|
|
101
101
|
const smtp_service_1 = require("./services/smtp.service");
|
|
102
102
|
Object.defineProperty(exports, "SMTPService", { enumerable: true, get: function () { return smtp_service_1.SMTPService; } });
|
|
103
|
+
const otp_service_1 = require("./services/otp.service");
|
|
104
|
+
Object.defineProperty(exports, "OTPService", { enumerable: true, get: function () { return otp_service_1.OTPService; } });
|
|
103
105
|
const time_schema_1 = require("./models/schemas/embedded/time.schema");
|
|
104
106
|
Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return time_schema_1.Time; } });
|
|
105
107
|
Object.defineProperty(exports, "TimeSchema", { enumerable: true, get: function () { return time_schema_1.TimeSchema; } });
|
|
@@ -176,4 +178,6 @@ const logger_class_1 = require("./utils/logger.class");
|
|
|
176
178
|
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_class_1.Logger; } });
|
|
177
179
|
const app_logger_service_1 = require("./services/app-logger.service");
|
|
178
180
|
Object.defineProperty(exports, "AppLoggerService", { enumerable: true, get: function () { return app_logger_service_1.AppLoggerService; } });
|
|
181
|
+
const helper_utils_1 = require("./utils/helper.utils");
|
|
182
|
+
Object.defineProperty(exports, "sameId", { enumerable: true, get: function () { return helper_utils_1.sameId; } });
|
|
179
183
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0FAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0FAA0E;AAuXtE,+FAvXK,4CAAc,OAuXL;AAtXlB,2DAAsD;AA2YlD,gGA3YK,mCAAe,OA2YL;AA1YnB,oEAAiE;AAgX7D,iGAhXK,mCAAgB,OAgXL;AA/WpB,qEAA2E;AA0WvE,2GA1WK,8CAA0B,OA0WL;AAzW9B,2EAAuE;AAoWnE,qGApWK,4CAAoB,OAoWL;AAnWxB,oEAA+D;AA6K3D,iGA7KK,qCAAgB,OA6KL;AA5KpB,gEAA8E;AA8K1E,iGA9KK,mCAAgB,OA8KL;AADhB,gGA7KuB,kCAAe,OA6KvB;AA5KnB,mEASwC;AAyKpC,0FAjLA,0BAAS,OAiLA;AACT,2FAjLA,2BAAU,OAiLA;AACV,kGAjLA,kCAAiB,OAiLA;AAGjB,0FAnLA,0BAAS,OAmLA;AACT,0FAnLA,0BAAS,OAmLA;AACT,+FAnLA,+BAAc,OAmLA;AAJd,+FA9KA,+BAAc,OA8KA;AACd,uGA9KA,uCAAsB,OA8KA;AA5K1B,6DAAyD;AAmMrD,wFAnMK,kBAAO,OAmML;AAlMX,kFAWmD;AAuI/C,0FAhJA,8BAAS,OAgJA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,uDAA8C;AAQ1C,uFARK,qBAAM,OAQL;AAPV,sEAAiE;AAqB7D,iGArBK,qCAAgB,OAqBL;AApBpB,uDAA8C;AAsP1C,uFAtPK,qBAAM,OAsPL"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBase } from './base.interface';
|
|
2
|
+
export interface IOTP extends IBase {
|
|
3
|
+
receiver: string;
|
|
4
|
+
token: string;
|
|
5
|
+
action: string;
|
|
6
|
+
tokenExpiresAt: Date;
|
|
7
|
+
resendAvailableAt: Date;
|
|
8
|
+
attempts: number;
|
|
9
|
+
verified: boolean;
|
|
10
|
+
meta?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/otp.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { IBase } from "./base.interface";
|
|
1
2
|
import { IDictionary } from "./dictionary.interface";
|
|
2
|
-
import { IIdentifable } from "./identifable.interface";
|
|
3
3
|
import { IParent } from "./parent.interface";
|
|
4
4
|
import { IPerson } from "./person.interface";
|
|
5
|
-
export interface IStudentEmbedded extends
|
|
5
|
+
export interface IStudentEmbedded extends IBase {
|
|
6
6
|
parent: IParent;
|
|
7
7
|
person: IPerson;
|
|
8
8
|
knowladgeLevel: IDictionary;
|
|
@@ -5,13 +5,32 @@ import { Identifable } from './identifable.schema';
|
|
|
5
5
|
export declare class Base extends Identifable implements IBase {
|
|
6
6
|
record: IRecord;
|
|
7
7
|
}
|
|
8
|
-
export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, import("mongoose").
|
|
8
|
+
export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, any, any, Base>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, Base, {
|
|
9
|
+
id: string;
|
|
10
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Base & Required<{
|
|
9
11
|
_id: import("mongoose").Types.ObjectId;
|
|
10
12
|
}> & {
|
|
11
13
|
__v: number;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
15
|
+
id: string;
|
|
16
|
+
}>, {
|
|
17
|
+
record?: import("mongoose").SchemaDefinitionProperty<IRecord, Base, import("mongoose").Document<unknown, {}, Base, {
|
|
18
|
+
id: string;
|
|
19
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Base & Required<{
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
}> & {
|
|
22
|
+
__v: number;
|
|
23
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
24
|
+
id: string;
|
|
25
|
+
}>>;
|
|
26
|
+
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, Base, import("mongoose").Document<unknown, {}, Base, {
|
|
27
|
+
id: string;
|
|
28
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Base & Required<{
|
|
29
|
+
_id: import("mongoose").Types.ObjectId;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
33
|
+
id: string;
|
|
34
|
+
}>>;
|
|
35
|
+
}, Base>;
|
|
17
36
|
export type BaseDocument = HydratedDocument<Base>;
|
|
@@ -4,13 +4,32 @@ export declare class Archive implements IArchive {
|
|
|
4
4
|
value: Boolean;
|
|
5
5
|
date: Date;
|
|
6
6
|
}
|
|
7
|
-
export declare const ArchiveSchema: import("mongoose").Schema<Archive, import("mongoose").Model<Archive, any, any, any, import("mongoose").
|
|
7
|
+
export declare const ArchiveSchema: import("mongoose").Schema<Archive, import("mongoose").Model<Archive, any, any, any, any, any, Archive>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Archive, import("mongoose").Document<unknown, {}, Archive, {
|
|
8
|
+
id: string;
|
|
9
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Archive & {
|
|
8
10
|
_id: import("mongoose").Types.ObjectId;
|
|
9
11
|
} & {
|
|
10
12
|
__v: number;
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
14
|
+
id: string;
|
|
15
|
+
}>, {
|
|
16
|
+
value?: import("mongoose").SchemaDefinitionProperty<Boolean, Archive, import("mongoose").Document<unknown, {}, Archive, {
|
|
17
|
+
id: string;
|
|
18
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Archive & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
23
|
+
id: string;
|
|
24
|
+
}>>;
|
|
25
|
+
date?: import("mongoose").SchemaDefinitionProperty<Date, Archive, import("mongoose").Document<unknown, {}, Archive, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Archive & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
32
|
+
id: string;
|
|
33
|
+
}>>;
|
|
34
|
+
}, Archive>;
|
|
16
35
|
export type ArchiveDocument = HydratedDocument<Archive>;
|
|
@@ -8,13 +8,50 @@ export declare class Attachment extends Identifable implements IAttachment {
|
|
|
8
8
|
file: IFileEmbedded;
|
|
9
9
|
link: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, import("mongoose").
|
|
11
|
+
export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, any, any, Attachment>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
|
|
12
14
|
_id: import("mongoose").Types.ObjectId;
|
|
13
15
|
}> & {
|
|
14
16
|
__v: number;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
18
|
+
id: string;
|
|
19
|
+
}>, {
|
|
20
|
+
type?: import("mongoose").SchemaDefinitionProperty<AttachmentType, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
|
|
21
|
+
id: string;
|
|
22
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
}> & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
27
|
+
id: string;
|
|
28
|
+
}>>;
|
|
29
|
+
file?: import("mongoose").SchemaDefinitionProperty<IFileEmbedded, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
|
|
32
|
+
_id: import("mongoose").Types.ObjectId;
|
|
33
|
+
}> & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
36
|
+
id: string;
|
|
37
|
+
}>>;
|
|
38
|
+
link?: import("mongoose").SchemaDefinitionProperty<string, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
|
|
41
|
+
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
45
|
+
id: string;
|
|
46
|
+
}>>;
|
|
47
|
+
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
|
|
48
|
+
id: string;
|
|
49
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
|
|
50
|
+
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
}> & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
54
|
+
id: string;
|
|
55
|
+
}>>;
|
|
56
|
+
}, Attachment>;
|
|
20
57
|
export type AttachmentDocument = HydratedDocument<Attachment>;
|
|
@@ -8,13 +8,68 @@ export declare class Author implements IAuthor {
|
|
|
8
8
|
lastName: string | null | undefined;
|
|
9
9
|
organisationName: string | null | undefined;
|
|
10
10
|
}
|
|
11
|
-
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").
|
|
11
|
+
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, any, any, Author>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
12
14
|
_id: string | Types.ObjectId;
|
|
13
15
|
}> & {
|
|
14
16
|
__v: number;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
18
|
+
id: string;
|
|
19
|
+
}>, {
|
|
20
|
+
_id?: import("mongoose").SchemaDefinitionProperty<string | Types.ObjectId, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
21
|
+
id: string;
|
|
22
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
23
|
+
_id: string | Types.ObjectId;
|
|
24
|
+
}> & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
27
|
+
id: string;
|
|
28
|
+
}>>;
|
|
29
|
+
userId?: import("mongoose").SchemaDefinitionProperty<string | Types.ObjectId, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
32
|
+
_id: string | Types.ObjectId;
|
|
33
|
+
}> & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
36
|
+
id: string;
|
|
37
|
+
}>>;
|
|
38
|
+
pid?: import("mongoose").SchemaDefinitionProperty<string, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
41
|
+
_id: string | Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
45
|
+
id: string;
|
|
46
|
+
}>>;
|
|
47
|
+
firstName?: import("mongoose").SchemaDefinitionProperty<string, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
48
|
+
id: string;
|
|
49
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
50
|
+
_id: string | Types.ObjectId;
|
|
51
|
+
}> & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
54
|
+
id: string;
|
|
55
|
+
}>>;
|
|
56
|
+
lastName?: import("mongoose").SchemaDefinitionProperty<string, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
57
|
+
id: string;
|
|
58
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
59
|
+
_id: string | Types.ObjectId;
|
|
60
|
+
}> & {
|
|
61
|
+
__v: number;
|
|
62
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
63
|
+
id: string;
|
|
64
|
+
}>>;
|
|
65
|
+
organisationName?: import("mongoose").SchemaDefinitionProperty<string, Author, import("mongoose").Document<unknown, {}, Author, {
|
|
66
|
+
id: string;
|
|
67
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
|
|
68
|
+
_id: string | Types.ObjectId;
|
|
69
|
+
}> & {
|
|
70
|
+
__v: number;
|
|
71
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
72
|
+
id: string;
|
|
73
|
+
}>>;
|
|
74
|
+
}, Author>;
|
|
20
75
|
export type AuthorDocument = HydratedDocument<Author>;
|
|
@@ -8,13 +8,59 @@ export declare class Contact extends Identifable implements IContact {
|
|
|
8
8
|
primary: boolean;
|
|
9
9
|
verified: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").
|
|
11
|
+
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, any, any, Contact>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
12
14
|
_id: import("mongoose").Types.ObjectId;
|
|
13
15
|
}> & {
|
|
14
16
|
__v: number;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
18
|
+
id: string;
|
|
19
|
+
}>, {
|
|
20
|
+
type?: import("mongoose").SchemaDefinitionProperty<ContactType, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
21
|
+
id: string;
|
|
22
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
}> & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
27
|
+
id: string;
|
|
28
|
+
}>>;
|
|
29
|
+
value?: import("mongoose").SchemaDefinitionProperty<string, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
32
|
+
_id: import("mongoose").Types.ObjectId;
|
|
33
|
+
}> & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
36
|
+
id: string;
|
|
37
|
+
}>>;
|
|
38
|
+
primary?: import("mongoose").SchemaDefinitionProperty<boolean, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
41
|
+
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
45
|
+
id: string;
|
|
46
|
+
}>>;
|
|
47
|
+
verified?: import("mongoose").SchemaDefinitionProperty<boolean, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
48
|
+
id: string;
|
|
49
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
50
|
+
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
}> & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
54
|
+
id: string;
|
|
55
|
+
}>>;
|
|
56
|
+
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, Contact, import("mongoose").Document<unknown, {}, Contact, {
|
|
57
|
+
id: string;
|
|
58
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
}> & {
|
|
61
|
+
__v: number;
|
|
62
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
63
|
+
id: string;
|
|
64
|
+
}>>;
|
|
65
|
+
}, Contact>;
|
|
20
66
|
export type ContactDocument = HydratedDocument<Contact>;
|
|
@@ -6,13 +6,50 @@ export declare class CropArea implements ICropArea {
|
|
|
6
6
|
y1: number;
|
|
7
7
|
y2: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, import("mongoose").
|
|
9
|
+
export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, any, any, CropArea>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
|
|
10
|
+
id: string;
|
|
11
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
|
|
10
12
|
_id: import("mongoose").Types.ObjectId;
|
|
11
13
|
} & {
|
|
12
14
|
__v: number;
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
16
|
+
id: string;
|
|
17
|
+
}>, {
|
|
18
|
+
x1?: import("mongoose").SchemaDefinitionProperty<number, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
|
|
19
|
+
id: string;
|
|
20
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
|
|
21
|
+
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
25
|
+
id: string;
|
|
26
|
+
}>>;
|
|
27
|
+
x2?: import("mongoose").SchemaDefinitionProperty<number, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
|
|
28
|
+
id: string;
|
|
29
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
|
|
30
|
+
_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
} & {
|
|
32
|
+
__v: number;
|
|
33
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
34
|
+
id: string;
|
|
35
|
+
}>>;
|
|
36
|
+
y1?: import("mongoose").SchemaDefinitionProperty<number, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
|
|
39
|
+
_id: import("mongoose").Types.ObjectId;
|
|
40
|
+
} & {
|
|
41
|
+
__v: number;
|
|
42
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
43
|
+
id: string;
|
|
44
|
+
}>>;
|
|
45
|
+
y2?: import("mongoose").SchemaDefinitionProperty<number, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
|
|
46
|
+
id: string;
|
|
47
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
|
|
48
|
+
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
51
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
52
|
+
id: string;
|
|
53
|
+
}>>;
|
|
54
|
+
}, CropArea>;
|
|
18
55
|
export type CropAreaDocument = HydratedDocument<CropArea>;
|
|
@@ -4,13 +4,32 @@ export declare class DateTimeRange implements IDateTimeRange {
|
|
|
4
4
|
startsAt: Date | null | undefined;
|
|
5
5
|
endsAt: Date | null | undefined;
|
|
6
6
|
}
|
|
7
|
-
export declare const DateTimeRangeSchema: import("mongoose").Schema<DateTimeRange, import("mongoose").Model<DateTimeRange, any, any, any, import("mongoose").
|
|
7
|
+
export declare const DateTimeRangeSchema: import("mongoose").Schema<DateTimeRange, import("mongoose").Model<DateTimeRange, any, any, any, any, any, DateTimeRange>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DateTimeRange, import("mongoose").Document<unknown, {}, DateTimeRange, {
|
|
8
|
+
id: string;
|
|
9
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DateTimeRange & {
|
|
8
10
|
_id: import("mongoose").Types.ObjectId;
|
|
9
11
|
} & {
|
|
10
12
|
__v: number;
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
14
|
+
id: string;
|
|
15
|
+
}>, {
|
|
16
|
+
startsAt?: import("mongoose").SchemaDefinitionProperty<Date, DateTimeRange, import("mongoose").Document<unknown, {}, DateTimeRange, {
|
|
17
|
+
id: string;
|
|
18
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DateTimeRange & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
23
|
+
id: string;
|
|
24
|
+
}>>;
|
|
25
|
+
endsAt?: import("mongoose").SchemaDefinitionProperty<Date, DateTimeRange, import("mongoose").Document<unknown, {}, DateTimeRange, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DateTimeRange & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
32
|
+
id: string;
|
|
33
|
+
}>>;
|
|
34
|
+
}, DateTimeRange>;
|
|
16
35
|
export type DateTimeRangeDocument = HydratedDocument<DateTimeRange>;
|
|
@@ -8,13 +8,68 @@ export declare class DictionaryEmbedded extends Base implements IDictionary {
|
|
|
8
8
|
metas: Map<string, string>;
|
|
9
9
|
keyword: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").
|
|
11
|
+
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, any, any, DictionaryEmbedded>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
12
14
|
_id: Types.ObjectId;
|
|
13
15
|
}> & {
|
|
14
16
|
__v: number;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
18
|
+
id: string;
|
|
19
|
+
}>, {
|
|
20
|
+
parentIds?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId[], DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
21
|
+
id: string;
|
|
22
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
23
|
+
_id: Types.ObjectId;
|
|
24
|
+
}> & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
27
|
+
id: string;
|
|
28
|
+
}>>;
|
|
29
|
+
title?: import("mongoose").SchemaDefinitionProperty<II18n, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
32
|
+
_id: Types.ObjectId;
|
|
33
|
+
}> & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
36
|
+
id: string;
|
|
37
|
+
}>>;
|
|
38
|
+
metas?: import("mongoose").SchemaDefinitionProperty<Map<string, string>, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
41
|
+
_id: Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
45
|
+
id: string;
|
|
46
|
+
}>>;
|
|
47
|
+
keyword?: import("mongoose").SchemaDefinitionProperty<string, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
48
|
+
id: string;
|
|
49
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
50
|
+
_id: Types.ObjectId;
|
|
51
|
+
}> & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
54
|
+
id: string;
|
|
55
|
+
}>>;
|
|
56
|
+
record?: import("mongoose").SchemaDefinitionProperty<import("../../..").IRecord, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
57
|
+
id: string;
|
|
58
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
59
|
+
_id: Types.ObjectId;
|
|
60
|
+
}> & {
|
|
61
|
+
__v: number;
|
|
62
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
63
|
+
id: string;
|
|
64
|
+
}>>;
|
|
65
|
+
_id?: import("mongoose").SchemaDefinitionProperty<Types.ObjectId, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
|
|
66
|
+
id: string;
|
|
67
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
|
|
68
|
+
_id: Types.ObjectId;
|
|
69
|
+
}> & {
|
|
70
|
+
__v: number;
|
|
71
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
72
|
+
id: string;
|
|
73
|
+
}>>;
|
|
74
|
+
}, DictionaryEmbedded>;
|
|
20
75
|
export type DictionaryEmbeddedDocument = HydratedDocument<DictionaryEmbedded>;
|