@aristid/leav-types 1.1.1-7cde2fa0 → 1.1.1-9047eeef
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/apps/core/config/default.d.ts +1 -0
- package/apps/core/src/_types/config.d.ts +1 -0
- package/apps/core/src/domain/helpers/createDirectory.d.ts +3 -3
- package/libs/monitoring-server/src/index.d.ts +1 -0
- package/libs/monitoring-server/src/monitoringServer.d.ts +12 -0
- package/libs/utils/src/utils.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Config from '_types/config';
|
|
2
|
-
import { IUtils } from 'utils/utils';
|
|
3
|
-
import { IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import type * as Config from '_types/config';
|
|
2
|
+
import { type IUtils } from 'utils/utils';
|
|
3
|
+
import { type IQueryInfos } from '_types/queryInfos';
|
|
4
4
|
export type CreateDirectoryFunc = (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
|
|
5
5
|
interface IDeps {
|
|
6
6
|
config: Config.IConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './monitoringServer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IMonitoringServer {
|
|
2
|
+
init(): Promise<void>;
|
|
3
|
+
close(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export type MonitoringHealthCheckFunction = () => Promise<boolean>;
|
|
6
|
+
export interface IMonitoringServerParams {
|
|
7
|
+
/**
|
|
8
|
+
* Check health of the application. If not provided, the /health endpoint will always return OK.
|
|
9
|
+
*/
|
|
10
|
+
healthCheckFunction?: MonitoringHealthCheckFunction;
|
|
11
|
+
}
|
|
12
|
+
export declare function monitoringServer({ healthCheckFunction }?: IMonitoringServerParams): IMonitoringServer;
|
|
@@ -55,7 +55,7 @@ export declare const slugifyString: (id: string, separator?: "-" | "_") => strin
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const simpleStringHash: (str: string) => number;
|
|
57
57
|
export declare const getFlagByLang: (lang: string) => string;
|
|
58
|
-
export declare const getLogsIndexName: (instanceId: string) => string;
|
|
58
|
+
export declare const getLogsIndexName: (indexPrefix: string, instanceId: string) => string;
|
|
59
59
|
export declare const waitFor: (predicate: () => Promise<boolean> | boolean, options?: {
|
|
60
60
|
timeout?: number;
|
|
61
61
|
interval?: number;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristid/leav-types",
|
|
3
|
-
"version": "1.1.1-
|
|
3
|
+
"version": "1.1.1-9047eeef",
|
|
4
4
|
"description": "Shared Leav types",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tscheck": "",
|
|
7
7
|
"test:ci": "",
|
|
8
8
|
"test:commit": "",
|
|
9
|
-
"publish-types": "npm publish --access public",
|
|
9
|
+
"publish-types": "yarn npm publish --access public",
|
|
10
10
|
"generate": "yarn workspace core build-types && mv ../../apps/core/dist-types/* . && rmdir ../../apps/core/dist-types",
|
|
11
11
|
"get-version": "jq -r '.version' package.json",
|
|
12
12
|
"set-version": "jq --arg v $1 '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "LGPL3",
|
|
15
15
|
"repository": "https://github.com/leav-solutions/leav-engine",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@leav/utils": "
|
|
17
|
+
"@leav/utils": "1.1.1",
|
|
18
18
|
"@types/amqplib": "^0",
|
|
19
19
|
"@types/express": "5.0.0",
|
|
20
20
|
"@types/jest": "29.5.14",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"jest": "29.7.0",
|
|
26
26
|
"winston": "2.4.6"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|