@biorate/nestjs-tools 1.166.0 → 1.166.2

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/index.d.ts CHANGED
@@ -96,12 +96,6 @@ declare module '@biorate/nestjs-tools' {
96
96
  protected post(param: PostLocalesDTO, body: Record<string, string>): Promise<void>;
97
97
  }
98
98
 
99
- export class MetricsController {
100
- protected prometheus: IPrometheus;
101
-
102
- protected metrics(): Promise<string>;
103
- }
104
-
105
99
  export class ProbeController {
106
100
  protected readiness(): number;
107
101
 
@@ -116,11 +110,11 @@ declare module '@biorate/nestjs-tools' {
116
110
  }
117
111
 
118
112
  export class SetLocaleUseCase {
119
- public async execute(lang: string, namespace: string): Promise<void>;
113
+ public execute(lang: string, namespace: string): Promise<void>;
120
114
  }
121
115
 
122
116
  export class GetMetricsUseCase {
123
- public async execute(): Promise<string>;
117
+ public execute(): Promise<string>;
124
118
  }
125
119
 
126
120
  export class ClientRepositoryAdapter implements ClientDrivenPort {
@@ -151,6 +145,7 @@ declare module '@biorate/nestjs-tools' {
151
145
  protected metrics(): Promise<void>;
152
146
  }
153
147
 
148
+ // @ts-ignore
154
149
  export const controllers = { ClientController, MetricsController, ProbeController };
155
150
 
156
151
  export function corsOriginHandler(
@@ -27,7 +27,7 @@ export type CrudInsertOneDrivenPort<E> = {
27
27
  };
28
28
 
29
29
  export type CrudInsertManyDrivenPort<E, R = E[]> = {
30
- insertOne(items: E[]): Promise<R>;
30
+ insertMany(items: E[]): Promise<R>;
31
31
  };
32
32
 
33
33
  export type CrudDeleteOneDrivenPort<I, R = boolean> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biorate/nestjs-tools",
3
- "version": "1.166.0",
3
+ "version": "1.166.2",
4
4
  "description": "NestJS tools",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -45,7 +45,7 @@
45
45
  "json-stringify-safe": "5.0.1",
46
46
  "on-headers": "1.0.2"
47
47
  },
48
- "gitHead": "0126537d1b25654e1216019fb9f25cf248aac213",
48
+ "gitHead": "7b48ede9af46b8cc975d588d44b7a77bb19411dd",
49
49
  "devDependencies": {
50
50
  "@types/json-stringify-safe": "5.0.3"
51
51
  }
@@ -1,5 +1,5 @@
1
- import { tap, catchError } from 'rxjs';
2
1
  import stringify from 'json-stringify-safe';
2
+ import { tap, catchError } from 'rxjs';
3
3
  import { trace, Span } from '@biorate/opentelemetry';
4
4
  import {
5
5
  Injectable,
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore
2
- import * as onHeaders from 'on-headers';
2
+ import onHeaders from 'on-headers';
3
3
  import { Injectable, NestMiddleware } from '@nestjs/common';
4
4
  import { counter, Counter } from '@biorate/prometheus';
5
5
  import { inject, Types } from '@biorate/inversion';
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore
2
- import * as onHeaders from 'on-headers';
2
+ import onHeaders from 'on-headers';
3
3
  import { Injectable, NestMiddleware } from '@nestjs/common';
4
4
  import { inject, Types } from '@biorate/inversion';
5
5
  import { IConfig } from '@biorate/config';