eh-commons 0.0.1-testing.47 → 0.0.1-testing.48

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
@@ -34,14 +34,12 @@ import { LoggerClient } from './clients/logger.client';
34
34
  import { Env } from './models/util/enums/env.enum';
35
35
  import { ConsoleLogger } from './utils/console-logger.class';
36
36
  import { IClient } from './models/um/interfaces/client.interface';
37
- import { Client, ClientSchema, ClientDocument } from './models/um/schemas/client.schema';
38
37
  import { IGeoLocation } from './models/util/interfaces/geo-location.interface';
39
38
  import { II18n } from './models/util/interfaces/i18n.interface';
40
39
  import { IPerson } from './models/util/interfaces/person.interface';
41
40
  import { IRole } from './models/um/interfaces/role.interface';
42
41
  import { IUserClient } from './models/um/interfaces/user-client.interface';
43
42
  import { IUser } from './models/um/interfaces/user.interface';
44
- import { User, UserSchema, UserDocument } from './models/um/schemas/user.schema';
45
43
  import { AuthorDTO } from './models/dtos/author.dto';
46
44
  import { IAuthor } from './models/util/interfaces/author.interface';
47
45
  import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
@@ -67,10 +65,7 @@ import { Sort } from './models/wrappers/sort.wrapper';
67
65
  import { ClientType } from './models/um/enums/client-type.enum';
68
66
  import { ResourceType } from './models/emis/enums/resource-type.enum';
69
67
  import { ContactType } from './models/util/enums/contact-type.enum';
70
- import { UserClient, UserClientDocument, UserClientSchema } from './models/um/embedded/user-client.embedded';
71
68
  import { IPermission } from './models/um/interfaces/permission.interface';
72
- import { Permission as PermissionClass, PermissionSchema, PermissionDocument } from './models/um/schemas/permission.schema';
73
- import { Role, RoleSchema, RoleDocument } from './models/um/schemas/role.schema';
74
69
  import { Address, AddressSchema, AddressDocument } from './models/util/embedded/address.embedded';
75
70
  import { Author, AuthorSchema } from './models/util/embedded/author.embedded';
76
71
  import { Contact, ContactSchema, ContactDocument } from './models/util/embedded/contact.embedded';
@@ -81,8 +76,6 @@ import { Record, RecordSchema, RecordDocument } from './models/util/embedded/rec
81
76
  import { IAddress } from './models/util/interfaces/address.interface';
82
77
  import { IContact } from './models/util/interfaces/contact.interface';
83
78
  import { IRecord } from './models/util/interfaces/record.interface';
84
- import { Credentials, CredentialsSchema, CredentialsDocument } from './models/um/embedded/credentials.embedded';
85
- import { ProfInfo, ProfInfoSchema, ProfInfoDocument } from './models/um/embedded/prof-info.embedded';
86
79
  import { ICredentials } from './models/um/interfaces/credentials.interface';
87
80
  import { IProfInfo } from './models/um/interfaces/prof-info.interface';
88
81
  import { generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword } from './functions/session/keyword.function';
@@ -93,4 +86,4 @@ import { Base } from './models/commons/schemas/base.schema';
93
86
  import { DictionaryEmbedded, DictionaryEmbeddedDocument, DictionaryEmbeddedSchema } from './models/dictionary/embedded/dictionary.embedded';
94
87
  import { IDictionaryEmbedded } from './models/dictionary/interfaces/dictionary-embedded.interface';
95
88
  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, };
89
+ 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, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IPermission, IPerson, Person, PersonSchema, PersonDocument, IRecord, Record, RecordSchema, RecordDocument, IRole, IUserClient, IUser, 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, IProfInfo, 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
- 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.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;
3
+ exports.GeoLocation = exports.ContactSchema = exports.Contact = exports.ContactType = 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.DictionaryEmbedded = exports.DictionaryEmbeddedSchema = exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = 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.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = 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");
@@ -76,12 +76,6 @@ const env_enum_1 = require("./models/util/enums/env.enum");
76
76
  Object.defineProperty(exports, "Env", { enumerable: true, get: function () { return env_enum_1.Env; } });
