dl-commons 0.0.2-testing.17 → 0.0.2-testing.19

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 CHANGED
@@ -65,4 +65,5 @@ import { Picture, PictureSchema, PictureDocument } from './models/schemas/embedd
65
65
  import { IPicture } from './models/interfaces/picture.interface';
66
66
  import { IAuthor } from './models/interfaces/author.interface';
67
67
  import { Author, AuthorDocument, AuthorSchema } from './models/schemas/embedded/author.schema';
68
- export { SessionsService, DictionariesService, SMTPService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, APP__MONGO__CS, DL_SESSIONS__MONGO__CS, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, I18nDTO, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, ICropArea, IAttachement, IPicture, IAuthor, IFileEmbedded, Identifable, IdentifableSchema, IdentifableDocument, Base, BaseSchema, BaseDocument, Record, RecordSchema, RecordDocument, I18n, I18nSchema, I18nDocument, Residence, ResidenceSchema, ResidenceDocument, Contact, ContactSchema, ContactDocument, Person, PersonSchema, PersonDocument, DictionaryEmbedded, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, SessionUser, SessionUserSchema, SessionUserDocument, Session, SessionSchema, SessionDocument, GroupSessionSchema, GroupSessionDocument, GroupSession, TeacherSchema, TeacherDocument, Teacher, StudentEmbeddedSchema, StudentEmbeddedDocument, StudentEmbedded, TimeSchema, TimeDocument, Time, S3, S3Schema, S3Document, LogInitiator, LogInitiatorSchema, LogInitiatorDocument, FileLog, FileLogSchema, FileLogDocument, FileMeta, FileMetaSchema, FileMetaDocument, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedSchema, FileEmbeddedDocument, CropArea, CropAreaSchema, CropAreaDocument, Attachement, AttachementSchema, AttachementDocument, Picture, PictureSchema, PictureDocument, Author, AuthorSchema, AuthorDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
68
+ import { CropAreaDTO } from './models/dtos/commons/crop-area.dto';
69
+ export { SessionsService, DictionariesService, SMTPService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, APP__MONGO__CS, DL_SESSIONS__MONGO__CS, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, I18nDTO, CropAreaDTO, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, ICropArea, IAttachement, IPicture, IAuthor, IFileEmbedded, Identifable, IdentifableSchema, IdentifableDocument, Base, BaseSchema, BaseDocument, Record, RecordSchema, RecordDocument, I18n, I18nSchema, I18nDocument, Residence, ResidenceSchema, ResidenceDocument, Contact, ContactSchema, ContactDocument, Person, PersonSchema, PersonDocument, DictionaryEmbedded, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, SessionUser, SessionUserSchema, SessionUserDocument, Session, SessionSchema, SessionDocument, GroupSessionSchema, GroupSessionDocument, GroupSession, TeacherSchema, TeacherDocument, Teacher, StudentEmbeddedSchema, StudentEmbeddedDocument, StudentEmbedded, TimeSchema, TimeDocument, Time, S3, S3Schema, S3Document, LogInitiator, LogInitiatorSchema, LogInitiatorDocument, FileLog, FileLogSchema, FileLogDocument, FileMeta, FileMetaSchema, FileMetaDocument, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedSchema, FileEmbeddedDocument, CropArea, CropAreaSchema, CropAreaDocument, Attachement, AttachementSchema, AttachementDocument, Picture, PictureSchema, PictureDocument, Author, AuthorSchema, AuthorDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.I18nDTO = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.DL_SESSIONS__MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AllowPermissions = exports.PermissionGuard = exports.AccessTokenGuard = exports.SortDirection = exports.RESTSort = exports.RESTResult = exports.RESTResponseBody = exports.RESTRequestBody = exports.RESTQueryParams = exports.RESTPaging = exports.RESTPage = exports.RESTError = exports.SMTPService = exports.DictionariesService = exports.SessionsService = void 0;
4
- exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachementSchema = exports.Attachement = exports.CropAreaSchema = exports.CropArea = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = exports.Session = void 0;
3
+ exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.CropAreaDTO = exports.I18nDTO = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.DL_SESSIONS__MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AllowPermissions = exports.PermissionGuard = exports.AccessTokenGuard = exports.SortDirection = exports.RESTSort = exports.RESTResult = exports.RESTResponseBody = exports.RESTRequestBody = exports.RESTQueryParams = exports.RESTPaging = exports.RESTPage = exports.RESTError = exports.SMTPService = exports.DictionariesService = exports.SessionsService = void 0;
4
+ exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachementSchema = exports.Attachement = exports.CropAreaSchema = exports.CropArea = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = exports.Session = exports.SessionUserSchema = void 0;
5
5
  const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
6
6
  Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
7
7
  const dl_commons_module_1 = require("./dl-commons.module");
@@ -136,4 +136,6 @@ Object.defineProperty(exports, "PictureSchema", { enumerable: true, get: functio
136
136
  const author_schema_1 = require("./models/schemas/embedded/author.schema");
137
137
  Object.defineProperty(exports, "Author", { enumerable: true, get: function () { return author_schema_1.Author; } });
138
138
  Object.defineProperty(exports, "AuthorSchema", { enumerable: true, get: function () { return author_schema_1.AuthorSchema; } });
139
+ const crop_area_dto_1 = require("./models/dtos/commons/crop-area.dto");
140
+ Object.defineProperty(exports, "CropAreaDTO", { enumerable: true, get: function () { return crop_area_dto_1.CropAreaDTO; } });
139
141
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,0FAA0E;AAoTtE,+FApTK,4CAA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6C;AA0JzC,mFAlLA,cAAE,OAkLA;AACF,yFAlLA,oBAAQ,OAkLA;AAGR,mGAlLA,8BAAkB,OAkLA;AADlB,6FAhLA,wBAAY,OAgLA;AAGZ,wFAlLA,mBAAO,OAkLA;AACP,8FAlLA,yBAAa,OAkLA;AAGb,+FAlLA,0BAAc,OAkLA;AADd,yFAhLA,oBAAQ,OAgLA;AAGR,0FAlLA,qBAAS,OAkLA;AACT,gGAlLA,2BAAe,OAkLA;AAEf,2FAlLA,sBAAU,OAkLA;AACV,iGAlLA,4BAAgB,OAkLA;AAEhB,uFAlLA,kBAAM,OAkLA;AACN,6FAlLA,wBAAY,OAkLA;AAEZ,6FAlLA,wBAAY,OAkLA;AACZ,mGAjLA,8BAAkB,OAiLA;AA7KtB,iFAAwG;AA+KpG,yFA/KK,2BAAQ,OA+KL;AACR,+FAhLiC,iCAAc,OAgLjC;AA/KlB,gFAAuE;AA4DnE,gGA5DK,uCAAe,OA4DL;AA1DnB,qFAAmH;AA+K/G,4FA/KK,gCAAW,OA+KL;AACX,kGAhLuC,sCAAiB,OAgLvC;AA/KrB,6EAAmG;AAiL/F,wFAjLK,wBAAO,OAiLL;AACP,8FAlLc,8BAAa,OAkLd;AA/KjB,2EAA+F;AAiL3F,uFAjLK,sBAAM,OAiLL;AACN,6FAlL6B,4BAAY,OAkL7B;AAjLhB,uEAAkE;AA2D9D,4FA3DK,2BAAW,OA2DL"}
@@ -0,0 +1,6 @@
1
+ export declare class CropAreaDTO {
2
+ x1: number;
3
+ x2: number;
4
+ y1: number;
5
+ y2: number;
6
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CropAreaDTO = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CropAreaDTO {
15
+ }
16
+ exports.CropAreaDTO = CropAreaDTO;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsInt)(),
20
+ __metadata("design:type", Number)
21
+ ], CropAreaDTO.prototype, "x1", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_validator_1.IsInt)(),
25
+ __metadata("design:type", Number)
26
+ ], CropAreaDTO.prototype, "x2", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_validator_1.IsInt)(),
30
+ __metadata("design:type", Number)
31
+ ], CropAreaDTO.prototype, "y1", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, class_validator_1.IsInt)(),
35
+ __metadata("design:type", Number)
36
+ ], CropAreaDTO.prototype, "y2", void 0);
37
+ //# sourceMappingURL=crop-area.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crop-area.dto.js","sourceRoot":"","sources":["../../../../src/models/dtos/commons/crop-area.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,MAAa,WAAW;CAgBvB;AAhBD,kCAgBC;AAbG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG;AAIX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uCACG"}
@@ -1,5 +1,7 @@
1
- import { Types } from "mongoose";
1
+ import { Types } from 'mongoose';
2
2
  export interface IAuthor {
3
3
  userId?: Types.ObjectId | string | null | undefined;
4
- fullName: string;
4
+ firstName?: string | null | undefined;
5
+ lastName?: string | null | undefined;
6
+ pid?: string | null | undefined;
5
7
  }
