@tomei/media 0.8.9 → 0.8.10

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 (119) hide show
  1. package/.commitlintrc.json +22 -22
  2. package/.gitlab-ci.yml +16 -16
  3. package/.husky/commit-msg +15 -15
  4. package/.husky/pre-commit +7 -7
  5. package/.prettierrc +4 -4
  6. package/README.md +93 -93
  7. package/dist/base/base.medias.d.ts +38 -0
  8. package/dist/base/base.medias.js +175 -0
  9. package/dist/base/base.medias.js.map +1 -0
  10. package/dist/base/base.repository.abstract.d.ts +12 -0
  11. package/dist/base/base.repository.abstract.js +22 -0
  12. package/dist/base/base.repository.abstract.js.map +1 -0
  13. package/dist/base/base.repository.interface.d.ts +9 -0
  14. package/dist/base/base.repository.interface.js +3 -0
  15. package/dist/base/base.repository.interface.js.map +1 -0
  16. package/dist/common/common.module.d.ts +2 -0
  17. package/dist/common/common.module.js +23 -0
  18. package/dist/common/common.module.js.map +1 -0
  19. package/dist/common/common.service.d.ts +13 -0
  20. package/dist/common/common.service.js +106 -0
  21. package/dist/common/common.service.js.map +1 -0
  22. package/dist/common/dto/add-field-translation.dto.d.ts +7 -0
  23. package/dist/common/dto/add-field-translation.dto.js +42 -0
  24. package/dist/common/dto/add-field-translation.dto.js.map +1 -0
  25. package/dist/common/dto/get-media.dto.d.ts +5 -0
  26. package/dist/common/dto/get-media.dto.js +29 -0
  27. package/dist/common/dto/get-media.dto.js.map +1 -0
  28. package/dist/database.d.ts +4 -0
  29. package/dist/database.js +16 -0
  30. package/dist/database.js.map +1 -0
  31. package/dist/dto/external-media.dto.d.ts +10 -0
  32. package/dist/dto/external-media.dto.js +70 -0
  33. package/dist/dto/external-media.dto.js.map +1 -0
  34. package/dist/dto/internal-medias.dto.d.ts +12 -0
  35. package/dist/dto/internal-medias.dto.js +87 -0
  36. package/dist/dto/internal-medias.dto.js.map +1 -0
  37. package/dist/entities/medias.entity.d.ts +23 -0
  38. package/dist/entities/medias.entity.js +160 -0
  39. package/dist/entities/medias.entity.js.map +1 -0
  40. package/dist/enum/index.d.ts +2 -0
  41. package/dist/enum/index.js +6 -0
  42. package/dist/enum/index.js.map +1 -0
  43. package/dist/enum/medias.enum.d.ts +5 -0
  44. package/dist/enum/medias.enum.js +10 -0
  45. package/dist/enum/medias.enum.js.map +1 -0
  46. package/dist/helpers/error.d.ts +1 -0
  47. package/dist/helpers/error.js +13 -0
  48. package/dist/helpers/error.js.map +1 -0
  49. package/dist/helpers/index.d.ts +2 -0
  50. package/dist/helpers/index.js +6 -0
  51. package/dist/helpers/index.js.map +1 -0
  52. package/dist/index.d.ts +12 -0
  53. package/dist/index.js +22 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/interfaces/base.medias-attr.interface.d.ts +20 -0
  56. package/dist/interfaces/base.medias-attr.interface.js +3 -0
  57. package/dist/interfaces/base.medias-attr.interface.js.map +1 -0
  58. package/dist/interfaces/medias.repository.interface.d.ts +3 -0
  59. package/dist/interfaces/medias.repository.interface.js +3 -0
  60. package/dist/interfaces/medias.repository.interface.js.map +1 -0
  61. package/dist/medias.d.ts +65 -0
  62. package/dist/medias.js +564 -0
  63. package/dist/medias.js.map +1 -0
  64. package/dist/medias.repository.d.ts +8 -0
  65. package/dist/medias.repository.js +56 -0
  66. package/dist/medias.repository.js.map +1 -0
  67. package/dist/pipe/append-id.pipe.d.ts +6 -0
  68. package/dist/pipe/append-id.pipe.js +28 -0
  69. package/dist/pipe/append-id.pipe.js.map +1 -0
  70. package/dist/pipe/validate-enum.pipe.d.ts +6 -0
  71. package/dist/pipe/validate-enum.pipe.js +34 -0
  72. package/dist/pipe/validate-enum.pipe.js.map +1 -0
  73. package/dist/pipe/validate-id.pipe.d.ts +6 -0
  74. package/dist/pipe/validate-id.pipe.js +31 -0
  75. package/dist/pipe/validate-id.pipe.js.map +1 -0
  76. package/dist/pipe/validate-search.pipe.d.ts +7 -0
  77. package/dist/pipe/validate-search.pipe.js +46 -0
  78. package/dist/pipe/validate-search.pipe.js.map +1 -0
  79. package/dist/responses/deleted.response.d.ts +3 -0
  80. package/dist/responses/deleted.response.js +21 -0
  81. package/dist/responses/deleted.response.js.map +1 -0
  82. package/dist/responses/pagination.response.d.ts +5 -0
  83. package/dist/responses/pagination.response.js +26 -0
  84. package/dist/responses/pagination.response.js.map +1 -0
  85. package/dist/tsconfig.tsbuildinfo +1 -0
  86. package/eslint.config.mjs +58 -58
  87. package/migration/0001-add-defaultyn-hiddenyn-to-media-table.js +36 -36
  88. package/migration/media-migration.js +82 -82
  89. package/nest-cli.json +18 -18
  90. package/package.json +79 -79
  91. package/sonar-project.properties +12 -12
  92. package/src/base/base.medias.ts +210 -210
  93. package/src/base/base.repository.abstract.ts +28 -28
  94. package/src/base/base.repository.interface.ts +9 -9
  95. package/src/common/common.module.ts +10 -10
  96. package/src/common/common.service.ts +107 -107
  97. package/src/common/dto/add-field-translation.dto.ts +23 -23
  98. package/src/common/dto/get-media.dto.ts +12 -12
  99. package/src/database.ts +16 -16
  100. package/src/dto/external-media.dto.ts +49 -49
  101. package/src/dto/internal-medias.dto.ts +64 -64
  102. package/src/entities/medias.entity.ts +125 -125
  103. package/src/enum/index.ts +3 -3
  104. package/src/enum/medias.enum.ts +5 -5
  105. package/src/helpers/error.ts +12 -12
  106. package/src/helpers/index.ts +3 -3
  107. package/src/index.ts +24 -24
  108. package/src/interfaces/base.medias-attr.interface.ts +21 -21
  109. package/src/interfaces/medias.repository.interface.ts +4 -4
  110. package/src/medias.repository.ts +55 -55
  111. package/src/medias.ts +769 -769
  112. package/src/pipe/append-id.pipe.ts +15 -15
  113. package/src/pipe/validate-enum.pipe.ts +31 -31
  114. package/src/pipe/validate-id.pipe.ts +18 -18
  115. package/src/pipe/validate-search.pipe.ts +44 -44
  116. package/src/responses/deleted.response.ts +6 -6
  117. package/src/responses/pagination.response.ts +10 -10
  118. package/tsconfig.build.json +4 -4
  119. package/tsconfig.json +30 -30