77
77
  const console_logger_class_1 = require("./utils/console-logger.class");
78
78
  Object.defineProperty(exports, "ConsoleLogger", { enumerable: true, get: function () { return console_logger_class_1.ConsoleLogger; } });
79
- const client_schema_1 = require("./models/um/schemas/client.schema");
80
- Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_schema_1.Client; } });
81
- Object.defineProperty(exports, "ClientSchema", { enumerable: true, get: function () { return client_schema_1.ClientSchema; } });
82
- const user_schema_1 = require("./models/um/schemas/user.schema");
83
- Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
84
- Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
85
79
  const author_dto_1 = require("./models/dtos/author.dto");
86
80
  Object.defineProperty(exports, "AuthorDTO", { enumerable: true, get: function () { return author_dto_1.AuthorDTO; } });
87
81
  const file_log_embedded_1 = require("./models/s3/embedded/file-log.embedded");
@@ -119,15 +113,6 @@ const resource_type_enum_1 = require("./models/emis/enums/resource-type.enum");
119
113
  Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_type_enum_1.ResourceType; } });
120
114
  const contact_type_enum_1 = require("./models/util/enums/contact-type.enum");
121
115
  Object.defineProperty(exports, "ContactType", { enumerable: true, get: function () { return contact_type_enum_1.ContactType; } });
122
- const user_client_embedded_1 = require("./models/um/embedded/user-client.embedded");
123
- Object.defineProperty(exports, "UserClient", { enumerable: true, get: function () { return user_client_embedded_1.UserClient; } });
124
- Object.defineProperty(exports, "UserClientSchema", { enumerable: true, get: function () { return user_client_embedded_1.UserClientSchema; } });
125
- const permission_schema_1 = require("./models/um/schemas/permission.schema");
126
- Object.defineProperty(exports, "PermissionClass", { enumerable: true, get: function () { return permission_schema_1.Permission; } });
127
- Object.defineProperty(exports, "PermissionSchema", { enumerable: true, get: function () { return permission_schema_1.PermissionSchema; } });
128
- const role_schema_1 = require("./models/um/schemas/role.schema");
129
- Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return role_schema_1.Role; } });
130
- Object.defineProperty(exports, "RoleSchema", { enumerable: true, get: function () { return role_schema_1.RoleSchema; } });
131
116
  const address_embedded_1 = require("./models/util/embedded/address.embedded");
132
117
  Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_embedded_1.Address; } });
133
118
  Object.defineProperty(exports, "AddressSchema", { enumerable: true, get: function () { return address_embedded_1.AddressSchema; } });
@@ -149,12 +134,6 @@ Object.defineProperty(exports, "PersonSchema", { enumerable: true, get: function
149
134
  const record_embedded_1 = require("./models/util/embedded/record.embedded");
150
135
  Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return record_embedded_1.Record; } });
151
136
  Object.defineProperty(exports, "RecordSchema", { enumerable: true, get: function () { return record_embedded_1.RecordSchema; } });
152
- const credentials_embedded_1 = require("./models/um/embedded/credentials.embedded");
153
- Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_embedded_1.Credentials; } });
154
- Object.defineProperty(exports, "CredentialsSchema", { enumerable: true, get: function () { return credentials_embedded_1.CredentialsSchema; } });
155
- const prof_info_embedded_1 = require("./models/um/embedded/prof-info.embedded");
156
- Object.defineProperty(exports, "ProfInfo", { enumerable: true, get: function () { return prof_info_embedded_1.ProfInfo; } });
157
- Object.defineProperty(exports, "ProfInfoSchema", { enumerable: true, get: function () { return prof_info_embedded_1.ProfInfoSchema; } });
158
137
  const keyword_function_1 = require("./functions/session/keyword.function");
159
138
  Object.defineProperty(exports, "generateSessionKeyword", { enumerable: true, get: function () { return keyword_function_1.generateSessionKeyword; } });
