eh-commons 0.0.1-testing.43 → 0.0.1-testing.45

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.
Files changed (81) hide show
  1. package/.eslintrc.js +25 -24
  2. package/dist/decorators/is-map-of-strings.decorator.js +1 -2
  3. package/dist/decorators/is-map-of-strings.decorator.js.map +1 -1
  4. package/dist/decorators/is-route.decorator.js +1 -2
  5. package/dist/decorators/is-route.decorator.js.map +1 -1
  6. package/dist/factories/exception.factory.js +1 -2
  7. package/dist/factories/exception.factory.js.map +1 -1
  8. package/dist/functions/escape-regex.function.js +1 -2
  9. package/dist/functions/escape-regex.function.js.map +1 -1
  10. package/dist/functions/generate-uuid.function.js +1 -2
  11. package/dist/functions/generate-uuid.function.js.map +1 -1
  12. package/dist/functions/json-size.function.js +1 -2
  13. package/dist/functions/json-size.function.js.map +1 -1
  14. package/dist/functions/random-range.function.js +1 -2
  15. package/dist/functions/random-range.function.js.map +1 -1
  16. package/dist/functions/session/keyword.function.js +3 -4
  17. package/dist/functions/session/keyword.function.js.map +1 -1
  18. package/dist/functions/sort-object.function.js +1 -2
  19. package/dist/functions/sort-object.function.js.map +1 -1
  20. package/dist/functions/transliterate-geo-to-latin.js +1 -2
  21. package/dist/functions/transliterate-geo-to-latin.js.map +1 -1
  22. package/dist/index.d.ts +5 -7
  23. package/dist/index.js +6 -14
  24. package/dist/index.js.map +1 -1
  25. package/dist/models/commons/interfaces/base.interface.d.ts +6 -0
  26. package/dist/models/commons/interfaces/base.interface.js +3 -0
  27. package/dist/models/commons/interfaces/base.interface.js.map +1 -0
  28. package/dist/models/commons/schemas/base.schema.d.ts +7 -0
  29. package/dist/models/commons/schemas/base.schema.js +22 -0
  30. package/dist/models/commons/schemas/base.schema.js.map +1 -0
  31. package/dist/models/dictionary/embedded/dictionary-setting.embedded.d.ts +0 -25
  32. package/dist/models/dictionary/embedded/origin.embedded.d.ts +0 -25
  33. package/dist/models/dictionary/interfaces/dictionary-setting.interface.d.ts +1 -1
  34. package/dist/models/dictionary/interfaces/dictionary.interface.d.ts +6 -33
  35. package/dist/models/dictionary/interfaces/origin.interface.d.ts +0 -25
  36. package/dist/models/dictionary/schemas/dictionary.schema.d.ts +0 -25
  37. package/dist/models/emis/enums/resource-type.enum.d.ts +11 -0
  38. package/dist/models/emis/enums/resource-type.enum.js +16 -0
  39. package/dist/models/emis/enums/resource-type.enum.js.map +1 -0
  40. package/dist/models/s3/embedded/file-log.embedded.d.ts +0 -25
  41. package/dist/models/s3/embedded/file-meta.embedded.d.ts +0 -25
  42. package/dist/models/s3/embedded/file-record.embedded.d.ts +0 -25
  43. package/dist/models/s3/embedded/file-state.embedded.d.ts +0 -25
  44. package/dist/models/s3/embedded/file.embedded.d.ts +0 -25
  45. package/dist/models/s3/embedded/initiator.embedded.d.ts +0 -25
  46. package/dist/models/s3/embedded/s3.embedded.d.ts +0 -25
  47. package/dist/models/um/embedded/client-dictionary.embedded.d.ts +0 -25
  48. package/dist/models/um/embedded/credentials.embedded.d.ts +0 -25
  49. package/dist/models/um/embedded/prof-info.embedded.d.ts +0 -25
  50. package/dist/models/um/embedded/user-client.embedded.d.ts +0 -25
  51. package/dist/models/um/interfaces/client.dictionary.interface.d.ts +0 -25
  52. package/dist/models/um/interfaces/client.interface.d.ts +0 -25
  53. package/dist/models/um/interfaces/permission.interface.d.ts +0 -25
  54. package/dist/models/um/interfaces/role.interface.d.ts +0 -25
  55. package/dist/models/um/interfaces/user-client.interface.d.ts +0 -25
  56. package/dist/models/um/interfaces/user.interface.d.ts +0 -25
  57. package/dist/models/um/schemas/client.schema.d.ts +0 -25
  58. package/dist/models/um/schemas/permission.schema.d.ts +0 -25
  59. package/dist/models/um/schemas/role.schema.d.ts +0 -25
  60. package/dist/models/um/schemas/user.schema.d.ts +0 -25
  61. package/dist/models/util/embedded/address.embedded.d.ts +0 -25
  62. package/dist/models/util/embedded/author.embedded.d.ts +0 -25
  63. package/dist/models/util/embedded/contact.embedded.d.ts +0 -25
  64. package/dist/models/util/embedded/geo-location.embedded.d.ts +0 -25
  65. package/dist/models/util/embedded/i18n.embedded.d.ts +0 -25
  66. package/dist/models/util/embedded/person.embedded.d.ts +0 -25
  67. package/dist/models/util/embedded/record.embedded.d.ts +0 -25
  68. package/dist/models/util/interfaces/author.interface.d.ts +0 -25
  69. package/dist/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +1 -1
  71. package/src/index.ts +7 -29
  72. package/src/models/commons/interfaces/base.interface.ts +7 -0
  73. package/src/models/commons/schemas/base.schema.ts +11 -0
  74. package/src/models/dictionary/interfaces/dictionary-setting.interface.ts +1 -1
  75. package/src/models/dictionary/interfaces/dictionary.interface.ts +6 -9
  76. package/src/models/{dictionary → emis}/enums/resource-type.enum.ts +0 -2
  77. package/src/models/dictionary/embedded/dictionary-setting.embedded.ts +0 -18
  78. package/src/models/dictionary/embedded/origin.embedded.ts +0 -24
  79. package/src/models/dictionary/interfaces/origin.interface.ts +0 -7
  80. package/src/models/dictionary/schemas/dictionary.schema.ts +0 -42
  81. package/src/models/dtos/dictionary.dto.ts +0 -12
