dl-commons 0.0.2-testing.31 → 0.0.2-testing.33
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 +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- 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/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/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/virtual-address.schema.js +2 -2
- package/dist/models/schemas/embedded/virtual-address.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -8
- package/src/models/enums/{attachement-type.enum.ts → attachment-type.enum.ts} +1 -1
- package/src/models/interfaces/{attachement.interface.ts → attachment.interface.ts} +3 -3
- package/src/models/schemas/embedded/{attachement.schema.ts → attachment.schema.ts} +7 -7
- package/src/models/schemas/embedded/virtual-address.schema.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -58,9 +58,9 @@ import { S3, S3Schema, S3Document, LogInitiatorDocument, LogInitiatorSchema, Log
|
|
|
58
58
|
import { IUserMeta } from './models/interfaces/user-meta.interface';
|
|
59
59
|
import { ICropArea } from './models/interfaces/crop-area.interface';
|
|
60
60
|
import { CropArea, CropAreaDocument, CropAreaSchema } from './models/schemas/embedded/crop-area.schema';
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
61
|
+
import { AttachmentType } from './models/enums/attachment-type.enum';
|
|
62
|
+
import { IAttachment } from './models/interfaces/attachment.interface';
|
|
63
|
+
import { Attachment, AttachmentDocument, AttachmentSchema } from './models/schemas/embedded/attachment.schema';
|
|
64
64
|
import { Picture, PictureSchema, PictureDocument } from './models/schemas/embedded/picture.schema';
|
|
65
65
|
import { IPicture } from './models/interfaces/picture.interface';
|
|
66
66
|
import { IAuthor } from './models/interfaces/author.interface';
|
|
@@ -83,4 +83,4 @@ import { Location, LocationDocument, LocationSchema } from './models/schemas/emb
|
|
|
83
83
|
import { ILocation } from './models/interfaces/location.interface';
|
|
84
84
|
import { IArchive } from './models/interfaces/archive.interface';
|
|
85
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,
|
|
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, AttachmentType, 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, IAttachment, 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, Attachment, AttachmentSchema, AttachmentDocument, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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.
|
|
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.AttachmentType = 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
|
+
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.AttachmentSchema = exports.Attachment = 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
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; } });
|
|
@@ -126,11 +126,11 @@ Object.defineProperty(exports, "FileEmbeddedSchema", { enumerable: true, get: fu
|
|
|
126
126
|
const crop_area_schema_1 = require("./models/schemas/embedded/crop-area.schema");
|
|
127
127
|
Object.defineProperty(exports, "CropArea", { enumerable: true, get: function () { return crop_area_schema_1.CropArea; } });
|
|
128
128
|
Object.defineProperty(exports, "CropAreaSchema", { enumerable: true, get: function () { return crop_area_schema_1.CropAreaSchema; } });
|
|
129
|
-
const
|
|
130
|
-
Object.defineProperty(exports, "
|
|
131
|
-
const
|
|
132
|
-
Object.defineProperty(exports, "
|
|
133
|
-
Object.defineProperty(exports, "
|
|
129
|
+
const attachment_type_enum_1 = require("./models/enums/attachment-type.enum");
|
|
130
|
+
Object.defineProperty(exports, "AttachmentType", { enumerable: true, get: function () { return attachment_type_enum_1.AttachmentType; } });
|
|
131
|
+
const attachment_schema_1 = require("./models/schemas/embedded/attachment.schema");
|
|
132
|
+
Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return attachment_schema_1.Attachment; } });
|
|
133
|
+
Object.defineProperty(exports, "AttachmentSchema", { enumerable: true, get: function () { return attachment_schema_1.AttachmentSchema; } });
|
|
134
134
|
const picture_schema_1 = require("./models/schemas/embedded/picture.schema");
|
|
135
135
|
Object.defineProperty(exports, "Picture", { enumerable: true, get: function () { return picture_schema_1.Picture; } });
|
|
136
136
|
Object.defineProperty(exports, "PictureSchema", { enumerable: true, get: function () { return picture_schema_1.PictureSchema; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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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AhFZ,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,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachmentType = void 0;
|
|
4
|
+
var AttachmentType;
|
|
5
|
+
(function (AttachmentType) {
|
|
6
|
+
AttachmentType["File"] = "file";
|
|
7
|
+
AttachmentType["Link"] = "link";
|
|
8
|
+
})(AttachmentType || (exports.AttachmentType = AttachmentType = {}));
|
|
9
|
+
//# sourceMappingURL=attachment-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-type.enum.js","sourceRoot":"","sources":["../../../src/models/enums/attachment-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AttachmentType } from '../enums/attachment-type.enum';
|
|
2
|
+
import { IIdentifable } from './identifable.interface';
|
|
3
|
+
import { IFileEmbedded } from './s3.interface';
|
|
4
|
+
export interface IAttachment extends IIdentifable {
|
|
5
|
+
type: AttachmentType;
|
|
6
|
+
file?: IFileEmbedded | null | undefined;
|
|
7
|
+
link?: string | null | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/attachment.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IAttachment } from '../../interfaces/attachment.interface';
|
|
3
|
+
import { Identifable } from '../identifable.schema';
|
|
4
|
+
import { AttachmentType } from '../../enums/attachment-type.enum';
|
|
5
|
+
import { IFileEmbedded } from '../../interfaces/s3.interface';
|
|
6
|
+
export declare class Attachment extends Identifable implements IAttachment {
|
|
7
|
+
type: AttachmentType;
|
|
8
|
+
file: IFileEmbedded;
|
|
9
|
+
link: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, import("mongoose").Document<unknown, any, Attachment, any> & Attachment & Required<{
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
}> & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Attachment>, {}> & import("mongoose").FlatRecord<Attachment> & Required<{
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
}> & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}>;
|
|
20
|
+
export type AttachmentDocument = HydratedDocument<Attachment>;
|
|
@@ -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.AttachmentSchema = exports.Attachment = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const identifable_schema_1 = require("../identifable.schema");
|
|
15
|
+
const attachment_type_enum_1 = require("../../enums/attachment-type.enum");
|
|
16
|
+
const s3_schema_1 = require("./s3.schema");
|
|
17
|
+
let Attachment = class Attachment extends identifable_schema_1.Identifable {
|
|
18
|
+
};
|
|
19
|
+
exports.Attachment = Attachment;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, mongoose_1.Prop)({ required: true, enum: attachment_type_enum_1.AttachmentType, type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Attachment.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: false, default: null }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], Attachment.prototype, "file", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Attachment.prototype, "link", void 0);
|
|
32
|
+
exports.Attachment = Attachment = __decorate([
|
|
33
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
34
|
+
], Attachment);
|
|
35
|
+
exports.AttachmentSchema = mongoose_1.SchemaFactory.createForClass(Attachment);
|
|
36
|
+
//# sourceMappingURL=attachment.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/attachment.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,8DAAoD;AACpD,2EAAkE;AAElE,2CAAiD;AAG1C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gCAAW;CAS1C,CAAA;AATY,gCAAU;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,qCAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACxC;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC/C;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC1C;qBARJ,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -16,11 +16,11 @@ let VirtualAddress = class VirtualAddress {
|
|
|
16
16
|
};
|
|
17
17
|
exports.VirtualAddress = VirtualAddress;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, mongoose_1.Prop)({ type: String, enum: virtual_address_type_enum_1.VirtualAddressType, required: true, default:
|
|
19
|
+
(0, mongoose_1.Prop)({ type: String, enum: virtual_address_type_enum_1.VirtualAddressType, required: true, default: virtual_address_type_enum_1.VirtualAddressType.Uncategorized }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], VirtualAddress.prototype, "type", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, mongoose_1.Prop)({ type: String, required:
|
|
23
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], VirtualAddress.prototype, "link", void 0);
|
|
26
26
|
exports.VirtualAddress = VirtualAddress = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-address.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/virtual-address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,qFAA2E;AAGpE,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8CAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"virtual-address.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/virtual-address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,qFAA2E;AAGpE,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8CAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,8CAAkB,CAAC,aAAa,EAAE,CAAC;;4CACnF;AAGzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CAC1C;yBALJ,cAAc;IAD1B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,cAAc,CAM1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
|