@mcesystems/logging-g4 1.0.78 → 1.0.79

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.
@@ -1,3 +1,30 @@
1
- export { LogClient } from "./logic/logClient";
2
- export type { LogSendResult } from "./types/logSendResult";
3
- //# sourceMappingURL=index.d.ts.map
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { UploadEventsInput } from '@mcesystems/logging-interfaces/lib/sdk';
4
+
5
+ export type LogSendResult = "success" | "MAX_OFFLINE_TIME passed" | "delayed";
6
+ export declare class LogClient {
7
+ private credentials;
8
+ private loggingClient;
9
+ private cachedEvents;
10
+ private initialized;
11
+ private firstOfflineTime;
12
+ private sendTimeoutId;
13
+ private timeBetweenLogMs;
14
+ private maxOfflineTimeMs;
15
+ private pendingEventsPath;
16
+ private sendInProgress;
17
+ private schedulerStarted;
18
+ init(): Promise<void>;
19
+ private scheduleNextRun;
20
+ private runScheduledSend;
21
+ private sendBatch;
22
+ logEvent(event: Omit<UploadEventsInput["events"][number], "event_id" | "event_time" | "framework_id" | "event_source">): Promise<LogSendResult>;
23
+ }
24
+ type LogSendResult$1 = "success" | "MAX_OFFLINE_TIME passed" | "delayed";
25
+
26
+ export {
27
+ LogSendResult$1 as LogSendResult,
28
+ };
29
+
30
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/logging-g4",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "Logging toolkit for device management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,14 +26,15 @@
26
26
  "dotenv": "^17.2.3",
27
27
  "tsx": "^4.21.0",
28
28
  "uuid": "^13.0.0",
29
- "@mcesystems/auth-g4": "1.0.78",
30
- "@mcesystems/tool-debug-g4": "1.0.78"
29
+ "@mcesystems/auth-g4": "1.0.79",
30
+ "@mcesystems/tool-debug-g4": "1.0.79"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@mcesystems/logging-interfaces": "^3.163.4",
34
34
  "@types/node": "^22.10.2",
35
35
  "cross-env": "^10.1.0",
36
36
  "esbuild": "^0.27.0",
37
+ "esbuild-plugin-d.ts": "^1.3.1",
37
38
  "rimraf": "^6.0.1",
38
39
  "typescript": "^5.7.2",
39
40
  "vitest": "^2.1.8"
@@ -44,7 +45,7 @@
44
45
  "Example.md"
45
46
  ],
46
47
  "scripts": {
47
- "build": "tsx esbuild.config.mts && tsc --emitDeclarationOnly",
48
+ "build": "tsx esbuild.config.mts",
48
49
  "build:all": "pnpm --filter @mcesystems/logging-g4... build",
49
50
  "check:types": "tsc --noEmit",
50
51
  "clean": "rimraf dist",