@@ -2,7 +2,9 @@ import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
2
2
  import { IAuthor } from '../../interfaces/author.interface';
3
3
  export declare class Author implements IAuthor {
4
4
  userId: Types.ObjectId | string | null | undefined;
5
- fullName: string;
5
+ pid: string | null | undefined;
6
+ firstName: string | null | undefined;
7
+ lastName: string | null | undefined;
6
8
  }
7
9
  export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").Document<unknown, any, Author> & Author & {
8
10
  _id: Types.ObjectId;
@@ -20,9 +20,17 @@ __decorate([
20
20
  __metadata("design:type", Object)
21
21
  ], Author.prototype, "userId", void 0);
22
22
  __decorate([
23
- (0, mongoose_2.Prop)({ type: String, required: true, default: null }),
23
+ (0, mongoose_2.Prop)({ type: String, required: false, default: null }),
24
24
  __metadata("design:type", String)
25
- ], Author.prototype, "fullName", void 0);
25
+ ], Author.prototype, "pid", void 0);
26
+ __decorate([
27
+ (0, mongoose_2.Prop)({ type: String, required: false, default: null }),
28
+ __metadata("design:type", String)
29
+ ], Author.prototype, "firstName", void 0);
30
+ __decorate([
31
+ (0, mongoose_2.Prop)({ type: String, required: false, default: null }),
32
+ __metadata("design:type", String)
33
+ ], Author.prototype, "lastName", void 0);
26
34
  exports.Author = Author = __decorate([
27
35
  (0, mongoose_2.Schema)({ _id: false })
28
36
  ], Author);
@@ -1 +1 @@
1
- {"version":3,"file":"author.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/author.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;A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,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CAYlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
@@ -4,8 +4,8 @@ import { IPicture } from '../../interfaces/picture.interface';
4
4
  import { ICropArea } from '../../interfaces/crop-area.interface';
5
5
  export declare class Picture implements IPicture {
6
6
  original: IFileEmbedded;
7
- cropped: IFileEmbedded;
8
- cropArea: ICropArea;
7
+ cropped: IFileEmbedded | null | undefined;
8
+ cropArea: ICropArea | null | undefined;
9
9
  }
10
10
  export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture> & Picture & {
11
11
  _id: import("mongoose").Types.ObjectId;
@@ -1 +1 @@
1
- {"version":3,"file":"picture.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/picture.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,2CAAiD;AAGjD,yDAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AATY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC5C;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC3C;kBARX,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,OAAO,CASnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC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