@biorate/nestjs-tools 1.166.1 → 1.167.0
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
|
|
113
|
+
public execute(lang: string, namespace: string): Promise<void>;
|
|
120
114
|
}
|
|
121
115
|
|
|
122
116
|
export class GetMetricsUseCase {
|
|
123
|
-
public
|
|
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(
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export type CrudCreateDrivenPort<E> = {
|
|
2
|
-
create(data: E): Promise<E>;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
1
|
export type CrudFindOneDrivenPort<E, I> = {
|
|
6
2
|
findOne(id: I): Promise<E>;
|
|
7
3
|
};
|
|
@@ -27,7 +23,7 @@ export type CrudInsertOneDrivenPort<E> = {
|
|
|
27
23
|
};
|
|
28
24
|
|
|
29
25
|
export type CrudInsertManyDrivenPort<E, R = E[]> = {
|
|
30
|
-
|
|
26
|
+
insertMany(items: E[]): Promise<R>;
|
|
31
27
|
};
|
|
32
28
|
|
|
33
29
|
export type CrudDeleteOneDrivenPort<I, R = boolean> = {
|
|
@@ -49,8 +45,7 @@ export type CrudDrivenPort<
|
|
|
49
45
|
UpdateData = Entity,
|
|
50
46
|
DeleteOneResult = boolean,
|
|
51
47
|
DeleteManyResult = number,
|
|
52
|
-
> =
|
|
53
|
-
CrudFindOneDrivenPort<Entity, Id> &
|
|
48
|
+
> = CrudFindOneDrivenPort<Entity, Id> &
|
|
54
49
|
CrudFindManyDrivenPort<Entity, FindManyFilter, FindManyresult> &
|
|
55
50
|
CrudUpdateOneDrivenPort<Entity, Id, UpdateData> &
|
|
56
51
|
CrudUpdateManyDrivenPort<Entity, UpdateManyCriteria, UpdateData[]> &
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biorate/nestjs-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.167.0",
|
|
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": "
|
|
48
|
+
"gitHead": "9f68447a0ecf03404ac1cb57ba6d4e740fced0b0",
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/json-stringify-safe": "5.0.3"
|
|
51
51
|
}
|