package/.eslintrc.js CHANGED
@@ -1,25 +1,26 @@
1
1
  module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: 'tsconfig.json',
5
- tsconfigRootDir: __dirname,
6
- sourceType: 'module',
7
- },
8
- plugins: ['@typescript-eslint/eslint-plugin'],
9
- extends: [
10
- 'plugin:@typescript-eslint/recommended',
11
- 'plugin:prettier/recommended',
12
- ],
13
- root: true,
14
- env: {
15
- node: true,
16
- jest: true,
17
- },
18
- ignorePatterns: ['.eslintrc.js'],
19
- rules: {
20
- '@typescript-eslint/interface-name-prefix': 'off',
21
- '@typescript-eslint/explicit-function-return-type': 'off',
22
- '@typescript-eslint/explicit-module-boundary-types': 'off',
23
- '@typescript-eslint/no-explicit-any': 'off',
24
- },
25
- };
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: 'tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin'],
9
+ extends: [
10
+ 'plugin:@typescript-eslint/recommended',
11
+ 'plugin:prettier/recommended',
12
+ ],
13
+ root: true,
14
+ env: {
15
+ node: true,
16
+ jest: true,
17
+ },
18
+ ignorePatterns: ['.eslintrc.js'],
19
+ rules: {
20
+ '@typescript-eslint/interface-name-prefix': 'off',
21
+ '@typescript-eslint/explicit-function-return-type': 'off',
22
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
23
+ '@typescript-eslint/no-explicit-any': 'off',
24
+ 'max-len': ['error', { code: 140 }]
25
+ },
26
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsMapOfStrings = void 0;
3
+ exports.IsMapOfStrings = IsMapOfStrings;
4
4
  const class_validator_1 = require("class-validator");
5
5
  const is_map_of_strings_constraint_1 = require("../constraints/is-map-of-strings.constraint");
6
6
  function IsMapOfStrings() {
@@ -10,5 +10,4 @@ function IsMapOfStrings() {
10
10
  })(object, propertyName);
11
11
  };
12
12
  }
