dl-commons 0.0.2-testing.15 → 0.0.2-testing.17
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 +11 -2
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- 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/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 +5 -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/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/schemas/base.schema.d.ts +2 -2
- 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 +16 -0
- package/dist/models/schemas/embedded/author.schema.js +30 -0
- package/dist/models/schemas/embedded/author.schema.js.map +1 -0
- package/dist/models/schemas/embedded/contact.schema.d.ts +2 -2
- 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/dictionary-embedded.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/group-session.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/i18n.embedded.d.ts +2 -2
- package/dist/models/schemas/embedded/person.schema.d.ts +2 -2
- 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/record.embedded.d.ts +2 -2
- package/dist/models/schemas/embedded/residence.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/s3.schema.d.ts +16 -16
- package/dist/models/schemas/embedded/session-user.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/student-embedded.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/teacher.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/time.schema.d.ts +2 -2
- package/dist/models/schemas/identifable.schema.d.ts +2 -2
- package/dist/models/schemas/parent.schema.d.ts +2 -2
- package/dist/models/schemas/session.schema.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +29 -3
- package/src/models/enums/attachement-type.enum.ts +4 -0
- package/src/models/interfaces/attachement.interface.ts +9 -0
- package/src/models/interfaces/author.interface.ts +6 -0
- package/src/models/interfaces/crop-area.interface.ts +6 -0
- package/src/models/interfaces/picture.interface.ts +8 -0
- package/src/models/schemas/embedded/attachement.schema.ts +22 -0
- package/src/models/schemas/embedded/author.schema.ts +15 -0
- package/src/models/schemas/embedded/crop-area.schema.ts +21 -0
- package/src/models/schemas/embedded/picture.schema.ts +22 -0
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,16 @@ 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
55
|
import { FileLogInitType, S3FileState } from './models/enums/s3.enum';
|
|
56
|
-
import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog } from './models/interfaces/s3.interface';
|
|
56
|
+
import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IFileEmbedded } from './models/interfaces/s3.interface';
|
|
57
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
58
|
import { IUserMeta } from './models/interfaces/user-meta.interface';
|
|
59
|
-
|
|
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
|
+
export { SessionsService, DictionariesService, SMTPService, 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, 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.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 = void 0;
|
|
3
|
+
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 = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = 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.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 = 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");
|
|
@@ -122,4 +122,18 @@ Object.defineProperty(exports, "S3File", { enumerable: true, get: function () {
|
|
|
122
122
|
Object.defineProperty(exports, "S3FileSchema", { enumerable: true, get: function () { return s3_schema_1.S3FileSchema; } });
|
|
123
123
|
Object.defineProperty(exports, "FileEmbedded", { enumerable: true, get: function () { return s3_schema_1.FileEmbedded; } });
|
|
124
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; } });
|
|
125
139
|
//# 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,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,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":""}
|
|
@@ -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":""}
|
|
@@ -8,10 +8,10 @@ export declare class Base extends Identifable implements IBase {
|
|
|
8
8
|
export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, import("mongoose").Document<unknown, any, Base> & Base & Required<{
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
|
-
__v
|
|
11
|
+
__v?: number;
|
|
12
12
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Base>> & import("mongoose").FlatRecord<Base> & Required<{
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
|
-
__v
|
|
15
|
+
__v?: number;
|
|
16
16
|
}>;
|
|
17
17
|
export type BaseDocument = HydratedDocument<Base>;
|
|
@@ -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,16 @@
|
|
|
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
|
+
fullName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").Document<unknown, any, Author> & Author & {
|
|
8
|
+
_id: Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v?: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Author>> & import("mongoose").FlatRecord<Author> & {
|
|
12
|
+
_id: Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v?: number;
|
|
15
|
+
}>;
|
|
16
|
+
export type AuthorDocument = HydratedDocument<Author>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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: true, default: null }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Author.prototype, "fullName", void 0);
|
|
26
|
+
exports.Author = Author = __decorate([
|
|
27
|
+
(0, mongoose_2.Schema)({ _id: false })
|
|
28
|
+
], Author);
|
|
29
|
+
exports.AuthorSchema = mongoose_2.SchemaFactory.createForClass(Author);
|
|
30
|
+
//# 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;CAMlB,CAAA;AANY,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,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACrC;iBALR,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CAMlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -11,10 +11,10 @@ export declare class Contact extends Identifable implements IContact {
|
|
|
11
11
|
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact> & Contact & Required<{
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
|
-
__v
|
|
14
|
+
__v?: number;
|
|
15
15
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact>> & import("mongoose").FlatRecord<Contact> & Required<{
|
|
16
16
|
_id: import("mongoose").Types.ObjectId;
|
|
17
17
|
}> & {
|
|
18
|
-
__v
|
|
18
|
+
__v?: number;
|
|
19
19
|
}>;
|
|
20
20
|
export type ContactDocument = HydratedDocument<Contact>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { ICropArea } from '../../interfaces/crop-area.interface';
|
|
3
|
+
export declare class CropArea implements ICropArea {
|
|
4
|
+
x1: number;
|
|
5
|
+
x2: number;
|
|
6
|
+
y1: number;
|
|
7
|
+
y2: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, import("mongoose").Document<unknown, any, CropArea> & CropArea & {
|
|
10
|
+
_id: import("mongoose").Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v?: number;
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CropArea>> & import("mongoose").FlatRecord<CropArea> & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v?: number;
|
|
17
|
+
}>;
|
|
18
|
+
export type CropAreaDocument = HydratedDocument<CropArea>;
|
|
@@ -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.CropAreaSchema = exports.CropArea = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let CropArea = class CropArea {
|
|
15
|
+
};
|
|
16
|
+
exports.CropArea = CropArea;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], CropArea.prototype, "x1", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CropArea.prototype, "x2", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CropArea.prototype, "y1", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CropArea.prototype, "y2", void 0);
|
|
33
|
+
exports.CropArea = CropArea = __decorate([
|
|
34
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
35
|
+
], CropArea);
|
|
36
|
+
exports.CropAreaSchema = mongoose_1.SchemaFactory.createForClass(CropArea);
|
|
37
|
+
//# sourceMappingURL=crop-area.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-area.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/crop-area.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAYpB,CAAA;AAZY,4BAAQ;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;mBAXF,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAYpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -11,10 +11,10 @@ export declare class DictionaryEmbedded extends Base implements IDictionary {
|
|
|
11
11
|
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & Required<{
|
|
12
12
|
_id: Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
|
-
__v
|
|
14
|
+
__v?: number;
|
|
15
15
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>> & import("mongoose").FlatRecord<DictionaryEmbedded> & Required<{
|
|
16
16
|
_id: Types.ObjectId;
|
|
17
17
|
}> & {
|
|
18
|
-
__v
|
|
18
|
+
__v?: number;
|
|
19
19
|
}>;
|
|
20
20
|
export type DictionaryEmbeddedDocument = HydratedDocument<DictionaryEmbedded>;
|
|
@@ -11,10 +11,10 @@ export declare class GroupSession extends Identifable implements IGroupSession {
|
|
|
11
11
|
export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
|
-
__v
|
|
14
|
+
__v?: number;
|
|
15
15
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession>> & import("mongoose").FlatRecord<GroupSession> & Required<{
|
|
16
16
|
_id: import("mongoose").Types.ObjectId;
|
|
17
17
|
}> & {
|
|
18
|
-
__v
|
|
18
|
+
__v?: number;
|
|
19
19
|
}>;
|
|
20
20
|
export type GroupSessionDocument = HydratedDocument<GroupSession>;
|
|
@@ -8,10 +8,10 @@ export declare class I18n implements II18n {
|
|
|
8
8
|
export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n> & I18n & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
|
-
__v
|
|
11
|
+
__v?: number;
|
|
12
12
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>> & import("mongoose").FlatRecord<I18n> & {
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
|
-
__v
|
|
15
|
+
__v?: number;
|
|
16
16
|
}>;
|
|
17
17
|
export type I18nDocument = HydratedDocument<I18n>;
|
|
@@ -13,10 +13,10 @@ export declare class Person implements IPerson {
|
|
|
13
13
|
export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, import("mongoose").Document<unknown, any, Person> & Person & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
|
-
__v
|
|
16
|
+
__v?: number;
|
|
17
17
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Person>> & import("mongoose").FlatRecord<Person> & {
|
|
18
18
|
_id: import("mongoose").Types.ObjectId;
|
|
19
19
|
} & {
|
|
20
|
-
__v
|
|
20
|
+
__v?: number;
|
|
21
21
|
}>;
|
|
22
22
|
export type PersonDocument = HydratedDocument<Person>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IFileEmbedded } from '../../interfaces/s3.interface';
|
|
3
|
+
import { IPicture } from '../../interfaces/picture.interface';
|
|
4
|
+
import { ICropArea } from '../../interfaces/crop-area.interface';
|
|
5
|
+
export declare class Picture implements IPicture {
|
|
6
|
+
original: IFileEmbedded;
|
|
7
|
+
cropped: IFileEmbedded;
|
|
8
|
+
cropArea: ICropArea;
|
|
9
|
+
}
|
|
10
|
+
export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture> & Picture & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v?: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Picture, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Picture>> & import("mongoose").FlatRecord<Picture> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v?: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type PictureDocument = HydratedDocument<Picture>;
|
|
@@ -0,0 +1,35 @@
|
|
|
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.PictureSchema = exports.Picture = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const s3_schema_1 = require("./s3.schema");
|
|
15
|
+
const crop_area_schema_1 = require("./crop-area.schema");
|
|
16
|
+
let Picture = class Picture {
|
|
17
|
+
};
|
|
18
|
+
exports.Picture = Picture;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: true, default: null }),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], Picture.prototype, "original", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: false, default: null }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], Picture.prototype, "cropped", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: crop_area_schema_1.CropAreaSchema, required: false, default: null }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], Picture.prototype, "cropArea", void 0);
|
|
31
|
+
exports.Picture = Picture = __decorate([
|
|
32
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
33
|
+
], Picture);
|
|
34
|
+
exports.PictureSchema = mongoose_1.SchemaFactory.createForClass(Picture);
|
|
35
|
+
//# sourceMappingURL=picture.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/picture.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,2CAAiD;AAGjD,yDAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AATY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC5C;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC3C;kBARX,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,OAAO,CASnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -11,10 +11,10 @@ export declare class Record implements IRecord {
|
|
|
11
11
|
export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record> & Record & {
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
} & {
|
|
14
|
-
__v
|
|
14
|
+
__v?: number;
|
|
15
15
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>> & import("mongoose").FlatRecord<Record> & {
|
|
16
16
|
_id: import("mongoose").Types.ObjectId;
|
|
17
17
|
} & {
|
|
18
|
-
__v
|
|
18
|
+
__v?: number;
|
|
19
19
|
}>;
|
|
20
20
|
export type RecordDocument = HydratedDocument<Record>;
|
|
@@ -10,10 +10,10 @@ export declare class Residence implements IResidence {
|
|
|
10
10
|
export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, import("mongoose").Document<unknown, any, Residence> & Residence & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
12
|
} & {
|
|
13
|
-
__v
|
|
13
|
+
__v?: number;
|
|
14
14
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Residence>> & import("mongoose").FlatRecord<Residence> & {
|
|
15
15
|
_id: import("mongoose").Types.ObjectId;
|
|
16
16
|
} & {
|
|
17
|
-
__v
|
|
17
|
+
__v?: number;
|
|
18
18
|
}>;
|
|
19
19
|
export type ResidenceDocument = HydratedDocument<Residence>;
|