dl-commons 0.0.2-testing.4 → 0.0.2-testing.41
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/README.md +0 -91
- package/dist/dl-commons.module.js +3 -2
- package/dist/dl-commons.module.js.map +1 -1
- package/dist/filters/base-exception.filter.d.ts +3 -3
- package/dist/filters/base-exception.filter.js +4 -11
- package/dist/filters/base-exception.filter.js.map +1 -1
- package/dist/guards/permission.guard.d.ts +1 -0
- package/dist/guards/permission.guard.js +3 -2
- package/dist/guards/permission.guard.js.map +1 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +74 -2
- package/dist/index.js.map +1 -1
- package/dist/models/consts/env-vars.const.d.ts +2 -0
- package/dist/models/consts/env-vars.const.js +3 -1
- package/dist/models/consts/env-vars.const.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/attachment-type.enum.d.ts +4 -0
- package/dist/models/enums/attachment-type.enum.js +9 -0
- package/dist/models/enums/attachment-type.enum.js.map +1 -0
- package/dist/models/enums/location-type.enum.d.ts +5 -0
- package/dist/models/enums/location-type.enum.js +10 -0
- package/dist/models/enums/location-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/enums/user-type.enum.d.ts +7 -0
- package/dist/models/enums/user-type.enum.js +12 -0
- package/dist/models/enums/user-type.enum.js.map +1 -0
- package/dist/models/enums/virtual-address-type.enum.d.ts +15 -0
- package/dist/models/enums/virtual-address-type.enum.js +20 -0
- package/dist/models/enums/virtual-address-type.enum.js.map +1 -0
- package/dist/models/interfaces/archive.interface.d.ts +4 -0
- package/dist/models/interfaces/archive.interface.js +3 -0
- package/dist/models/interfaces/archive.interface.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/attachment.interface.d.ts +8 -0
- package/dist/models/interfaces/attachment.interface.js +3 -0
- package/dist/models/interfaces/attachment.interface.js.map +1 -0
- package/dist/models/interfaces/author.interface.d.ts +9 -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/date-time-range.interface.d.ts +4 -0
- package/dist/models/interfaces/date-time-range.interface.js +3 -0
- package/dist/models/interfaces/date-time-range.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-embedded.interface.d.ts +2 -0
- package/dist/models/interfaces/group-request.interface.d.ts +7 -0
- package/dist/models/interfaces/group-request.interface.js +3 -0
- package/dist/models/interfaces/group-request.interface.js.map +1 -0
- package/dist/models/interfaces/location.interface.d.ts +8 -0
- package/dist/models/interfaces/location.interface.js +3 -0
- package/dist/models/interfaces/location.interface.js.map +1 -0
- package/dist/models/interfaces/physical-address.interface.d.ts +7 -0
- package/dist/models/interfaces/physical-address.interface.js +3 -0
- package/dist/models/interfaces/physical-address.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/interfaces/virtual-address.interface.d.ts +5 -0
- package/dist/models/interfaces/virtual-address.interface.js +3 -0
- package/dist/models/interfaces/virtual-address.interface.js.map +1 -0
- package/dist/models/schemas/base.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/archive.schema.d.ts +16 -0
- package/dist/models/schemas/embedded/archive.schema.js +29 -0
- package/dist/models/schemas/embedded/archive.schema.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/attachment.schema.d.ts +20 -0
- package/dist/models/schemas/embedded/attachment.schema.js +36 -0
- package/dist/models/schemas/embedded/attachment.schema.js.map +1 -0
- package/dist/models/schemas/embedded/author.schema.d.ts +20 -0
- package/dist/models/schemas/embedded/author.schema.js +46 -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/date-time-range.schema.d.ts +16 -0
- package/dist/models/schemas/embedded/date-time-range.schema.js +29 -0
- package/dist/models/schemas/embedded/date-time-range.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/location.schema.d.ts +20 -0
- package/dist/models/schemas/embedded/location.schema.js +36 -0
- package/dist/models/schemas/embedded/location.schema.js.map +1 -0
- package/dist/models/schemas/embedded/person.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/physical-address.schema.d.ts +19 -0
- package/dist/models/schemas/embedded/physical-address.schema.js +38 -0
- package/dist/models/schemas/embedded/physical-address.schema.js.map +1 -0
- 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 +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/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/embedded/virtual-address.schema.d.ts +17 -0
- package/dist/models/schemas/embedded/virtual-address.schema.js +30 -0
- package/dist/models/schemas/embedded/virtual-address.schema.js.map +1 -0
- 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/services/app-logger.service.d.ts +9 -0
- package/dist/services/app-logger.service.js +43 -0
- package/dist/services/app-logger.service.js.map +1 -0
- package/dist/services/dictionaries.service.js +14 -4
- package/dist/services/dictionaries.service.js.map +1 -1
- package/dist/services/groups.service.d.ts +12 -0
- package/dist/services/groups.service.js +65 -0
- package/dist/services/groups.service.js.map +1 -0
- package/dist/services/iam.service.d.ts +15 -0
- package/dist/services/iam.service.js +95 -0
- package/dist/services/iam.service.js.map +1 -0
- package/dist/services/permissions-scanner.service.d.ts +10 -0
- package/dist/services/permissions-scanner.service.js +50 -0
- package/dist/services/permissions-scanner.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/services/students.service.d.ts +10 -0
- package/dist/services/students.service.js +48 -0
- package/dist/services/students.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/dist/utils/logger.class.d.ts +8 -0
- package/dist/utils/logger.class.js +53 -0
- package/dist/utils/logger.class.js.map +1 -0
- package/package.json +2 -1
- package/src/dl-commons.module.ts +3 -2
- package/src/filters/base-exception.filter.ts +5 -12
- package/src/guards/permission.guard.ts +3 -1
- package/src/index.ts +146 -0
- package/src/models/consts/env-vars.const.ts +3 -1
- package/src/models/dtos/commons/crop-area.dto.ts +20 -0
- package/src/models/dtos/commons/id.param.ts +7 -0
- package/src/models/enums/attachment-type.enum.ts +4 -0
- package/src/models/enums/location-type.enum.ts +5 -0
- package/src/models/enums/s3.enum.ts +12 -0
- package/src/models/enums/user-type.enum.ts +7 -0
- package/src/models/enums/virtual-address-type.enum.ts +15 -0
- package/src/models/interfaces/archive.interface.ts +4 -0
- package/src/models/interfaces/attachment.interface.ts +9 -0
- package/src/models/interfaces/author.interface.ts +10 -0
- package/src/models/interfaces/crop-area.interface.ts +6 -0
- package/src/models/interfaces/date-time-range.interface.ts +4 -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-embedded.interface.ts +2 -0
- package/src/models/interfaces/group-request.interface.ts +8 -0
- package/src/models/interfaces/location.interface.ts +9 -0
- package/src/models/interfaces/physical-address.interface.ts +8 -0
- 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/interfaces/virtual-address.interface.ts +6 -0
- package/src/models/schemas/embedded/archive.schema.ts +15 -0
- package/src/models/schemas/embedded/attachment.schema.ts +22 -0
- package/src/models/schemas/embedded/author.schema.ts +27 -0
- package/src/models/schemas/embedded/crop-area.schema.ts +21 -0
- package/src/models/schemas/embedded/date-time-range.schema.ts +15 -0
- package/src/models/schemas/embedded/location.schema.ts +23 -0
- package/src/models/schemas/embedded/physical-address.schema.ts +23 -0
- 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/virtual-address.schema.ts +16 -0
- package/src/services/app-logger.service.ts +39 -0
- package/src/services/dictionaries.service.ts +19 -10
- package/src/services/groups.service.ts +63 -0
- package/src/services/iam.service.ts +102 -0
- package/src/services/permissions-scanner.service.ts +44 -0
- package/src/services/sessions.service.ts +36 -0
- package/src/services/storage.service.ts +84 -0
- package/src/services/students.service.ts +42 -0
- package/src/transformers/common.transformer.ts +6 -1
- package/src/utils/helper.utils.ts +22 -1
- package/src/utils/logger.class.ts +58 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
2
|
+
import { IAuthor } from '../../interfaces/author.interface';
|
|
3
|
+
export declare class Author implements IAuthor {
|
|
4
|
+
_id: Types.ObjectId | string | null | undefined;
|
|
5
|
+
userId: Types.ObjectId | string | null | undefined;
|
|
6
|
+
pid: string | null | undefined;
|
|
7
|
+
firstName: string | null | undefined;
|
|
8
|
+
lastName: string | null | undefined;
|
|
9
|
+
organisationName: string | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").Document<unknown, any, Author, any> & Author & Required<{
|
|
12
|
+
_id: string | Types.ObjectId;
|
|
13
|
+
}> & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Author>, {}> & import("mongoose").FlatRecord<Author> & Required<{
|
|
16
|
+
_id: string | Types.ObjectId;
|
|
17
|
+
}> & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}>;
|
|
20
|
+
export type AuthorDocument = HydratedDocument<Author>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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: new mongoose_1.Types.ObjectId() }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], Author.prototype, "_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, default: null }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], Author.prototype, "userId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Author.prototype, "pid", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Author.prototype, "firstName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Author.prototype, "lastName", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Author.prototype, "organisationName", void 0);
|
|
42
|
+
exports.Author = Author = __decorate([
|
|
43
|
+
(0, mongoose_2.Schema)({ _id: false })
|
|
44
|
+
], Author);
|
|
45
|
+
exports.AuthorSchema = mongoose_2.SchemaFactory.createForClass(Author);
|
|
46
|
+
//# 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;CAkBlB,CAAA;AAlBY,wBAAM;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,gBAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;;mCAC7B;AAGhD;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;AAGpC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACX;iBAjBnC,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CAkBlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -8,11 +8,11 @@ export declare class Contact extends Identifable implements IContact {
|
|
|
8
8
|
primary: boolean;
|
|
9
9
|
verified: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact> & Contact & Required<{
|
|
11
|
+
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact, any> & Contact & Required<{
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
14
|
__v: number;
|
|
15
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact
|
|
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
18
|
__v: number;
|
|
@@ -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, any> & 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IDateTimeRange } from '../../interfaces/date-time-range.interface';
|
|
3
|
+
export declare class DateTimeRange implements IDateTimeRange {
|
|
4
|
+
startsAt: Date | null | undefined;
|
|
5
|
+
endsAt: Date | null | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const DateTimeRangeSchema: import("mongoose").Schema<DateTimeRange, import("mongoose").Model<DateTimeRange, any, any, any, import("mongoose").Document<unknown, any, DateTimeRange, any> & DateTimeRange & {
|
|
8
|
+
_id: import("mongoose").Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DateTimeRange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DateTimeRange>, {}> & import("mongoose").FlatRecord<DateTimeRange> & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}>;
|
|
16
|
+
export type DateTimeRangeDocument = HydratedDocument<DateTimeRange>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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.DateTimeRangeSchema = exports.DateTimeRange = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let DateTimeRange = class DateTimeRange {
|
|
15
|
+
};
|
|
16
|
+
exports.DateTimeRange = DateTimeRange;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], DateTimeRange.prototype, "startsAt", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], DateTimeRange.prototype, "endsAt", void 0);
|
|
25
|
+
exports.DateTimeRange = DateTimeRange = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
27
|
+
], DateTimeRange);
|
|
28
|
+
exports.DateTimeRangeSchema = mongoose_1.SchemaFactory.createForClass(DateTimeRange);
|
|
29
|
+
//# sourceMappingURL=date-time-range.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-range.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/date-time-range.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAEtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;+CAAoB;AAGlC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC7C,IAAI;6CAAoB;wBALvB,aAAa;IADzB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,aAAa,CAMzB;AAEY,QAAA,mBAAmB,GAAG,wBAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -8,11 +8,11 @@ export declare class DictionaryEmbedded extends Base implements IDictionary {
|
|
|
8
8
|
metas: Map<string, string>;
|
|
9
9
|
keyword: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & Required<{
|
|
11
|
+
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded, any> & DictionaryEmbedded & Required<{
|
|
12
12
|
_id: Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
14
|
__v: number;
|
|
15
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded
|
|
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
18
|
__v: number;
|
|
@@ -8,11 +8,11 @@ export declare class GroupSession extends Identifable implements IGroupSession {
|
|
|
8
8
|
day: WeekDay;
|
|
9
9
|
time: ITime;
|
|
10
10
|
}
|
|
11
|
-
export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
|
|
11
|
+
export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession, any> & GroupSession & Required<{
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
14
|
__v: number;
|
|
15
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession
|
|
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
18
|
__v: number;
|
|
@@ -5,11 +5,11 @@ export declare class I18n implements II18n {
|
|
|
5
5
|
en: string;
|
|
6
6
|
ua: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n> & I18n & {
|
|
8
|
+
export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n, any> & I18n & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n
|
|
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
15
|
__v: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { ILocation } from '../../interfaces/location.interface';
|
|
3
|
+
import { LocationType } from '../../enums/location-type.enum';
|
|
4
|
+
import { IPhysicalAddress } from '../../interfaces/physical-address.interface';
|
|
5
|
+
import { IVirtualAddress } from '../../interfaces/virtual-address.interface';
|
|
6
|
+
export declare class Location implements ILocation {
|
|
7
|
+
type: LocationType;
|
|
8
|
+
physicalAddress: IPhysicalAddress | null | undefined;
|
|
9
|
+
virtualAddress: IVirtualAddress | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const LocationSchema: import("mongoose").Schema<Location, import("mongoose").Model<Location, any, any, any, import("mongoose").Document<unknown, any, Location, any> & Location & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Location>, {}> & import("mongoose").FlatRecord<Location> & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
} & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}>;
|
|
20
|
+
export type LocationDocument = HydratedDocument<Location>;
|
|
@@ -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.LocationSchema = exports.Location = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const location_type_enum_1 = require("../../enums/location-type.enum");
|
|
15
|
+
const physical_address_schema_1 = require("./physical-address.schema");
|
|
16
|
+
const virtual_address_schema_1 = require("./virtual-address.schema");
|
|
17
|
+
let Location = class Location {
|
|
18
|
+
};
|
|
19
|
+
exports.Location = Location;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, mongoose_1.Prop)({ type: String, enum: location_type_enum_1.LocationType, required: true, default: location_type_enum_1.LocationType.Uncategorized }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Location.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)({ type: physical_address_schema_1.PhysicalAddressSchema, required: false, default: null }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], Location.prototype, "physicalAddress", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ type: virtual_address_schema_1.VirtualAddressSchema, required: false, default: null }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], Location.prototype, "virtualAddress", void 0);
|
|
32
|
+
exports.Location = Location = __decorate([
|
|
33
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
34
|
+
], Location);
|
|
35
|
+
exports.LocationSchema = mongoose_1.SchemaFactory.createForClass(Location);
|
|
36
|
+
//# sourceMappingURL=location.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/location.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,uEAA8D;AAE9D,uEAAkE;AAElE,qEAAgE;AAGzD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CASpB,CAAA;AATY,4BAAQ;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,iCAAY,CAAC,aAAa,EAAE,CAAC;;sCAC7E;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,+CAAqB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACjB;AAGrD;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6CAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAClB;mBAR1C,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CASpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -10,11 +10,11 @@ export declare class Person implements IPerson {
|
|
|
10
10
|
gender: IDictionary;
|
|
11
11
|
residence: IResidence;
|
|
12
12
|
}
|
|
13
|
-
export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, import("mongoose").Document<unknown, any, Person> & Person & {
|
|
13
|
+
export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, import("mongoose").Document<unknown, any, Person, any> & Person & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
17
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Person
|
|
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
20
|
__v: number;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IDictionary } from '../../interfaces/dictionary.interface';
|
|
3
|
+
import { IPhysicalAddress } from '../../interfaces/physical-address.interface';
|
|
4
|
+
export declare class PhysicalAddress implements IPhysicalAddress {
|
|
5
|
+
country: IDictionary;
|
|
6
|
+
city: IDictionary;
|
|
7
|
+
address1: string;
|
|
8
|
+
address2: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PhysicalAddressSchema: import("mongoose").Schema<PhysicalAddress, import("mongoose").Model<PhysicalAddress, any, any, any, import("mongoose").Document<unknown, any, PhysicalAddress, any> & PhysicalAddress & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PhysicalAddress, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PhysicalAddress>, {}> & import("mongoose").FlatRecord<PhysicalAddress> & {
|
|
15
|
+
_id: import("mongoose").Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type PhysicalAddressDocument = HydratedDocument<PhysicalAddress>;
|
|
@@ -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.PhysicalAddressSchema = exports.PhysicalAddress = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const dictionary_embedded_schema_1 = require("./dictionary-embedded.schema");
|
|
15
|
+
let PhysicalAddress = class PhysicalAddress {
|
|
16
|
+
};
|
|
17
|
+
exports.PhysicalAddress = PhysicalAddress;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ type: dictionary_embedded_schema_1.DictionaryEmbeddedSchema, required: false, default: null }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], PhysicalAddress.prototype, "country", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: dictionary_embedded_schema_1.DictionaryEmbeddedSchema, required: false, default: null }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], PhysicalAddress.prototype, "city", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PhysicalAddress.prototype, "address1", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PhysicalAddress.prototype, "address2", void 0);
|
|
34
|
+
exports.PhysicalAddress = PhysicalAddress = __decorate([
|
|
35
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
36
|
+
], PhysicalAddress);
|
|
37
|
+
exports.PhysicalAddressSchema = mongoose_1.SchemaFactory.createForClass(PhysicalAddress);
|
|
38
|
+
//# sourceMappingURL=physical-address.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"physical-address.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/physical-address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,6EAAwE;AAIjE,IAAM,eAAe,GAArB,MAAM,eAAe;CAY3B,CAAA;AAZY,0CAAe;AAExB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,qDAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACpD;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,qDAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6CACvD;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACtC;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACtC;0BAXR,eAAe;IAD3B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,eAAe,CAY3B;AAEY,QAAA,qBAAqB,GAAG,wBAAa,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -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 | null | undefined;
|
|
8
|
+
cropArea: ICropArea | null | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture, any> & 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;;wCACzB;AAG1C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACxB;kBAR9B,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"}
|
|
@@ -8,11 +8,11 @@ export declare class Record implements IRecord {
|
|
|
8
8
|
updatedAt: Date;
|
|
9
9
|
deletedAt: Date;
|
|
10
10
|
}
|
|
11
|
-
export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record> & Record & {
|
|
11
|
+
export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record, any> & Record & {
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
} & {
|
|
14
14
|
__v: number;
|
|
15
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record
|
|
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
18
|
__v: number;
|
|
@@ -7,11 +7,11 @@ export declare class Residence implements IResidence {
|
|
|
7
7
|
address1: string;
|
|
8
8
|
address2: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, import("mongoose").Document<unknown, any, Residence> & Residence & {
|
|
10
|
+
export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, import("mongoose").Document<unknown, any, Residence, any> & Residence & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
12
|
} & {
|
|
13
13
|
__v: number;
|
|
14
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Residence
|
|
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
17
|
__v: number;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { HydratedDocument, mongo } from 'mongoose';
|
|
2
|
+
import { IFileEmbedded, IFileLog, IFileMeta, IFileRecord, IFileState, ILogInitiator, IS3, IS3File } from '../../interfaces/s3.interface';
|
|
3
|
+
import { FileLogInitType, S3FileState } from '../../enums/s3.enum';
|
|
4
|
+
export declare class S3 implements IS3 {
|
|
5
|
+
key: string;
|
|
6
|
+
bucket: string;
|
|
7
|
+
etag: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class LogInitiator implements ILogInitiator {
|
|
10
|
+
type: FileLogInitType;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class FileLog implements IFileLog {
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
value: S3FileState;
|
|
16
|
+
initiator: LogInitiator;
|
|
17
|
+
}
|
|
18
|
+
export declare class FileMeta implements IFileMeta {
|
|
19
|
+
name: string;
|
|
20
|
+
size: number;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
extension: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class FileState implements IFileState {
|
|
25
|
+
value: S3FileState;
|
|
26
|
+
log: FileLog[];
|
|
27
|
+
}
|
|
28
|
+
export declare class FileRecord implements IFileRecord {
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
updatedAt: Date;
|
|
31
|
+
}
|
|
32
|
+
export declare class S3File implements IS3File {
|
|
33
|
+
id: mongo.ObjectId;
|
|
34
|
+
fileMeta: FileMeta;
|
|
35
|
+
state: FileState;
|
|
36
|
+
s3: S3;
|
|
37
|
+
record: FileRecord;
|
|
38
|
+
owner: string;
|
|
39
|
+
}
|
|
40
|
+
export declare class FileEmbedded implements IFileEmbedded {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
size: number;
|
|
44
|
+
mimeType: string;
|
|
45
|
+
s3: S3;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
}
|
|
48
|
+
export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3, any> & S3 & {
|
|
49
|
+
_id: import("mongoose").Types.ObjectId;
|
|
50
|
+
} & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>, {}> & import("mongoose").FlatRecord<S3> & {
|
|
53
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
|
+
} & {
|
|
55
|
+
__v: number;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator, any> & LogInitiator & {
|
|
58
|
+
_id: import("mongoose").Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>, {}> & import("mongoose").FlatRecord<LogInitiator> & {
|
|
62
|
+
_id: import("mongoose").Types.ObjectId;
|
|
63
|
+
} & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog, any> & FileLog & {
|
|
67
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
|
+
} & {
|
|
69
|
+
__v: number;
|
|
70
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>, {}> & import("mongoose").FlatRecord<FileLog> & {
|
|
71
|
+
_id: import("mongoose").Types.ObjectId;
|
|
72
|
+
} & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta, any> & FileMeta & {
|
|
76
|
+
_id: import("mongoose").Types.ObjectId;
|
|
77
|
+
} & {
|
|
78
|
+
__v: number;
|
|
79
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>, {}> & import("mongoose").FlatRecord<FileMeta> & {
|
|
80
|
+
_id: import("mongoose").Types.ObjectId;
|
|
81
|
+
} & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState, any> & FileState & {
|
|
85
|
+
_id: import("mongoose").Types.ObjectId;
|
|
86
|
+
} & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>, {}> & import("mongoose").FlatRecord<FileState> & {
|
|
89
|
+
_id: import("mongoose").Types.ObjectId;
|
|
90
|
+
} & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord, any> & FileRecord & {
|
|
94
|
+
_id: import("mongoose").Types.ObjectId;
|
|
95
|
+
} & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>, {}> & import("mongoose").FlatRecord<FileRecord> & {
|
|
98
|
+
_id: import("mongoose").Types.ObjectId;
|
|
99
|
+
} & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}>;
|
|
102
|
+
export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File, any> & S3File & {
|
|
103
|
+
_id: import("mongoose").Types.ObjectId;
|
|
104
|
+
} & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>, {}> & import("mongoose").FlatRecord<S3File> & {
|
|
107
|
+
_id: import("mongoose").Types.ObjectId;
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded, any> & FileEmbedded & {
|
|
112
|
+
_id: import("mongoose").Types.ObjectId;
|
|
113
|
+
} & {
|
|
114
|
+
__v: number;
|
|
115
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>, {}> & import("mongoose").FlatRecord<FileEmbedded> & {
|
|
116
|
+
_id: import("mongoose").Types.ObjectId;
|
|
117
|
+
} & {
|
|
118
|
+
__v: number;
|
|
119
|
+
}>;
|
|
120
|
+
export type S3Document = HydratedDocument<S3>;
|
|
121
|
+
export type LogInitiatorDocument = HydratedDocument<LogInitiator>;
|
|
122
|
+
export type FileLogDocument = HydratedDocument<FileLog>;
|
|
123
|
+
export type FileMetaDocument = HydratedDocument<FileMeta>;
|
|
124
|
+
export type FileStateDocument = HydratedDocument<FileState>;
|
|
125
|
+
export type FileRecordDocument = HydratedDocument<FileRecord>;
|
|
126
|
+
export type S3FileDocument = HydratedDocument<S3File>;
|
|
127
|
+
export type FileEmbeddedDocument = HydratedDocument<FileEmbedded>;
|