@maioradv/nestjs-core 1.6.6 → 1.6.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.
@@ -0,0 +1,8 @@
1
+ export declare abstract class BaseEvent<B extends string, E extends string, P extends Record<string, any>> {
2
+ readonly payload: P;
3
+ readonly type: `${B}.${E}`;
4
+ constructor(payload: P);
5
+ }
6
+ export type Events<B extends string, H extends Record<string, any>> = {
7
+ readonly [K in keyof H]: new (payload: H[K]) => BaseEvent<B, Extract<K, string>, H[K]>;
8
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseEvent = void 0;
4
+ class BaseEvent {
5
+ constructor(payload) {
6
+ this.payload = payload;
7
+ }
8
+ }
9
+ exports.BaseEvent = BaseEvent;
@@ -1,3 +1,4 @@
1
1
  export * from './cursor-query.abstract';
2
2
  export * from './paginated-query.abstract';
3
3
  export * from './remove-gql.response';
4
+ export * from './events';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./cursor-query.abstract"), exports);
18
18
  __exportStar(require("./paginated-query.abstract"), exports);
19
19
  __exportStar(require("./remove-gql.response"), exports);
20
+ __exportStar(require("./events"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@aws-sdk/client-s3": "^3.608.0",
21
- "@maioradv/accounts-lib": "^1.1.6",
21
+ "@maioradv/accounts-lib": "^1.2.0",
22
22
  "@nestjs/cache-manager": "^2.2.2",
23
23
  "@nestjs/common": "^10.3.8",
24
24
  "@nestjs/config": "^3.2.2",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@aws-sdk/client-s3": "^3.608.0",
51
- "@maioradv/accounts-lib": "^1.1.6",
51
+ "@maioradv/accounts-lib": "^1.2.0",
52
52
  "@nestjs/cache-manager": "^2.2.2",
53
53
  "@nestjs/common": "^10.3.8",
54
54
  "@nestjs/config": "^3.2.2",