eh-commons 0.0.2-testing.83 → 0.0.2-testing.84

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
@@ -24,7 +24,7 @@ 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/util/interfaces/i18n.interface';
27
+ import { II18n } from './modules/core/models/dtos/i18n.interface';
28
28
  import { AuthorDTO } from './models/dtos/author.dto';
29
29
  import { IAuthor } from './models/util/interfaces/author.interface';
30
30
  import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
@@ -1,4 +1,5 @@
1
- export declare class I18nDTO {
1
+ import { II18n } from '../../modules/core/models/dtos/i18n.interface';
2
+ export declare class I18nDTO implements II18n {
2
3
  ge: string;
3
4
  en?: string;
4
5
  ua?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.dto.js","sourceRoot":"","sources":["../../../src/models/dtos/i18n.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,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"}
1
+ {"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 '../../util/interfaces/i18n.interface';
5
+ import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
6
6
  export declare class ISessionClientData {
7
7
  clientId: string;
8
8
  type: IDictionaryEmbedded;
@@ -1,5 +1,5 @@
1
1
  import { HydratedDocument } from 'mongoose';
2
- import { II18n } from '../interfaces/i18n.interface';
2
+ import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
3
3
  export declare class I18n implements II18n {
4
4
  ge: string;
5
5
  en: string;
@@ -0,0 +1,5 @@
1
+ export interface II18n {
2
+ ge: string;
3
+ en?: string;
4
+ ua?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i18n.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/dtos/i18n.interface.ts"],"names":[],"mappings":""}
@@ -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 '../../../../models/util/interfaces/i18n.interface';
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 '../../../../models/util/interfaces/i18n.interface';
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eh-commons",
3
3
  "type": "commonjs",
4
- "version": "0.0.2-testing.83",
4
+ "version": "0.0.2-testing.84",
5
5
  "description": "eh-commons",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -24,7 +24,7 @@ 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/util/interfaces/i18n.interface';
27
+ import { II18n } from './modules/core/models/dtos/i18n.interface';
28
28
  import { AuthorDTO } from './models/dtos/author.dto';
29
29
  import { IAuthor } from './models/util/interfaces/author.interface';
30
30
  import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
@@ -1,6 +1,7 @@
1
1
  import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
2
+ import { II18n } from '../../modules/core/models/dtos/i18n.interface';
2
3
 
3
- export class I18nDTO {
4
+ export class I18nDTO implements II18n {
4
5
  @IsString()
5
6
  @IsNotEmpty()
6
7
  ge: string;
@@ -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 '../../util/interfaces/i18n.interface';
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 '../interfaces/i18n.interface';
3
+ import { II18n } from '../../../modules/core/models/dtos/i18n.interface';
4
4
 
5
5
  @Schema({ _id: false })
6
6
  export class I18n implements II18n {
@@ -0,0 +1,5 @@
1
+ export interface II18n {
2
+ ge: string;
3
+ en?: string;
4
+ ua?: string;
5
+ }
@@ -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 '../../../../models/util/interfaces/i18n.interface';
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 '../../../../models/util/interfaces/i18n.interface';
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';