160
139
  Object.defineProperty(exports, "generateUserClientKeyword", { enumerable: true, get: function () { return keyword_function_1.generateUserClientKeyword; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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;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P;AApEV,iEAAsD;AAkEpD,qFAlEO,mBAAI,OAkEP;AAjEN,yEAAgE;AAuG9D,2FAvGO,6BAAU,OAuGP;AAtGZ,+EAAsE;AAsKpE,6FAtKO,iCAAY,OAsKP;AArKd,6EAAoE;AAuGlE,4FAvGO,+BAAW,OAuGP;AArGb,8EAIiD;AA4F/C,wFA/FA,0BAAO,OA+FA;AACP,8FA/FA,gCAAa,OA+FA;AA5Ff,4EAA8E;AA2H5E,uFA3HO,wBAAM,OA2HP;AACN,6FA5He,8BAAY,OA4Hf;AA3Hd,8EAIiD;AA6F/C,wFAhGA,0BAAO,OAgGA;AACP,8FAhGA,gCAAa,OAgGA;AA7Ff,wFAIsD;AA4FpD,4FA/FA,mCAAW,OA+FA;AACX,kGA/FA,yCAAiB,OA+FA;AA5FnB,wEAI8C;AA2F5C,qFA9FA,oBAAI,OA8FA;AACJ,2FA9FA,0BAAU,OA8FA;AA3FZ,4EAIgD;AA2F9C,uFA9FA,wBAAM,OA8FA;AACN,6FA9FA,8BAAY,OA8FA;AA3Fd,4EAIgD;AA0F9C,uFA7FA,wBAAM,OA6FA;AACN,6FA7FA,8BAAY,OA6FA;AArFd,2EAI8C;AA8H5C,uGAjIA,yCAAsB,OAiIA;AACtB,0GAjIA,4CAAyB,OAiIA;AACzB,oHAjIA,sDAAmC,OAiIA;AA/HrC,2EAA8D;AAgI5D,2FAhIO,iCAAU,OAgIP;AA/HZ,qDAAiD;AAgI/C,wFAhIO,kBAAO,OAgIP;AA9HT,sEAA4D;AA+H1D,qFA/HO,kBAAI,OA+HP;AA9HN,0FAA4I;AAkI1I,mGAlIO,wCAAkB,OAkIP;AAFlB,yGAhIuD,8CAAwB,OAgIvD"}
@@ -1,5 +1,4 @@
1
- import { ObjectId } from 'mongoose';
2
- import { ClientType } from '../enums/client-type.enum';
1
+ import { ObjectId } from 'bson';
3
2
  import { II18n } from '../../util/interfaces/i18n.interface';
4
3
  import { IRecord } from '../../../models/util/interfaces/record.interface';
5
4
  import { IAddress } from '../../../models/util/interfaces/address.interface';
@@ -8,12 +7,16 @@ import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embe
8
7
  export interface IClient {
9
8
  _id: ObjectId;
10
9
  originId: ObjectId;
11
- type: ClientType;
10
+ type: IDictionaryEmbedded;
12
11
  parentId: ObjectId;
13
12
  name: II18n;
14
13
  address: IAddress;
14
+ highland: boolean;
15
+ code: string;
15
16
  contacts: IContact[];
16
17
  record: IRecord;
17
18
  region: IDictionaryEmbedded;
18
19
  district: IDictionaryEmbedded;
20
+ languageSectors: IDictionaryEmbedded[];
21
+ levels: IDictionaryEmbedded[];
19
22
  }
@@ -1,4 +1,4 @@
1
- import { ObjectId } from 'mongoose';
1
+ import { ObjectId } from 'bson';
2
2
  import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
3
3
  export interface IUserClient {
4
4
  clientId: ObjectId;
@@ -1,4 +1,4 @@
1
- import { ObjectId } from 'mongoose';
1
+ import { ObjectId } from 'bson';
2
2
  import { IPerson } from '../../util/interfaces/person.interface';
3
3
  import { IContact } from '../../util/interfaces/contact.interface';
4
4
  import { IUserClient } from './user-client.interface';