@aneuhold/core-ts-api-lib 3.0.6 → 3.0.7
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/CHANGELOG.md +10 -1
- package/lib/browser.d.ts +2 -1
- package/lib/browser.d.ts.map +1 -1
- package/lib/browser.js.map +1 -1
- package/lib/browser.ts +9 -1
- package/lib/types/ProjectDashboard.d.ts +1 -0
- package/lib/types/ProjectDashboard.d.ts.map +1 -1
- package/lib/types/ProjectDashboard.ts +1 -0
- package/lib/types/WebSocket.d.ts +29 -0
- package/lib/types/WebSocket.d.ts.map +1 -0
- package/lib/types/WebSocket.js +2 -0
- package/lib/types/WebSocket.js.map +1 -0
- package/lib/types/WebSocket.ts +31 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 🔖 [3.0.7] (2025-12-14)
|
|
9
|
+
|
|
10
|
+
### ✅ Added
|
|
11
|
+
- Added websocket types for dashboard communication
|
|
12
|
+
|
|
13
|
+
### 🏗️ Changed
|
|
14
|
+
- Updated dependencies for compatibility
|
|
15
|
+
|
|
16
|
+
|
|
8
17
|
## 🔖 [3.0.6] (2025-12-13)
|
|
9
18
|
|
|
10
19
|
### 🏗️ Changed
|
|
@@ -165,7 +174,7 @@ No direct code changes; version bump for compatibility.
|
|
|
165
174
|
- Updated workflow permissions to allow repository write access
|
|
166
175
|
|
|
167
176
|
<!-- Link References -->
|
|
168
|
-
|
|
177
|
+
[3.0.7]: https://github.com/aneuhold/ts-libs/compare/core-ts-api-lib-v3.0.6...core-ts-api-lib-v3.0.7
|
|
169
178
|
[3.0.6]: https://github.com/aneuhold/ts-libs/compare/core-ts-api-lib-v3.0.5...core-ts-api-lib-v3.0.6
|
|
170
179
|
[3.0.5]: https://github.com/aneuhold/ts-libs/compare/core-ts-api-lib-v3.0.4...core-ts-api-lib-v3.0.5
|
|
171
180
|
[3.0.4]: https://github.com/aneuhold/ts-libs/compare/core-ts-api-lib-v3.0.3...core-ts-api-lib-v3.0.4
|
package/lib/browser.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { AuthValidateUserInput, AuthValidateUserOutput } from './types/Auth
|
|
|
5
5
|
import type { DashboardConfig } from './types/DashboardConfig.js';
|
|
6
6
|
import type { ProjectDashboardInput, ProjectDashboardOptions, ProjectDashboardOutput } from './types/ProjectDashboard.js';
|
|
7
7
|
import type { Translation, Translations } from './types/Translations.js';
|
|
8
|
+
import type { DashboardWebSocketClientToServerEvents, DashboardWebSocketServerToClientEvents, WebSocketHandshakeAuth } from './types/WebSocket.js';
|
|
8
9
|
export { APIService };
|
|
9
|
-
export type { APIResponse, AuthCheckPasswordInput, AuthCheckPasswordOutput, AuthValidateUserInput, AuthValidateUserOutput, DashboardConfig, ProjectDashboardInput, ProjectDashboardOptions, ProjectDashboardOutput, Translation, Translations };
|
|
10
|
+
export type { APIResponse, AuthCheckPasswordInput, AuthCheckPasswordOutput, AuthValidateUserInput, AuthValidateUserOutput, DashboardConfig, DashboardWebSocketClientToServerEvents, DashboardWebSocketServerToClientEvents, ProjectDashboardInput, ProjectDashboardOptions, ProjectDashboardOutput, Translation, Translations, WebSocketHandshakeAuth };
|
|
10
11
|
//# sourceMappingURL=browser.d.ts.map
|
package/lib/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EACV,sCAAsC,EACtC,sCAAsC,EACtC,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,CAAC;AAGtB,YAAY,EACV,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,sCAAsC,EACtC,sCAAsC,EACtC,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,sBAAsB,EACvB,CAAC"}
|
package/lib/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAiB7D,kEAAkE;AAClE,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/lib/browser.ts
CHANGED
|
@@ -9,6 +9,11 @@ import type {
|
|
|
9
9
|
ProjectDashboardOutput
|
|
10
10
|
} from './types/ProjectDashboard.js';
|
|
11
11
|
import type { Translation, Translations } from './types/Translations.js';
|
|
12
|
+
import type {
|
|
13
|
+
DashboardWebSocketClientToServerEvents,
|
|
14
|
+
DashboardWebSocketServerToClientEvents,
|
|
15
|
+
WebSocketHandshakeAuth
|
|
16
|
+
} from './types/WebSocket.js';
|
|
12
17
|
|
|
13
18
|
// Export all browser-safe functions and classes from this library
|
|
14
19
|
export { APIService };
|
|
@@ -21,9 +26,12 @@ export type {
|
|
|
21
26
|
AuthValidateUserInput,
|
|
22
27
|
AuthValidateUserOutput,
|
|
23
28
|
DashboardConfig,
|
|
29
|
+
DashboardWebSocketClientToServerEvents,
|
|
30
|
+
DashboardWebSocketServerToClientEvents,
|
|
24
31
|
ProjectDashboardInput,
|
|
25
32
|
ProjectDashboardOptions,
|
|
26
33
|
ProjectDashboardOutput,
|
|
27
34
|
Translation,
|
|
28
|
-
Translations
|
|
35
|
+
Translations,
|
|
36
|
+
WebSocketHandshakeAuth
|
|
29
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDashboard.d.ts","sourceRoot":"","sources":["../../src/types/ProjectDashboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,OAAO,EACR,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB;;;WAGG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB;;WAEG;QACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B;;WAEG;QACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;KAClC,CAAC;IACF,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;QACxB;;WAEG;QACH,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAC3C;;WAEG;QACH,sBAAsB,CAAC,EAAE,qBAAqB,EAAE,CAAC;KAClD,CAAC;IACF,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;QACjC;;WAEG;QACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;QACxB;;WAEG;QACH,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAC3C;;WAEG;QACH,sBAAsB,CAAC,EAAE,qBAAqB,EAAE,CAAC;KAClD,CAAC;IACF,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;KACzB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectDashboard.d.ts","sourceRoot":"","sources":["../../src/types/ProjectDashboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,k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AC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,sBAAsB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAClD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
2
|
+
import type { ProjectDashboardOutput } from './ProjectDashboard.js';
|
|
3
|
+
/**
|
|
4
|
+
* The data each client is expected to send over with a request. For example on the client side:
|
|
5
|
+
*
|
|
6
|
+
* ```
|
|
7
|
+
const socket = io('http://localhost:8080', {
|
|
8
|
+
auth: {
|
|
9
|
+
apiKey: 'your-api-key' // Replace with your actual API key
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export type WebSocketHandshakeAuth = {
|
|
15
|
+
apiKey?: UUID;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Nothing for now, except a test event if wanted.
|
|
19
|
+
*/
|
|
20
|
+
export type DashboardWebSocketClientToServerEvents = {
|
|
21
|
+
test: (data: string) => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The events that the server can send to clients.
|
|
25
|
+
*/
|
|
26
|
+
export type DashboardWebSocketServerToClientEvents = {
|
|
27
|
+
rootPostResult: (data: ProjectDashboardOutput) => void;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=WebSocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebSocket.d.ts","sourceRoot":"","sources":["../../src/types/WebSocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,IAAI,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,cAAc,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebSocket.js","sourceRoot":"","sources":["../../src/types/WebSocket.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
2
|
+
import type { ProjectDashboardOutput } from './ProjectDashboard.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The data each client is expected to send over with a request. For example on the client side:
|
|
6
|
+
*
|
|
7
|
+
* ```
|
|
8
|
+
const socket = io('http://localhost:8080', {
|
|
9
|
+
auth: {
|
|
10
|
+
apiKey: 'your-api-key' // Replace with your actual API key
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export type WebSocketHandshakeAuth = {
|
|
16
|
+
apiKey?: UUID;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Nothing for now, except a test event if wanted.
|
|
21
|
+
*/
|
|
22
|
+
export type DashboardWebSocketClientToServerEvents = {
|
|
23
|
+
test: (data: string) => void;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The events that the server can send to clients.
|
|
28
|
+
*/
|
|
29
|
+
export type DashboardWebSocketServerToClientEvents = {
|
|
30
|
+
rootPostResult: (data: ProjectDashboardOutput) => void;
|
|
31
|
+
};
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@aneuhold/core-ts-api-lib",
|
|
3
3
|
"author": "Anton G. Neuhold Jr.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.7",
|
|
6
6
|
"description": "A library for interacting with the backend and defining the backend API for personal projects.",
|
|
7
|
-
"packageManager": "pnpm@10.
|
|
7
|
+
"packageManager": "pnpm@10.25.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "rimraf lib && pnpm build:withoutClean",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"TypeScript"
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@aneuhold/core-ts-db-lib": "^4.0.
|
|
75
|
-
"@aneuhold/core-ts-lib": "^2.3.
|
|
74
|
+
"@aneuhold/core-ts-db-lib": "^4.0.3",
|
|
75
|
+
"@aneuhold/core-ts-lib": "^2.3.15",
|
|
76
76
|
"bson": "^7.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@aneuhold/local-npm-registry": "^0.2.
|
|
79
|
+
"@aneuhold/local-npm-registry": "^0.2.22",
|
|
80
80
|
"@aneuhold/main-scripts": "^2.8.0",
|
|
81
|
-
"@types/node": "^
|
|
82
|
-
"eslint": "^9.39.
|
|
81
|
+
"@types/node": "^25.0.2",
|
|
82
|
+
"eslint": "^9.39.2",
|
|
83
83
|
"jsr": "^0.13.5",
|
|
84
84
|
"prettier": "^3.7.4",
|
|
85
85
|
"rimraf": "^6.1.2",
|