package/eslint.config.mjs CHANGED
@@ -1,58 +1,58 @@
1
- import eslintPlugin from "@typescript-eslint/eslint-plugin";
2
- import parser from "@typescript-eslint/parser";
3
- import importPlugin from 'eslint-plugin-import'
4
- import path from 'path';
5
- import { fileURLToPath } from 'url';
6
-
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = path.dirname(__filename);
9
-
10
- export default [
11
- {
12
- languageOptions: {
13
- parser: parser,
14
- ecmaVersion: "latest", // Allows modern ECMAScript features
15
- sourceType: "module", // Allows for the use of imports
16
- parserOptions: {
17
- tsconfigRootDir: __dirname,
18
- project: './tsconfig.json'
19
- },
20
- },
21
- plugins: {
22
- "@typescript-eslint": eslintPlugin,
23
- import: importPlugin
24
- },
25
- rules: {
26
- "no-console": "off",
27
- "@typescript-eslint/no-explicit-any": "off",
28
- "@typescript-eslint/no-var-requires": "off",
29
- "@typescript-eslint/explicit-module-boundary-types": "off",
30
- "import/prefer-default-export": "off",
31
- "@typescript-eslint/no-unused-vars": "warn",
32
- "no-useless-catch": "off",
33
- "@typescript-eslint/no-non-null-assertion": "off",
34
- "@typescript-eslint/no-empty-function": "off",
35
- "@typescript-eslint/no-empty-interface": "off",
36
- "@typescript-eslint/no-inferrable-types": "off",
37
- "@typescript-eslint/no-namespace": "off",
38
- "@typescript-eslint/no-use-before-define": "off",
39
- "@typescript-eslint/no-unsafe-assignment": "off",
40
- "@typescript-eslint/no-unsafe-call": "off",
41
- "@typescript-eslint/no-unsafe-member-access": "off",
42
- "@typescript-eslint/no-unsafe-return": "off",
43
- "@typescript-eslint/restrict-template-expressions": "off",
44
- "no-useless-escape": "off",
45
- "import/no-relative-parent-imports": "error", // Enforce relative imports only
46
- "import/no-absolute-path": "error", // Block absolute imports outside aliases
47
- "import/no-unresolved": ["error", { commonjs: true }],
48
- },
49
- settings: {
50
- "import/resolver": {
51
- typescript: {
52
- alwaysTryTypes: true,
53
- }
54
- }
55
- },
56
- ignores: ["node_modules", "dist/**/*", "eslint.config.mjs"],
57
- },
58
- ];
1
+ import eslintPlugin from "@typescript-eslint/eslint-plugin";
2
+ import parser from "@typescript-eslint/parser";
3
+ import importPlugin from 'eslint-plugin-import'
4
+ import path from 'path';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+
10
+ export default [
11
+ {
12
+ languageOptions: {
13
+ parser: parser,
14
+ ecmaVersion: "latest", // Allows modern ECMAScript features
15
+ sourceType: "module", // Allows for the use of imports
16
+ parserOptions: {
17
+ tsconfigRootDir: __dirname,
18
+ project: './tsconfig.json'
19
+ },
20
+ },
21
+ plugins: {
22
+ "@typescript-eslint": eslintPlugin,
23
+ import: importPlugin
24
+ },
25
+ rules: {
26
+ "no-console": "off",
27
+ "@typescript-eslint/no-explicit-any": "off",
28
+ "@typescript-eslint/no-var-requires": "off",
29
+ "@typescript-eslint/explicit-module-boundary-types": "off",
30
+ "import/prefer-default-export": "off",
31
+ "@typescript-eslint/no-unused-vars": "warn",
32
+ "no-useless-catch": "off",
33
+ "@typescript-eslint/no-non-null-assertion": "off",
34
+ "@typescript-eslint/no-empty-function": "off",
35
+ "@typescript-eslint/no-empty-interface": "off",
36
+ "@typescript-eslint/no-inferrable-types": "off",
37
+ "@typescript-eslint/no-namespace": "off",
38
+ "@typescript-eslint/no-use-before-define": "off",
39
+ "@typescript-eslint/no-unsafe-assignment": "off",
40
+ "@typescript-eslint/no-unsafe-call": "off",
41
+ "@typescript-eslint/no-unsafe-member-access": "off",
42
+ "@typescript-eslint/no-unsafe-return": "off",
43
+ "@typescript-eslint/restrict-template-expressions": "off",
44
+ "no-useless-escape": "off",
45
+ "import/no-relative-parent-imports": "error", // Enforce relative imports only
46
+ "import/no-absolute-path": "error", // Block absolute imports outside aliases
47
+ "import/no-unresolved": ["error", { commonjs: true }],
48
+ },
49
+ settings: {
50
+ "import/resolver": {
51
+ typescript: {
52
+ alwaysTryTypes: true,
53
+ }
54
+ }
55
+ },
56
+ ignores: ["node_modules", "dist/**/*", "eslint.config.mjs"],
57
+ },
58
+ ];
@@ -1,36 +1,36 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- async up(queryInterface, Sequelize) {
5
- const table = await queryInterface.describeTable('common_Media');
6
-
7
- if (!table.hasOwnProperty('DefaultYN')) {
8
- queryInterface.addColumn('common_Media', 'DefaultYN', {
9
- type: Sequelize.ENUM(['Y', 'N']),
10
- allowNull: true,
11
- defaultValue: 'N',
12
- });
13
- }
14
-
15
- if (!table.hasOwnProperty('HiddenYN')) {
16
- queryInterface.addColumn('common_Media', 'HiddenYN', {
17
- type: Sequelize.ENUM(['Y', 'N']),
18
- allowNull: true,
19
- defaultValue: 'N',
20
- });
21
- }
22
- },
23
-
24
- down(queryInterface) {
25
- return queryInterface.sequelize.transaction((t) => {
26
- return Promise.all([
27
- queryInterface.removeColumn('common_Media', 'DefaultYN', {
28
- transaction: t,
29
- }),
30
- queryInterface.removeColumn('common_Media', 'HiddenYN', {
31
- transaction: t,
32
- }),
33
- ]);
34
- });
35
- },
36
- };
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ const table = await queryInterface.describeTable('common_Media');
6
+
7
+ if (!table.hasOwnProperty('DefaultYN')) {
8
+ queryInterface.addColumn('common_Media', 'DefaultYN', {
9
+ type: Sequelize.ENUM(['Y', 'N']),
10
+ allowNull: true,
11
+ defaultValue: 'N',
12
+ });
13
+ }
14
+
15
+ if (!table.hasOwnProperty('HiddenYN')) {
16
+ queryInterface.addColumn('common_Media', 'HiddenYN', {
17
+ type: Sequelize.ENUM(['Y', 'N']),
18
+ allowNull: true,
19
+ defaultValue: 'N',
20
+ });
21
+ }
22
+ },
23
+
24
+ down(queryInterface) {
25
+ return queryInterface.sequelize.transaction((t) => {
26
+ return Promise.all([
27
+ queryInterface.removeColumn('common_Media', 'DefaultYN', {
28
+ transaction: t,
29
+ }),
30
+ queryInterface.removeColumn('common_Media', 'HiddenYN', {
31
+ transaction: t,
32
+ }),
33
+ ]);
34
+ });
35
+ },
36
+ };
@@ -1,83 +1,83 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- async up(queryInterface, Sequelize) {
5
- await queryInterface.createTable('common_Media', {
6
- MediaId: {
7
- type: Sequelize.STRING(30),
8
- primaryKey: true,
9
- allowNull: false,
10
- },
11
- ObjectId: {
12
- type: Sequelize.STRING(30),
13
- allowNull: false,
14
- },
15
- ObjectType: {
16
- type: Sequelize.STRING(200),
17
- allowNull: false,
18
- },
19
- Title: {
20
- type: Sequelize.STRING(200),
21
- allowNull: false,
22
- },
23
- Description: {
24
- type: Sequelize.TEXT,
25
- allowNull: true,
26
- },
27
- Type: {
28
- type: Sequelize.ENUM(['Photo', 'Video', 'Document']),
29
- allowNull: false,
30
- },
31
- IsExternalYN: {
32
- type: Sequelize.ENUM(['Y', 'N']),
33
- allowNull: false,
34
- },
35
- ExternalSource: {
36
- type: Sequelize.STRING(200),
37
- allowNull: true,
38
- },
39
- IsEncryptedYN: {
40
- type: Sequelize.ENUM(['Y', 'N']),
41
- allowNull: false,
42
- },
43
- FileName: {
44
- type: Sequelize.STRING(200),
45
- allowNull: true,
46
- },
47
- FileExtension: {
48
- type: Sequelize.STRING(10),
49
- allowNull: true,
50
- },
51
- FilePath: {
52
- type: Sequelize.STRING(200),
53
- allowNull: true,
54
- },
55
- URL: {
56
- type: Sequelize.STRING(200),
57
- allowNull: true,
58
- },
59
- CreatedAt: {
60
- allowNull: false,
61
- defaultValue: new Date(),
62
- type: Sequelize.DATE,
63
- },
64
- CreatedById: {
65
- allowNull: false,
66
- type: Sequelize.STRING,
67
- },
68
- UpdatedAt: {
69
- allowNull: false,
70
- defaultValue: new Date(),
71
- type: Sequelize.DATE,
72
- },
73
- UpdatedById: {
74
- allowNull: false,
75
- type: Sequelize.STRING,
76
- },
77
- });
78
- },
79
-
80
- async down(queryInterface) {
81
- await queryInterface.dropTable('common_Media');
82
- },
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ await queryInterface.createTable('common_Media', {
6
+ MediaId: {
7
+ type: Sequelize.STRING(30),
8
+ primaryKey: true,
9
+ allowNull: false,
10
+ },
11
+ ObjectId: {
12
+ type: Sequelize.STRING(30),
13
+ allowNull: false,
14
+ },
15
+ ObjectType: {
16
+ type: Sequelize.STRING(200),
17
+ allowNull: false,
18
+ },
19
+ Title: {
20
+ type: Sequelize.STRING(200),
21
+ allowNull: false,
22
+ },
23
+ Description: {
24
+ type: Sequelize.TEXT,
25
+ allowNull: true,
26
+ },
27
+ Type: {
28
+ type: Sequelize.ENUM(['Photo', 'Video', 'Document']),
29
+ allowNull: false,
30
+ },
31
+ IsExternalYN: {
32
+ type: Sequelize.ENUM(['Y', 'N']),
33
+ allowNull: false,
34
+ },
35
+ ExternalSource: {
36
+ type: Sequelize.STRING(200),
37
+ allowNull: true,
38
+ },
39
+ IsEncryptedYN: {
40
+ type: Sequelize.ENUM(['Y', 'N']),
41
+ allowNull: false,
42
+ },
43
+ FileName: {
44
+ type: Sequelize.STRING(200),
45
+ allowNull: true,
46
+ },
47
+ FileExtension: {
48
+ type: Sequelize.STRING(10),
49
+ allowNull: true,
50
+ },
51
+ FilePath: {
52
+ type: Sequelize.STRING(200),
53
+ allowNull: true,
54
+ },
55
+ URL: {
56
+ type: Sequelize.STRING(200),
57
+ allowNull: true,
58
+ },
59
+ CreatedAt: {
60
+ allowNull: false,
61
+ defaultValue: new Date(),
62
+ type: Sequelize.DATE,
63
+ },
64
+ CreatedById: {
65
+ allowNull: false,
66
+ type: Sequelize.STRING,
67
+ },
68
+ UpdatedAt: {
69
+ allowNull: false,
70
+ defaultValue: new Date(),
71
+ type: Sequelize.DATE,
72
+ },
73
+ UpdatedById: {
74
+ allowNull: false,
75
+ type: Sequelize.STRING,
76
+ },
77
+ });
78
+ },
79
+
80
+ async down(queryInterface) {
81
+ await queryInterface.dropTable('common_Media');
82
+ },
83
83
  };
