dl-commons 0.0.2-testing.2 → 0.0.2-testing.21
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 +19 -2
- package/dist/index.js +45 -2
- package/dist/index.js.map +1 -1
- package/dist/models/dtos/commons/crop-area.dto.d.ts +6 -0
- package/dist/models/dtos/commons/crop-area.dto.js +37 -0
- package/dist/models/dtos/commons/crop-area.dto.js.map +1 -0
- package/dist/models/dtos/commons/id.param.d.ts +3 -0
- package/dist/models/dtos/commons/id.param.js +22 -0
- package/dist/models/dtos/commons/id.param.js.map +1 -0
- package/dist/models/enums/attachement-type.enum.d.ts +4 -0
- package/dist/models/enums/attachement-type.enum.js +9 -0
- package/dist/models/enums/attachement-type.enum.js.map +1 -0
- package/dist/models/enums/s3.enum.d.ts +11 -0
- package/dist/models/enums/s3.enum.js +17 -0
- package/dist/models/enums/s3.enum.js.map +1 -0
- package/dist/models/interfaces/attachement.interface.d.ts +8 -0
- package/dist/models/interfaces/attachement.interface.js +3 -0
- package/dist/models/interfaces/attachement.interface.js.map +1 -0
- package/dist/models/interfaces/author.interface.d.ts +7 -0
- package/dist/models/interfaces/author.interface.js +3 -0
- package/dist/models/interfaces/author.interface.js.map +1 -0
- package/dist/models/interfaces/crop-area.interface.d.ts +6 -0
- package/dist/models/interfaces/crop-area.interface.js +3 -0
- package/dist/models/interfaces/crop-area.interface.js.map +1 -0
- package/dist/models/interfaces/dictionary.interface.d.ts +1 -1
- package/dist/models/interfaces/dl-storage.interface.d.ts +35 -0
- package/dist/models/interfaces/dl-storage.interface.js +7 -0
- package/dist/models/interfaces/dl-storage.interface.js.map +1 -0
- package/dist/models/interfaces/group-session.interface.d.ts +6 -2
- package/dist/models/interfaces/group.interface.d.ts +17 -0
- package/dist/models/interfaces/group.interface.js +3 -0
- package/dist/models/interfaces/group.interface.js.map +1 -0
- package/dist/models/interfaces/picture.interface.d.ts +7 -0
- package/dist/models/interfaces/picture.interface.js +3 -0
- package/dist/models/interfaces/picture.interface.js.map +1 -0
- package/dist/models/interfaces/s3.interface.d.ts +46 -0
- package/dist/models/interfaces/s3.interface.js +3 -0
- package/dist/models/interfaces/s3.interface.js.map +1 -0
- package/dist/models/interfaces/user-meta.interface.d.ts +4 -0
- package/dist/models/interfaces/user-meta.interface.js +3 -0
- package/dist/models/interfaces/user-meta.interface.js.map +1 -0
- package/dist/models/schemas/embedded/attachement.schema.d.ts +20 -0
- package/dist/models/schemas/embedded/attachement.schema.js +36 -0
- package/dist/models/schemas/embedded/attachement.schema.js.map +1 -0
- package/dist/models/schemas/embedded/author.schema.d.ts +18 -0
- package/dist/models/schemas/embedded/author.schema.js +38 -0
- package/dist/models/schemas/embedded/author.schema.js.map +1 -0
- package/dist/models/schemas/embedded/crop-area.schema.d.ts +18 -0
- package/dist/models/schemas/embedded/crop-area.schema.js +37 -0
- package/dist/models/schemas/embedded/crop-area.schema.js.map +1 -0
- package/dist/models/schemas/embedded/group-session.schema.d.ts +2 -3
- package/dist/models/schemas/embedded/group-session.schema.js +4 -7
- package/dist/models/schemas/embedded/group-session.schema.js.map +1 -1
- package/dist/models/schemas/embedded/picture.schema.d.ts +19 -0
- package/dist/models/schemas/embedded/picture.schema.js +35 -0
- package/dist/models/schemas/embedded/picture.schema.js.map +1 -0
- package/dist/models/schemas/embedded/s3.schema.d.ts +127 -0
- package/dist/models/schemas/embedded/s3.schema.js +184 -0
- package/dist/models/schemas/embedded/s3.schema.js.map +1 -0
- package/dist/models/schemas/embedded/time.schema.d.ts +17 -0
- package/dist/models/schemas/embedded/time.schema.js +33 -0
- package/dist/models/schemas/embedded/time.schema.js.map +1 -0
- package/dist/services/dictionaries.service.js +14 -4
- package/dist/services/dictionaries.service.js.map +1 -1
- package/dist/services/iam.service.d.ts +12 -0
- package/dist/services/iam.service.js +99 -0
- package/dist/services/iam.service.js.map +1 -0
- package/dist/services/sessions.service.d.ts +2 -0
- package/dist/services/sessions.service.js +34 -0
- package/dist/services/sessions.service.js.map +1 -1
- package/dist/services/storage.service.d.ts +18 -0
- package/dist/services/storage.service.js +81 -0
- package/dist/services/storage.service.js.map +1 -0
- package/dist/transformers/common.transformer.d.ts +1 -0
- package/dist/transformers/common.transformer.js +4 -0
- package/dist/transformers/common.transformer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/helper.utils.d.ts +2 -1
- package/dist/utils/helper.utils.js +17 -1
- package/dist/utils/helper.utils.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +112 -2
- package/src/models/dtos/commons/crop-area.dto.ts +19 -0
- package/src/models/dtos/commons/id.param.ts +7 -0
- package/src/models/enums/attachement-type.enum.ts +4 -0
- package/src/models/enums/s3.enum.ts +12 -0
- package/src/models/interfaces/attachement.interface.ts +9 -0
- package/src/models/interfaces/author.interface.ts +8 -0
- package/src/models/interfaces/crop-area.interface.ts +6 -0
- package/src/models/interfaces/dictionary.interface.ts +1 -1
- package/src/models/interfaces/dl-storage.interface.ts +41 -0
- package/src/models/interfaces/group-session.interface.ts +7 -2
- package/src/models/interfaces/picture.interface.ts +8 -0
- package/src/models/interfaces/s3.interface.ts +54 -0
- package/src/models/interfaces/user-meta.interface.ts +4 -0
- package/src/models/schemas/embedded/attachement.schema.ts +22 -0
- package/src/models/schemas/embedded/author.schema.ts +21 -0
- package/src/models/schemas/embedded/crop-area.schema.ts +21 -0
- package/src/models/schemas/embedded/group-session.schema.ts +5 -7
- package/src/models/schemas/embedded/picture.schema.ts +22 -0
- package/src/models/schemas/embedded/s3.schema.ts +130 -0
- package/src/models/schemas/embedded/time.schema.ts +18 -0
- package/src/services/dictionaries.service.ts +19 -10
- package/src/services/iam.service.ts +108 -0
- package/src/services/sessions.service.ts +36 -0
- package/src/services/storage.service.ts +84 -0
- package/src/transformers/common.transformer.ts +6 -1
- package/src/utils/helper.utils.ts +22 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,10 +45,27 @@ import { IStudentEmbedded } from './models/interfaces/student-embedded.interface
|
|
|
45
45
|
import { StudentEmbedded, StudentEmbeddedDocument, StudentEmbeddedSchema } from './models/schemas/embedded/student-embedded.schema';
|
|
46
46
|
import { ITeacher } from './models/interfaces/teacher.interface';
|
|
47
47
|
import { WeekDay } from './models/enums/week-day.enum';
|
|
48
|
-
import { IGroupSession } from './models/interfaces/group-session.interface';
|
|
48
|
+
import { IGroupSession, ITime } from './models/interfaces/group-session.interface';
|
|
49
49
|
import { GroupState } from './models/enums/group-state.enum';
|
|
50
50
|
import { GroupSessionSchema, GroupSessionDocument, GroupSession } from './models/schemas/embedded/group-session.schema';
|
|
51
51
|
import { TeacherSchema, TeacherDocument, Teacher } from './models/schemas/embedded/teacher.schema';
|
|
52
52
|
import { ISMTPAPIConfig } from './models/interfaces/smtp-api-config.interface';
|
|
53
53
|
import { SMTPService } from './services/smtp.service';
|
|
54
|
-
|
|
54
|
+
import { Time, TimeDocument, TimeSchema } from './models/schemas/embedded/time.schema';
|
|
55
|
+
import { FileLogInitType, S3FileState } from './models/enums/s3.enum';
|
|
56
|
+
import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IFileEmbedded } from './models/interfaces/s3.interface';
|
|
57
|
+
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
|
+
import { IUserMeta } from './models/interfaces/user-meta.interface';
|
|
59
|
+
import { ICropArea } from './models/interfaces/crop-area.interface';
|
|
60
|
+
import { CropArea, CropAreaDocument, CropAreaSchema } from './models/schemas/embedded/crop-area.schema';
|
|
61
|
+
import { AttachementType } from './models/enums/attachement-type.enum';
|
|
62
|
+
import { IAttachement } from './models/interfaces/attachement.interface';
|
|
63
|
+
import { Attachement, AttachementDocument, AttachementSchema } from './models/schemas/embedded/attachement.schema';
|
|
64
|
+
import { Picture, PictureSchema, PictureDocument } from './models/schemas/embedded/picture.schema';
|
|
65
|
+
import { IPicture } from './models/interfaces/picture.interface';
|
|
66
|
+
import { IAuthor } from './models/interfaces/author.interface';
|
|
67
|
+
import { Author, AuthorDocument, AuthorSchema } from './models/schemas/embedded/author.schema';
|
|
68
|
+
import { CropAreaDTO } from './models/dtos/commons/crop-area.dto';
|
|
69
|
+
import { StorageService } from './services/storage.service';
|
|
70
|
+
import { IDParams } from './models/dtos/commons/id.param';
|
|
71
|
+
export { SessionsService, DictionariesService, SMTPService, StorageService, 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, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, 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, IAttachement, IPicture, IAuthor, IFileEmbedded, 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, Attachement, AttachementSchema, AttachementDocument, Picture, PictureSchema, PictureDocument, Author, AuthorSchema, AuthorDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = void 0;
|
|
3
|
+
exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.IDParams = exports.CropAreaDTO = exports.I18nDTO = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = 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.StorageService = exports.SMTPService = exports.DictionariesService = exports.SessionsService = void 0;
|
|
4
|
+
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachementSchema = exports.Attachement = 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 = void 0;
|
|
5
5
|
const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
|
|
6
6
|
Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
|
|
7
7
|
const dl_commons_module_1 = require("./dl-commons.module");
|
|
@@ -99,4 +99,47 @@ Object.defineProperty(exports, "TeacherSchema", { enumerable: true, get: functio
|
|
|
99
99
|
Object.defineProperty(exports, "Teacher", { enumerable: true, get: function () { return teacher_schema_1.Teacher; } });
|
|
100
100
|
const smtp_service_1 = require("./services/smtp.service");
|
|
101
101
|
Object.defineProperty(exports, "SMTPService", { enumerable: true, get: function () { return smtp_service_1.SMTPService; } });
|
|
102
|
+
const time_schema_1 = require("./models/schemas/embedded/time.schema");
|
|
103
|
+
Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return time_schema_1.Time; } });
|
|
104
|
+
Object.defineProperty(exports, "TimeSchema", { enumerable: true, get: function () { return time_schema_1.TimeSchema; } });
|
|
105
|
+
const s3_enum_1 = require("./models/enums/s3.enum");
|
|
106
|
+
Object.defineProperty(exports, "FileLogInitType", { enumerable: true, get: function () { return s3_enum_1.FileLogInitType; } });
|
|
107
|
+
Object.defineProperty(exports, "S3FileState", { enumerable: true, get: function () { return s3_enum_1.S3FileState; } });
|
|
108
|
+
const s3_schema_1 = require("./models/schemas/embedded/s3.schema");
|
|
109
|
+
Object.defineProperty(exports, "S3", { enumerable: true, get: function () { return s3_schema_1.S3; } });
|
|
110
|
+
Object.defineProperty(exports, "S3Schema", { enumerable: true, get: function () { return s3_schema_1.S3Schema; } });
|
|
111
|
+
Object.defineProperty(exports, "LogInitiatorSchema", { enumerable: true, get: function () { return s3_schema_1.LogInitiatorSchema; } });
|
|
112
|
+
Object.defineProperty(exports, "LogInitiator", { enumerable: true, get: function () { return s3_schema_1.LogInitiator; } });
|
|
113
|
+
Object.defineProperty(exports, "FileLog", { enumerable: true, get: function () { return s3_schema_1.FileLog; } });
|
|
114
|
+
Object.defineProperty(exports, "FileLogSchema", { enumerable: true, get: function () { return s3_schema_1.FileLogSchema; } });
|
|
115
|
+
Object.defineProperty(exports, "FileMetaSchema", { enumerable: true, get: function () { return s3_schema_1.FileMetaSchema; } });
|
|
116
|
+
Object.defineProperty(exports, "FileMeta", { enumerable: true, get: function () { return s3_schema_1.FileMeta; } });
|
|
117
|
+
Object.defineProperty(exports, "FileState", { enumerable: true, get: function () { return s3_schema_1.FileState; } });
|
|
118
|
+
Object.defineProperty(exports, "FileStateSchema", { enumerable: true, get: function () { return s3_schema_1.FileStateSchema; } });
|
|
119
|
+
Object.defineProperty(exports, "FileRecord", { enumerable: true, get: function () { return s3_schema_1.FileRecord; } });
|
|
120
|
+
Object.defineProperty(exports, "FileRecordSchema", { enumerable: true, get: function () { return s3_schema_1.FileRecordSchema; } });
|
|
121
|
+
Object.defineProperty(exports, "S3File", { enumerable: true, get: function () { return s3_schema_1.S3File; } });
|
|
122
|
+
Object.defineProperty(exports, "S3FileSchema", { enumerable: true, get: function () { return s3_schema_1.S3FileSchema; } });
|
|
123
|
+
Object.defineProperty(exports, "FileEmbedded", { enumerable: true, get: function () { return s3_schema_1.FileEmbedded; } });
|
|
124
|
+
Object.defineProperty(exports, "FileEmbeddedSchema", { enumerable: true, get: function () { return s3_schema_1.FileEmbeddedSchema; } });
|
|
125
|
+
const crop_area_schema_1 = require("./models/schemas/embedded/crop-area.schema");
|
|
126
|
+
Object.defineProperty(exports, "CropArea", { enumerable: true, get: function () { return crop_area_schema_1.CropArea; } });
|
|
127
|
+
Object.defineProperty(exports, "CropAreaSchema", { enumerable: true, get: function () { return crop_area_schema_1.CropAreaSchema; } });
|
|
128
|
+
const attachement_type_enum_1 = require("./models/enums/attachement-type.enum");
|
|
129
|
+
Object.defineProperty(exports, "AttachementType", { enumerable: true, get: function () { return attachement_type_enum_1.AttachementType; } });
|
|
130
|
+
const attachement_schema_1 = require("./models/schemas/embedded/attachement.schema");
|
|
131
|
+
Object.defineProperty(exports, "Attachement", { enumerable: true, get: function () { return attachement_schema_1.Attachement; } });
|
|
132
|
+
Object.defineProperty(exports, "AttachementSchema", { enumerable: true, get: function () { return attachement_schema_1.AttachementSchema; } });
|
|
133
|
+
const picture_schema_1 = require("./models/schemas/embedded/picture.schema");
|
|
134
|
+
Object.defineProperty(exports, "Picture", { enumerable: true, get: function () { return picture_schema_1.Picture; } });
|
|
135
|
+
Object.defineProperty(exports, "PictureSchema", { enumerable: true, get: function () { return picture_schema_1.PictureSchema; } });
|
|
136
|
+
const author_schema_1 = require("./models/schemas/embedded/author.schema");
|
|
137
|
+
Object.defineProperty(exports, "Author", { enumerable: true, get: function () { return author_schema_1.Author; } });
|
|
138
|
+
Object.defineProperty(exports, "AuthorSchema", { enumerable: true, get: function () { return author_schema_1.AuthorSchema; } });
|
|
139
|
+
const crop_area_dto_1 = require("./models/dtos/commons/crop-area.dto");
|
|
140
|
+
Object.defineProperty(exports, "CropAreaDTO", { enumerable: true, get: function () { return crop_area_dto_1.CropAreaDTO; } });
|
|
141
|
+
const storage_service_1 = require("./services/storage.service");
|
|
142
|
+
Object.defineProperty(exports, "StorageService", { enumerable: true, get: function () { return storage_service_1.StorageService; } });
|
|
143
|
+
const id_param_1 = require("./models/dtos/commons/id.param");
|
|
144
|
+
Object.defineProperty(exports, "IDParams", { enumerable: true, get: function () { return id_param_1.IDParams; } });
|
|
102
145
|
//# 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":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CropAreaDTO = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CropAreaDTO {
|
|
15
|
+
}
|
|
16
|
+
exports.CropAreaDTO = CropAreaDTO;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsInt)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CropAreaDTO.prototype, "x1", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CropAreaDTO.prototype, "x2", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsInt)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CropAreaDTO.prototype, "y1", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsInt)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CropAreaDTO.prototype, "y2", void 0);
|
|
37
|
+
//# sourceMappingURL=crop-area.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-area.dto.js","sourceRoot":"","sources":["../../../../src/models/dtos/commons/crop-area.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,MAAa,WAAW;CAgBvB;AAhBD,kCAgBC;AAbG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IDParams = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class IDParams {
|
|
15
|
+
}
|
|
16
|
+
exports.IDParams = IDParams;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], IDParams.prototype, "id", void 0);
|
|
22
|
+
//# sourceMappingURL=id.param.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.param.js","sourceRoot":"","sources":["../../../../src/models/dtos/commons/id.param.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AAExD,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oCACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachementType = void 0;
|
|
4
|
+
var AttachementType;
|
|
5
|
+
(function (AttachementType) {
|
|
6
|
+
AttachementType["File"] = "file";
|
|
7
|
+
AttachementType["Link"] = "link";
|
|
8
|
+
})(AttachementType || (exports.AttachementType = AttachementType = {}));
|
|
9
|
+
//# sourceMappingURL=attachement-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachement-type.enum.js","sourceRoot":"","sources":["../../../src/models/enums/attachement-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACjB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum S3FileState {
|
|
2
|
+
INITIALIZED = "INITIALIZED",
|
|
3
|
+
CREATED = "CREATED",
|
|
4
|
+
COMMITTED = "COMMITTED",
|
|
5
|
+
SOFT_DELETED = "SOFT_DELETED",
|
|
6
|
+
DELETED = "DELETED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum FileLogInitType {
|
|
9
|
+
SCHEDULER = "SCHEDULER",
|
|
10
|
+
APP = "APP"
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileLogInitType = exports.S3FileState = void 0;
|
|
4
|
+
var S3FileState;
|
|
5
|
+
(function (S3FileState) {
|
|
6
|
+
S3FileState["INITIALIZED"] = "INITIALIZED";
|
|
7
|
+
S3FileState["CREATED"] = "CREATED";
|
|
8
|
+
S3FileState["COMMITTED"] = "COMMITTED";
|
|
9
|
+
S3FileState["SOFT_DELETED"] = "SOFT_DELETED";
|
|
10
|
+
S3FileState["DELETED"] = "DELETED";
|
|
11
|
+
})(S3FileState || (exports.S3FileState = S3FileState = {}));
|
|
12
|
+
var FileLogInitType;
|
|
13
|
+
(function (FileLogInitType) {
|
|
14
|
+
FileLogInitType["SCHEDULER"] = "SCHEDULER";
|
|
15
|
+
FileLogInitType["APP"] = "APP";
|
|
16
|
+
})(FileLogInitType || (exports.FileLogInitType = FileLogInitType = {}));
|
|
17
|
+
//# sourceMappingURL=s3.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.enum.js","sourceRoot":"","sources":["../../../src/models/enums/s3.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,0CAA2B,CAAA;IAC3B,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;IAC7B,kCAAmB,CAAA;AACvB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AttachementType } from '../enums/attachement-type.enum';
|
|
2
|
+
import { IIdentifable } from './identifable.interface';
|
|
3
|
+
import { IFileEmbedded } from './s3.interface';
|
|
4
|
+
export interface IAttachement extends IIdentifable {
|
|
5
|
+
type: AttachementType;
|
|
6
|
+
file?: IFileEmbedded | null | undefined;
|
|
7
|
+
link?: string | null | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachement.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/attachement.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"author.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/author.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-area.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/crop-area.interface.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import { IBase } from './base.interface';
|
|
|
3
3
|
import { II18n } from './i18n.interface';
|
|
4
4
|
export interface IDictionary extends IBase {
|
|
5
5
|
keyword: string;
|
|
6
|
-
parentIds: Types.ObjectId[];
|
|
6
|
+
parentIds: Types.ObjectId[] | string[];
|
|
7
7
|
title: II18n;
|
|
8
8
|
metas: Map<string, string>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Readable } from 'stream';
|
|
2
|
+
export interface IRecord {
|
|
3
|
+
createdDate: any;
|
|
4
|
+
modifiedDate: any;
|
|
5
|
+
state: string;
|
|
6
|
+
deleted: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IMeta {
|
|
9
|
+
name: string;
|
|
10
|
+
size: number;
|
|
11
|
+
mimeType: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IS3 {
|
|
14
|
+
bucket: string;
|
|
15
|
+
etag: string;
|
|
16
|
+
key: string;
|
|
17
|
+
secret: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ICommit {
|
|
20
|
+
value: boolean;
|
|
21
|
+
date: any;
|
|
22
|
+
}
|
|
23
|
+
export declare class FileInfo {
|
|
24
|
+
id: string;
|
|
25
|
+
record: IRecord;
|
|
26
|
+
meta: IMeta;
|
|
27
|
+
s3: IS3;
|
|
28
|
+
commit: ICommit;
|
|
29
|
+
}
|
|
30
|
+
export interface IFileRequest {
|
|
31
|
+
file: Readable;
|
|
32
|
+
mimeType: string;
|
|
33
|
+
fileName: string;
|
|
34
|
+
size?: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dl-storage.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/dl-storage.interface.ts"],"names":[],"mappings":";;;AA2BA,MAAa,QAAQ;CAMpB;AAND,4BAMC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { WeekDay } from '../enums/week-day.enum';
|
|
2
2
|
import { II18n } from './i18n.interface';
|
|
3
3
|
import { IIdentifable } from './identifable.interface';
|
|
4
|
+
export interface ITime {
|
|
5
|
+
inString: string;
|
|
6
|
+
inNumber: number;
|
|
7
|
+
zone: string;
|
|
8
|
+
}
|
|
4
9
|
export interface IGroupSession extends IIdentifable {
|
|
5
10
|
description: II18n;
|
|
6
11
|
day: WeekDay;
|
|
7
|
-
time:
|
|
8
|
-
timeZone: string;
|
|
12
|
+
time: ITime;
|
|
9
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GroupState } from '../enums/group-state.enum';
|
|
2
|
+
import { IBase } from './base.interface';
|
|
3
|
+
import { IDictionary } from './dictionary.interface';
|
|
4
|
+
import { IGroupSession } from './group-session.interface';
|
|
5
|
+
import { II18n } from './i18n.interface';
|
|
6
|
+
import { IStudentEmbedded } from './student-embedded.interface';
|
|
7
|
+
import { ITeacher } from './teacher.interface';
|
|
8
|
+
export interface IGroup extends IBase {
|
|
9
|
+
teacher: ITeacher;
|
|
10
|
+
students: IStudentEmbedded[];
|
|
11
|
+
sessions: IGroupSession[];
|
|
12
|
+
knowladgeLevels: IDictionary[];
|
|
13
|
+
description: II18n;
|
|
14
|
+
state: GroupState;
|
|
15
|
+
startDate: Date;
|
|
16
|
+
endDate: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/group.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/picture.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
|
+
import { FileLogInitType, S3FileState } from '../enums/s3.enum';
|
|
3
|
+
export interface IS3 {
|
|
4
|
+
key: string;
|
|
5
|
+
bucket: string;
|
|
6
|
+
etag: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ILogInitiator {
|
|
9
|
+
type: FileLogInitType;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IS3File {
|
|
13
|
+
id: mongo.ObjectId | string;
|
|
14
|
+
fileMeta: IFileMeta;
|
|
15
|
+
state: IFileState;
|
|
16
|
+
s3: IS3;
|
|
17
|
+
record: IFileRecord;
|
|
18
|
+
owner: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IFileState {
|
|
21
|
+
value: S3FileState;
|
|
22
|
+
log: IFileLog[];
|
|
23
|
+
}
|
|
24
|
+
export interface IFileRecord {
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
export interface IFileMeta {
|
|
29
|
+
name: string;
|
|
30
|
+
size: number;
|
|
31
|
+
mimeType: string;
|
|
32
|
+
extension: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IFileLog {
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
value: S3FileState;
|
|
37
|
+
initiator: ILogInitiator;
|
|
38
|
+
}
|
|
39
|
+
export interface IFileEmbedded {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
size: number;
|
|
43
|
+
mimeType: string;
|
|
44
|
+
s3: IS3;
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/s3.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-meta.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/user-meta.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IAttachement } from '../../interfaces/attachement.interface';
|
|
3
|
+
import { Identifable } from '../identifable.schema';
|
|
4
|
+
import { AttachementType } from '../../enums/attachement-type.enum';
|
|
5
|
+
import { IFileEmbedded } from '../../interfaces/s3.interface';
|
|
6
|
+
export declare class Attachement extends Identifable implements IAttachement {
|
|
7
|
+
type: AttachementType;
|
|
8
|
+
file: IFileEmbedded;
|
|
9
|
+
link: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const AttachementSchema: import("mongoose").Schema<Attachement, import("mongoose").Model<Attachement, any, any, any, import("mongoose").Document<unknown, any, Attachement> & Attachement & Required<{
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
}> & {
|
|
14
|
+
__v?: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachement, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Attachement>> & import("mongoose").FlatRecord<Attachement> & Required<{
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
}> & {
|
|
18
|
+
__v?: number;
|
|
19
|
+
}>;
|
|
20
|
+
export type AttachementDocument = HydratedDocument<Attachement>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AttachementSchema = exports.Attachement = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const identifable_schema_1 = require("../identifable.schema");
|
|
15
|
+
const attachement_type_enum_1 = require("../../enums/attachement-type.enum");
|
|
16
|
+
const s3_schema_1 = require("./s3.schema");
|
|
17
|
+
let Attachement = class Attachement extends identifable_schema_1.Identifable {
|
|
18
|
+
};
|
|
19
|
+
exports.Attachement = Attachement;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, mongoose_1.Prop)({ required: true, enum: attachement_type_enum_1.AttachementType, type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Attachement.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: false, default: null }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], Attachement.prototype, "file", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Attachement.prototype, "link", void 0);
|
|
32
|
+
exports.Attachement = Attachement = __decorate([
|
|
33
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
34
|
+
], Attachement);
|
|
35
|
+
exports.AttachementSchema = mongoose_1.SchemaFactory.createForClass(Attachement);
|
|
36
|
+
//# sourceMappingURL=attachement.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachement.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/attachement.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,8DAAoD;AACpD,6EAAoE;AAEpE,2CAAiD;AAG1C,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,gCAAW;CAS3C,CAAA;AATY,kCAAW;AAEpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,uCAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACxC;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC/C;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;sBARJ,WAAW;IADvB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,WAAW,CASvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
2
|
+
import { IAuthor } from '../../interfaces/author.interface';
|
|
3
|
+
export declare class Author implements IAuthor {
|
|
4
|
+
userId: Types.ObjectId | string | null | undefined;
|
|
5
|
+
pid: string | null | undefined;
|
|
6
|
+
firstName: string | null | undefined;
|
|
7
|
+
lastName: string | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").Document<unknown, any, Author> & Author & {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v?: number;
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Author>> & import("mongoose").FlatRecord<Author> & {
|
|
14
|
+
_id: Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v?: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type AuthorDocument = HydratedDocument<Author>;
|