eh-commons 0.0.2-testing.83 → 0.0.2-testing.85
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 +2 -4
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/models/dtos/i18n.dto.d.ts +2 -1
- package/dist/models/dtos/i18n.dto.js.map +1 -1
- package/dist/models/session/interfaces/session-client-data.interface.d.ts +1 -1
- package/dist/models/util/embedded/i18n.embedded.d.ts +1 -1
- package/dist/modules/core/models/dtos/i18n.interface.d.ts +5 -0
- package/dist/modules/core/models/dtos/i18n.interface.js +3 -0
- package/dist/modules/core/models/dtos/i18n.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/author.interface.d.ts +6 -0
- package/dist/modules/core/models/interfaces/author.interface.js +3 -0
- package/dist/modules/core/models/interfaces/author.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/index.d.ts +1 -0
- package/dist/modules/core/models/interfaces/index.js +1 -0
- package/dist/modules/core/models/interfaces/index.js.map +1 -1
- package/dist/modules/core/models/schemas/author.embedded.d.ts +17 -0
- package/dist/modules/core/models/schemas/author.embedded.js +34 -0
- package/dist/modules/core/models/schemas/author.embedded.js.map +1 -0
- package/dist/modules/core/models/schemas/index.d.ts +1 -0
- package/dist/modules/core/models/schemas/index.js +1 -0
- package/dist/modules/core/models/schemas/index.js.map +1 -1
- package/dist/modules/dictionary/models/interfaces/index.d.ts +1 -1
- package/dist/modules/session/models/interfaces/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -6
- package/src/models/dtos/i18n.dto.ts +2 -1
- package/src/models/session/interfaces/session-client-data.interface.ts +1 -1
- package/src/models/util/embedded/i18n.embedded.ts +1 -1
- package/src/modules/core/models/dtos/i18n.interface.ts +5 -0
- package/src/{models/util → modules/core/models}/interfaces/author.interface.ts +1 -0
- package/src/modules/core/models/interfaces/index.ts +1 -0
- package/src/{models/util/embedded → modules/core/models/schemas}/author.embedded.ts +3 -0
- package/src/modules/core/models/schemas/index.ts +2 -1
- package/src/modules/dictionary/models/interfaces/index.ts +1 -1
- package/src/modules/session/models/interfaces/index.ts +1 -1
- package/tsconfig.json +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/models/util/interfaces/i18n.interface.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -24,9 +24,8 @@ import { LogService } from './modules/log/services/log.service';
|
|
|
24
24
|
import { Env } from './models/util/enums/env.enum';
|
|
25
25
|
import { ConsoleLogger } from './utils/console-logger.class';
|
|
26
26
|
import { IGeoLocation } from './models/util/interfaces/geo-location.interface';
|
|
27
|
-
import { II18n } from './models/
|
|
27
|
+
import { II18n } from './modules/core/models/dtos/i18n.interface';
|
|
28
28
|
import { AuthorDTO } from './models/dtos/author.dto';
|
|
29
|
-
import { IAuthor } from './models/util/interfaces/author.interface';
|
|
30
29
|
import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
|
|
31
30
|
import { FileMeta, FileMetaSchema, FileMetaDocument } from './models/s3/embedded/file-meta.embedded';
|
|
32
31
|
import { FileRecord, FileRecordSchema, FileRecordDocument } from './models/s3/embedded/file-record.embedded';
|
|
@@ -48,7 +47,6 @@ import { Sort } from './models/wrappers/sort.wrapper';
|
|
|
48
47
|
import { ResourceType } from './models/emis/enums/resource-type.enum';
|
|
49
48
|
import { ContactType } from './models/util/enums/contact-type.enum';
|
|
50
49
|
import { Address, AddressSchema, AddressDocument } from './models/util/embedded/address.embedded';
|
|
51
|
-
import { Author, AuthorSchema } from './models/util/embedded/author.embedded';
|
|
52
50
|
import { Contact, ContactSchema, ContactDocument } from './models/util/embedded/contact.embedded';
|
|
53
51
|
import { GeoLocation, GeoLocationSchema, GeoLocationDocument } from './models/util/embedded/geo-location.embedded';
|
|
54
52
|
import { I18n, I18nSchema, I18nDocument } from './models/util/embedded/i18n.embedded';
|
|
@@ -68,7 +66,7 @@ import { RewardType } from './models/rewards/enums/reward-type.enum';
|
|
|
68
66
|
import { RewardOrigin, RewardOriginDocument, RewardOriginSchema } from './models/rewards/embedded/origin.embedded.schema';
|
|
69
67
|
import { RewardOriginType } from './models/rewards/enums/reward-origin-type.enum';
|
|
70
68
|
import { IUserSession } from './modules/session/models/interfaces';
|
|
71
|
-
export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, Sort, Page, SortPage, ConfigUtil, ISession, RedisService, generateUUID, Permission, ClientPermissions, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IRecord, Record, RecordSchema, RecordDocument, AuthorDTO,
|
|
69
|
+
export { IsMapOfStringsConstraint, IsRouteConstraint, IsMapOfStrings, IsRoute, HandledException, validationExceptionFactory, BaseExceptionsFilter, RecordDTO, StateParamDTO, RecordState, Sort, Page, SortPage, ConfigUtil, ISession, RedisService, generateUUID, Permission, ClientPermissions, escapeRegex, translitGeorgiaToLatin, getRandomNumberFromRange, sizeOfJson, HTTPMethod, LogModule, LogService, Env, ConsoleLogger, IAddress, Address, AddressSchema, AddressDocument, ContactType, IContact, Contact, ContactSchema, ContactDocument, IGeoLocation, GeoLocation, GeoLocationSchema, GeoLocationDocument, II18n, I18n, I18nSchema, I18nDocument, IRecord, Record, RecordSchema, RecordDocument, AuthorDTO, 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, ResourceType, getSortObj, I18nDTO, Base, IBase, AccessTokenGuard, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGODB__CS, KAFKAJS_NO_PARTITIONER_WARNING, Reward, RewardSchema, RewardDocument, RewardQuality, RewardType, RewardOrigin, RewardOriginSchema, RewardOriginType, RewardOriginDocument, };
|
|
72
70
|
declare global {
|
|
73
71
|
namespace Express {
|
|
74
72
|
interface Request {
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.RewardOriginType = exports.RewardOriginSchema = exports.RewardOrigin = exports.RewardType = exports.RewardQuality = exports.RewardSchema = exports.Reward = exports.KAFKAJS_NO_PARTITIONER_WARNING = exports.MONGODB__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AccessTokenGuard = exports.Base = exports.I18nDTO = exports.getSortObj = exports.ResourceType = exports.S3FileState = exports.S3Schema = exports.S3 = exports.LogInitiatorSchema =
|
|
17
|
+
exports.LogInitiator = exports.FileStateSchema = exports.FileState = exports.FileRecordSchema = exports.FileRecord = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.S3FileSchema = exports.S3File = exports.AuthorDTO = exports.RecordSchema = exports.Record = exports.I18nSchema = exports.I18n = exports.GeoLocationSchema = exports.GeoLocation = exports.ContactSchema = exports.Contact = exports.ContactType = exports.AddressSchema = exports.Address = exports.ConsoleLogger = exports.Env = exports.LogService = exports.LogModule = exports.HTTPMethod = exports.sizeOfJson = exports.getRandomNumberFromRange = exports.translitGeorgiaToLatin = exports.escapeRegex = exports.ClientPermissions = exports.Permission = exports.generateUUID = exports.RedisService = exports.ConfigUtil = exports.SortPage = exports.Page = exports.Sort = exports.RecordState = exports.StateParamDTO = exports.RecordDTO = exports.BaseExceptionsFilter = exports.validationExceptionFactory = exports.HandledException = exports.IsRoute = exports.IsMapOfStrings = exports.IsRouteConstraint = exports.IsMapOfStringsConstraint = void 0;
|
|
18
|
+
exports.RewardOriginType = exports.RewardOriginSchema = exports.RewardOrigin = exports.RewardType = exports.RewardQuality = exports.RewardSchema = exports.Reward = exports.KAFKAJS_NO_PARTITIONER_WARNING = exports.MONGODB__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AccessTokenGuard = exports.Base = exports.I18nDTO = exports.getSortObj = exports.ResourceType = exports.S3FileState = exports.S3Schema = exports.S3 = exports.LogInitiatorSchema = void 0;
|
|
19
19
|
const is_map_of_strings_constraint_1 = require("./constraints/is-map-of-strings.constraint");
|
|
20
20
|
Object.defineProperty(exports, "IsMapOfStringsConstraint", { enumerable: true, get: function () { return is_map_of_strings_constraint_1.IsMapOfStringsConstraint; } });
|
|
21
21
|
const is_route_constraint_1 = require("./constraints/is-route.constraint");
|
|
@@ -102,9 +102,6 @@ Object.defineProperty(exports, "ContactType", { enumerable: true, get: function
|
|
|
102
102
|
const address_embedded_1 = require("./models/util/embedded/address.embedded");
|
|
103
103
|
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_embedded_1.Address; } });
|
|
104
104
|
Object.defineProperty(exports, "AddressSchema", { enumerable: true, get: function () { return address_embedded_1.AddressSchema; } });
|
|
105
|
-
const author_embedded_1 = require("./models/util/embedded/author.embedded");
|
|
106
|
-
Object.defineProperty(exports, "Author", { enumerable: true, get: function () { return author_embedded_1.Author; } });
|
|
107
|
-
Object.defineProperty(exports, "AuthorSchema", { enumerable: true, get: function () { return author_embedded_1.AuthorSchema; } });
|
|
108
105
|
const contact_embedded_1 = require("./models/util/embedded/contact.embedded");
|
|
109
106
|
Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return contact_embedded_1.Contact; } });
|
|
110
107
|
Object.defineProperty(exports, "ContactSchema", { enumerable: true, get: function () { return contact_embedded_1.ContactSchema; } });
|
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;AAsEpF,yGAtEO,uDAAwB,OAsEP;AArE1B,2EAAsE;AAsEpE,kGAtEO,uCAAiB,OAsEP;AArEnB,0FAA0E;AAsExE,+FAtEO,4CAAc,OAsEP;AArEhB,wEAA0D;AAsExD,wFAtEO,4BAAO,OAsEP;AArET,oEAAiE;AAsE/D,iGAtEO,mCAAgB,OAsEP;AArElB,qEAA2E;AAsEzE,2GAtEO,8CAA0B,OAsEP;AArE5B,2EAAuE;AAsErE,qGAtEO,4CAAoB,OAsEP;AArEtB,yDAAqD;AAsEnD,0FAtEO,sBAAS,OAsEP;AArEX,qEAA+D;AAsE7D,8FAtEO,gCAAa,OAsEP;AArEf,6EAAoE;AAsElE,4FAtEO,+BAAW,OAsEP;AArEb,iEAAuD;AAyErD,2FAzEO,8BAAU,OAyEP;AAvEZ,4EAAwE;AAyEtE,6FAzEO,4BAAY,OAyEP;AAxEd,+EAAkE;AAyEhE,6FAzEO,qCAAY,OAyEP;AAxEd,4FAA+E;AAyE7E,2FAzEO,iCAAU,OAyEP;AAxEZ,6FAAiF;AAyE/E,kGAzEO,8CAAiB,OAyEP;AAxEnB,6EAAgE;AAyE9D,4FAzEO,mCAAW,OAyEP;AAxEb,uFAAgF;AAyE9E,uGAzEO,mDAAsB,OAyEP;AAxExB,6EAA6E;AAyE3E,yGAzEO,gDAAwB,OAyEP;AAxE1B,uEAA4D;AAyE1D,2FAzEO,+BAAU,OAyEP;AAxEZ,2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
+
{"version":3,"file":"i18n.dto.js","sourceRoot":"","sources":["../../../src/models/dtos/i18n.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAGnE,MAAa,OAAO;CAYnB;AAZD,0BAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mCACF;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mCACD;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mCACD"}
|
|
@@ -2,7 +2,7 @@ import { IDictionaryEmbedded } from '../../../modules/dictionary';
|
|
|
2
2
|
import { IPermission } from '../../../modules/iam';
|
|
3
3
|
import { IAddress } from '../../util/interfaces/address.interface';
|
|
4
4
|
import { IContact } from '../../util/interfaces/contact.interface';
|
|
5
|
-
import { II18n } from '
|
|
5
|
+
import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
|
|
6
6
|
export declare class ISessionClientData {
|
|
7
7
|
clientId: string;
|
|
8
8
|
type: IDictionaryEmbedded;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/dtos/i18n.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"author.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/author.interface.ts"],"names":[],"mappings":""}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./range.interface"), exports);
|
|
|
18
18
|
__exportStar(require("./scope.interface"), exports);
|
|
19
19
|
__exportStar(require("./ref.interface"), exports);
|
|
20
20
|
__exportStar(require("./feed-thin.interface"), exports);
|
|
21
|
+
__exportStar(require("./author.interface"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC;AACtC,qDAAmC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IAuthor } from '../interfaces/author.interface';
|
|
3
|
+
export declare class Author implements IAuthor {
|
|
4
|
+
userId: mongoose.Schema.Types.ObjectId;
|
|
5
|
+
fullName: string;
|
|
6
|
+
username?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuthorSchema: mongoose.Schema<Author, mongoose.Model<Author, any, any, any, mongoose.Document<unknown, any, Author, any, {}> & Author & {
|
|
9
|
+
_id: mongoose.Types.ObjectId;
|
|
10
|
+
} & {
|
|
11
|
+
__v: number;
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Author, mongoose.Document<unknown, {}, mongoose.FlatRecord<Author>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<Author> & {
|
|
13
|
+
_id: mongoose.Types.ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}>;
|
|
17
|
+
export type AuthorDocument = HydratedDocument<Author>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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.AuthorSchema = exports.Author = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Author = class Author {
|
|
16
|
+
};
|
|
17
|
+
exports.Author = Author;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.default.Schema.Types.ObjectId, required: true }),
|
|
20
|
+
__metadata("design:type", mongoose_2.default.Schema.Types.ObjectId)
|
|
21
|
+
], Author.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Author.prototype, "fullName", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Author.prototype, "username", void 0);
|
|
30
|
+
exports.Author = Author = __decorate([
|
|
31
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
32
|
+
], Author);
|
|
33
|
+
exports.AuthorSchema = mongoose_1.SchemaFactory.createForClass(Author);
|
|
34
|
+
//# sourceMappingURL=author.embedded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"author.embedded.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/schemas/author.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,uCAAsD;AAI/C,IAAM,MAAM,GAAZ,MAAM,MAAM;CASlB,CAAA;AATY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;sCAAC;AAGvC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACtB;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCACtB;iBARP,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CASlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./range.embedded"), exports);
|
|
18
18
|
__exportStar(require("./scope.embedded"), exports);
|
|
19
|
+
__exportStar(require("./author.embedded"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBase } from '../../../../models/commons/interfaces/base.interface';
|
|
2
2
|
import { ResourceType } from '../../../../models/emis/enums/resource-type.enum';
|
|
3
|
-
import { II18n } from '
|
|
3
|
+
import { II18n } from '../../../core/models/dtos/i18n.interface';
|
|
4
4
|
import { Types } from 'mongoose';
|
|
5
5
|
export interface IDictionaryEvent {
|
|
6
6
|
event: 'create' | 'update' | 'delete';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAddress } from '../../../../models/util/interfaces/address.interface';
|
|
2
2
|
import { IContact } from '../../../../models/util/interfaces/contact.interface';
|
|
3
|
-
import { II18n } from '
|
|
3
|
+
import { II18n } from '../../../core/models/dtos/i18n.interface';
|
|
4
4
|
import { IDictionaryEmbedded } from '../../../dictionary';
|
|
5
5
|
import { IResult } from 'ua-parser-js';
|
|
6
6
|
import { IClient, IPermission } from '../../../iam';
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -24,9 +24,8 @@ import { LogService } from './modules/log/services/log.service';
|
|
|
24
24
|
import { Env } from './models/util/enums/env.enum';
|
|
25
25
|
import { ConsoleLogger } from './utils/console-logger.class';
|
|
26
26
|
import { IGeoLocation } from './models/util/interfaces/geo-location.interface';
|
|
27
|
-
import { II18n } from './models/
|
|
27
|
+
import { II18n } from './modules/core/models/dtos/i18n.interface';
|
|
28
28
|
import { AuthorDTO } from './models/dtos/author.dto';
|
|
29
|
-
import { IAuthor } from './models/util/interfaces/author.interface';
|
|
30
29
|
import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
|
|
31
30
|
import { FileMeta, FileMetaSchema, FileMetaDocument } from './models/s3/embedded/file-meta.embedded';
|
|
32
31
|
import { FileRecord, FileRecordSchema, FileRecordDocument } from './models/s3/embedded/file-record.embedded';
|
|
@@ -48,7 +47,6 @@ import { Sort } from './models/wrappers/sort.wrapper';
|
|
|
48
47
|
import { ResourceType } from './models/emis/enums/resource-type.enum';
|
|
49
48
|
import { ContactType } from './models/util/enums/contact-type.enum';
|
|
50
49
|
import { Address, AddressSchema, AddressDocument } from './models/util/embedded/address.embedded';
|
|
51
|
-
import { Author, AuthorSchema } from './models/util/embedded/author.embedded';
|
|
52
50
|
import { Contact, ContactSchema, ContactDocument } from './models/util/embedded/contact.embedded';
|
|
53
51
|
import { GeoLocation, GeoLocationSchema, GeoLocationDocument } from './models/util/embedded/geo-location.embedded';
|
|
54
52
|
import { I18n, I18nSchema, I18nDocument } from './models/util/embedded/i18n.embedded';
|
|
@@ -120,9 +118,6 @@ export {
|
|
|
120
118
|
RecordSchema,
|
|
121
119
|
RecordDocument,
|
|
122
120
|
AuthorDTO,
|
|
123
|
-
IAuthor,
|
|
124
|
-
Author,
|
|
125
|
-
AuthorSchema,
|
|
126
121
|
IS3File,
|
|
127
122
|
S3File,
|
|
128
123
|
S3FileSchema,
|
|
@@ -2,7 +2,7 @@ import { IDictionaryEmbedded } from '../../../modules/dictionary';
|
|
|
2
2
|
import { IPermission } from '../../../modules/iam';
|
|
3
3
|
import { IAddress } from '../../util/interfaces/address.interface';
|
|
4
4
|
import { IContact } from '../../util/interfaces/contact.interface';
|
|
5
|
-
import { II18n } from '
|
|
5
|
+
import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
|
|
6
6
|
|
|
7
7
|
export class ISessionClientData {
|
|
8
8
|
clientId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
2
|
import { HydratedDocument } from 'mongoose';
|
|
3
|
-
import { II18n } from '
|
|
3
|
+
import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
|
|
4
4
|
|
|
5
5
|
@Schema({ _id: false })
|
|
6
6
|
export class I18n implements II18n {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBase } from '../../../../models/commons/interfaces/base.interface';
|
|
2
2
|
import { ResourceType } from '../../../../models/emis/enums/resource-type.enum';
|
|
3
|
-
import { II18n } from '
|
|
3
|
+
import { II18n } from '../../../core/models/dtos/i18n.interface';
|
|
4
4
|
import { Types } from 'mongoose';
|
|
5
5
|
|
|
6
6
|
export interface IDictionaryEvent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAddress } from '../../../../models/util/interfaces/address.interface';
|
|
2
2
|
import { IContact } from '../../../../models/util/interfaces/contact.interface';
|
|
3
|
-
import { II18n } from '
|
|
3
|
+
import { II18n } from '../../../core/models/dtos/i18n.interface';
|
|
4
4
|
import { IDictionaryEmbedded } from '../../../dictionary';
|
|
5
5
|
import { IResult } from 'ua-parser-js';
|
|
6
6
|
import { IClient, IPermission } from '../../../iam';
|