dl-commons 0.0.2-testing.2 → 0.0.2-testing.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -2
- package/dist/index.js +43 -2
- package/dist/index.js.map +1 -1
- package/dist/models/dtos/commons/crop-area.dto.d.ts +6 -0
- package/dist/models/dtos/commons/crop-area.dto.js +37 -0
- package/dist/models/dtos/commons/crop-area.dto.js.map +1 -0
- package/dist/models/enums/attachement-type.enum.d.ts +4 -0
- package/dist/models/enums/attachement-type.enum.js +9 -0
- package/dist/models/enums/attachement-type.enum.js.map +1 -0
- package/dist/models/enums/s3.enum.d.ts +11 -0
- package/dist/models/enums/s3.enum.js +17 -0
- package/dist/models/enums/s3.enum.js.map +1 -0
- package/dist/models/interfaces/attachement.interface.d.ts +8 -0
- package/dist/models/interfaces/attachement.interface.js +3 -0
- package/dist/models/interfaces/attachement.interface.js.map +1 -0
- package/dist/models/interfaces/author.interface.d.ts +7 -0
- package/dist/models/interfaces/author.interface.js +3 -0
- package/dist/models/interfaces/author.interface.js.map +1 -0
- package/dist/models/interfaces/crop-area.interface.d.ts +6 -0
- package/dist/models/interfaces/crop-area.interface.js +3 -0
- package/dist/models/interfaces/crop-area.interface.js.map +1 -0
- package/dist/models/interfaces/dictionary.interface.d.ts +1 -1
- package/dist/models/interfaces/dl-storage.interface.d.ts +35 -0
- package/dist/models/interfaces/dl-storage.interface.js +7 -0
- package/dist/models/interfaces/dl-storage.interface.js.map +1 -0
- package/dist/models/interfaces/group-session.interface.d.ts +6 -2
- package/dist/models/interfaces/group.interface.d.ts +17 -0
- package/dist/models/interfaces/group.interface.js +3 -0
- package/dist/models/interfaces/group.interface.js.map +1 -0
- package/dist/models/interfaces/picture.interface.d.ts +7 -0
- package/dist/models/interfaces/picture.interface.js +3 -0
- package/dist/models/interfaces/picture.interface.js.map +1 -0
- package/dist/models/interfaces/s3.interface.d.ts +47 -0
- package/dist/models/interfaces/s3.interface.js +3 -0
- package/dist/models/interfaces/s3.interface.js.map +1 -0
- package/dist/models/interfaces/user-meta.interface.d.ts +4 -0
- package/dist/models/interfaces/user-meta.interface.js +3 -0
- package/dist/models/interfaces/user-meta.interface.js.map +1 -0
- package/dist/models/schemas/embedded/attachement.schema.d.ts +20 -0
- package/dist/models/schemas/embedded/attachement.schema.js +36 -0
- package/dist/models/schemas/embedded/attachement.schema.js.map +1 -0
- package/dist/models/schemas/embedded/author.schema.d.ts +18 -0
- package/dist/models/schemas/embedded/author.schema.js +38 -0
- package/dist/models/schemas/embedded/author.schema.js.map +1 -0
- package/dist/models/schemas/embedded/crop-area.schema.d.ts +18 -0
- package/dist/models/schemas/embedded/crop-area.schema.js +37 -0
- package/dist/models/schemas/embedded/crop-area.schema.js.map +1 -0
- package/dist/models/schemas/embedded/group-session.schema.d.ts +2 -3
- package/dist/models/schemas/embedded/group-session.schema.js +4 -7
- package/dist/models/schemas/embedded/group-session.schema.js.map +1 -1
- package/dist/models/schemas/embedded/picture.schema.d.ts +19 -0
- package/dist/models/schemas/embedded/picture.schema.js +35 -0
- package/dist/models/schemas/embedded/picture.schema.js.map +1 -0
- package/dist/models/schemas/embedded/s3.schema.d.ts +128 -0
- package/dist/models/schemas/embedded/s3.schema.js +188 -0
- package/dist/models/schemas/embedded/s3.schema.js.map +1 -0
- package/dist/models/schemas/embedded/time.schema.d.ts +17 -0
- package/dist/models/schemas/embedded/time.schema.js +33 -0
- package/dist/models/schemas/embedded/time.schema.js.map +1 -0
- package/dist/services/dictionaries.service.js +14 -4
- package/dist/services/dictionaries.service.js.map +1 -1
- package/dist/services/sessions.service.d.ts +2 -0
- package/dist/services/sessions.service.js +34 -0
- package/dist/services/sessions.service.js.map +1 -1
- package/dist/services/storage.service.d.ts +18 -0
- package/dist/services/storage.service.js +81 -0
- package/dist/services/storage.service.js.map +1 -0
- package/dist/transformers/common.transformer.d.ts +1 -0
- package/dist/transformers/common.transformer.js +4 -0
- package/dist/transformers/common.transformer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/helper.utils.d.ts +2 -1
- package/dist/utils/helper.utils.js +17 -1
- package/dist/utils/helper.utils.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +110 -2
- package/src/models/dtos/commons/crop-area.dto.ts +19 -0
- package/src/models/enums/attachement-type.enum.ts +4 -0
- package/src/models/enums/s3.enum.ts +12 -0
- package/src/models/interfaces/attachement.interface.ts +9 -0
- package/src/models/interfaces/author.interface.ts +8 -0
- package/src/models/interfaces/crop-area.interface.ts +6 -0
- package/src/models/interfaces/dictionary.interface.ts +1 -1
- package/src/models/interfaces/dl-storage.interface.ts +41 -0
- package/src/models/interfaces/group-session.interface.ts +7 -2
- package/src/models/interfaces/picture.interface.ts +8 -0
- package/src/models/interfaces/s3.interface.ts +55 -0
- package/src/models/interfaces/user-meta.interface.ts +4 -0
- package/src/models/schemas/embedded/attachement.schema.ts +22 -0
- package/src/models/schemas/embedded/author.schema.ts +21 -0
- package/src/models/schemas/embedded/crop-area.schema.ts +21 -0
- package/src/models/schemas/embedded/group-session.schema.ts +5 -7
- package/src/models/schemas/embedded/picture.schema.ts +22 -0
- package/src/models/schemas/embedded/s3.schema.ts +133 -0
- package/src/models/schemas/embedded/time.schema.ts +18 -0
- package/src/services/dictionaries.service.ts +19 -10
- package/src/services/sessions.service.ts +36 -0
- package/src/services/storage.service.ts +84 -0
- package/src/transformers/common.transformer.ts +6 -1
- package/src/utils/helper.utils.ts +22 -1
|
@@ -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"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HydratedDocument } from 'mongoose';
|
|
2
2
|
import { Identifable } from '../identifable.schema';
|
|
3
|
-
import { IGroupSession } from '../../interfaces/group-session.interface';
|
|
3
|
+
import { IGroupSession, ITime } from '../../interfaces/group-session.interface';
|
|
4
4
|
import { WeekDay } from '../../enums/week-day.enum';
|
|
5
5
|
import { II18n } from '../../interfaces/i18n.interface';
|
|
6
6
|
export declare class GroupSession extends Identifable implements IGroupSession {
|
|
7
7
|
description: II18n;
|
|
8
8
|
day: WeekDay;
|
|
9
|
-
time:
|
|
10
|
-
timeZone: string;
|
|
9
|
+
time: ITime;
|
|
11
10
|
}
|
|
12
11
|
export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
|
|
13
12
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const identifable_schema_1 = require("../identifable.schema");
|
|
15
15
|
const week_day_enum_1 = require("../../enums/week-day.enum");
|
|
16
16
|
const i18n_embedded_1 = require("./i18n.embedded");
|
|
17
|
+
const time_schema_1 = require("./time.schema");
|
|
17
18
|
let GroupSession = class GroupSession extends identifable_schema_1.Identifable {
|
|
18
19
|
};
|
|
19
20
|
exports.GroupSession = GroupSession;
|
|
@@ -22,17 +23,13 @@ __decorate([
|
|
|
22
23
|
__metadata("design:type", Object)
|
|
23
24
|
], GroupSession.prototype, "description", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0, mongoose_1.Prop)({ type:
|
|
26
|
+
(0, mongoose_1.Prop)({ type: Number, enum: week_day_enum_1.WeekDay, required: true }),
|
|
26
27
|
__metadata("design:type", Number)
|
|
27
28
|
], GroupSession.prototype, "day", void 0);
|
|
28
29
|
__decorate([
|
|
29
|
-
(0, mongoose_1.Prop)({ type:
|
|
30
|
-
__metadata("design:type",
|
|
30
|
+
(0, mongoose_1.Prop)({ type: time_schema_1.Time, required: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
31
32
|
], GroupSession.prototype, "time", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], GroupSession.prototype, "timeZone", void 0);
|
|
36
33
|
exports.GroupSession = GroupSession = __decorate([
|
|
37
34
|
(0, mongoose_1.Schema)()
|
|
38
35
|
], GroupSession);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-session.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/group-session.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,8DAAoD;AAEpD,6DAAoD;AACpD,mDAA6C;
|
|
1
|
+
{"version":3,"file":"group-session.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/group-session.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,8DAAoD;AAEpD,6DAAoD;AACpD,mDAA6C;AAE7C,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,gCAAW;CAS5C,CAAA;AATY,oCAAY;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACzB;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzC;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACzB;uBARH,YAAY;IADxB,IAAA,iBAAM,GAAE;GACI,YAAY,CASxB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,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> & 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"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
state: S3FileState;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
49
|
+
export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3> & S3 & {
|
|
50
|
+
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
} & {
|
|
52
|
+
__v?: number;
|
|
53
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>> & import("mongoose").FlatRecord<S3> & {
|
|
54
|
+
_id: import("mongoose").Types.ObjectId;
|
|
55
|
+
} & {
|
|
56
|
+
__v?: number;
|
|
57
|
+
}>;
|
|
58
|
+
export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator> & LogInitiator & {
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
} & {
|
|
61
|
+
__v?: number;
|
|
62
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>> & import("mongoose").FlatRecord<LogInitiator> & {
|
|
63
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
} & {
|
|
65
|
+
__v?: number;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog> & FileLog & {
|
|
68
|
+
_id: import("mongoose").Types.ObjectId;
|
|
69
|
+
} & {
|
|
70
|
+
__v?: number;
|
|
71
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>> & import("mongoose").FlatRecord<FileLog> & {
|
|
72
|
+
_id: import("mongoose").Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v?: number;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta> & FileMeta & {
|
|
77
|
+
_id: import("mongoose").Types.ObjectId;
|
|
78
|
+
} & {
|
|
79
|
+
__v?: number;
|
|
80
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>> & import("mongoose").FlatRecord<FileMeta> & {
|
|
81
|
+
_id: import("mongoose").Types.ObjectId;
|
|
82
|
+
} & {
|
|
83
|
+
__v?: number;
|
|
84
|
+
}>;
|
|
85
|
+
export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState> & FileState & {
|
|
86
|
+
_id: import("mongoose").Types.ObjectId;
|
|
87
|
+
} & {
|
|
88
|
+
__v?: number;
|
|
89
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>> & import("mongoose").FlatRecord<FileState> & {
|
|
90
|
+
_id: import("mongoose").Types.ObjectId;
|
|
91
|
+
} & {
|
|
92
|
+
__v?: number;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord> & FileRecord & {
|
|
95
|
+
_id: import("mongoose").Types.ObjectId;
|
|
96
|
+
} & {
|
|
97
|
+
__v?: number;
|
|
98
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>> & import("mongoose").FlatRecord<FileRecord> & {
|
|
99
|
+
_id: import("mongoose").Types.ObjectId;
|
|
100
|
+
} & {
|
|
101
|
+
__v?: number;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File> & S3File & {
|
|
104
|
+
_id: import("mongoose").Types.ObjectId;
|
|
105
|
+
} & {
|
|
106
|
+
__v?: number;
|
|
107
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>> & import("mongoose").FlatRecord<S3File> & {
|
|
108
|
+
_id: import("mongoose").Types.ObjectId;
|
|
109
|
+
} & {
|
|
110
|
+
__v?: number;
|
|
111
|
+
}>;
|
|
112
|
+
export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded> & FileEmbedded & {
|
|
113
|
+
_id: import("mongoose").Types.ObjectId;
|
|
114
|
+
} & {
|
|
115
|
+
__v?: number;
|
|
116
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>> & import("mongoose").FlatRecord<FileEmbedded> & {
|
|
117
|
+
_id: import("mongoose").Types.ObjectId;
|
|
118
|
+
} & {
|
|
119
|
+
__v?: number;
|
|
120
|
+
}>;
|
|
121
|
+
export type S3Document = HydratedDocument<S3>;
|
|
122
|
+
export type LogInitiatorDocument = HydratedDocument<LogInitiator>;
|
|
123
|
+
export type FileLogDocument = HydratedDocument<FileLog>;
|
|
124
|
+
export type FileMetaDocument = HydratedDocument<FileMeta>;
|
|
125
|
+
export type FileStateDocument = HydratedDocument<FileState>;
|
|
126
|
+
export type FileRecordDocument = HydratedDocument<FileRecord>;
|
|
127
|
+
export type S3FileDocument = HydratedDocument<S3File>;
|
|
128
|
+
export type FileEmbeddedDocument = HydratedDocument<FileEmbedded>;
|
|
@@ -0,0 +1,188 @@
|
|
|
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.FileEmbeddedSchema = exports.S3FileSchema = exports.FileRecordSchema = exports.FileStateSchema = exports.FileMetaSchema = exports.FileLogSchema = exports.LogInitiatorSchema = exports.S3Schema = exports.FileEmbedded = exports.S3File = exports.FileRecord = exports.FileState = exports.FileMeta = exports.FileLog = exports.LogInitiator = exports.S3 = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const s3_enum_1 = require("../../enums/s3.enum");
|
|
16
|
+
let S3 = class S3 {
|
|
17
|
+
};
|
|
18
|
+
exports.S3 = S3;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], S3.prototype, "key", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], S3.prototype, "bucket", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], S3.prototype, "etag", void 0);
|
|
31
|
+
exports.S3 = S3 = __decorate([
|
|
32
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
33
|
+
], S3);
|
|
34
|
+
let LogInitiator = class LogInitiator {
|
|
35
|
+
};
|
|
36
|
+
exports.LogInitiator = LogInitiator;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: String, enum: s3_enum_1.FileLogInitType, required: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LogInitiator.prototype, "type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LogInitiator.prototype, "name", void 0);
|
|
45
|
+
exports.LogInitiator = LogInitiator = __decorate([
|
|
46
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
47
|
+
], LogInitiator);
|
|
48
|
+
let FileLog = class FileLog {
|
|
49
|
+
};
|
|
50
|
+
exports.FileLog = FileLog;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], FileLog.prototype, "createdAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ type: String, enum: s3_enum_1.S3FileState, required: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], FileLog.prototype, "value", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, mongoose_1.Prop)({ type: LogInitiator, required: false }),
|
|
61
|
+
__metadata("design:type", LogInitiator)
|
|
62
|
+
], FileLog.prototype, "initiator", void 0);
|
|
63
|
+
exports.FileLog = FileLog = __decorate([
|
|
64
|
+
(0, mongoose_1.Schema)()
|
|
65
|
+
], FileLog);
|
|
66
|
+
let FileMeta = class FileMeta {
|
|
67
|
+
};
|
|
68
|
+
exports.FileMeta = FileMeta;
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], FileMeta.prototype, "name", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], FileMeta.prototype, "size", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], FileMeta.prototype, "mimeType", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], FileMeta.prototype, "extension", void 0);
|
|
85
|
+
exports.FileMeta = FileMeta = __decorate([
|
|
86
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
87
|
+
], FileMeta);
|
|
88
|
+
let FileState = class FileState {
|
|
89
|
+
};
|
|
90
|
+
exports.FileState = FileState;
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, mongoose_1.Prop)({ type: String, enum: s3_enum_1.S3FileState, required: true }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], FileState.prototype, "value", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, mongoose_1.Prop)({ type: [FileLog], required: true, default: [] }),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], FileState.prototype, "log", void 0);
|
|
99
|
+
exports.FileState = FileState = __decorate([
|
|
100
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
101
|
+
], FileState);
|
|
102
|
+
let FileRecord = class FileRecord {
|
|
103
|
+
};
|
|
104
|
+
exports.FileRecord = FileRecord;
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
107
|
+
__metadata("design:type", Date)
|
|
108
|
+
], FileRecord.prototype, "createdAt", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], FileRecord.prototype, "updatedAt", void 0);
|
|
113
|
+
exports.FileRecord = FileRecord = __decorate([
|
|
114
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
115
|
+
], FileRecord);
|
|
116
|
+
let S3File = class S3File {
|
|
117
|
+
};
|
|
118
|
+
exports.S3File = S3File;
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.SchemaTypes.ObjectId, required: true }),
|
|
121
|
+
__metadata("design:type", mongoose_2.mongo.ObjectId)
|
|
122
|
+
], S3File.prototype, "id", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, mongoose_1.Prop)({ type: FileMeta, required: true, default: null }),
|
|
125
|
+
__metadata("design:type", FileMeta)
|
|
126
|
+
], S3File.prototype, "fileMeta", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, mongoose_1.Prop)({ type: FileState, required: true, default: null }),
|
|
129
|
+
__metadata("design:type", FileState)
|
|
130
|
+
], S3File.prototype, "state", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, mongoose_1.Prop)({ type: S3, required: true, default: null }),
|
|
133
|
+
__metadata("design:type", S3)
|
|
134
|
+
], S3File.prototype, "s3", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, mongoose_1.Prop)({ type: FileRecord, required: true }),
|
|
137
|
+
__metadata("design:type", FileRecord)
|
|
138
|
+
], S3File.prototype, "record", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], S3File.prototype, "owner", void 0);
|
|
143
|
+
exports.S3File = S3File = __decorate([
|
|
144
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
145
|
+
], S3File);
|
|
146
|
+
let FileEmbedded = class FileEmbedded {
|
|
147
|
+
};
|
|
148
|
+
exports.FileEmbedded = FileEmbedded;
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], FileEmbedded.prototype, "id", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], FileEmbedded.prototype, "name", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
159
|
+
__metadata("design:type", Number)
|
|
160
|
+
], FileEmbedded.prototype, "size", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], FileEmbedded.prototype, "mimeType", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)({ type: S3, required: true, default: null }),
|
|
167
|
+
__metadata("design:type", S3)
|
|
168
|
+
], FileEmbedded.prototype, "s3", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, mongoose_1.Prop)({ type: String, enum: s3_enum_1.S3FileState, required: true }),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], FileEmbedded.prototype, "state", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
175
|
+
__metadata("design:type", Date)
|
|
176
|
+
], FileEmbedded.prototype, "createdAt", void 0);
|
|
177
|
+
exports.FileEmbedded = FileEmbedded = __decorate([
|
|
178
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
179
|
+
], FileEmbedded);
|
|
180
|
+
exports.S3Schema = mongoose_1.SchemaFactory.createForClass(S3);
|
|
181
|
+
exports.LogInitiatorSchema = mongoose_1.SchemaFactory.createForClass(LogInitiator);
|
|
182
|
+
exports.FileLogSchema = mongoose_1.SchemaFactory.createForClass(FileLog);
|
|
183
|
+
exports.FileMetaSchema = mongoose_1.SchemaFactory.createForClass(FileMeta);
|
|
184
|
+
exports.FileStateSchema = mongoose_1.SchemaFactory.createForClass(FileState);
|
|
185
|
+
exports.FileRecordSchema = mongoose_1.SchemaFactory.createForClass(FileRecord);
|
|
186
|
+
exports.S3FileSchema = mongoose_1.SchemaFactory.createForClass(S3File);
|
|
187
|
+
exports.FileEmbeddedSchema = mongoose_1.SchemaFactory.createForClass(FileEmbedded);
|
|
188
|
+
//# sourceMappingURL=s3.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/s3.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAgE;AAEhE,iDAAmE;AAG5D,IAAM,EAAE,GAAR,MAAM,EAAE;CASd,CAAA;AATY,gBAAE;AAEX;IADC,IAAA,eAAI,EAAC,EAAE,IAA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c,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { ITime } from '../../interfaces/group-session.interface';
|
|
3
|
+
export declare class Time implements ITime {
|
|
4
|
+
inString: string;
|
|
5
|
+
inNumber: number;
|
|
6
|
+
zone: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TimeSchema: import("mongoose").Schema<Time, import("mongoose").Model<Time, any, any, any, import("mongoose").Document<unknown, any, Time> & Time & {
|
|
9
|
+
_id: import("mongoose").Types.ObjectId;
|
|
10
|
+
} & {
|
|
11
|
+
__v?: number;
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Time, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Time>> & import("mongoose").FlatRecord<Time> & {
|
|
13
|
+
_id: import("mongoose").Types.ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
__v?: number;
|
|
16
|
+
}>;
|
|
17
|
+
export type TimeDocument = HydratedDocument<Time>;
|
|
@@ -0,0 +1,33 @@
|
|
|
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.TimeSchema = exports.Time = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Time = class Time {
|
|
15
|
+
};
|
|
16
|
+
exports.Time = Time;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Time.prototype, "inString", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Time.prototype, "inNumber", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Time.prototype, "zone", void 0);
|
|
29
|
+
exports.Time = Time = __decorate([
|
|
30
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
31
|
+
], Time);
|
|
32
|
+
exports.TimeSchema = mongoose_1.SchemaFactory.createForClass(Time);
|
|
33
|
+
//# sourceMappingURL=time.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/time.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,IAAI,GAAV,MAAM,IAAI;CAShB,CAAA;AATY,oBAAI;AAEb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtB;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtB;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCAC1B;eARJ,IAAI;IADhB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,IAAI,CAShB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -33,8 +33,13 @@ let DictionariesService = class DictionariesService {
|
|
|
33
33
|
if (!response.data || !response.data.result) {
|
|
34
34
|
throw new rest_wrapper_class_1.RESTError('dictionaries_api_error', 'empty response');
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
if (response.data.result.data) {
|
|
37
|
+
const result = Object.assign(Object.assign({}, response.data.result.data), { _id: new mongoose_1.Types.ObjectId(response.data.result.data._id) });
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
catch (e) {
|
|
40
45
|
throw rest_wrapper_class_1.RESTError.createFromCatch(e, { keyword: 'unknown', debug: e });
|
|
@@ -51,8 +56,13 @@ let DictionariesService = class DictionariesService {
|
|
|
51
56
|
if (!response.data || !response.data.result) {
|
|
52
57
|
throw new rest_wrapper_class_1.RESTError('dictionaries_api_error', 'empty response');
|
|
53
58
|
}
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
if (response.data.result.data) {
|
|
60
|
+
const result = Object.assign(Object.assign({}, response.data.result.data), { _id: new mongoose_1.Types.ObjectId(response.data.result.data._id) });
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
56
66
|
}
|
|
57
67
|
catch (e) {
|
|
58
68
|
throw rest_wrapper_class_1.RESTError.createFromCatch(e, { keyword: 'unknown', debug: e });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaries.service.js","sourceRoot":"","sources":["../../src/services/dictionaries.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAA4C;AAC5C,2CAA+C;AAC/C,mFAAyF;AACzF,+BAA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AAC;YACjG,MAAM,QAAQ,GAAG,MAAM,IAAA,qBAAc,EAAC,SAAS,CAAC,CAAC;YAEjD,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACvB,MAAM,IAAI,8BAAS,CAAC,wBAAwB,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACxE,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC1C,MAAM,IAAI,8BAAS,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;YACpE,CAAC;YAED,MAAM,MAAM,GAAkB,EAAE,CAAC;YACjC,KAAK,IAAI,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBACzC,MAAM,CAAC,IAAI,iCACJ,IAAI,KACP,GAAG,EAAE,IAAI,gBAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IACnC,CAAC;YACP,CAAC;YAED,OAAO,MAAM,CAAC;QAClB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,8BAAS,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QACzE,CAAC;IACL,CAAC;CAEJ,CAAA;AAlGY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAOkC,mBAAW,EAAmC,sBAAa;GAN7F,mBAAmB,CAkG/B"}
|
|
@@ -12,4 +12,6 @@ export declare class SessionsService {
|
|
|
12
12
|
constructor(_sessionModel: Model<SessionDocument>, _httpService: HttpService, _configService: ConfigService);
|
|
13
13
|
create(userId: string | Types.ObjectId, userAgent: string, ip: string): Promise<ISession>;
|
|
14
14
|
read(token: string): Promise<ISession>;
|
|
15
|
+
fetchAllById(id: string): Promise<ISession[]>;
|
|
16
|
+
fetchAllByUserId(id: string): Promise<ISession[]>;
|
|
15
17
|
}
|