Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
464c77f
feat: implement basic proto file
OmegaCreations Jun 8, 2025
268a99a
feat: Duplex stream with specific payload message events.
OmegaCreations Jun 10, 2025
7b7888a
feat: Duplex stream with specific payload message events.
OmegaCreations Jun 10, 2025
6373548
feat: Create typescript interfaces for duplex stream message model
OmegaCreations Jun 10, 2025
255e567
feat: Add description to typescript interfaces
OmegaCreations Jun 10, 2025
7edca58
feat: implement serialization and deserialization methods
OmegaCreations Jun 10, 2025
0485204
feat: add package dependencies and write unit tests for serialization…
OmegaCreations Jun 10, 2025
58666d5
fix: fixed oneof variable naming
OmegaCreations Jun 10, 2025
0118271
feat: Duplex stream with specific payload message events.
OmegaCreations Jun 10, 2025
7c5d552
feat: Create typescript interfaces for duplex stream message model
OmegaCreations Jun 10, 2025
4b18459
feat: implement serialization and deserialization methods
OmegaCreations Jun 10, 2025
dba904c
feat: add package dependencies and write unit tests for serialization…
OmegaCreations Jun 10, 2025
273b8e2
feat: Create grpc wrapper with basic connection manager and central s…
OmegaCreations Jun 10, 2025
6467c55
fix: fix grpc addresses to properly connect both client and central s…
OmegaCreations Jun 10, 2025
1a86d49
fix: refactor comments
OmegaCreations Jun 11, 2025
bec195c
fix: change central system class name to avoid conflicts with central…
OmegaCreations Jun 11, 2025
c6a3f01
feat: implement Connection class and a map storing all receiving and …
OmegaCreations Jun 11, 2025
fb12e55
feat: implement replacing new token for client from central system
OmegaCreations Jun 11, 2025
63faee3
feat: implement token revokation by changing connection status
OmegaCreations Jun 11, 2025
456bf84
fix: remove unnecessary params
OmegaCreations Jun 11, 2025
93c3a51
fix: fix enum naming
OmegaCreations Jun 17, 2025
ff0faf0
fix: fix proto types order based on Bookkeeping standards
OmegaCreations Jun 17, 2025
d207f78
Merge branch 'feature/TKN/OGUI-1702/basic-proto-file' of github.com:A…
OmegaCreations Jun 17, 2025
fb6c39c
fix: add copyright banner
OmegaCreations Jun 17, 2025
8106fe1
Merge branch 'feature/TKN/OGUI-1702/basic-proto-file' of github.com:A…
OmegaCreations Jun 17, 2025
72042c8
fix: add copyright banner and change enum naming convention
OmegaCreations Jun 17, 2025
d762f9f
Merge branch 'feature/TKN/OGUI-1703/basic-typescript-interfaces' of g…
OmegaCreations Jun 17, 2025
b70cf9e
fix: fix serialization comments and tests
OmegaCreations Jun 17, 2025
aff4c59
Merge branch 'feature/TKN/OGUI-1704/data-serialization-utils' of gith…
OmegaCreations Jun 17, 2025
9de3ce5
Merge branch 'dev' into feature/TKN/OGUI-1703/basic-typescript-interf…
graduta Jun 18, 2025
bdba63d
feat: add description comments and implement .listen() instead of aut…
OmegaCreations Jul 8, 2025
326eea5
fix: change enum values to numbers
OmegaCreations Jul 8, 2025
4011499
Merge branch 'feature/TKN/OGUI-1703/basic-typescript-interfaces' of g…
OmegaCreations Jul 8, 2025
5857652
fix: move test directory
OmegaCreations Jul 8, 2025
54447ea
feat: add webui logger instead of console logs and fix paths
OmegaCreations Jul 8, 2025
af429ce
Merge branch 'feature/TKN/OGUI-1703/basic-typescript-interfaces' of g…
OmegaCreations Jul 8, 2025
9db612e
feat: write tests for central system and connection manager
OmegaCreations Jul 9, 2025
ec193ca
Merge branch 'feature/TKN/OGUI-1705/client-central-basic-stream' of g…
OmegaCreations Jul 9, 2025
d0f4dad
feat: muldularize connection management. Add project building.
OmegaCreations Jul 10, 2025
b4a0bf9
fix: fix connection and remove exponential backoff for simplified ver…
OmegaCreations Jul 10, 2025
8d9c89a
fix: test setup fixes
OmegaCreations Jul 20, 2025
1081941
Merge branch 'feature/TKN/OGUI-1708/basic-connection-class' of github…
OmegaCreations Jul 20, 2025
b6695a4
fix: fix tscofing for js builds and typescript files/tests runtime
OmegaCreations Jul 28, 2025
e79215c
feat: refactor code for command design pattern
OmegaCreations Aug 4, 2025
90d713d
feat: unit tests for token revokation
OmegaCreations Aug 4, 2025
e079438
feat: implement token revokation logic and testing
OmegaCreations Aug 5, 2025
5527944
feat: implement connection direction info inside of payload
OmegaCreations Aug 5, 2025
090da6b
fix: fix tests
OmegaCreations Aug 7, 2025
ef57875
Merge branch 'dev' of github.com:AliceO2Group/WebUi into feature/TKN/…
OmegaCreations Oct 31, 2025
cd7545d
fix: rename invalid test
OmegaCreations Oct 31, 2025
bb2f40f
fix: remove package lock
OmegaCreations Oct 31, 2025
34f7b3c
fix: remove serialization utils
OmegaCreations Oct 31, 2025
5a4cbb0
fix: remove duplicates
OmegaCreations Oct 31, 2025
f28098d
fix: move .proto file. Use setters and getters
OmegaCreations Nov 4, 2025
2ed4d19
Merge branch 'dev' into feature/TKN/OGUI-1709/handle-rejecting-token
OmegaCreations Nov 4, 2025
ac83d78
Merge branch 'dev' into feature/TKN/OGUI-1709/handle-rejecting-token
graduta Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ message EmptyMessage {}
message Token {
string token = 1;
string targetAddress = 2;
ConnectionDirection connectionDirection = 3;
}