13
- exports.IsMapOfStrings = IsMapOfStrings;
14
13
  //# sourceMappingURL=is-map-of-strings.decorator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-map-of-strings.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-map-of-strings.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAA2C;AAC3C,8FAAuF;AAEvF,SAAgB,cAAc;IAC5B,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uDAAwB,EAAE;YACjC,OAAO,EAAE,GAAG,YAAY,2CAA2C;SACpE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC;AAND,wCAMC"}
1
+ {"version":3,"file":"is-map-of-strings.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-map-of-strings.decorator.ts"],"names":[],"mappings":";;AAGA,wCAMC;AATD,qDAA2C;AAC3C,8FAAuF;AAEvF,SAAgB,cAAc;IAC5B,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uDAAwB,EAAE;YACjC,OAAO,EAAE,GAAG,YAAY,2CAA2C;SACpE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsRoute = void 0;
3
+ exports.IsRoute = IsRoute;
4
4
  const class_validator_1 = require("class-validator");
5
5
  const is_route_constraint_1 = require("../constraints/is-route.constraint");
6
6
  function IsRoute() {
@@ -8,5 +8,4 @@ function IsRoute() {
8
8
  (0, class_validator_1.Validate)(is_route_constraint_1.IsRouteConstraint, { message: `${propertyName} must be a valid route string.` })(object, propertyName);
9
9
  };
10
10
  }
11
- exports.IsRoute = IsRoute;
12
11
  //# sourceMappingURL=is-route.decorator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-route.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-route.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAA2C;AAC3C,4EAAuE;AAEvE,SAAgB,OAAO;IACrB,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uCAAiB,EAAE,EAAE,OAAO,EAAE,GAAG,YAAY,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClH,CAAC,CAAC;AACJ,CAAC;AAJD,0BAIC"}
1
+ {"version":3,"file":"is-route.decorator.js","sourceRoot":"","sources":["../../src/decorators/is-route.decorator.ts"],"names":[],"mappings":";;AAGA,0BAIC;AAPD,qDAA2C;AAC3C,4EAAuE;AAEvE,SAAgB,OAAO;IACrB,OAAO,UAAU,MAA2B,EAAE,YAAoB;QAChE,IAAA,0BAAQ,EAAC,uCAAiB,EAAE,EAAE,OAAO,EAAE,GAAG,YAAY,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClH,CAAC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validationExceptionFactory = void 0;
3
+ exports.validationExceptionFactory = validationExceptionFactory;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const custom_exception_1 = require("../exceptions/custom.exception");
6
6
  const rest_wrapper_class_1 = require("../models/wrappers/rest-wrapper.class");
@@ -11,5 +11,4 @@ function validationExceptionFactory(_errors) {
11
11
  });
12
12
  return new custom_exception_1.HandledException([error], common_1.HttpStatus.UNPROCESSABLE_ENTITY);
13
13
  }
14
- exports.validationExceptionFactory = validationExceptionFactory;
15
14
  //# sourceMappingURL=exception.factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exception.factory.js","sourceRoot":"","sources":["../../src/factories/exception.factory.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAE5C,qEAAkE;AAClE,8EAAkE;AAElE,SAAS,0BAA0B,CAAC,OAA0B;IAC5D,MAAM,KAAK,GAAG,IAAI,8BAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAM,EAAE,EAAE;QACzB,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,mCAAgB,CAAC,CAAC,KAAK,CAAC,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;AACxE,CAAC;AAEQ,gEAA0B"}
1
+ {"version":3,"file":"exception.factory.js","sourceRoot":"","sources":["../../src/factories/exception.factory.ts"],"names":[],"mappings":";;AAaS,gEAA0B;AAbnC,2CAA4C;AAE5C,qEAAkE;AAClE,8EAAkE;AAElE,SAAS,0BAA0B,CAAC,OAA0B;IAC5D,MAAM,KAAK,GAAG,IAAI,8BAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAM,EAAE,EAAE;QACzB,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,mCAAgB,CAAC,CAAC,KAAK,CAAC,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;AACxE,CAAC"}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.escapeRegex = void 0;
3
+ exports.escapeRegex = escapeRegex;
4
4
  function escapeRegex(text) {
5
5
  return text.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
6
6
  }
7
- exports.escapeRegex = escapeRegex;
8
7
  //# sourceMappingURL=escape-regex.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"escape-regex.function.js","sourceRoot":"","sources":["../../src/functions/escape-regex.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,IAAY;IAGtC,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC;AAJD,kCAIC"}
