eh-commons 0.0.1-testing.45 → 0.0.1-testing.47
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 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/models/dictionary/embedded/dictionary.embedded.d.ts +18 -0
- package/dist/models/dictionary/embedded/dictionary.embedded.js +44 -0
- package/dist/models/dictionary/embedded/dictionary.embedded.js.map +1 -0
- package/dist/models/dictionary/interfaces/dictionary-embedded.interface.d.ts +10 -0
- package/dist/models/dictionary/interfaces/dictionary-embedded.interface.js +3 -0
- package/dist/models/dictionary/interfaces/dictionary-embedded.interface.js.map +1 -0
- package/dist/models/dictionary/interfaces/dictionary-event.interface.d.ts +5 -0
- package/dist/models/dictionary/interfaces/dictionary-event.interface.js +3 -0
- package/dist/models/dictionary/interfaces/dictionary-event.interface.js.map +1 -0
- package/dist/models/um/embedded/prof-info.embedded.d.ts +2 -2
- package/dist/models/um/embedded/prof-info.embedded.js +2 -2
- package/dist/models/um/embedded/prof-info.embedded.js.map +1 -1
- package/dist/models/um/embedded/user-client.embedded.d.ts +2 -2
- package/dist/models/um/embedded/user-client.embedded.js +2 -2
- package/dist/models/um/embedded/user-client.embedded.js.map +1 -1
- package/dist/models/um/interfaces/client.interface.d.ts +3 -3
- package/dist/models/um/interfaces/prof-info.interface.d.ts +2 -2
- package/dist/models/um/interfaces/user-client.interface.d.ts +2 -2
- package/dist/models/um/schemas/client.schema.d.ts +3 -3
- package/dist/models/um/schemas/client.schema.js +5 -5
- package/dist/models/um/schemas/client.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -11
- package/src/models/dictionary/embedded/dictionary.embedded.ts +28 -0
- package/src/models/dictionary/interfaces/dictionary-embedded.interface.ts +11 -0
- package/src/models/dictionary/interfaces/dictionary-event.interface.ts +6 -0
- package/src/models/um/embedded/prof-info.embedded.ts +3 -3
- package/src/models/um/embedded/user-client.embedded.ts +3 -3
- package/src/models/um/interfaces/client.interface.ts +3 -3
- package/src/models/um/interfaces/prof-info.interface.ts +2 -2
- package/src/models/um/interfaces/user-client.interface.ts +2 -2
- package/src/models/um/schemas/client.schema.ts +5 -5
- package/src/models/um/embedded/client-dictionary.embedded.ts +0 -20
- package/src/models/um/interfaces/client.dictionary.interface.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -81,8 +81,6 @@ import { Record, RecordSchema, RecordDocument } from './models/util/embedded/rec
|
|
|
81
81
|
import { IAddress } from './models/util/interfaces/address.interface';
|
|
82
82
|
import { IContact } from './models/util/interfaces/contact.interface';
|
|
83
83
|
import { IRecord } from './models/util/interfaces/record.interface';
|
|
84
|
-
import { ClientDictionary, ClientDictionaryDocument, ClientDictionarySchema } from './models/um/embedded/client-dictionary.embedded';
|
|
85
|
-
import { IClientDictionary } from './models/um/interfaces/client.dictionary.interface';
|
|
86
84
|
import { Credentials, CredentialsSchema, CredentialsDocument } from './models/um/embedded/credentials.embedded';
|
|
87
85
|
import { ProfInfo, ProfInfoSchema, ProfInfoDocument } from './models/um/embedded/prof-info.embedded';
|
|
88
86
|
import { ICredentials } from './models/um/interfaces/credentials.interface';
|
|
@@ -92,4 +90,7 @@ import { getSortObj } from './functions/sort-object.function';
|
|
|
92
90
|
import { I18nDTO } from './models/dtos/i18n.dto';
|
|
93
91
|
import { IBase } from './models/commons/interfaces/base.interface';
|
|
94
92
|
import { Base } from './models/commons/schemas/base.schema';
|
|
95
|
-
|
|
93
|
+
import { DictionaryEmbedded, DictionaryEmbeddedDocument, DictionaryEmbeddedSchema } from './models/dictionary/embedded/dictionary.embedded';
|
|
94
|
+
import { IDictionaryEmbedded } from './models/dictionary/interfaces/dictionary-embedded.interface';
|
|
95
|
+
import { IDictionaryEvent } from './models/dictionary/interfaces/dictionary-event.interface';
|
|
96
|
+
export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, SortDirection, Sort, Page, SortPage, RESTSort, RESTPaging, RESTRequestBody, RESTPage, RESTResult, RESTError, RESTResponseBody, ConfigUtil, ISession, ISessionUserData, SessionClient, RedisService, SessionService, CacheModule, PermissionGuard, generateUUID, Permission, PermissionsIncludeStrategy, PermissionGuardConfig, ClientPermissions, ValidateMongoIdPipe, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, LoggerClient, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ClientType, IClient, Client, ClientSchema, ClientDocument, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IPermission, PermissionClass, PermissionSchema, PermissionDocument, IPerson, Person, PersonSchema, PersonDocument, IRecord, Record, RecordSchema, RecordDocument, IRole, Role, RoleSchema, RoleDocument, IUserClient, UserClient, UserClientDocument, UserClientSchema, IUser, User, UserSchema, UserDocument, AuthorDTO, IAuthor, Author, AuthorSchema, IS3File, S3File, S3FileSchema, S3FileDocument, IFileLog, FileLog, FileLogSchema, FileLogDocument, IFileMeta, FileMeta, FileMetaSchema, FileMetaDocument, IFileRecord, FileRecord, FileRecordSchema, FileRecordDocument, IFileState, FileState, FileStateSchema, FileStateDocument, ILogInitiator, LogInitiator, LogInitiatorDocument, LogInitiatorSchema, IS3, S3, S3Document, S3Schema, S3FileState, IDictionarySetting, IDictionary, RESTQueryParams, IMongoPage, ResourceType, ICredentials, Credentials, CredentialsSchema, CredentialsDocument, IProfInfo, ProfInfo, ProfInfoSchema, ProfInfoDocument, generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword, getSortObj, I18nDTO, Base, IBase, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, DictionaryEmbedded, IDictionaryEmbedded, IDictionaryEvent, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Contact = exports.ContactType = exports.ClientSchema = exports.Client = exports.ClientType = exports.AddressSchema = exports.Address = exports.ConsoleLogger = exports.Env = exports.LoggerClient = exports.LogService = exports.LogModule = exports.HTTPMethod = exports.sizeOfJson = exports.getRandomNumberFromRange = exports.translitGeorgiaToLatin = exports.escapeRegex = exports.ValidateMongoIdPipe = exports.ClientPermissions = exports.PermissionGuardConfig = exports.PermissionsIncludeStrategy = exports.Permission = exports.generateUUID = exports.PermissionGuard = exports.CacheModule = exports.SessionService = exports.RedisService = exports.SessionClient = exports.ConfigUtil = exports.RESTResponseBody = exports.RESTError = exports.RESTResult = exports.RESTPage = exports.RESTRequestBody = exports.RESTPaging = exports.RESTSort = exports.SortPage = exports.Page = exports.Sort = exports.SortDirection = exports.RecordState = exports.StateParamDTO = exports.RecordDTO = exports.BaseExceptionsFilter = exports.validationExceptionFactory = exports.HandledException = exports.IsRoute = exports.IsMapOfStrings = exports.IsRouteConstraint = exports.IsMapOfStringsConstraint = void 0;
|
|
4
|
-
exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ProfInfoSchema = exports.ProfInfo = exports.CredentialsSchema = exports.Credentials = exports.
|
|
4
|
+
exports.DictionaryEmbedded = exports.DictionaryEmbeddedSchema = exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ProfInfoSchema = exports.ProfInfo = exports.CredentialsSchema = exports.Credentials = exports.ResourceType = exports.RESTQueryParams = exports.S3FileState = exports.S3Schema = exports.S3 = exports.LogInitiatorSchema = exports.LogInitiator = exports.FileStateSchema = exports.FileState = exports.FileRecordSchema = exports.FileRecord = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.S3FileSchema = exports.S3File = exports.AuthorSchema = exports.Author = exports.AuthorDTO = exports.UserSchema = exports.User = exports.UserClientSchema = exports.UserClient = exports.RoleSchema = exports.Role = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.PermissionSchema = exports.PermissionClass = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = exports.ContactSchema = void 0;
|
|
5
5
|
const is_map_of_strings_constraint_1 = require("./constraints/is-map-of-strings.constraint");
|
|
6
6
|
Object.defineProperty(exports, "IsMapOfStringsConstraint", { enumerable: true, get: function () { return is_map_of_strings_constraint_1.IsMapOfStringsConstraint; } });
|
|
7
7
|
const is_route_constraint_1 = require("./constraints/is-route.constraint");
|
|
@@ -149,9 +149,6 @@ Object.defineProperty(exports, "PersonSchema", { enumerable: true, get: function
|
|
|
149
149
|
const record_embedded_1 = require("./models/util/embedded/record.embedded");
|
|
150
150
|
Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return record_embedded_1.Record; } });
|
|
151
151
|
Object.defineProperty(exports, "RecordSchema", { enumerable: true, get: function () { return record_embedded_1.RecordSchema; } });
|
|
152
|
-
const client_dictionary_embedded_1 = require("./models/um/embedded/client-dictionary.embedded");
|
|
153
|
-
Object.defineProperty(exports, "ClientDictionary", { enumerable: true, get: function () { return client_dictionary_embedded_1.ClientDictionary; } });
|
|
154
|
-
Object.defineProperty(exports, "ClientDictionarySchema", { enumerable: true, get: function () { return client_dictionary_embedded_1.ClientDictionarySchema; } });
|
|
155
152
|
const credentials_embedded_1 = require("./models/um/embedded/credentials.embedded");
|
|
156
153
|
Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_embedded_1.Credentials; } });
|
|
157
154
|
Object.defineProperty(exports, "CredentialsSchema", { enumerable: true, get: function () { return credentials_embedded_1.CredentialsSchema; } });
|
|
@@ -168,4 +165,7 @@ const i18n_dto_1 = require("./models/dtos/i18n.dto");
|
|
|
168
165
|
Object.defineProperty(exports, "I18nDTO", { enumerable: true, get: function () { return i18n_dto_1.I18nDTO; } });
|
|
169
166
|
const base_schema_1 = require("./models/commons/schemas/base.schema");
|
|
170
167
|
Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return base_schema_1.Base; } });
|
|
168
|
+
const dictionary_embedded_1 = require("./models/dictionary/embedded/dictionary.embedded");
|
|
169
|
+
Object.defineProperty(exports, "DictionaryEmbedded", { enumerable: true, get: function () { return dictionary_embedded_1.DictionaryEmbedded; } });
|
|
170
|
+
Object.defineProperty(exports, "DictionaryEmbeddedSchema", { enumerable: true, get: function () { return dictionary_embedded_1.DictionaryEmbeddedSchema; } });
|
|
171
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,6FAAsF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,6FAAsF;AAiMpF,yGAjMO,uDAAwB,OAiMP;AAhM1B,2EAAsE;AAiMpE,kGAjMO,uCAAiB,OAiMP;AAhMnB,0FAA0E;AAiMxE,+FAjMO,4CAAc,OAiMP;AAhMhB,wEAA0D;AAiMxD,wFAjMO,4BAAO,OAiMP;AAhMT,oEAAiE;AAiM/D,iGAjMO,mCAAgB,OAiMP;AAhMlB,qEAA2E;AAiMzE,2GAjMO,8CAA0B,OAiMP;AAhM5B,2EAAuE;AAiMrE,qGAjMO,4CAAoB,OAiMP;AAhMtB,yDAAqD;AAiMnD,0FAjMO,sBAAS,OAiMP;AAhMX,qEAA+D;AAiM7D,8FAjMO,gCAAa,OAiMP;AAhMf,6EAAoE;AAiMlE,4FAjMO,+BAAW,OAiMP;AAhMb,6EAW8C;AA+L5C,0FAxMA,8BAAS,OAwMA;AAFT,yFArMA,6BAAQ,OAqMA;AAFR,2FAlMA,+BAAU,OAkMA;AA+GV,gGAhTA,oCAAe,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FAhJA,kBAAI,OAgJA;AACJ,2FAhJA,wBAAU,OAgJA;AA7IZ,8EAIiD;AAsG/C,wFAzGA,0BAAO,OAyGA;AACP,8FAzGA,gCAAa,OAyGA;AAtGf,4EAA8E;AAoJ5E,uFApJO,wBAAM,OAoJP;AACN,6FArJe,8BAAY,OAqJf;AApJd,8EAIiD;AA0G/C,wFA7GA,0BAAO,OA6GA;AACP,8FA7GA,gCAAa,OA6GA;AA1Gf,wFAIsD;AAyGpD,4FA5GA,mCAAW,OA4GA;AACX,kGA5GA,yCAAiB,OA4GA;AAzGnB,wEAI8C;AAwG5C,qFA3GA,oBAAI,OA2GA;AACJ,2FA3GA,0BAAU,OA2GA;AAxGZ,4EAIgD;AA2G9C,uFA9GA,wBAAM,OA8GA;AACN,6FA9GA,8BAAY,OA8GA;AA3Gd,4EAIgD;AA0G9C,uFA7GA,wBAAM,OA6GA;AACN,6FA7GA,8BAAY,OA6GA;AAvGd,oFAImD;AAwJjD,4FA3JA,kCAAW,OA2JA;AACX,kGA3JA,wCAAiB,OA2JA;AAxJnB,gFAIiD;AAuJ/C,yFA1JA,6BAAQ,OA0JA;AACR,+FA1JA,mCAAc,OA0JA;AArJhB,2EAI8C;AAmJ5C,uGAtJA,yCAAsB,OAsJA;AACtB,0GAtJA,4CAAyB,OAsJA;AACzB,oHAtJA,sDAAmC,OAsJA;AApJrC,2EAA8D;AAqJ5D,2FArJO,iCAAU,OAqJP;AApJZ,qDAAiD;AAqJ/C,wFArJO,kBAAO,OAqJP;AAnJT,sEAA4D;AAoJ1D,qFApJO,kBAAI,OAoJP;AAnJN,0FAA4I;AAuJ1I,mGAvJO,wCAAkB,OAuJP;AAFlB,yGArJuD,8CAAwB,OAqJvD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { ObjectId } from 'bson';
|
|
3
|
+
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
4
|
+
import { IDictionaryEmbedded } from '../interfaces/dictionary-embedded.interface';
|
|
5
|
+
import { RecordState } from '../../util/enums/record-state.enum';
|
|
6
|
+
export declare class DictionaryEmbedded implements IDictionaryEmbedded {
|
|
7
|
+
title: I18n;
|
|
8
|
+
keyword: string;
|
|
9
|
+
record: RecordState;
|
|
10
|
+
originId: ObjectId;
|
|
11
|
+
dictionaryId: ObjectId;
|
|
12
|
+
}
|
|
13
|
+
export declare const DictionaryEmbeddedSchema: import("mongoose").Schema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & {
|
|
14
|
+
_id: import("mongoose").Types.ObjectId;
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>> & import("mongoose").FlatRecord<DictionaryEmbedded> & {
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
}>;
|
|
18
|
+
export type DictionaryEmbeddedDocument = HydratedDocument<DictionaryEmbedded>;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const bson_1 = require("bson");
|
|
15
|
+
const i18n_embedded_1 = require("../../util/embedded/i18n.embedded");
|
|
16
|
+
const record_state_enum_1 = require("../../util/enums/record-state.enum");
|
|
17
|
+
let DictionaryEmbedded = class DictionaryEmbedded {
|
|
18
|
+
};
|
|
19
|
+
exports.DictionaryEmbedded = DictionaryEmbedded;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, mongoose_1.Prop)({ type: i18n_embedded_1.I18nSchema, required: false }),
|
|
22
|
+
__metadata("design:type", i18n_embedded_1.I18n)
|
|
23
|
+
], DictionaryEmbedded.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], DictionaryEmbedded.prototype, "keyword", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ type: String, required: false, enum: record_state_enum_1.RecordState }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DictionaryEmbedded.prototype, "record", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, mongoose_1.Prop)({ type: bson_1.ObjectId, required: false }),
|
|
34
|
+
__metadata("design:type", bson_1.ObjectId)
|
|
35
|
+
], DictionaryEmbedded.prototype, "originId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, mongoose_1.Prop)({ type: bson_1.ObjectId, required: false }),
|
|
38
|
+
__metadata("design:type", bson_1.ObjectId)
|
|
39
|
+
], DictionaryEmbedded.prototype, "dictionaryId", void 0);
|
|
40
|
+
exports.DictionaryEmbedded = DictionaryEmbedded = __decorate([
|
|
41
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
42
|
+
], DictionaryEmbedded);
|
|
43
|
+
exports.DictionaryEmbeddedSchema = mongoose_1.SchemaFactory.createForClass(DictionaryEmbedded);
|
|
44
|
+
//# sourceMappingURL=dictionary.embedded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/dictionary/embedded/dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,+BAAgC;AAChC,qEAAqE;AAErE,0EAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAe9B,CAAA;AAfY,gDAAkB;AAE7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,oBAAI;iDAAC;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mDACxB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAW,EAAE,CAAC;;kDACvC;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChC,eAAQ;oDAAC;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC5B,eAAQ;wDAAC;6BAdZ,kBAAkB;IAD9B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,kBAAkB,CAe9B;AAEY,QAAA,wBAAwB,GACnC,wBAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectId } from 'bson';
|
|
2
|
+
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
3
|
+
import { RecordState } from '../../util/enums/record-state.enum';
|
|
4
|
+
export interface IDictionaryEmbedded {
|
|
5
|
+
originId: ObjectId;
|
|
6
|
+
dictionaryId: ObjectId;
|
|
7
|
+
title: II18n;
|
|
8
|
+
keyword: string;
|
|
9
|
+
record: RecordState;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary-embedded.interface.js","sourceRoot":"","sources":["../../../../src/models/dictionary/interfaces/dictionary-embedded.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary-event.interface.js","sourceRoot":"","sources":["../../../../src/models/dictionary/interfaces/dictionary-event.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IProfInfo } from '../interfaces/prof-info.interface';
|
|
2
|
-
import {
|
|
2
|
+
import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
|
|
3
3
|
import { HydratedDocument } from 'mongoose';
|
|
4
4
|
export declare class ProfInfo implements IProfInfo {
|
|
5
|
-
subjects:
|
|
5
|
+
subjects: DictionaryEmbedded[];
|
|
6
6
|
}
|
|
7
7
|
export declare const ProfInfoSchema: import("mongoose").Schema<ProfInfo, import("mongoose").Model<ProfInfo, any, any, any, import("mongoose").Document<unknown, any, ProfInfo> & ProfInfo & {
|
|
8
8
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProfInfoSchema = exports.ProfInfo = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
const
|
|
14
|
+
const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
|
|
15
15
|
let ProfInfo = class ProfInfo {
|
|
16
16
|
};
|
|
17
17
|
exports.ProfInfo = ProfInfo;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, mongoose_1.Prop)({ type: [
|
|
19
|
+
(0, mongoose_1.Prop)({ type: [dictionary_embedded_1.DictionaryEmbeddedSchema], required: false }),
|
|
20
20
|
__metadata("design:type", Array)
|
|
21
21
|
], ProfInfo.prototype, "subjects", void 0);
|
|
22
22
|
exports.ProfInfo = ProfInfo = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,uFAA6G;AAItG,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAGpB,CAAA;AAHY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,8CAAwB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CAC7B;mBAFpB,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAGpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Schema as MongooseSchema, HydratedDocument } from 'mongoose';
|
|
2
2
|
import { IUserClient } from '../interfaces/user-client.interface';
|
|
3
|
-
import {
|
|
3
|
+
import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
|
|
4
4
|
export declare class UserClient implements IUserClient {
|
|
5
5
|
clientId: MongooseSchema.Types.ObjectId;
|
|
6
6
|
roleIds: MongooseSchema.Types.ObjectId[];
|
|
7
|
-
subjects:
|
|
7
|
+
subjects: DictionaryEmbedded[];
|
|
8
8
|
}
|
|
9
9
|
export declare const UserClientSchema: MongooseSchema<UserClient, import("mongoose").Model<UserClient, any, any, any, import("mongoose").Document<unknown, any, UserClient> & UserClient & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UserClientSchema = exports.UserClient = void 0;
|
|
13
13
|
const mongoose_1 = require("mongoose");
|
|
14
14
|
const mongoose_2 = require("@nestjs/mongoose");
|
|
15
|
-
const
|
|
15
|
+
const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
|
|
16
16
|
let UserClient = class UserClient {
|
|
17
17
|
};
|
|
18
18
|
exports.UserClient = UserClient;
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__metadata("design:type", Array)
|
|
26
26
|
], UserClient.prototype, "roleIds", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, mongoose_2.Prop)({ type: [
|
|
28
|
+
(0, mongoose_2.Prop)({ type: [dictionary_embedded_1.DictionaryEmbeddedSchema], required: false }),
|
|
29
29
|
__metadata("design:type", Array)
|
|
30
30
|
], UserClient.prototype, "subjects", void 0);
|
|
31
31
|
exports.UserClient = UserClient = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,uFAA6G;AAGtG,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;4CAAC;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACxB;AAGzC;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,CAAC,8CAAwB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CAC3B;qBARpB,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"}
|
|
@@ -4,7 +4,7 @@ import { II18n } from '../../util/interfaces/i18n.interface';
|
|
|
4
4
|
import { IRecord } from '../../../models/util/interfaces/record.interface';
|
|
5
5
|
import { IAddress } from '../../../models/util/interfaces/address.interface';
|
|
6
6
|
import { IContact } from '../../../models/util/interfaces/contact.interface';
|
|
7
|
-
import {
|
|
7
|
+
import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
|
|
8
8
|
export interface IClient {
|
|
9
9
|
_id: ObjectId;
|
|
10
10
|
originId: ObjectId;
|
|
@@ -14,6 +14,6 @@ export interface IClient {
|
|
|
14
14
|
address: IAddress;
|
|
15
15
|
contacts: IContact[];
|
|
16
16
|
record: IRecord;
|
|
17
|
-
region:
|
|
18
|
-
district:
|
|
17
|
+
region: IDictionaryEmbedded;
|
|
18
|
+
district: IDictionaryEmbedded;
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObjectId } from 'mongoose';
|
|
2
|
-
import {
|
|
2
|
+
import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
|
|
3
3
|
export interface IUserClient {
|
|
4
4
|
clientId: ObjectId;
|
|
5
5
|
roleIds: ObjectId[];
|
|
6
|
-
subjects:
|
|
6
|
+
subjects: IDictionaryEmbedded[];
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ import { I18n } from '../../../models/util/embedded/i18n.embedded';
|
|
|
5
5
|
import { Contact } from '../../../models/util/embedded/contact.embedded';
|
|
6
6
|
import { Address } from '../../../models/util/embedded/address.embedded';
|
|
7
7
|
import { Record } from '../../../models/util/embedded/record.embedded';
|
|
8
|
-
import {
|
|
8
|
+
import { DictionaryEmbedded } from '../../dictionary/embedded/dictionary.embedded';
|
|
9
9
|
export declare class Client implements IClient {
|
|
10
10
|
_id: MongooseSchema.Types.ObjectId;
|
|
11
11
|
originId: ObjectId;
|
|
@@ -15,8 +15,8 @@ export declare class Client implements IClient {
|
|
|
15
15
|
address: Address;
|
|
16
16
|
contacts: Contact[];
|
|
17
17
|
record: Record;
|
|
18
|
-
region:
|
|
19
|
-
district:
|
|
18
|
+
region: DictionaryEmbedded;
|
|
19
|
+
district: DictionaryEmbedded;
|
|
20
20
|
}
|
|
21
21
|
export declare const ClientSchema: MongooseSchema<Client, import("mongoose").Model<Client, any, any, any, import("mongoose").Document<unknown, any, Client> & Client & Required<{
|
|
22
22
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -17,7 +17,7 @@ const i18n_embedded_1 = require("../../../models/util/embedded/i18n.embedded");
|
|
|
17
17
|
const contact_embedded_1 = require("../../../models/util/embedded/contact.embedded");
|
|
18
18
|
const address_embedded_1 = require("../../../models/util/embedded/address.embedded");
|
|
19
19
|
const record_embedded_1 = require("../../../models/util/embedded/record.embedded");
|
|
20
|
-
const
|
|
20
|
+
const dictionary_embedded_1 = require("../../dictionary/embedded/dictionary.embedded");
|
|
21
21
|
let Client = class Client {
|
|
22
22
|
};
|
|
23
23
|
exports.Client = Client;
|
|
@@ -63,12 +63,12 @@ __decorate([
|
|
|
63
63
|
__metadata("design:type", record_embedded_1.Record)
|
|
64
64
|
], Client.prototype, "record", void 0);
|
|
65
65
|
__decorate([
|
|
66
|
-
(0, mongoose_2.Prop)({ type:
|
|
67
|
-
__metadata("design:type",
|
|
66
|
+
(0, mongoose_2.Prop)({ type: dictionary_embedded_1.DictionaryEmbedded, required: false }),
|
|
67
|
+
__metadata("design:type", dictionary_embedded_1.DictionaryEmbedded)
|
|
68
68
|
], Client.prototype, "region", void 0);
|
|
69
69
|
__decorate([
|
|
70
|
-
(0, mongoose_2.Prop)({ type:
|
|
71
|
-
__metadata("design:type",
|
|
70
|
+
(0, mongoose_2.Prop)({ type: dictionary_embedded_1.DictionaryEmbedded, required: false }),
|
|
71
|
+
__metadata("design:type", dictionary_embedded_1.DictionaryEmbedded)
|
|
72
72
|
], Client.prototype, "district", void 0);
|
|
73
73
|
exports.Client = Client = __decorate([
|
|
74
74
|
(0, mongoose_2.Schema)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/client.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,gEAAuD;AAEvD,+CAA+D;AAC/D,+EAAmE;AACnE,qFAAyE;AACzE,qFAAyE;AACzE,mFAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"client.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/client.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,gEAAuD;AAEvD,+CAA+D;AAC/D,+EAAmE;AACnE,qFAAyE;AACzE,qFAAyE;AACzE,mFAAuE;AACvE,uFAAmF;AAG5E,IAAM,MAAM,GAAZ,MAAM,MAAM;CAuClB,CAAA;AAvCY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;mCAAC;AAGnC;IADC,IAAA,eAAI,EA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