@csselectronics/rest-client 0.0.0-stage → 0.1.0

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.
Files changed (45) hide show
  1. package/LICENSE +36 -0
  2. package/README.md +46 -2
  3. package/config/DeviceConfig.d.ts +44 -0
  4. package/config/DeviceConfig.js +4 -0
  5. package/createApiClient.d.ts +11 -0
  6. package/createApiClient.js +2 -0
  7. package/descriptions/ApiDescriptions.d.ts +6 -0
  8. package/descriptions/ApiDescriptions.js +2 -0
  9. package/generated/apis/DefaultApi.d.ts +316 -0
  10. package/generated/apis/DefaultApi.js +2 -0
  11. package/generated/apis/index.d.ts +1 -0
  12. package/generated/apis/index.js +2 -0
  13. package/generated/index.d.ts +3 -0
  14. package/generated/index.js +2 -0
  15. package/generated/models/ApiInfoGet200Response.d.ts +56 -0
  16. package/generated/models/ApiInfoGet200Response.js +2 -0
  17. package/generated/models/ApiTimePtpGet200Response.d.ts +54 -0
  18. package/generated/models/ApiTimePtpGet200Response.js +2 -0
  19. package/generated/models/Bittiming.d.ts +50 -0
  20. package/generated/models/Bittiming.js +2 -0
  21. package/generated/models/Filter.d.ts +56 -0
  22. package/generated/models/Filter.js +2 -0
  23. package/generated/models/Frame.d.ts +62 -0
  24. package/generated/models/Frame.js +2 -0
  25. package/generated/models/Phy.d.ts +63 -0
  26. package/generated/models/Phy.js +2 -0
  27. package/generated/models/Status.d.ts +79 -0
  28. package/generated/models/Status.js +2 -0
  29. package/generated/models/Time.d.ts +38 -0
  30. package/generated/models/Time.js +2 -0
  31. package/generated/models/TransmitSequence.d.ts +57 -0
  32. package/generated/models/TransmitSequence.js +2 -0
  33. package/generated/models/index.d.ts +9 -0
  34. package/generated/models/index.js +2 -0
  35. package/generated/runtime.d.ts +184 -0
  36. package/generated/runtime.js +2 -0
  37. package/index.d.ts +12 -0
  38. package/index.js +2 -0
  39. package/package.json +32 -4
  40. package/queuedFetch.d.ts +8 -0
  41. package/queuedFetch.js +2 -0
  42. package/utils/BitrateConfigurations.d.ts +91 -0
  43. package/utils/BitrateConfigurations.js +2 -0
  44. package/utils/PhySelection.d.ts +23 -0
  45. package/utils/PhySelection.js +2 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiTimePtpGet200Response