1
+ {"version":3,"file":"escape-regex.function.js","sourceRoot":"","sources":["../../src/functions/escape-regex.function.ts"],"names":[],"mappings":";;AAAA,kCAIC;AAJD,SAAgB,WAAW,CAAC,IAAY;IAGtC,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateUUID = void 0;
3
+ exports.generateUUID = generateUUID;
4
4
  function generateUUID() {
5
5
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
6
6
  const r = (Math.random() * 16) | 0;
@@ -8,5 +8,4 @@ function generateUUID() {
8
8
  return v.toString(16);
9
9
  });
10
10
  }
11
- exports.generateUUID = generateUUID;
12
11
  //# sourceMappingURL=generate-uuid.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-uuid.function.js","sourceRoot":"","sources":["../../src/functions/generate-uuid.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY;IACxB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;QACxE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAC1C,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;AANH,oCAMG"}
1
+ {"version":3,"file":"generate-uuid.function.js","sourceRoot":"","sources":["../../src/functions/generate-uuid.function.ts"],"names":[],"mappings":";;AAAA,oCAMG;AANH,SAAgB,YAAY;IACxB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;QACxE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAC1C,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sizeOfJson = void 0;
3
+ exports.sizeOfJson = sizeOfJson;
4
4
  function sizeOfJson(object) {
5
5
  const jsonString = JSON.stringify(object);
6
6
  const bytes = new TextEncoder().encode(jsonString).length;
7
7
  return bytes;
8
8
  }
9
- exports.sizeOfJson = sizeOfJson;
10
9
  //# sourceMappingURL=json-size.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-size.function.js","sourceRoot":"","sources":["../../src/functions/json-size.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,MAAW;IAEpC,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAG1C,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IAE1D,OAAO,KAAK,CAAC;AACf,CAAC;AARD,gCAQC"}
1
+ {"version":3,"file":"json-size.function.js","sourceRoot":"","sources":["../../src/functions/json-size.function.ts"],"names":[],"mappings":";;AAAA,gCAQC;AARD,SAAgB,UAAU,CAAC,MAAW;IAEpC,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAG1C,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IAE1D,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRandomNumberFromRange = void 0;
3
+ exports.getRandomNumberFromRange = getRandomNumberFromRange;
4
4
  function getRandomNumberFromRange(min, max) {
5
5
  if (min >= max) {
6
6
  throw new Error("The minimum value must be less than the maximum value");
7
7
  }
8
8
  return Math.floor(Math.random() * (max - min + 1)) + min;
9
9
  }
10
- exports.getRandomNumberFromRange = getRandomNumberFromRange;
11
10
  //# sourceMappingURL=random-range.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"random-range.function.js","sourceRoot":"","sources":["../../src/functions/random-range.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB,CAAC,GAAW,EAAE,GAAW;IAC7D,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAC7D,CAAC;AALD,4DAKC"}
1
+ {"version":3,"file":"random-range.function.js","sourceRoot":"","sources":["../../src/functions/random-range.function.ts"],"names":[],"mappings":";;AAAA,4DAKC;AALD,SAAgB,wBAAwB,CAAC,GAAW,EAAE,GAAW;IAC7D,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAC7D,CAAC"}
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = void 0;
3
+ exports.generateSessionKeyword = generateSessionKeyword;
4
+ exports.generateUserClientKeyword = generateUserClientKeyword;
5
+ exports.generateUserClientPermissionKeyword = generateUserClientPermissionKeyword;
4
6
  function generateSessionKeyword(token) {
5
7
  return `sessions::${token}`;
6
8
  }
7
- exports.generateSessionKeyword = generateSessionKeyword;
8
9
  function generateUserClientKeyword(userId) {
9
10
  return `user-clients::${userId}`;
10
11
  }
11
- exports.generateUserClientKeyword = generateUserClientKeyword;
12
12
  function generateUserClientPermissionKeyword(userId, clientId) {
13
13
  return `user-client-permissions::${userId}::${clientId}`;
14
14
  }
15
- exports.generateUserClientPermissionKeyword = generateUserClientPermissionKeyword;
16
15
  //# sourceMappingURL=keyword.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyword.function.js","sourceRoot":"","sources":["../../../src/functions/session/keyword.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,sBAAsB,CAAC,KAAa;IAClD,OAAO,aAAa,KAAK,EAAE,CAAC;AAC9B,CAAC;AAFD,wDAEC;AAED,SAAgB,yBAAyB,CAAC,MAAc;IACtD,OAAO,iBAAiB,MAAM,EAAE,CAAC;AACnC,CAAC;AAFD,8DAEC;AAED,SAAgB,mCAAmC,CACjD,MAAc,EACd,QAAgB;IAEhB,OAAO,4BAA4B,MAAM,KAAK,QAAQ,EAAE,CAAC;AAC3D,CAAC;AALD,kFAKC"}
1
+ {"version":3,"file":"keyword.function.js","sourceRoot":"","sources":["../../../src/functions/session/keyword.function.ts"],"names":[],"mappings":";;AAAA,wDAEC;AAED,8DAEC;AAED,kFAKC;AAbD,SAAgB,sBAAsB,CAAC,KAAa;IAClD,OAAO,aAAa,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,SAAgB,yBAAyB,CAAC,MAAc;IACtD,OAAO,iBAAiB,MAAM,EAAE,CAAC;AACnC,CAAC;AAED,SAAgB,mCAAmC,CACjD,MAAc,EACd,QAAgB;IAEhB,OAAO,4BAA4B,MAAM,KAAK,QAAQ,EAAE,CAAC;AAC3D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSortObj = void 0;
3
+ exports.getSortObj = getSortObj;
4
4
  function getSortObj(sort) {
5
5
  if (!sort) {
6
6
  return {};
@@ -11,5 +11,4 @@ function getSortObj(sort) {
11
11
  }, {});
12
12
  return result;
13
13
  }
14
- exports.getSortObj = getSortObj;
15
14
  //# sourceMappingURL=sort-object.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sort-object.function.js","sourceRoot":"","sources":["../../src/functions/sort-object.function.ts"],"names":[],"mappings":";;;AAEA,SAAgB,UAAU,CAAC,IAAgB;IACzC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACvC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,MAAM,CAAC;AAChB,CAAC;AATD,gCASC"}
1
+ {"version":3,"file":"sort-object.function.js","sourceRoot":"","sources":["../../src/functions/sort-object.function.ts"],"names":[],"mappings":";;AAEA,gCASC;AATD,SAAgB,UAAU,CAAC,IAAgB;IACzC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACvC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.translitGeorgiaToLatin = void 0;
3
+ exports.translitGeorgiaToLatin = translitGeorgiaToLatin;
4
4
  function translitGeorgiaToLatin(georgianText) {
5
5
  const georgianChars = {
6
6
  ა: 'a',
@@ -42,5 +42,4 @@ function translitGeorgiaToLatin(georgianText) {
42
42
  .map((char) => georgianChars[char] || char)
43
43
  .join('');
44
44
  }
45
- exports.translitGeorgiaToLatin = translitGeorgiaToLatin;
46
45
  //# sourceMappingURL=transliterate-geo-to-latin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transliterate-geo-to-latin.js","sourceRoot":"","sources":["../../src/functions/transliterate-geo-to-latin.ts"],"names":[],"mappings":";;;AAAA,SAAgB,sBAAsB,CAAC,YAAoB;IACzD,MAAM,aAAa,GAA8B;QAC/C,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;KACP,CAAC;IAEF,OAAO,YAAY;SAChB,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;SAC1C,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAzCD,wDAyCC"}
1
+ {"version":3,"file":"transliterate-geo-to-latin.js","sourceRoot":"","sources":["../../src/functions/transliterate-geo-to-latin.ts"],"names":[],"mappings":";;AAAA,wDAyCC;AAzCD,SAAgB,sBAAsB,CAAC,YAAoB;IACzD,MAAM,aAAa,GAA8B;QAC/C,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;KACP,CAAC;IAEF,OAAO,YAAY;SAChB,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;SAC1C,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
package/dist/index.d.ts CHANGED
@@ -42,7 +42,6 @@ import { IRole } from './models/um/interfaces/role.interface';
42
42
  import { IUserClient } from './models/um/interfaces/user-client.interface';
43
43
  import { IUser } from './models/um/interfaces/user.interface';
44
44
  import { User, UserSchema, UserDocument } from './models/um/schemas/user.schema';
45
- import { DictionaryDTO } from './models/dtos/dictionary.dto';
46
45
  import { AuthorDTO } from './models/dtos/author.dto';
47
46
  import { IAuthor } from './models/util/interfaces/author.interface';
48
47
  import { FileLog, FileLogSchema, FileLogDocument } from './models/s3/embedded/file-log.embedded';
@@ -54,11 +53,7 @@ import { S3, S3Document, S3Schema } from './models/s3/embedded/s3.embedded';
54
53
  import { S3FileState } from './models/s3/enums/s3-file-state.enum';
55
54
  import { S3File, S3FileDocument, S3FileSchema } from './models/s3/embedded/file.embedded';
56
55
  import { IDictionarySetting } from './models/dictionary/interfaces/dictionary-setting.interface';
57
- import { DictionarySetting, DictionarySettingSchema, DictionarySettingDocument } from './models/dictionary/embedded/dictionary-setting.embedded';
58
- import { Origin, OriginSchema, OriginDocument } from './models/dictionary/embedded/origin.embedded';
59
- import { IOrigin } from './models/dictionary/interfaces/origin.interface';
60
56
  import { IDictionary } from './models/dictionary/interfaces/dictionary.interface';
61
- import { Dictionary, DictionarySchema, DictionaryDocument } from './models/dictionary/schemas/dictionary.schema';
62
57
  import { IFileLog } from './models/s3/interfaces/file-log.interface';
63
58
  import { IFileMeta } from './models/s3/interfaces/file-meta.interface';
64
59
  import { IFileRecord } from './models/s3/interfaces/file-record.interface';
@@ -70,7 +65,7 @@ import { Page } from './models/wrappers/page.wrapper';
70
65
  import { SortPage } from './models/wrappers/sort-page.wrapper';
71
66
  import { Sort } from './models/wrappers/sort.wrapper';
72
67
  import { ClientType } from './models/um/enums/client-type.enum';
73
- import { ResourceType } from './models/dictionary/enums/resource-type.enum';
68
+ import { ResourceType } from './models/emis/enums/resource-type.enum';
74
69
  import { ContactType } from './models/util/enums/contact-type.enum';
75
70
  import { UserClient, UserClientDocument, UserClientSchema } from './models/um/embedded/user-client.embedded';
76
71
  import { IPermission } from './models/um/interfaces/permission.interface';
@@ -94,4 +89,7 @@ import { ICredentials } from './models/um/interfaces/credentials.interface';
94
89
  import { IProfInfo } from './models/um/interfaces/prof-info.interface';
95
90
  import { generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword } from './functions/session/keyword.function';
96
91
  import { getSortObj } from './functions/sort-object.function';
97
- 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, DictionaryDTO, 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, DictionarySetting, DictionarySettingSchema, DictionarySettingDocument, IOrigin, Origin, OriginSchema, OriginDocument, IDictionary, Dictionary, DictionarySchema, DictionaryDocument, RESTQueryParams, IMongoPage, ResourceType, IClientDictionary, ClientDictionary, ClientDictionaryDocument, ClientDictionarySchema, ICredentials, Credentials, CredentialsSchema, CredentialsDocument, IProfInfo, ProfInfo, ProfInfoSchema, ProfInfoDocument, generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword, getSortObj, };
92
+ import { I18nDTO } from './models/dtos/i18n.dto';
93
+ import { IBase } from './models/commons/interfaces/base.interface';
94
+ import { Base } from './models/commons/schemas/base.schema';
95
+ 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, IClientDictionary, ClientDictionary, ClientDictionaryDocument, ClientDictionarySchema, ICredentials, Credentials, CredentialsSchema, CredentialsDocument, IProfInfo, ProfInfo, ProfInfoSchema, ProfInfoDocument, generateSessionKeyword, generateUserClientKeyword, generateUserClientPermissionKeyword, getSortObj, I18nDTO, Base, IBase };
package/dist/index.js CHANGED
@@ -1,8 +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.ProfInfoSchema = exports.ProfInfo = exports.CredentialsSchema = exports.Credentials = exports.ClientDictionarySchema = exports.ClientDictionary = exports.ResourceType = exports.RESTQueryParams = exports.DictionarySchema = exports.Dictionary = exports.OriginSchema = exports.Origin = exports.DictionarySettingSchema = exports.DictionarySetting = 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.DictionaryDTO = 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
- exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = void 0;
4
+ exports.Base = exports.I18nDTO = exports.getSortObj = exports.generateUserClientPermissionKeyword = exports.generateUserClientKeyword = exports.generateSessionKeyword = exports.ProfInfoSchema = exports.ProfInfo = exports.CredentialsSchema = exports.Credentials = exports.ClientDictionarySchema = exports.ClientDictionary = 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;
6
5
  const is_map_of_strings_constraint_1 = require("./constraints/is-map-of-strings.constraint");
7
6
  Object.defineProperty(exports, "IsMapOfStringsConstraint", { enumerable: true, get: function () { return is_map_of_strings_constraint_1.IsMapOfStringsConstraint; } });
8
7
  const is_route_constraint_1 = require("./constraints/is-route.constraint");
@@ -83,8 +82,6 @@ Object.defineProperty(exports, "ClientSchema", { enumerable: true, get: function
83
82
  const user_schema_1 = require("./models/um/schemas/user.schema");
84
83
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_schema_1.User; } });
85
84
  Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_schema_1.UserSchema; } });
86
- const dictionary_dto_1 = require("./models/dtos/dictionary.dto");
87
- Object.defineProperty(exports, "DictionaryDTO", { enumerable: true, get: function () { return dictionary_dto_1.DictionaryDTO; } });
88
85
  const author_dto_1 = require("./models/dtos/author.dto");
89
86
  Object.defineProperty(exports, "AuthorDTO", { enumerable: true, get: function () { return author_dto_1.AuthorDTO; } });
90
87
  const file_log_embedded_1 = require("./models/s3/embedded/file-log.embedded");
@@ -110,15 +107,6 @@ Object.defineProperty(exports, "S3FileState", { enumerable: true, get: function
110
107
  const file_embedded_1 = require("./models/s3/embedded/file.embedded");
111
108
  Object.defineProperty(exports, "S3File", { enumerable: true, get: function () { return file_embedded_1.S3File; } });
112
109
  Object.defineProperty(exports, "S3FileSchema", { enumerable: true, get: function () { return file_embedded_1.S3FileSchema; } });
113
- const dictionary_setting_embedded_1 = require("./models/dictionary/embedded/dictionary-setting.embedded");
114
- Object.defineProperty(exports, "DictionarySetting", { enumerable: true, get: function () { return dictionary_setting_embedded_1.DictionarySetting; } });
115
- Object.defineProperty(exports, "DictionarySettingSchema", { enumerable: true, get: function () { return dictionary_setting_embedded_1.DictionarySettingSchema; } });
116
- const origin_embedded_1 = require("./models/dictionary/embedded/origin.embedded");
117
- Object.defineProperty(exports, "Origin", { enumerable: true, get: function () { return origin_embedded_1.Origin; } });
118
- Object.defineProperty(exports, "OriginSchema", { enumerable: true, get: function () { return origin_embedded_1.OriginSchema; } });
119
- const dictionary_schema_1 = require("./models/dictionary/schemas/dictionary.schema");
120
- Object.defineProperty(exports, "Dictionary", { enumerable: true, get: function () { return dictionary_schema_1.Dictionary; } });
121
- Object.defineProperty(exports, "DictionarySchema", { enumerable: true, get: function () { return dictionary_schema_1.DictionarySchema; } });
122
110
  const page_wrapper_1 = require("./models/wrappers/page.wrapper");
123
111
  Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return page_wrapper_1.Page; } });
