Skip to content

Commit

Permalink
CI: Remove temp fix & Generated files.
Browse files Browse the repository at this point in the history
* Remove temp fix from GitHub action after fixing the main issue in
  build CLI
* Generated files with same content as before but without the formatting
  fixes.
  • Loading branch information
AmmarAbouZor committed Jan 3, 2025
1 parent 96d1c30 commit 5c696d3
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 128 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pullrequest_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ jobs:
run: cargo install --path=cli
- name: install wasm-pack
run: cargo install wasm-pack
- name: Build
run: cargo chipmunk build wrapper -u immediate
- name: Execute tests
timeout-minutes: 30
env:
Expand Down
227 changes: 101 additions & 126 deletions application/apps/indexer/stypes/bindings/observe.ts
Original file line number Diff line number Diff line change
@@ -1,182 +1,157 @@
/**
* ATTENTION:
* REFERENCE TO `DltFilterConfig` HAS BEEN ADDED MANUALLY
* BECAUSE THIS TYPE IS NOT GENERATED BY `ts_rs`.
*/
import { DltFilterConfig } from './dlt';

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

/**
* Settings for the DLT parser.
*/
export type DltParserSettings = {
/**
* Configuration for filtering DLT messages.
*/
filter_config: DltFilterConfig;
/**
* Paths to FIBEX files for additional interpretation of `payload` content.
*/
fibex_file_paths: Array<string> | null;
/**
* Indicates whether the source contains a `StorageHeader`. Set to `true` if applicable.
*/
with_storage_header: boolean;
/**
* Timezone for timestamp adjustment. If specified, timestamps are converted to this timezone.
*/
tz: string | null;
};
export type DltParserSettings = {
/**
* Configuration for filtering DLT messages.
*/
filter_config: DltFilterConfig,
/**
* Paths to FIBEX files for additional interpretation of `payload` content.
*/
fibex_file_paths: Array<string> | null,
/**
* Indicates whether the source contains a `StorageHeader`. Set to `true` if applicable.
*/
with_storage_header: boolean,
/**
* Timezone for timestamp adjustment. If specified, timestamps are converted to this timezone.
*/
tz: string | null, };

/**
* Supported file formats for observation.
*/
export type FileFormat = 'PcapNG' | 'PcapLegacy' | 'Text' | 'Binary';
export type FileFormat = "PcapNG" | "PcapLegacy" | "Text" | "Binary";

/**
* Multicast configuration information.
* - `multiaddr`: A valid multicast address.
* - `interface`: The address of the local interface used to join the multicast group.
* If set to `INADDR_ANY`, the system selects an appropriate interface.
*/
export type MulticastInfo = { multiaddr: string; interface: string | null };
export type MulticastInfo = { multiaddr: string, interface: string | null, };

/**
* Options for observing data within a session.
*/
export type ObserveOptions = {
/**
* The description of the data source.
*/
origin: ObserveOrigin;
/**
* The parser configuration to be applied.
*/
parser: ParserType;
};
export type ObserveOptions = {
/**
* The description of the data source.
*/
origin: ObserveOrigin,
/**
* The parser configuration to be applied.
*/
parser: ParserType, };

/**
* Describes the source of data for observation.
*/
export type ObserveOrigin =
| { File: [string, FileFormat, string] }
| { Concat: Array<[string, FileFormat, string]> }
| { Stream: [string, Transport] };
export type ObserveOrigin = { "File": [string, FileFormat, string] } | { "Concat": Array<[string, FileFormat, string]> } | { "Stream": [string, Transport] };

/**
* Specifies the parser to be used for processing session data.
*/
export type ParserType =
| { Dlt: DltParserSettings }
| { SomeIp: SomeIpParserSettings }
| { Text: null };
export type ParserType = { "Dlt": DltParserSettings } | { "SomeIp": SomeIpParserSettings } | { "Text": null };

/**
* Configuration for executing terminal commands.
*/
export type ProcessTransportConfig = {
/**
* The working directory for the command.
*/
cwd: string;
/**
* The command to execute.
*/
command: string;
/**
* Environment variables. If empty, the default environment variables are used.
*/
envs: Map<string, string>;
};
export type ProcessTransportConfig = {
/**
* The working directory for the command.
*/
cwd: string,
/**
* The command to execute.
*/
command: string,
/**
* Environment variables. If empty, the default environment variables are used.
*/
envs: Map<string, string>, };

/**
* Configuration for serial port connections.
*/
export type SerialTransportConfig = {
/**
* The path to the serial port.
*/
path: string;
/**
* The baud rate for the connection.
*/
baud_rate: number;
/**
* The number of data bits per frame.
*/
data_bits: number;
/**
* The flow control setting.
*/
flow_control: number;
/**
* The parity setting.
*/
parity: number;
/**
* The number of stop bits.
*/
stop_bits: number;
/**
* The delay in sending data, in milliseconds.
*/
send_data_delay: number;
/**
* Whether the connection is exclusive.
*/
exclusive: boolean;
};
export type SerialTransportConfig = {
/**
* The path to the serial port.
*/
path: string,
/**
* The baud rate for the connection.
*/
baud_rate: number,
/**
* The number of data bits per frame.
*/
data_bits: number,
/**
* The flow control setting.
*/
flow_control: number,
/**
* The parity setting.
*/
parity: number,
/**
* The number of stop bits.
*/
stop_bits: number,
/**
* The delay in sending data, in milliseconds.
*/
send_data_delay: number,
/**
* Whether the connection is exclusive.
*/
exclusive: boolean, };

/**
* Settings for the SomeIp parser.
*/
export type SomeIpParserSettings = {
/**
* Paths to FIBEX files for additional interpretation of `payload` content.
*/
fibex_file_paths: Array<string> | null;
};
export type SomeIpParserSettings = {
/**
* Paths to FIBEX files for additional interpretation of `payload` content.
*/
fibex_file_paths: Array<string> | null, };

/**
* Configuration for TCP connections.
*/
export type TCPTransportConfig = {
/**
* The address to bind the TCP connection to.
*/
bind_addr: string;
};
export type TCPTransportConfig = {
/**
* The address to bind the TCP connection to.
*/
bind_addr: string, };

/**
* Describes the transport source for a session.
*/
export type Transport =
| { Process: ProcessTransportConfig }
| { TCP: TCPTransportConfig }
| { UDP: UDPTransportConfig }
| { Serial: SerialTransportConfig };
export type Transport = { "Process": ProcessTransportConfig } | { "TCP": TCPTransportConfig } | { "UDP": UDPTransportConfig } | { "Serial": SerialTransportConfig };

/**
* Configuration for UDP connections.
*/
export type UDPTransportConfig = {
/**
* The address to bind the UDP connection to.
*/
bind_addr: string;
/**
* A list of multicast configurations.
*/
multicast: Array<MulticastInfo>;
};
export type UDPTransportConfig = {
/**
* The address to bind the UDP connection to.
*/
bind_addr: string,
/**
* A list of multicast configurations.
*/
multicast: Array<MulticastInfo>, };

/**
* Configuration for UDP connections.
*/
export type UdpConnectionInfo = {
/**
* A list of multicast addresses to listen on.
*/
multicast_addr: Array<MulticastInfo>;
};
export type UdpConnectionInfo = {
/**
* A list of multicast addresses to listen on.
*/
multicast_addr: Array<MulticastInfo>, };

0 comments on commit 5c696d3

Please sign in to comment.