eh-commons 0.0.1-testing.2 → 0.0.1-testing.3

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
@@ -55,4 +55,7 @@ import { UserClient, UserClientDocument, UserClientSchema } from './models/embed
55
55
  import { IUserClient } from './models/interfaces/user-client.interface';
56
56
  import { IUser } from './models/interfaces/user.interface';
57
57
  import { User, UserSchema, UserDocument } from './models/schemas/user.schema';
58
- export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, SortDirection, 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, IClient, Client, ClientSchema, ClientDocument, 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, };
58
+ import { Dictionary, DictionaryDocument, DictionarySchema } from './models/embedded/dictionary.embedded';
59
+ import { IDictionary } from './models/interfaces/dictionary.interface';
60
+ import { DictionaryDTO } from './models/dtos/dictionary.dto';
61
+ export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, SortDirection, 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, IClient, Client, ClientSchema, ClientDocument, 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, Dictionary, DictionarySchema, DictionaryDocument, IDictionary, DictionaryDTO, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = exports.ContactSchema = exports.Contact = exports.ClientSchema = exports.Client = 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.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.UserSchema = exports.User = exports.UserClientSchema = exports.UserClient = exports.RoleSchema = exports.Role = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.PermissionSchema = exports.PermissionClass = void 0;
4
+ exports.DictionaryDTO = exports.DictionarySchema = exports.Dictionary = exports.UserSchema = exports.User = exports.UserClientSchema = exports.UserClient = exports.RoleSchema = exports.Role = exports.RecordSchema = exports.Record = exports.PersonSchema = exports.Person = exports.PermissionSchema = exports.PermissionClass = 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");
@@ -108,4 +108,9 @@ Object.defineProperty(exports, "UserClientSchema", { enumerable: true, get: func
108
108
  const user_schema_1 = require("./models/schemas/user.schema");
109
109
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
110
110
  Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
111
+ const dictionary_embedded_1 = require("./models/embedded/dictionary.embedded");
112
+ Object.defineProperty(exports, "Dictionary", { enumerable: true, get: function () { return dictionary_embedded_1.Dictionary; } });
113
+ Object.defineProperty(exports, "DictionarySchema", { enumerable: true, get: function () { return dictionary_embedded_1.DictionarySchema; } });
114
+ const dictionary_dto_1 = require("./models/dtos/dictionary.dto");
115
+ Object.defineProperty(exports, "DictionaryDTO", { enumerable: true, get: function () { return dictionary_dto_1.DictionaryDTO; } });
111
116
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version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FA9FA,oBAAI,OA8FA;AACJ,2FA9FA,0BAAU,OA8FA;AAzFZ,0EAI4C;AAyF1C,iGA5FA,oCAAgB,OA4FA;AADhB,gGAzFc,8BAAe,OAyFd;AAvFjB,uEAI2C;AAuFzC,uFA1FA,wBAAM,OA0FA;AACN,6FA1FA,8BAAY,OA0FA;AArFd,8DAA8E;AA4F5E,qFA5FO,kBAAI,OA4FP;AACJ,2FA7Fa,wBAAU,OA6Fb;AA5FZ,iFAIgD;AA2F9C,2FA9FA,iCAAU,OA8FA;AAEV,iGA9FA,uCAAgB,OA8FA;AA1FlB,8DAA8E;AA4F5E,qFA5FO,kBAAI,OA4FP;AACJ,2FA7Fa,wBAAU,OA6Fb;AA5FZ,+EAI+C;AA0F7C,2FA7FA,gCAAU,OA6FA;AACV,iGA5FA,sCAAgB,OA4FA;AAzFlB,iEAA6D;AA4F3D,8FA5FO,8BAAa,OA4FP"}
@@ -0,0 +1,4 @@
1
+ export declare class DictionaryDTO {
2
+ _id: string;
3
+ metas: Map<string, string>;
4
+ }
@@ -0,0 +1,28 @@
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.DictionaryDTO = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const is_map_of_strings_decorator_1 = require("src/decorators/is-map-of-strings.decorator");
15
+ class DictionaryDTO {
16
+ }
17
+ exports.DictionaryDTO = DictionaryDTO;
18
+ __decorate([
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ (0, class_validator_1.IsMongoId)(),
21
+ __metadata("design:type", String)
22
+ ], DictionaryDTO.prototype, "_id", void 0);
23
+ __decorate([
24
+ (0, is_map_of_strings_decorator_1.IsMapOfStrings)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ __metadata("design:type", Map)
27
+ ], DictionaryDTO.prototype, "metas", void 0);
28
+ //# sourceMappingURL=dictionary.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.dto.js","sourceRoot":"","sources":["../../../src/models/dtos/dictionary.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AACpE,4FAA4E;AAE5E,MAAa,aAAa;CAQzB;AARD,sCAQC;AALQ;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0CACO;AAInB;IAFC,IAAA,4CAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACN,GAAG;4CAAiB"}
@@ -0,0 +1,39 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ /// <reference types="mongoose/types/inferrawdoctype" />
26
+ import mongoose, { HydratedDocument } from 'mongoose';
27
+ import { IDictionary } from '../interfaces/dictionary.interface';
28
+ import { I18n } from './i18n.embedded';
29
+ export declare class Dictionary implements IDictionary {
30
+ _id: mongoose.Schema.Types.ObjectId;
31
+ title: I18n;
32
+ metas: Map<string, string>;
33
+ }
34
+ export declare const DictionarySchema: mongoose.Schema<Dictionary, mongoose.Model<Dictionary, any, any, any, mongoose.Document<unknown, any, Dictionary> & Dictionary & Required<{
35
+ _id: mongoose.Schema.Types.ObjectId;
36
+ }>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Dictionary, mongoose.Document<unknown, {}, mongoose.FlatRecord<Dictionary>> & mongoose.FlatRecord<Dictionary> & Required<{
37
+ _id: mongoose.Schema.Types.ObjectId;
38
+ }>>;
39
+ export type DictionaryDocument = HydratedDocument<Dictionary>;
@@ -0,0 +1,38 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DictionarySchema = exports.Dictionary = void 0;
16
+ const mongoose_1 = require("@nestjs/mongoose");
17
+ const mongoose_2 = __importDefault(require("mongoose"));
18
+ const i18n_embedded_1 = require("./i18n.embedded");
19
+ let Dictionary = class Dictionary {
20
+ };
21
+ exports.Dictionary = Dictionary;
22
+ __decorate([
23
+ (0, mongoose_1.Prop)({ type: mongoose_2.default.Schema.Types.ObjectId, required: true }),
24
+ __metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
25
+ ], Dictionary.prototype, "_id", void 0);
26
+ __decorate([
27
+ (0, mongoose_1.Prop)({ type: i18n_embedded_1.I18nSchema, required: true }),
28
+ __metadata("design:type", i18n_embedded_1.I18n)
29
+ ], Dictionary.prototype, "title", void 0);
30
+ __decorate([
31
+ (0, mongoose_1.Prop)({ type: Map, of: String }),
32
+ __metadata("design:type", Map)
33
+ ], Dictionary.prototype, "metas", void 0);
34
+ exports.Dictionary = Dictionary = __decorate([
35
+ (0, mongoose_1.Schema)()
36
+ ], Dictionary);
37
+ exports.DictionarySchema = mongoose_1.SchemaFactory.createForClass(Dictionary);
38
+ //# sourceMappingURL=dictionary.embedded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.embedded.js","sourceRoot":"","sources":["../../../src/models/embedded/dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA+D;AAC/D,wDAAsD;AAEtD,mDAAmD;AAG5C,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC1D,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;uCAAC;AAGpC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,oBAAI;yCAAC;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;8BACzB,GAAG;yCAAiB;qBARhB,UAAU;IADtB,IAAA,iBAAM,GAAE;GACI,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ /// <reference types="mongoose/types/inferrawdoctype" />
26
+ import { ObjectId } from 'mongoose';
27
+ import { II18n } from './i18n.interface';
28
+ export interface IDictionary {
29
+ _id: ObjectId;
30
+ title: II18n;
31
+ metas: Map<string, string>;
32
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dictionary.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/dictionary.interface.ts"],"names":[],"mappings":""}