124
112
  const sort_page_wrapper_1 = require("./models/wrappers/sort-page.wrapper");
@@ -127,7 +115,7 @@ const sort_wrapper_1 = require("./models/wrappers/sort.wrapper");
127
115
  Object.defineProperty(exports, "Sort", { enumerable: true, get: function () { return sort_wrapper_1.Sort; } });
128
116
  const client_type_enum_1 = require("./models/um/enums/client-type.enum");
129
117
  Object.defineProperty(exports, "ClientType", { enumerable: true, get: function () { return client_type_enum_1.ClientType; } });
130
- const resource_type_enum_1 = require("./models/dictionary/enums/resource-type.enum");
118
+ const resource_type_enum_1 = require("./models/emis/enums/resource-type.enum");
131
119
  Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_type_enum_1.ResourceType; } });
132
120
  const contact_type_enum_1 = require("./models/util/enums/contact-type.enum");
133
121
  Object.defineProperty(exports, "ContactType", { enumerable: true, get: function () { return contact_type_enum_1.ContactType; } });
@@ -176,4 +164,8 @@ Object.defineProperty(exports, "generateUserClientKeyword", { enumerable: true,
176
164
  Object.defineProperty(exports, "generateUserClientPermissionKeyword", { enumerable: true, get: function () { return keyword_function_1.generateUserClientPermissionKeyword; } });
177
165
  const sort_object_function_1 = require("./functions/sort-object.function");
178
166
  Object.defineProperty(exports, "getSortObj", { enumerable: true, get: function () { return sort_object_function_1.getSortObj; } });
167
+ const i18n_dto_1 = require("./models/dtos/i18n.dto");
168
+ Object.defineProperty(exports, "I18nDTO", { enumerable: true, get: function () { return i18n_dto_1.I18nDTO; } });
169
+ const base_schema_1 = require("./models/commons/schemas/base.schema");
170
+ Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return base_schema_1.Base; } });
179
171
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.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jectId;
5
+ record?: IRecord;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=base.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.interface.js","sourceRoot":"","sources":["../../../../src/models/commons/interfaces/base.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { ObjectId } from 'bson';
2
+ import { IBase } from '../interfaces/base.interface';
3
+ import { Record } from '../../util/embedded/record.embedded';
4
+ export declare class Base implements IBase {
5
+ _id: ObjectId;
6
+ record: Record;
7
+ }
@@ -0,0 +1,22 @@
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.Base = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const record_embedded_1 = require("../../util/embedded/record.embedded");
15
+ class Base {
16
+ }
17
+ exports.Base = Base;
18
+ __decorate([
19
+ (0, mongoose_1.Prop)({ required: true, type: record_embedded_1.Record, default: () => { return new record_embedded_1.Record(); } }),
20
+ __metadata("design:type", record_embedded_1.Record)
21
+ ], Base.prototype, "record", void 0);
22
+ //# sourceMappingURL=base.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.schema.js","sourceRoot":"","sources":["../../../../src/models/commons/schemas/base.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+CAAwC;AAExC,yEAA6D;AAE7D,MAAa,IAAI;CAKhB;AALD,oBAKC;AADC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,wBAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,IAAI,wBAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;8BACxE,wBAAM;oCAAC"}
@@ -1,28 +1,3 @@
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
1
  import { IDictionarySetting } from '../interfaces/dictionary-setting.interface';
