dl-commons 0.0.2-testing.29 → 0.0.2-testing.30
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 +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- 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/physical-address.interface.d.ts +4 -4
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/models/interfaces/archive.interface.ts +4 -0
- package/src/models/interfaces/physical-address.interface.ts +4 -4
- package/src/models/schemas/embedded/archive.schema.ts +15 -0
package/dist/index.d.ts
CHANGED
|
@@ -81,4 +81,6 @@ import { IVirtualAddress } from './models/interfaces/virtual-address.interface';
|
|
|
81
81
|
import { VirtualAddress, VirtualAddressDocument, VirtualAddressSchema } from './models/schemas/embedded/virtual-address.schema';
|
|
82
82
|
import { Location, LocationDocument, LocationSchema } from './models/schemas/embedded/location.schema';
|
|
83
83
|
import { ILocation } from './models/interfaces/location.interface';
|
|
84
|
-
|
|
84
|
+
import { IArchive } from './models/interfaces/archive.interface';
|
|
85
|
+
import { Archive, ArchiveDocument, ArchiveSchema } from './models/schemas/embedded/archive.schema';
|
|
86
|
+
export { PermissionsScannerService, SessionsService, DictionariesService, SMTPService, StorageService, IAMService, 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, UserType, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, VirtualAddressType, LocationType, I18nDTO, CropAreaDTO, IDParams, 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, IPhysicalAddress, IDateTimeRange, IVirtualAddress, ILocation, IArchive, 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, PhysicalAddress, PhysicalAddressSchema, PhysicalAddressDocument, DateTimeRange, DateTimeRangeSchema, DateTimeRangeDocument, VirtualAddress, VirtualAddressSchema, VirtualAddressDocument, Location, LocationSchema, LocationDocument, Archive, ArchiveSchema, ArchiveDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.IDParams = exports.CropAreaDTO = exports.I18nDTO = exports.LocationType = exports.VirtualAddressType = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserType = 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.IAMService = exports.StorageService = exports.SMTPService = exports.DictionariesService = exports.SessionsService = exports.PermissionsScannerService = void 0;
|
|
4
4
|
exports.LocationSchema = exports.Location = exports.VirtualAddressSchema = exports.VirtualAddress = exports.DateTimeRangeSchema = exports.DateTimeRange = exports.PhysicalAddressSchema = exports.PhysicalAddress = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachementSchema = exports.Attachement = exports.CropAreaSchema = exports.CropArea = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = exports.Session = exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = void 0;
|
|
5
|
-
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = void 0;
|
|
5
|
+
exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.ArchiveSchema = exports.Archive = void 0;
|
|
6
6
|
const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
|
|
7
7
|
Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
|
|
8
8
|
const dl_commons_module_1 = require("./dl-commons.module");
|
|
@@ -165,4 +165,7 @@ Object.defineProperty(exports, "VirtualAddressSchema", { enumerable: true, get:
|
|
|
165
165
|
const location_schema_1 = require("./models/schemas/embedded/location.schema");
|
|
166
166
|
Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return location_schema_1.Location; } });
|
|
167
167
|
Object.defineProperty(exports, "LocationSchema", { enumerable: true, get: function () { return location_schema_1.LocationSchema; } });
|
|
168
|
+
const archive_schema_1 = require("./models/schemas/embedded/archive.schema");
|
|
169
|
+
Object.defineProperty(exports, "Archive", { enumerable: true, get: function () { return archive_schema_1.Archive; } });
|
|
170
|
+
Object.defineProperty(exports, "ArchiveSchema", { enumerable: true, get: function () { return archive_schema_1.ArchiveSchema; } });
|
|
168
171
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0FAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0FAA0E;AAkWtE,+FAlWK,4CAAc,OAkWL;AAjWlB,2DAAsD;AAiXlD,gGAjXK,mCAAe,OAiXL;AAhXnB,oEAAiE;AA2V7D,iGA3VK,mCAAgB,OA2VL;AA1VpB,qEAA2E;AAqVvE,2GArVK,8CAA0B,OAqVL;AApV9B,2EAAuE;AA+UnE,qGA/UK,4CAAoB,OA+UL;AA9UxB,oEAA+D;AA0J3D,iGA1JK,qCAAgB,OA0JL;AAzJpB,gEAA8E;AA2J1E,iGA3JK,mCAAgB,OA2JL;AADhB,gGA1JuB,kCAAe,OA0JvB;AAzJnB,mEASwC;AAsJpC,0FA9JA,0BAAS,OA8JA;AACT,2FA9JA,2BAAU,OA8JA;AACV,kGA9JA,kCAAiB,OA8JA;AAGjB,0FAhKA,0BAAS,OAgKA;AACT,0FAhKA,0BAAS,OAgKA;AACT,+FAhKA,+BAAc,OAgKA;AAJd,+FA3JA,+BAAc,OA2JA;AACd,uGA3JA,uCAAsB,OA2JA;AAzJ1B,6DAAyD;AAgLrD,wFAhLK,kBAAO,OAgLL;AA/KX,kFAWmD;AAoH/C,0FA7HA,8BAAS,OA6HA;AACT,yFA7HA,6BAAQ,OA6HA;AACR,2FA7HA,+BAAU,OA6HA;AACV,gGA7HA,oCAAe,OA6HA;AACf,gGA7HA,oCAAe,OA6HA;AACf,iGA7HA,qCAAgB,OA6HA;AAChB,2FA7HA,+BAAU,OA6HA;AACV,yFA7HA,6BAAQ,OA6HA;AACR,8FA7HA,kCAAa,OA6HA;AA3HjB,wEAA+D;AAqJ3D,4FArJK,+BAAW,OAqJL;AApJf,wEAA+D;AAmJ3D,4FAnJK,+BAAW,OAmJL;AAlJf,4FAAmF;AAoJ/E,sGApJK,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f,gEAA4D;AA0BxD,+FA1BK,gCAAc,OA0BL;AAzBlB,6DAA0D;AAiFtD,yFAjFK,mBAAQ,OAiFL;AAhFZ,kEAAyD;AAkErD,yFAlEK,yBAAQ,OAkEL;AAjEZ,wDAAoD;AAwBhD,2FAxBK,wBAAU,OAwBL;AAvBd,wFAAmF;AAkB/E,0GAlBK,uDAAyB,OAkBL;AAjB7B,+FAAoI;AA0MhI,gGA1MK,yCAAe,OA0ML;AACf,sGA3M+C,+CAAqB,OA2M/C;AAzMzB,wFAA8E;AAmE1E,mGAnEK,8CAAkB,OAmEL;AAlEtB,0EAAiE;AAmE7D,6FAnEK,iCAAY,OAmEL;AAjEhB,6FAA6H;AAwMzH,8FAxMK,sCAAa,OAwML;AACb,oGAzM2C,4CAAmB,OAyM3C;AAvMvB,6FAAgI;AAyM5H,+FAzMK,uCAAc,OAyML;AACd,qGA1M6C,6CAAoB,OA0M7C;AAzMxB,+EAAuG;AA2MnG,yFA3MK,0BAAQ,OA2ML;AACR,+FA5MiC,gCAAc,OA4MjC;AAzMlB,6EAAmG;AA2M/F,wFA3MK,wBAAO,OA2ML;AACP,8FA5M+B,8BAAa,OA4M/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/archive.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDictionary } from './dictionary.interface';
|
|
2
2
|
export interface IPhysicalAddress {
|
|
3
|
-
country?: IDictionary | null
|
|
4
|
-
city?: IDictionary | null
|
|
5
|
-
address1?: string | null
|
|
6
|
-
address2?: string | null
|
|
3
|
+
country?: IDictionary | null;
|
|
4
|
+
city?: IDictionary | null;
|
|
5
|
+
address1?: string | null;
|
|
6
|
+
address2?: string | null;
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IArchive } from '../../interfaces/archive.interface';
|
|
3
|
+
export declare class Archive implements IArchive {
|
|
4
|
+
value: Boolean;
|
|
5
|
+
date: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArchiveSchema: import("mongoose").Schema<Archive, import("mongoose").Model<Archive, any, any, any, import("mongoose").Document<unknown, any, Archive, any> & Archive & {
|
|
8
|
+
_id: import("mongoose").Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Archive, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Archive>, {}> & import("mongoose").FlatRecord<Archive> & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}>;
|
|
16
|
+
export type ArchiveDocument = HydratedDocument<Archive>;
|
|
@@ -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.ArchiveSchema = exports.Archive = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let Archive = class Archive {
|
|
15
|
+
};
|
|
16
|
+
exports.Archive = Archive;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
|
|
19
|
+
__metadata("design:type", Boolean)
|
|
20
|
+
], Archive.prototype, "value", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], Archive.prototype, "date", void 0);
|
|
25
|
+
exports.Archive = Archive = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
27
|
+
], Archive);
|
|
28
|
+
exports.ArchiveSchema = mongoose_1.SchemaFactory.createForClass(Archive);
|
|
29
|
+
//# sourceMappingURL=archive.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/archive.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,OAAO,GAAb,MAAM,OAAO;CAMnB,CAAA;AANY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;8BACjD,OAAO;sCAAC;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC/C,IAAI;qCAAC;kBALF,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,OAAO,CAMnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|