16
+ */
17
+ export interface ApiTimePtpGet200Response {
18
+ /**
19
+ * Clock identity of the PTP master being followed, or null when no master has been detected or synchronization is disabled.
20
+ * @type {string}
21
+ * @memberof ApiTimePtpGet200Response
22
+ */
23
+ master: string | null;
24
+ /**
25
+ * Synchronization state. Disabled: Permanently disabled. Idle: No synchronization information is being received. Initializing: Preparing for tracking. Tracking: Tracking external time.
26
+ * @type {string}
27
+ * @memberof ApiTimePtpGet200Response
28
+ */
29
+ state: ApiTimePtpGet200ResponseStateEnum;
30
+ /**
31
+ * Clock error at the latest measurement, in nanoseconds (positive when the device clock is ahead of the master). Zero when not in the tracking state.
32
+ * @type {number}
33
+ * @memberof ApiTimePtpGet200Response
34
+ */
35
+ offsetNs: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ApiTimePtpGet200ResponseStateEnum: {
41
+ readonly Disabled: "disabled";
42
+ readonly Idle: "idle";
43
+ readonly Initializing: "initializing";
44
+ readonly Tracking: "tracking";
45
+ };
46
+ export type ApiTimePtpGet200ResponseStateEnum = typeof ApiTimePtpGet200ResponseStateEnum[keyof typeof ApiTimePtpGet200ResponseStateEnum];
47
+ /**
48
+ * Check if a given object implements the ApiTimePtpGet200Response interface.
49
+ */
50
+ export declare function instanceOfApiTimePtpGet200Response(value: object): value is ApiTimePtpGet200Response;
51
+ export declare function ApiTimePtpGet200ResponseFromJSON(json: any): ApiTimePtpGet200Response;
52
+ export declare function ApiTimePtpGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTimePtpGet200Response;
53
+ export declare function ApiTimePtpGet200ResponseToJSON(json: any): ApiTimePtpGet200Response;
54
+ export declare function ApiTimePtpGet200ResponseToJSONTyped(value?: ApiTimePtpGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var n=Object.defineProperty;var t=(e,i)=>n(e,"name",{value:i,configurable:!0});const a={Disabled:"disabled",Idle:"idle",Initializing:"initializing",Tracking:"tracking"};function m(e){return!(!("master"in e)||e.master===void 0||!("state"in e)||e.state===void 0||!("offsetNs"in e)||e.offsetNs===void 0)}t(m,"instanceOfApiTimePtpGet200Response");function u(e){return s(e,!1)}t(u,"ApiTimePtpGet200ResponseFromJSON");function s(e,i){return e==null?e:{master:e.master,state:e.state,offsetNs:e.offset_ns}}t(s,"ApiTimePtpGet200ResponseFromJSONTyped");function T(e){return p(e,!1)}t(T,"ApiTimePtpGet200ResponseToJSON");function p(e,i=!1){return e==null?e:{master:e.master,state:e.state,offset_ns:e.offsetNs}}t(p,"ApiTimePtpGet200ResponseToJSONTyped");export{u as ApiTimePtpGet200ResponseFromJSON,s as ApiTimePtpGet200ResponseFromJSONTyped,a as ApiTimePtpGet200ResponseStateEnum,T as ApiTimePtpGet200ResponseToJSON,p as ApiTimePtpGet200ResponseToJSONTyped,m as instanceOfApiTimePtpGet200Response};
@@ -0,0 +1,50 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Bittiming
16
+ */
17
+ export interface Bittiming {
18
+ /**
19
+ * Baud Rate Prescaler.
20
+ * @type {number}
21
+ * @memberof Bittiming
22
+ */
23
+ brp: number;
24
+ /**
25
+ * Phase Segment 1.
26
+ * @type {number}
27
+ * @memberof Bittiming
28
+ */
29
+ seg1: number;
30
+ /**
31
+ * Phase Segment 2.
32
+ * @type {number}
33
+ * @memberof Bittiming
34
+ */
35
+ seg2: number;
36
+ /**
37
+ * Synchronization Jump Width.
38
+ * @type {number}
39
+ * @memberof Bittiming
40
+ */
41
+ sjw: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Bittiming interface.
45
+ */
46
+ export declare function instanceOfBittiming(value: object): value is Bittiming;
47
+ export declare function BittimingFromJSON(json: any): Bittiming;
48
+ export declare function BittimingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bittiming;
49
+ export declare function BittimingToJSON(json: any): Bittiming;
50
+ export declare function BittimingToJSONTyped(value?: Bittiming | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var r=Object.defineProperty;var n=(i,e)=>r(i,"name",{value:e,configurable:!0});function o(i){return!(!("brp"in i)||i.brp===void 0||!("seg1"in i)||i.seg1===void 0||!("seg2"in i)||i.seg2===void 0||!("sjw"in i)||i.sjw===void 0)}n(o,"instanceOfBittiming");function u(i){return t(i,!1)}n(u,"BittimingFromJSON");function t(i,e){return i==null?i:{brp:i.brp,seg1:i.seg1,seg2:i.seg2,sjw:i.sjw}}n(t,"BittimingFromJSONTyped");function p(i){return s(i,!1)}n(p,"BittimingToJSON");function s(i,e=!1){return i==null?i:{brp:i.brp,seg1:i.seg1,seg2:i.seg2,sjw:i.sjw}}n(s,"BittimingToJSONTyped");export{u as BittimingFromJSON,t as BittimingFromJSONTyped,p as BittimingToJSON,s as BittimingToJSONTyped,o as instanceOfBittiming};
@@ -0,0 +1,56 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Filter
16
+ */
17
+ export interface Filter {
18
+ /**
19
+ * Optional user-defined label.
20
+ * @type {string}
21
+ * @memberof Filter
22
+ */
23
+ label?: string;
24
+ /**
25
+ * True for an extended (29-bit) ID, false for a standard (11-bit) ID.
26
+ * @type {boolean}
27
+ * @memberof Filter
28
+ */
29
+ isExtended: boolean;
30
+ /**
31
+ * True if the filter is a range filter, false if it is a mask filter.
32
+ * @type {boolean}
33
+ * @memberof Filter
34
+ */
35
+ isRange: boolean;
36
+ /**
37
+ * When is_range=false: filter ID. When is_range=true: range start.
38
+ * @type {number}
39
+ * @memberof Filter
40
+ */
41
+ f1: number;
42
+ /**
43
+ * When is_range=false: filter mask. When is_range=true: range end.
44
+ * @type {number}
45
+ * @memberof Filter
46
+ */
47
+ f2: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Filter interface.
51
+ */
52
+ export declare function instanceOfFilter(value: object): value is Filter;
53
+ export declare function FilterFromJSON(json: any): Filter;
54
+ export declare function FilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Filter;
55
+ export declare function FilterToJSON(json: any): Filter;
56
+ export declare function FilterToJSONTyped(value?: Filter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var r=Object.defineProperty;var n=(e,i)=>r(e,"name",{value:i,configurable:!0});function a(e){return!(!("isExtended"in e)||e.isExtended===void 0||!("isRange"in e)||e.isRange===void 0||!("f1"in e)||e.f1===void 0||!("f2"in e)||e.f2===void 0)}n(a,"instanceOfFilter");function s(e){return t(e,!1)}n(s,"FilterFromJSON");function t(e,i){return e==null?e:{label:e.label==null?void 0:e.label,isExtended:e.is_extended,isRange:e.is_range,f1:e.f1,f2:e.f2}}n(t,"FilterFromJSONTyped");function u(e){return f(e,!1)}n(u,"FilterToJSON");function f(e,i=!1){return e==null?e:{label:e.label,is_extended:e.isExtended,is_range:e.isRange,f1:e.f1,f2:e.f2}}n(f,"FilterToJSONTyped");export{s as FilterFromJSON,t as FilterFromJSONTyped,u as FilterToJSON,f as FilterToJSONTyped,a as instanceOfFilter};
@@ -0,0 +1,62 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Frame
16
+ */
17
+ export interface Frame {
18
+ /**
19
+ * Optional user-defined label.
20
+ * @type {string}
21
+ * @memberof Frame
22
+ */
23
+ label?: string;
24
+ /**
25
+ * True for an extended (29-bit) ID, false for a standard (11-bit) ID.
26
+ * @type {boolean}
27
+ * @memberof Frame
28
+ */
29
+ isExtended: boolean;
30
+ /**
31
+ * True for a CAN FD frame, false for a classic CAN frame.
32
+ * @type {boolean}
33
+ * @memberof Frame
34
+ */
35
+ isFd: boolean;
36
+ /**
37
+ * RTR for classic CAN, BRS (Bit Rate Switch) for CAN-FD.
38
+ * @type {boolean}
39
+ * @memberof Frame
40
+ */
41
+ isRtrBrs: boolean;
42
+ /**
43
+ * Frame identifier.
44
+ * @type {number}
45
+ * @memberof Frame
46
+ */
47
+ id: number;
48
+ /**
49
+ * Hexadecimal encoded data payload. Empty string for no data bytes. For RTR frames, dummy bytes set the frame length.
50
+ * @type {string}
51
+ * @memberof Frame
52
+ */
53
+ data: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the Frame interface.
57
+ */
58
+ export declare function instanceOfFrame(value: object): value is Frame;
59
+ export declare function FrameFromJSON(json: any): Frame;
60
+ export declare function FrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Frame;
61
+ export declare function FrameToJSON(json: any): Frame;
62
+ export declare function FrameToJSONTyped(value?: Frame | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var n=Object.defineProperty;var r=(e,i)=>n(e,"name",{value:i,configurable:!0});function o(e){return!(!("isExtended"in e)||e.isExtended===void 0||!("isFd"in e)||e.isFd===void 0||!("isRtrBrs"in e)||e.isRtrBrs===void 0||!("id"in e)||e.id===void 0||!("data"in e)||e.data===void 0)}r(o,"instanceOfFrame");function l(e){return t(e,!1)}r(l,"FrameFromJSON");function t(e,i){return e==null?e:{label:e.label==null?void 0:e.label,isExtended:e.is_extended,isFd:e.is_fd,isRtrBrs:e.is_rtr_brs,id:e.id,data:e.data}}r(t,"FrameFromJSONTyped");function m(e){return d(e,!1)}r(m,"FrameToJSON");function d(e,i=!1){return e==null?e:{label:e.label,is_extended:e.isExtended,is_fd:e.isFd,is_rtr_brs:e.isRtrBrs,id:e.id,data:e.data}}r(d,"FrameToJSONTyped");export{l as FrameFromJSON,t as FrameFromJSONTyped,m as FrameToJSON,d as FrameToJSONTyped,o as instanceOfFrame};
@@ -0,0 +1,63 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Bittiming } from './Bittiming.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Phy
17
+ */
18
+ export interface Phy {
19
+ /**
20
+ * Enables listen-only mode.
21
+ * @type {boolean}
22
+ * @memberof Phy
23
+ */
24
+ listenOnly: boolean;
25
+ /**
26
+ * Enables automatic bus-off recovery.
27
+ * @type {boolean}
28
+ * @memberof Phy
29
+ */
30
+ autoReset: boolean;
31
+ /**
32
+ * Enables monitoring of error frames (bus error, stuffing error, etc.).
33
+ * @type {boolean}
34
+ * @memberof Phy
35
+ */
36
+ errorFrames: boolean;
37
+ /**
38
+ * Enables transmission acknowledgements. When enabled, an acknowledgement is sent to the client via the WebSocket for each successfully transmitted frame. Disabling reduces network data usage.
39
+ * @type {boolean}
40
+ * @memberof Phy
41
+ */
42
+ txAckFrames: boolean;
43
+ /**
44
+ * Nominal bit timing.
45
+ * @type {Bittiming}
46
+ * @memberof Phy
47
+ */
48
+ timing: Bittiming;
49
+ /**
50
+ * Data phase bit timing (for CAN-FD).
51
+ * @type {Bittiming}
52
+ * @memberof Phy
53
+ */
54
+ timingData: Bittiming;
55
+ }
56
+ /**
57
+ * Check if a given object implements the Phy interface.
58
+ */
59
+ export declare function instanceOfPhy(value: object): value is Phy;
60
+ export declare function PhyFromJSON(json: any): Phy;
61
+ export declare function PhyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phy;
62
+ export declare function PhyToJSON(json: any): Phy;
63
+ export declare function PhyToJSONTyped(value?: Phy | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var o=Object.defineProperty;var i=(t,n)=>o(t,"name",{value:n,configurable:!0});import{BittimingFromJSON as r,BittimingToJSON as e}from"./Bittiming.js";function d(t){return!(!("listenOnly"in t)||t.listenOnly===void 0||!("autoReset"in t)||t.autoReset===void 0||!("errorFrames"in t)||t.errorFrames===void 0||!("txAckFrames"in t)||t.txAckFrames===void 0||!("timing"in t)||t.timing===void 0||!("timingData"in t)||t.timingData===void 0)}i(d,"instanceOfPhy");function c(t){return m(t,!1)}i(c,"PhyFromJSON");function m(t,n){return t==null?t:{listenOnly:t.listen_only,autoReset:t.auto_reset,errorFrames:t.error_frames,txAckFrames:t.tx_ack_frames,timing:r(t.timing),timingData:r(t.timing_data)}}i(m,"PhyFromJSONTyped");function p(t){return a(t,!1)}i(p,"PhyToJSON");function a(t,n=!1){return t==null?t:{listen_only:t.listenOnly,auto_reset:t.autoReset,error_frames:t.errorFrames,tx_ack_frames:t.txAckFrames,timing:e(t.timing),timing_data:e(t.timingData)}}i(a,"PhyToJSONTyped");export{c as PhyFromJSON,m as PhyFromJSONTyped,p as PhyToJSON,a as PhyToJSONTyped,d as instanceOfPhy};
@@ -0,0 +1,79 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Status
16
+ */
17
+ export interface Status {
18
+ /**
19
+ * CAN controller state.
20
+ * @type {string}
21
+ * @memberof Status
22
+ */
23
+ state: StatusStateEnum;
24
+ /**
25
+ * Frame counter.
26
+ * @type {number}
27
+ * @memberof Status
28
+ */
29
+ frameCount: number;
30
+ /**
31
+ * Frame rate in frames per second.
32
+ * @type {number}
33
+ * @memberof Status
34
+ */
35
+ frameRate: number;
36
+ /**
37
+ * Bus load (0-100%).
38
+ * @type {number}
39
+ * @memberof Status
40
+ */
41
+ busLoad: number;
42
+ /**
43
+ * Receive error counter.
44
+ * @type {number}
45
+ * @memberof Status
46
+ */
47
+ rxErrorCount: number;
48
+ /**
49
+ * Transmit error counter.
50
+ * @type {number}
51
+ * @memberof Status
52
+ */
53
+ txErrorCount: number;
54
+ /**
55
+ * Bus error counter.
56
+ * @type {number}
57
+ * @memberof Status
58
+ */
59
+ busErrorCount: number;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const StatusStateEnum: {
65
+ readonly ErrorActive: "error_active";
66
+ readonly ErrorWarning: "error_warning";
67
+ readonly ErrorPassive: "error_passive";
68
+ readonly BusOff: "bus_off";
69
+ readonly Stopped: "stopped";
70
+ };
71
+ export type StatusStateEnum = typeof StatusStateEnum[keyof typeof StatusStateEnum];
72
+ /**
73
+ * Check if a given object implements the Status interface.
74
+ */
75
+ export declare function instanceOfStatus(value: object): value is Status;
76
+ export declare function StatusFromJSON(json: any): Status;
77
+ export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
78
+ export declare function StatusToJSON(json: any): Status;
79
+ export declare function StatusToJSONTyped(value?: Status | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var e=Object.defineProperty;var t=(r,n)=>e(r,"name",{value:n,configurable:!0});const i={ErrorActive:"error_active",ErrorWarning:"error_warning",ErrorPassive:"error_passive",BusOff:"bus_off",Stopped:"stopped"};function m(r){return!(!("state"in r)||r.state===void 0||!("frameCount"in r)||r.frameCount===void 0||!("frameRate"in r)||r.frameRate===void 0||!("busLoad"in r)||r.busLoad===void 0||!("rxErrorCount"in r)||r.rxErrorCount===void 0||!("txErrorCount"in r)||r.txErrorCount===void 0||!("busErrorCount"in r)||r.busErrorCount===void 0)}t(m,"instanceOfStatus");function S(r){return o(r,!1)}t(S,"StatusFromJSON");function o(r,n){return r==null?r:{state:r.state,frameCount:r.frame_count,frameRate:r.frame_rate,busLoad:r.bus_load,rxErrorCount:r.rx_error_count,txErrorCount:r.tx_error_count,busErrorCount:r.bus_error_count}}t(o,"StatusFromJSONTyped");function d(r){return u(r,!1)}t(d,"StatusToJSON");function u(r,n=!1){return r==null?r:{state:r.state,frame_count:r.frameCount,frame_rate:r.frameRate,bus_load:r.busLoad,rx_error_count:r.rxErrorCount,tx_error_count:r.txErrorCount,bus_error_count:r.busErrorCount}}t(u,"StatusToJSONTyped");export{S as StatusFromJSON,o as StatusFromJSONTyped,i as StatusStateEnum,d as StatusToJSON,u as StatusToJSONTyped,m as instanceOfStatus};
@@ -0,0 +1,38 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Time
16
+ */
17
+ export interface Time {
18
+ /**
19
+ * Device time as an RFC3339/ISO-8601 UTC timestamp string, format YYYY-MM-DDTHH:MM:SS.sssZ. Must be 2025-01-01T00:00:00.000Z or later.
20
+ * @type {Date}
21
+ * @memberof Time
22
+ */
23
+ utc: Date;
24
+ /**
25
+ * Clock rate correction applied to the device time, in parts per billion. Positive when the device clock is being sped up, i.e. it would otherwise run slow. Use 0 when no correction is known.
26
+ * @type {number}
27
+ * @memberof Time
28
+ */
29
+ ratePpb: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the Time interface.
33
+ */
34
+ export declare function instanceOfTime(value: object): value is Time;
35
+ export declare function TimeFromJSON(json: any): Time;
36
+ export declare function TimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Time;
37
+ export declare function TimeToJSON(json: any): Time;
38
+ export declare function TimeToJSONTyped(value?: Time | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var n=Object.defineProperty;var r=(e,t)=>n(e,"name",{value:t,configurable:!0});function m(e){return!(!("utc"in e)||e.utc===void 0||!("ratePpb"in e)||e.ratePpb===void 0)}r(m,"instanceOfTime");function p(e){return i(e,!1)}r(p,"TimeFromJSON");function i(e,t){return e==null?e:{utc:new Date(e.utc),ratePpb:e.rate_ppb}}r(i,"TimeFromJSONTyped");function c(e){return o(e,!1)}r(c,"TimeToJSON");function o(e,t=!1){return e==null?e:{utc:e.utc.toISOString(),rate_ppb:e.ratePpb}}r(o,"TimeToJSONTyped");export{p as TimeFromJSON,i as TimeFromJSONTyped,c as TimeToJSON,o as TimeToJSONTyped,m as instanceOfTime};
@@ -0,0 +1,57 @@
1
+ /**
2
+ * CANsub REST API
3
+ * CANsub REST API for configuration and monitoring.
4
+ *
5
+ * The version of the OpenAPI document: 05.00
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Frame } from './Frame.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TransmitSequence
17
+ */
18
+ export interface TransmitSequence {
19
+ /**
20
+ * Optional user-defined label.
21
+ * @type {string}
22
+ * @memberof TransmitSequence
23
+ */
24
+ label?: string;
25
+ /**
26
+ * Maximum number of times to transmit the sequence.
27
+ * @type {number}
28
+ * @memberof TransmitSequence
29
+ */
30
+ limit: number;
31
+ /**
32
+ * Period of the full sequence in milliseconds.
33
+ * @type {number}
34
+ * @memberof TransmitSequence
35
+ */
36
+ periodMs: number;
37
+ /**
38
+ * Spacing between individual frames in the sequence in milliseconds.
39
+ * @type {number}
40
+ * @memberof TransmitSequence
41
+ */
42
+ spacingMs: number;
43
+ /**
44
+ *
45
+ * @type {Array<Frame>}
46
+ * @memberof TransmitSequence
47
+ */
48
+ frames: Array<Frame>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the TransmitSequence interface.
52
+ */
53
+ export declare function instanceOfTransmitSequence(value: object): value is TransmitSequence;
54
+ export declare function TransmitSequenceFromJSON(json: any): TransmitSequence;
55
+ export declare function TransmitSequenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransmitSequence;
56
+ export declare function TransmitSequenceToJSON(json: any): TransmitSequence;
57
+ export declare function TransmitSequenceToJSONTyped(value?: TransmitSequence | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ var i=Object.defineProperty;var r=(e,n)=>i(e,"name",{value:n,configurable:!0});import{FrameFromJSON as a,FrameToJSON as m}from"./Frame.js";function d(e){return!(!("limit"in e)||e.limit===void 0||!("periodMs"in e)||e.periodMs===void 0||!("spacingMs"in e)||e.spacingMs===void 0||!("frames"in e)||e.frames===void 0)}r(d,"instanceOfTransmitSequence");function S(e){return t(e,!1)}r(S,"TransmitSequenceFromJSON");function t(e,n){return e==null?e:{label:e.label==null?void 0:e.label,limit:e.limit,periodMs:e.period_ms,spacingMs:e.spacing_ms,frames:e.frames.map(a)}}r(t,"TransmitSequenceFromJSONTyped");function T(e){return s(e,!1)}r(T,"TransmitSequenceToJSON");function s(e,n=!1){return e==null?e:{label:e.label,limit:e.limit,period_ms:e.periodMs,spacing_ms:e.spacingMs,frames:e.frames.map(m)}}r(s,"TransmitSequenceToJSONTyped");export{S as TransmitSequenceFromJSON,t as TransmitSequenceFromJSONTyped,T as TransmitSequenceToJSON,s as TransmitSequenceToJSONTyped,d as instanceOfTransmitSequence};
@@ -0,0 +1,9 @@
1
+ export * from './ApiInfoGet200Response.js';
2
+ export * from './ApiTimePtpGet200Response.js';
3
+ export * from './Bittiming.js';
4
+ export * from './Filter.js';
5
+ export * from './Frame.js';
6
+ export * from './Phy.js';
7
+ export * from './Status.js';
8
+ export * from './Time.js';
9
+ export * from './TransmitSequence.js';
@@ -0,0 +1,2 @@
1
+ /*! @csselectronics/rest-client v0.1.0 (c) CSS Electronics ApS, see LICENSE */
2
+ export*from"./ApiInfoGet200Response.js";export*from"./ApiTimePtpGet200Response.js";export*from"./Bittiming.js";export*from"./Filter.js";export*from"./Frame.js";export*from"./Phy.js";export*from"./Status.js";export*from"./Time.js";export*from"./TransmitSequence.js";