@maioradv/nestjs-core 2.1.7 → 2.1.8

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.
@@ -11,7 +11,7 @@ export interface DefaultSortingI {
11
11
  id?: Sorting;
12
12
  createdAt?: Sorting;
13
13
  updatedAt?: Sorting;
14
- get orderBy(): any;
14
+ get orderBy(): Record<string, any>[];
15
15
  }
16
16
  export interface SortingQueryI<T extends SortingDto> {
17
17
  sorting?: T;
@@ -1,4 +1,5 @@
1
1
  import { PipeTransform, ArgumentMetadata } from '@nestjs/common';
2
+ import 'multer';
2
3
  export type CompressionOptions = {
3
4
  resolutionCap?: number;
4
5
  quality?: number;
@@ -16,6 +16,7 @@ exports.ImageCompressionPipe = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const path_1 = require("path");
18
18
  const sharp_1 = __importDefault(require("sharp"));
19
+ require("multer");
19
20
  let ImageCompressionPipe = class ImageCompressionPipe {
20
21
  constructor(options = {}) {
21
22
  this.options = options;
@@ -1,5 +1,6 @@
1
1
  import { ConfigService } from "@nestjs/config";
2
2
  import { S3Client } from "@aws-sdk/client-s3";
3
+ import 'multer';
3
4
  export type UploadImageResponse = {
4
5
  src: string;
5
6
  height: number;
@@ -15,6 +15,7 @@ const config_1 = require("@nestjs/config");
15
15
  const client_s3_1 = require("@aws-sdk/client-s3");
16
16
  const crypto_1 = require("crypto");
17
17
  const image_size_1 = require("image-size");
18
+ require("multer");
18
19
  const logger_1 = require("../logger");
19
20
  let S3Service = class S3Service {
20
21
  constructor(config) {
@@ -54,6 +54,7 @@ class EmailBuilder {
54
54
  throw new Error(`Missing paths: ${missing.join()}`);
55
55
  }
56
56
  getNestedValue(obj, path) {
57
+ // @ts-ignore
57
58
  return path.split('.').reduce((acc, key) => acc?.[key], obj) ?? path;
58
59
  }
59
60
  async initEmail() {
@@ -10,3 +10,9 @@ export type ExtractProperties<T, H> = {
10
10
  }[keyof T];
11
11
  export type FilteredProperties<T, H> = Pick<T, ExtractProperties<T, H>>;
12
12
  export type ExtractCursors<T> = ExtractProperties<T, string | number | Date>;
13
+ export type TaskUnion<T extends Record<string, any>> = {
14
+ [K in keyof T]: {
15
+ name: K;
16
+ payload: T[K];
17
+ };
18
+ }[keyof T];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",
@@ -17,59 +17,61 @@
17
17
  "publish:npm": "npm publish --access public"
18
18
  },
19
19
  "dependencies": {
20
- "@aws-sdk/client-s3": "^3.899.0",
21
- "@maioradv/accounts-lib": "^1.3.3",
22
- "@nestjs/cache-manager": "^3.0.1",
23
- "@nestjs/common": "^11.1.6",
24
- "@nestjs/config": "^4.0.2",
25
- "@nestjs/graphql": "^13.2.0",
26
- "@nestjs/platform-express": "^11.1.6",
27
- "@nestjs/swagger": "^11.2.0",
28
- "@nestjs/throttler": "^6.4.0",
29
- "@sentry/nestjs": "^10.17.0",
30
- "bcrypt": "^6.0.0",
31
- "class-transformer": "^0.5.1",
32
- "class-validator": "^0.14.2",
33
- "file-type": "^21.0.0",
34
- "handlebars": "^4.7.8",
35
- "image-size": "^2.0.2",
36
- "nest-winston": "^1.10.2",
37
- "nodemailer": "^7.0.6",
38
- "request-ip": "^3.3.0",
39
- "sharp": "^0.34.4",
40
- "winston": "^3.18.3",
41
- "winston-daily-rotate-file": "^5.0.0"
20
+ "request-ip": "^3"
42
21
  },
43
22
  "devDependencies": {
44
- "@types/multer": "^2.0.0",
23
+ "@aws-sdk/client-s3": "^3",
24
+ "@maioradv/accounts-lib": "*",
25
+ "@nestjs/cache-manager": "^3",
26
+ "@nestjs/common": "^11",
27
+ "@nestjs/config": "^4",
28
+ "@nestjs/graphql": "^13",
29
+ "@nestjs/platform-express": "^11",
30
+ "@nestjs/swagger": "^11",
31
+ "@nestjs/throttler": "^6",
32
+ "@sentry/nestjs": "^10",
33
+ "@types/bcrypt": "^6",
34
+ "@types/multer": "^2",
45
35
  "@types/node": "^24.6.1",
46
- "@types/nodemailer": "^7.0.2",
47
- "@types/request-ip": "^0.0.41",
36
+ "@types/nodemailer": "^8",
37
+ "@types/request-ip": "*",
38
+ "bcrypt": "^6",
39
+ "class-transformer": "^0.5",
40
+ "class-validator": "^0.15",
41
+ "file-type": "^22",
42
+ "handlebars": "^4",
43
+ "image-size": "^2",
44
+ "nest-winston": "^1",
45
+ "nodemailer": "^8",
46
+ "sharp": "^0.34",
48
47
  "ts-node": "^10.9.2",
49
- "typescript": "^5.9.3"
48
+ "typescript": "^5.9.3",
49
+ "winston": "^3",
50
+ "winston-daily-rotate-file": "^5"
50
51
  },
51
52
  "peerDependencies": {
52
- "@aws-sdk/client-s3": "^3.899.0",
53
- "@maioradv/accounts-lib": "^1.3.3",
54
- "@nestjs/cache-manager": "^3.0.1",
55
- "@nestjs/common": "^11.1.6",
56
- "@nestjs/config": "^4.0.2",
57
- "@nestjs/graphql": "^13.2.0",
58
- "@nestjs/platform-express": "^11.1.6",
59
- "@nestjs/swagger": "^11.2.0",
60
- "@nestjs/throttler": "^6.4.0",
61
- "@sentry/nestjs": "^10.17.0",
62
- "bcrypt": "^6.0.0",
63
- "class-transformer": "^0.5.1",
64
- "class-validator": "^0.14.2",
65
- "file-type": "^21.0.0",
66
- "handlebars": "^4.7.8",
67
- "image-size": "^2.0.2",
68
- "nest-winston": "^1.10.2",
69
- "nodemailer": "^7.0.6",
70
- "sharp": "^0.34.4",
71
- "winston": "^3.18.3",
72
- "winston-daily-rotate-file": "^5.0.0"
53
+ "@aws-sdk/client-s3": "^3",
54
+ "@maioradv/accounts-lib": "*",
55
+ "@nestjs/cache-manager": "^3",
56
+ "@nestjs/common": "^11",
57
+ "@nestjs/config": "^4",
58
+ "@nestjs/graphql": "^13",
59
+ "@nestjs/platform-express": "^11",
60
+ "@nestjs/swagger": "^11",
61
+ "@nestjs/throttler": "^6",
62
+ "@sentry/nestjs": "^10",
63
+ "@types/bcrypt": "^6",
64
+ "bcrypt": "^6",
65
+ "class-transformer": "^0.5",
66
+ "class-validator": "^0.15",
67
+ "file-type": "^22",
68
+ "handlebars": "^4",
69
+ "image-size": "^2",
70
+ "nest-winston": "^1",
71
+ "nodemailer": "^8",
72
+ "sharp": "^0.34",
73
+ "winston": "^3",
74
+ "winston-daily-rotate-file": "^5"
73
75
  },
74
76
  "keywords": [
75
77
  "typescript",