dl-commons 0.0.2-testing.2 → 0.0.2-testing.20
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 +18 -2
- package/dist/index.js +43 -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/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 +47 -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 +128 -0
- package/dist/models/schemas/embedded/s3.schema.js +188 -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/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 +110 -2
- package/src/models/dtos/commons/crop-area.dto.ts +19 -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 +55 -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 +133 -0
- package/src/models/schemas/embedded/time.schema.ts +18 -0
- package/src/services/dictionaries.service.ts +19 -10
- 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,26 @@ 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
|
+
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, 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.DictionaryEmbeddedSchema = 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.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 = 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,45 @@ 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; } });
|
|
102
143
|
//# 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,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,47 @@
|
|
|
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
|
+
state: S3FileState;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
}
|
|
@@ -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>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.AuthorSchema = exports.Author = void 0;
|
|
13
|
+
const mongoose_1 = require("mongoose");
|
|
14
|
+
const mongoose_2 = require("@nestjs/mongoose");
|
|
15
|
+
let Author = class Author {
|
|
16
|
+
};
|
|
17
|
+
exports.Author = Author;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, default: null }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], Author.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Author.prototype, "pid", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Author.prototype, "firstName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Author.prototype, "lastName", void 0);
|
|
34
|
+
exports.Author = Author = __decorate([
|
|
35
|
+
(0, mongoose_2.Schema)({ _id: false })
|
|
36
|
+
], Author);
|
|
37
|
+
exports.AuthorSchema = mongoose_2.SchemaFactory.createForClass(Author);
|
|
38
|
+
//# sourceMappingURL=author.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"author.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/author.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA6E;AAE7E,+CAA+D;AAGxD,IAAM,MAAM,GAAZ,MAAM,MAAM;CAYlB,CAAA;AAZY,wBAAM;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sCACV;AAGnD;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mCACxB;AAG/B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAClB;AAGrC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACnB;iBAX3B,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CAYlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|