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.
Files changed (47) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/dist/index.js +7 -3
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/interfaces/otp.interface.d.ts +13 -0
  5. package/dist/models/interfaces/otp.interface.js +3 -0
  6. package/dist/models/interfaces/otp.interface.js.map +1 -0
  7. package/dist/models/interfaces/student-embedded.interface.d.ts +2 -2
  8. package/dist/models/schemas/base.schema.d.ts +25 -6
  9. package/dist/models/schemas/embedded/archive.schema.d.ts +25 -6
  10. package/dist/models/schemas/embedded/attachment.schema.d.ts +43 -6
  11. package/dist/models/schemas/embedded/author.schema.d.ts +61 -6
  12. package/dist/models/schemas/embedded/contact.schema.d.ts +52 -6
  13. package/dist/models/schemas/embedded/crop-area.schema.d.ts +43 -6
  14. package/dist/models/schemas/embedded/date-time-range.schema.d.ts +25 -6
  15. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +61 -6
  16. package/dist/models/schemas/embedded/group-session.schema.d.ts +43 -6
  17. package/dist/models/schemas/embedded/i18n.embedded.d.ts +34 -6
  18. package/dist/models/schemas/embedded/location.schema.d.ts +34 -6
  19. package/dist/models/schemas/embedded/person.schema.d.ts +61 -6
  20. package/dist/models/schemas/embedded/physical-address.schema.d.ts +43 -6
  21. package/dist/models/schemas/embedded/picture.schema.d.ts +34 -6
  22. package/dist/models/schemas/embedded/record.embedded.d.ts +52 -6
  23. package/dist/models/schemas/embedded/residence.schema.d.ts +43 -6
  24. package/dist/models/schemas/embedded/s3.schema.d.ts +252 -48
  25. package/dist/models/schemas/embedded/session-user.schema.d.ts +61 -6
  26. package/dist/models/schemas/embedded/student-embedded.schema.d.ts +52 -6
  27. package/dist/models/schemas/embedded/teacher.schema.d.ts +25 -6
  28. package/dist/models/schemas/embedded/time.schema.d.ts +34 -6
  29. package/dist/models/schemas/embedded/virtual-address.schema.d.ts +25 -6
  30. package/dist/models/schemas/identifable.schema.d.ts +16 -6
  31. package/dist/models/schemas/parent.schema.d.ts +34 -6
  32. package/dist/models/schemas/session.schema.d.ts +52 -6
  33. package/dist/models/schemas/session.schema.js +1 -0
  34. package/dist/models/schemas/session.schema.js.map +1 -1
  35. package/dist/services/iam.service.d.ts +3 -0
  36. package/dist/services/iam.service.js +25 -0
  37. package/dist/services/iam.service.js.map +1 -1
  38. package/dist/services/otp.service.d.ts +17 -0
  39. package/dist/services/otp.service.js +111 -0
  40. package/dist/services/otp.service.js.map +1 -0
  41. package/dist/services/sessions.service.js +3 -0
  42. package/dist/services/sessions.service.js.map +1 -1
  43. package/dist/transformers/common.transformer.d.ts +1 -1
  44. package/dist/utils/helper.utils.d.ts +3 -2
  45. package/dist/utils/helper.utils.js +8 -1
  46. package/dist/utils/helper.utils.js.map +1 -1
  47. 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
