dl-commons 0.1.3 → 0.1.5
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 +4 -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 +4 -0
- package/dist/services/iam.service.js +30 -4
- 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.d.ts +1 -0
- package/dist/services/sessions.service.js +7 -3
- package/dist/services/sessions.service.js.map +1 -1
- package/dist/services/smtp.service.d.ts +1 -0
- package/dist/services/smtp.service.js +3 -2
- package/dist/services/smtp.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 +8 -8
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,6 +52,7 @@ 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';
|
|
@@ -87,4 +89,5 @@ import { StudentsService } from './services/students.service';
|
|
|
87
89
|
import { GroupsService } from './services/groups.service';
|
|
88
90
|
import { Logger } from './utils/logger.class';
|
|
89
91
|
import { AppLoggerService } from './services/app-logger.service';
|
|
90
|
-
|
|
92
|
+
import { sameId } from './utils/helper.utils';
|
|
93
|
+
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, 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;AAmXtE,+FAnXK,4CAAc,OAmXL;AAlXlB,2DAAsD;AAuYlD,gGAvYK,mCAAe,OAuYL;AAtYnB,oEAAiE;AA4W7D,iGA5WK,mCAAgB,OA4WL;AA3WpB,qEAA2E;AAsWvE,2GAtWK,8CAA0B,OAsWL;AArW9B,2EAAuE;AAgWnE,qGAhWK,4CAAoB,OAgWL;AA/VxB,oEAA+D;AA0K3D,iGA1KK,qCAAgB,OA0KL;AAzKpB,gEAA8E;AA2K1E,iGA3KK,mCAAgB,OA2KL;AADhB,gGA1KuB,kCAAe,OA0KvB;AAzKnB,mEASwC;AAsKpC,0FA9KA,0BAAS,OA8KA;AACT,2FA9KA,2BAAU,OA8KA;AACV,kGA9KA,kCAAiB,OA8KA;AAGjB,0FAhLA,0BAAS,OAgLA;AACT,0FAhLA,0BAAS,OAgLA;AACT,+FAhLA,+BAAc,OAgLA;AAJd,+FA3KA,+BAAc,OA2KA;AACd,uGA3KA,uCAAsB,OA2KA;AAzK1B,6DAAyD;AAgMrD,wFAhMK,kBAAO,OAgML;AA/LX,kFAWmD;AAoI/C,0FA7IA,8BAAS,OA6IA;AACT,yFA7IA,6BAAQ,OA6IA;AACR,2FA7IA,+BAAU,OA6IA;AACV,gGA7IA,oCAAe,OA6IA;AACf,gGA7IA,oCAAe,OA6IA;AACf,iGA7IA,qCAAgB,OA6IA;AAChB,2FA7IA,+BAAU,OA6IA;AACV,yFA7IA,6BAAQ,OA6IA;AACR,8FA7IA,kCAAa,OA6IA;AA3IjB,wEAA+D;AAqK3D,4FArKK,+BAAW,OAqKL;AApKf,wEAA+D;A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iresAt: 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>;
|