27
2
  import { ResourceType } from '../enums/resource-type.enum';
28
3
  import { HydratedDocument } from 'mongoose';
@@ -1,28 +1,3 @@
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
1
  import { IOrigin } from '../interfaces/origin.interface';
27
2
  import mongoose, { HydratedDocument, ObjectId } from 'mongoose';
28
3
  export declare class Origin implements IOrigin {
@@ -1,4 +1,4 @@
1
- import { ResourceType } from '../enums/resource-type.enum';
1
+ import { ResourceType } from '../../emis/enums/resource-type.enum';
2
2
  export interface IDictionarySetting {
3
3
  allowedTypes: ResourceType[];
4
4
  }
@@ -1,39 +1,12 @@
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 { IOrigin } from './origin.interface';
28
- import { II18n } from '../../util/interfaces/i18n.interface';
1
+ import { ObjectId } from 'bson';
29
2
  import { IDictionarySetting } from './dictionary-setting.interface';
30
- import { IRecord } from '../../../models/util/interfaces/record.interface';
31
- export interface IDictionary {
32
- _id: ObjectId;
33
- origins: IOrigin[];
3
+ import { IBase } from '../../commons/interfaces/base.interface';
4
+ import { II18n } from '../../util/interfaces/i18n.interface';
5
+ export interface IDictionary extends IBase {
6
+ keyword: string;
7
+ originIds: ObjectId[];
34
8
  parentIds: ObjectId[];
35
9
  title: II18n;
36
10
  settings: IDictionarySetting;
37
11
  metas: Map<string, string>;
38
- record: IRecord;
39
12
  }
@@ -1,28 +1,3 @@
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
1
  import { ObjectId } from 'mongoose';
27
2
  export interface IOrigin {
28
3
  _id: ObjectId;