- export { Logger, PermissionsScannerService, SessionsService, DictionariesService, SMTPService, 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, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, ICropArea, IAttachment, IPicture, IAuthor, IFileEmbedded, 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, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
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.RecordSchema = 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.SMTPService = exports.DictionariesService = exports.SessionsService = exports.PermissionsScannerService = exports.Logger = void 0;
4
- exports.DateTimeRangeSchema = 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 = void 0;
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;AA8WtE,+FA9WK,4CAAc,OA8WL;AA7WlB,2DAAsD;AA6XlD,gGA7XK,mCAAe,OA6XL;AA5XnB,oEAAiE;AAuW7D,iGAvWK,mCAAgB,OAuWL;AAtWpB,qEAA2E;AAiWvE,2GAjWK,8CAA0B,OAiWL;AAhW9B,2EAAuE;AA2VnE,qGA3VK,4CAAoB,OA2VL;AA1VxB,oEAA+D;AAsK3D,iGAtKK,qCAAgB,OAsKL;AArKpB,gEAA8E;AAuK1E,iGAvKK,mCAAgB,OAuKL;AADhB,gGAtKuB,kCAAe,OAsKvB;AArKnB,mEASwC;AAkKpC,0FA1KA,0BAAS,OA0KA;AACT,2FA1KA,2BAAU,OA0KA;AACV,kGA1KA,kCAAiB,OA0KA;AAGjB,0FA5KA,0BAAS,OA4KA;AACT,0FA5KA,0BAAS,OA4KA;AACT,+FA5KA,+BAAc,OA4KA;AAJd,+FAvKA,+BAAc,OAuKA;AACd,uGAvKA,uCAAsB,OAuKA;AArK1B,6DAAyD;AA4LrD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;AA9NhB,uEAAkE;AAgG9D,4FAhGK,2BAAW,OAgGL;AA/Ff,gEAA4D;AAqCxD,+FArCK,gCAAc,OAqCL;AApClB,6DAA0D;AA+FtD,yFA/FK,mBAAQ,OA+FL;AA9FZ,kEAAyD;AAgFrD,yFAhFK,yBAAQ,OAgFL;AA/EZ,wDAAoD;AAmChD,2FAnCK,wBAAU,OAmCL;AAlCd,wFAAmF;AA4B/E,0GA5BK,uDAAyB,OA4BL;AA3B7B,+FAAoI;AA0NhI,gGA1NK,yCAAe,OA0NL;AACf,sGA3N+C,+CAAqB,OA2N/C;AAzNzB,wFAA8E;AAiF1E,mGAjFK,8CAAkB,OAiFL;AAhFtB,0EAAiE;AAiF7D,6FAjFK,iCAAY,OAiFL;AA/EhB,6FAA6H;AAwNzH,8FAxNK,sCAAa,OAwNL;AACb,oGAzN2C,4CAAmB,OAyN3C;AAvNvB,6FAAgI;AAyN5H,+FAzNK,uCAAc,OAyNL;AACd,qGA1N6C,6CAAoB,OA0N7C;AAzNxB,+EAAuG;AA2NnG,yFA3NK,0BAAQ,OA2NL;AACR,+FA5NiC,gCAAc,OA4NjC;AAzNlB,6EAAmG;AA2N/F,wFA3NK,wBAAO,OA2NL;AACP,8FA5N+B,8BAAa,OA4N/B;AA3NjB,kEAA8D;AAsB1D,gGAtBK,kCAAe,OAsBL;AArBnB,8DAA0D;AAsBtD,8FAtBK,8BAAa,OAsBL;AArBjB,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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=otp.interface.js.map
@@ -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 IIdentifable {
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").Document<unknown, any, Base, any, {}> & Base & Required<{
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Base>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Base> & Required<{
13
- _id: import("mongoose").Types.ObjectId;
14
- }> & {
15
- __v: number;
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").Document<unknown, any, Archive, any, {}> & Archive & {
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Archive, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Archive>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Archive> & {
12
- _id: import("mongoose").Types.ObjectId;
13
- } & {
14
- __v: number;
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").Document<unknown, any, Attachment, any, {}> & Attachment & Required<{
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Attachment>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Attachment> & Required<{
16
- _id: import("mongoose").Types.ObjectId;
17
- }> & {
18
- __v: number;
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").Document<unknown, any, Author, any, {}> & Author & Required<{
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Author>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Author> & Required<{
16
- _id: string | Types.ObjectId;
17
- }> & {
18
- __v: number;
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").Document<unknown, any, Contact, any, {}> & Contact & Required<{
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Contact> & Required<{
16
- _id: import("mongoose").Types.ObjectId;
17
- }> & {
18
- __v: number;
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").Document<unknown, any, CropArea, any, {}> & CropArea & {
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CropArea>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<CropArea> & {
14
- _id: import("mongoose").Types.ObjectId;
15
- } & {
16
- __v: number;
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").Document<unknown, any, DateTimeRange, any, {}> & DateTimeRange & {
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DateTimeRange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DateTimeRange>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<DateTimeRange> & {
12
- _id: import("mongoose").Types.ObjectId;
13
- } & {
14
- __v: number;
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").Document<unknown, any, DictionaryEmbedded, any, {}> & DictionaryEmbedded & Required<{
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
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<DictionaryEmbedded> & Required<{
16
- _id: Types.ObjectId;
17
- }> & {
18
- __v: number;
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>;