package/nest-cli.json CHANGED
@@ -1,19 +1,19 @@
1
- {
2
- "language": "ts",
3
- "collection": "@nestjs/schematics",
4
- "sourceRoot": "src",
5
- "projects": {
6
- "media": {
7
- "type": "library",
8
- "root": "libs/media",
9
- "entryFile": "index",
10
- "sourceRoot": "libs/media/src",
11
- "compilerOptions": {
12
- "tsConfigPath": "libs/media/tsconfig.lib.json"
13
- }
14
- }
15
- },
16
- "compilerOptions": {
17
- "webpack": true
18
- }
1
+ {
2
+ "language": "ts",
3
+ "collection": "@nestjs/schematics",
4
+ "sourceRoot": "src",
5
+ "projects": {
6
+ "media": {
7
+ "type": "library",
8
+ "root": "libs/media",
9
+ "entryFile": "index",
10
+ "sourceRoot": "libs/media/src",
11
+ "compilerOptions": {
12
+ "tsConfigPath": "libs/media/tsconfig.lib.json"
13
+ }
14
+ }
15
+ },
16
+ "compilerOptions": {
17
+ "webpack": true
18
+ }
19
19
  }
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
- {
2
- "name": "@tomei/media",
3
- "version": "0.8.9",
4
- "description": "NestJS package for media module",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "start:dev": "tsc -w",
8
- "build": "tsc",
9
- "prepare": "husky install",
10
- "format": "prettier --write \"src/**/*.ts\"",
11
- "lint": "npx eslint . --fix"
12
- },
13
- "keywords": [
14
- "nestjs",
15
- "tomei",
16
- "media"
17
- ],
18
- "author": "ITD Developer <itd+developers@tomei.com.my>",
19
- "license": "ISC",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://gitlab.com/tomei-package/media.git"
23
- },
24
- "peerDependencies": {
25
- "@azure/storage-blob": "^12.26.0",
26
- "@nestjs/common": "^10.4.15",
27
- "@nestjs/config": "^3.3.0",
28
- "@nestjs/core": "^10.4.15",
29
- "@nestjs/platform-express": "^10.4.15",
30
- "@nestjs/sequelize": "^10.0.1",
31
- "@nestjs/swagger": "^8.1.0",
32
- "@tomei/activity-history": "^0.4.1",
33
- "@tomei/config": "^0.3.21",
34
- "@tomei/general": "^0.21.7",
35
- "@tomei/mailer": "^0.5.21",
36
- "@tomei/sso": "^0.58.12",
37
- "axios": "^1.7.9",
38
- "class-transformer": "^0.5.1",
39
- "class-validator": "^0.14.1",
40
- "cuid": "^3.0.0",
41
- "multer": "^1.4.5-lts.1",
42
- "sequelize": "^6.37.5",
43
- "sequelize-typescript": "^2.1.6"
44
- },
45
- "devDependencies": {
46
- "@commitlint/config-conventional": "^19.6.0",
47
- "@eslint/js": "^9.17.0",
48
- "@types/express": "^5.0.0",
49
- "@types/multer": "^1.4.12",
50
- "@types/node": "^22.10.5",
51
- "@types/sequelize": "^4.28.20",
52
- "@typescript-eslint/eslint-plugin": "^8.19.0",
53
- "eslint": "^9.17.0",
54
- "eslint-config-prettier": "^9.1.0",
55
- "eslint-plugin-import": "^2.31.0",
56
- "eslint-plugin-prettier": "^5.2.1",
57
- "globals": "^15.14.0",
58
- "husky": "^9.1.7",
59
- "lint-staged": "^15.3.0",
60
- "prettier": "^3.4.2",
61
- "ts-node": "^10.9.2",
62
- "tsc-watch": "^6.2.1",
63
- "tsconfig-paths": "^4.2.0",
64
- "typescript": "^5.7.2",
65
- "typescript-eslint": "^8.19.0"
66
- },
67
- "publishConfig": {
68
- "access": "public"
69
- },
70
- "lint-staged": {
71
- "*/**/*.{js,ts,tsx}": [
72
- "npm run lint",
73
- "npm run eslint",
74
- "npm run format",
75
- "npm run build",
76
- "git add ."
77
- ]
78
- }
79
- }
1
+ {
2
+ "name": "@tomei/media",
3
+ "version": "0.8.10",
4
+ "description": "NestJS package for media module",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "start:dev": "tsc -w",
8
+ "build": "tsc",
9
+ "prepare": "husky install",
10
+ "format": "prettier --write \"src/**/*.ts\"",
11
+ "lint": "npx eslint . --fix"
12
+ },
13
+ "keywords": [
14
+ "nestjs",
15
+ "tomei",
16
+ "media"
17
+ ],
18
+ "author": "ITD Developer <itd+developers@tomei.com.my>",
19
+ "license": "ISC",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://gitlab.com/tomei-package/media.git"
23
+ },
24
+ "peerDependencies": {
25
+ "@azure/storage-blob": "^12.26.0",
26
+ "@nestjs/common": "^10.4.15",
27
+ "@nestjs/config": "^3.3.0",
28
+ "@nestjs/core": "^10.4.15",
29
+ "@nestjs/platform-express": "^10.4.15",
30
+ "@nestjs/sequelize": "^10.0.1",
31
+ "@nestjs/swagger": "^8.1.0",
32
+ "@tomei/activity-history": "^0.4.1",
33
+ "@tomei/config": "^0.3.21",
34
+ "@tomei/general": "^0.21.7",
35
+ "@tomei/mailer": "^0.5.21",
36
+ "@tomei/sso": "^0.60.4",
37
+ "axios": "^1.7.9",
38
+ "class-transformer": "^0.5.1",
39
+ "class-validator": "^0.14.1",
40
+ "cuid": "^3.0.0",
41
+ "multer": "^1.4.5-lts.1",
42
+ "sequelize": "^6.37.5",
43
+ "sequelize-typescript": "^2.1.6"
44
+ },
45
+ "devDependencies": {
46
+ "@commitlint/config-conventional": "^19.6.0",
47
+ "@eslint/js": "^9.17.0",
48
+ "@types/express": "^5.0.0",
49
+ "@types/multer": "^1.4.12",
50
+ "@types/node": "^22.10.5",
51
+ "@types/sequelize": "^4.28.20",
52
+ "@typescript-eslint/eslint-plugin": "^8.19.0",
53
+ "eslint": "^9.17.0",
54
+ "eslint-config-prettier": "^9.1.0",
55
+ "eslint-plugin-import": "^2.31.0",
56
+ "eslint-plugin-prettier": "^5.2.1",
57
+ "globals": "^15.14.0",
58
+ "husky": "^9.1.7",
59
+ "lint-staged": "^15.3.0",
60
+ "prettier": "^3.4.2",
61
+ "ts-node": "^10.9.2",
62
+ "tsc-watch": "^6.2.1",
63
+ "tsconfig-paths": "^4.2.0",
64
+ "typescript": "^5.7.2",
65
+ "typescript-eslint": "^8.19.0"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public"
69
+ },
70
+ "lint-staged": {
71
+ "*/**/*.{js,ts,tsx}": [
72
+ "npm run lint",
73
+ "npm run eslint",
74
+ "npm run format",
75
+ "npm run build",
76
+ "git add ."
77
+ ]
78
+ }
79
+ }
@@ -1,13 +1,13 @@
1
- sonar.projectKey=all-tomei-projects_media
2
- sonar.organization=all-tomei-projects
3
-
4
- # This is the name and version displayed in the SonarCloud UI.
5
- #sonar.projectName=Media
6
- #sonar.projectVersion=1.0
7
-
8
-
9
- # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10
- #sonar.sources=.
11
-
12
- # Encoding of the source code. Default is default system encoding
1
+ sonar.projectKey=all-tomei-projects_media
2
+ sonar.organization=all-tomei-projects
3
+
4
+ # This is the name and version displayed in the SonarCloud UI.
5
+ #sonar.projectName=Media
6
+ #sonar.projectVersion=1.0
7
+
8
+
9
+ # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10
+ #sonar.sources=.
11
+
12
+ # Encoding of the source code. Default is default system encoding
13
13
  #sonar.sourceEncoding=UTF-8