@deeptrekker/api-domain 1.0.54-x4-updates.5 → 1.0.54-x4-updates.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_VERSION = "1.0.54-x4-updates.
|
|
1
|
+
export declare const API_VERSION = "1.0.54-x4-updates.7";
|
|
@@ -52,9 +52,7 @@ export type X4FirmwareStatus = {
|
|
|
52
52
|
failedMacs?: string[];
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
|
-
* The status the vehicle reports as `updateFetch`.
|
|
56
|
-
* The progress fields are only present while the vehicle knows the total size,
|
|
57
|
-
* and `finishedAt` only once the fetch has ended. `detail` is a code such as
|
|
55
|
+
* The status the vehicle reports as `updateFetch`. `detail` is a code such as
|
|
58
56
|
* `awaiting-transfer`, `transfer-stalled` or `interrupted-by-restart`, or a sentence for logs.
|
|
59
57
|
* @group X4
|
|
60
58
|
* @category Software Updates
|
|
@@ -64,12 +62,6 @@ export type X4UpdateFetchStatus = {
|
|
|
64
62
|
detail?: string;
|
|
65
63
|
run?: string;
|
|
66
64
|
type?: string;
|
|
67
|
-
percent?: number;
|
|
68
|
-
bytes?: number;
|
|
69
|
-
total?: number;
|
|
70
|
-
etaS?: number;
|
|
71
|
-
elapsedS?: number;
|
|
72
|
-
finishedAt?: string;
|
|
73
65
|
firmware?: X4FirmwareStatus;
|
|
74
66
|
};
|
|
75
67
|
/**
|
|
@@ -82,7 +74,6 @@ export type X4RollbackStatus = {
|
|
|
82
74
|
state?: X4UpdateState;
|
|
83
75
|
detail?: string;
|
|
84
76
|
run?: string;
|
|
85
|
-
finishedAt?: string;
|
|
86
77
|
};
|
|
87
78
|
/**
|
|
88
79
|
* The OS and application versions the vehicle reports as `softwareVersion`,
|
|
@@ -104,12 +95,6 @@ export type X4SoftwareVersion = {
|
|
|
104
95
|
rollbackBuildDate?: string;
|
|
105
96
|
rollbackAvailable?: boolean;
|
|
106
97
|
};
|
|
107
|
-
/**
|
|
108
|
-
* Why the vehicle refused a software update or rollback request.
|
|
109
|
-
* @group X4
|
|
110
|
-
* @category Software Updates
|
|
111
|
-
*/
|
|
112
|
-
export type X4UpdateRefusalReason = "update-in-progress" | "rollback-in-progress" | "firmware-flashing" | "invalid-request" | "unavailable" | "refused";
|
|
113
98
|
/**
|
|
114
99
|
* The API setting a software update error came from.
|
|
115
100
|
* @group X4
|
|
@@ -118,8 +103,7 @@ export type X4UpdateRefusalReason = "update-in-progress" | "rollback-in-progress
|
|
|
118
103
|
export type X4UpdateErrorSource = "updateFetch" | "rollback" | "rollbackOs";
|
|
119
104
|
/**
|
|
120
105
|
* The error the vehicle sends when it refuses an `updateFetch`, `rollback` or
|
|
121
|
-
* `rollbackOs` request. `message` is for logs only
|
|
122
|
-
* Errors from other settings carry no `source`.
|
|
106
|
+
* `rollbackOs` request. `message` is for logs only. Errors from other settings carry no `source`.
|
|
123
107
|
* @group X4
|
|
124
108
|
* @category Software Updates
|
|
125
109
|
*/
|
|
@@ -127,5 +111,4 @@ export type X4UpdateError = {
|
|
|
127
111
|
code: number;
|
|
128
112
|
message: string;
|
|
129
113
|
source: X4UpdateErrorSource;
|
|
130
|
-
reason: X4UpdateRefusalReason;
|
|
131
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deeptrekker/api-domain",
|
|
3
|
-
"version": "1.0.54-x4-updates.
|
|
3
|
+
"version": "1.0.54-x4-updates.7",
|
|
4
4
|
"description": "A business domain of types and schemas that the Deep Trekker topside communicates with via an API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|