// Stream message that can contain one of specific messages
message Payload {
// Message event type
MessageEvent event = 1;

// Data related to specific event type
oneof data {
EmptyMessage emptyMessage = 2;
Token newToken = 3;
Token revokeToken = 4;
Token payload = 3;
}
}

Expand All @@ -63,3 +64,14 @@ enum MessageEvent {
// Revoke token message type, contains a token to be revoked
MESSAGE_EVENT_REVOKE_TOKEN = 2;
}

enum ConnectionDirection {
// Direction from client to server
SENDING = 1;

// Direction from server to client
RECEIVING = 2;

// Duplex connection, both sending and receiving
DUPLEX = 3;
}
113 changes: 0 additions & 113 deletions Tokenization/backend/wrapper/central/CentralSystemWrapper.ts

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions Tokenization/backend/wrapper/jest.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions Tokenization/backend/wrapper/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/test/**/*.test.ts"],
moduleFileExtensions: ["ts", "js", "json"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
},
};

export default config;
29 changes: 0 additions & 29 deletions Tokenization/backend/wrapper/models/config.model.ts

This file was deleted.

10 changes: 4 additions & 6 deletions Tokenization/backend/wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"name": "grpc-wrapper",
"version": "1.0.0",
"type": "module",
"type": "commonjs",
"scripts": {
"test": "jest",
"build": "tsc && tsc-alias --resolve-full-paths && cp -r proto dist",
"start-client": "node dist/client/gRPCWrapper.js",
"start-central": "node dist/central/CentralSystem.js",
"dev-client": "ts-node-esm client/gRPCWrapper.ts",
"dev-central": "ts-node-esm central/CentralSystem.ts"
"build": "tsc -p tsconfig.build.json && cp -r src/proto dist",
"client": "node dist/client/gRPCWrapper.js",
"central": "node dist/central/CentralSystem.js"
},
"author": "ALICEO2",
"devDependencies": {
Expand Down
Loading