@springtree/eva-services-core-live-guard 3.0.0-beta.9 → 9.0.1
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/lib/eva-services-core-live-guard.d.ts +443 -263
- package/lib/eva-services-core-live-guard.d.ts.map +1 -1
- package/lib/eva-services-core-live-guard.js +70 -22
- package/lib/eva-services-core-live-guard.js.map +1 -1
- package/lib/eva-services-core-live-guard.services.d.ts +101 -77
- package/lib/eva-services-core-live-guard.services.d.ts.map +1 -1
- package/lib/eva-services-core-live-guard.services.js +36 -12
- package/lib/eva-services-core-live-guard.services.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
import { ServiceError, ResponseMessageMetadata, PageConfig, DataModelsOrganizationUnitStatus, PagedResult, SchedulingTaskState, UserTypes, SecurityFunctionalityScope, LiveGuardTOTPSecretWrapper, AddressesAddressDataDto, DataModelsInvoiceDocumentLedgerFormats, DataModelsInvoiceDocumentLedgerData, DataModelsInvoiceDocumentLedgerTypes, DataModelsInvoiceCalculationMethod, DataModelsInvoiceStatuses, DataModelsInvoiceTypes, DataModelsTaxRateCategory, DataModelsInvoiceLineTypes, CompaniesCompanyDto, DataModelsOrderBlobTypes, AuditingAuditChainTypes } from '@springtree/eva-services-core';
|
|
2
|
-
export declare
|
|
1
|
+
import { ServiceError, ResponseMessageMetadata, PageConfig, DataModelsOrganizationUnitStatus, PagedResult, SchedulingTaskState, DevicesWatchtowerLog, UserTypes, SecurityElevationType, SecurityFunctionalityScope, LiveGuardTOTPSecretWrapper, AddressesAddressDataDto, DataModelsInvoiceDocumentLedgerFormats, DataModelsInvoiceDocumentLedgerData, DataModelsInvoiceDocumentLedgerTypes, DataModelsInvoiceCalculationMethod, DataModelsInvoiceStatuses, DataModelsInvoiceTypes, DataModelsTaxRateCategory, DataModelsInvoiceLineTypes, CompaniesCompanyDto, DataModelsOrderBlobTypes, DataModelsReturnReasonType, DataModelsPaymentStatuses, AuditingAuditChainTypes } from '@springtree/eva-services-core';
|
|
2
|
+
export declare enum Errors {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Could not determine a matching FleetManager.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
FleetManager_UnableToDetermineFleetManager = "FleetManager:UnableToDetermineFleetManager",
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* The FleetManager {0:string} is not available.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
FleetManager_FleetManagerNotAvailable = "FleetManager:FleetManagerNotAvailable",
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Device with HardwareID {hardwareID:string} was not found in FleetManager {fleetManager:string}. Make sure it's online and try again
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
FleetManager_DeviceNotInFleetManager = "FleetManager:DeviceNotInFleetManager",
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Device is not valid for this FleetManager.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
FleetManager_InvalidDevice = "FleetManager:InvalidDevice",
|
|
19
19
|
/**
|
|
20
|
-
* Device
|
|
20
|
+
* Device was already boarded.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
FleetManager_DeviceAlreadyBoarded = "FleetManager:DeviceAlreadyBoarded",
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Error while boarding the device: {0:string}
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
FleetManager_BoardingFailed = "FleetManager:BoardingFailed",
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* After 2026-04-01 it's not allowed to board new legacy devices in EVA.
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
FleetManager_BoardingDisabled = "FleetManager:BoardingDisabled",
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Device with HardwareID {hardwareID:string} already exists with ID {deviceID:id}.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
FleetManagerErrors_DeviceAlreadyExists = "FleetManagerErrors:DeviceAlreadyExists",
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* OrganizationUnit {organizationUnitID:id} already has a watchtower with ID {deviceID:id}.
|
|
37
|
+
*/
|
|
38
|
+
FleetManagerErrors_DuplicateOrganizationUnit = "FleetManagerErrors:DuplicateOrganizationUnit",
|
|
39
|
+
/**
|
|
40
|
+
* You're not allowed to generate this liveguard api key.
|
|
37
41
|
*/
|
|
38
|
-
|
|
42
|
+
LiveGuard_NotAllowedToGenerateApiKey = "LiveGuard:NotAllowedToGenerateApiKey",
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* You're not allowed to generate this liveguard secret.
|
|
41
45
|
*/
|
|
42
|
-
|
|
46
|
+
LiveGuard_NotAllowedToGenerateSecret = "LiveGuard:NotAllowedToGenerateSecret",
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* This is a stub order for offline evapay payments, no mutations allowed.
|
|
45
49
|
*/
|
|
46
|
-
|
|
50
|
+
LiveGuard_UnableToMutateEVAPayStub = "LiveGuard:UnableToMutateEVAPayStub",
|
|
47
51
|
/**
|
|
48
52
|
* The configuration is invalid.
|
|
49
53
|
*/
|
|
@@ -69,6 +73,42 @@ export declare const enum Errors {
|
|
|
69
73
|
*/
|
|
70
74
|
LiveGuardExecuteTask_NoConnection = "LiveGuardExecuteTask:NoConnection",
|
|
71
75
|
/**
|
|
76
|
+
* This watchtower is not connected.
|
|
77
|
+
*/
|
|
78
|
+
LiveGuardLockStatus_NotConnected = "LiveGuardLockStatus:NotConnected",
|
|
79
|
+
/**
|
|
80
|
+
* Failed to lock the device.
|
|
81
|
+
*/
|
|
82
|
+
LiveGuardLockStatus_LockFailed = "LiveGuardLockStatus:LockFailed",
|
|
83
|
+
/**
|
|
84
|
+
* Failed to unlock the device.
|
|
85
|
+
*/
|
|
86
|
+
LiveGuardLockStatus_UnlockFailed = "LiveGuardLockStatus:UnlockFailed",
|
|
87
|
+
/**
|
|
88
|
+
* The configuration is invalid.
|
|
89
|
+
*/
|
|
90
|
+
LiveGuardVPN_InvalidConfiguration = "LiveGuardVPN:InvalidConfiguration",
|
|
91
|
+
/**
|
|
92
|
+
* No valid Watchtower for this request.
|
|
93
|
+
*/
|
|
94
|
+
LiveGuardVPN_NoValidWatchtower = "LiveGuardVPN:NoValidWatchtower",
|
|
95
|
+
/**
|
|
96
|
+
* Failed to check for existing config.
|
|
97
|
+
*/
|
|
98
|
+
LiveGuardVPN_ExistsCheckFailed = "LiveGuardVPN:ExistsCheckFailed",
|
|
99
|
+
/**
|
|
100
|
+
* Failed to create new config.
|
|
101
|
+
*/
|
|
102
|
+
LiveGuardVPN_CreateFailed = "LiveGuardVPN:CreateFailed",
|
|
103
|
+
/**
|
|
104
|
+
* You can only force local mode on shops.
|
|
105
|
+
*/
|
|
106
|
+
LocalModeManager_CanForceLocalModeOnlyOnShop = "LocalModeManager:CanForceLocalModeOnlyOnShop",
|
|
107
|
+
/**
|
|
108
|
+
* No registration request found for this device. (Please reboot the device and try again)
|
|
109
|
+
*/
|
|
110
|
+
MenderClient_NoRegistrationRequest = "MenderClient:NoRegistrationRequest",
|
|
111
|
+
/**
|
|
72
112
|
* There is no current connection to the selected device.
|
|
73
113
|
*/
|
|
74
114
|
WatchtowerExecuteCommand_NoConnection = "WatchtowerExecuteCommand:NoConnection",
|
|
@@ -77,84 +117,114 @@ export declare const enum Errors {
|
|
|
77
117
|
*/
|
|
78
118
|
WatchtowerIO_ConnectionFailed = "WatchtowerIO:ConnectionFailed"
|
|
79
119
|
}
|
|
120
|
+
export declare enum ManagersFleetManagerDeviceStatus {
|
|
121
|
+
Accepted = 1,
|
|
122
|
+
Pending = 2,
|
|
123
|
+
Rejected = 3,
|
|
124
|
+
Preauthorized = 4,
|
|
125
|
+
Noauth = 5
|
|
126
|
+
}
|
|
80
127
|
/**
|
|
81
128
|
* Get an authentication token that's valid in the cloud for the current user
|
|
82
129
|
*/
|
|
83
|
-
export interface LiveGuardGetCloudToken {
|
|
130
|
+
export interface LiveGuardGetCloudToken<ID_TYPE = string> {
|
|
84
131
|
UseJwtTokens?: boolean;
|
|
85
132
|
}
|
|
86
|
-
export interface LiveGuardGetCloudTokenResponse {
|
|
133
|
+
export interface LiveGuardGetCloudTokenResponse<ID_TYPE = string> {
|
|
87
134
|
AuthenticationToken: string;
|
|
88
|
-
Error?: ServiceError
|
|
89
|
-
Metadata?: ResponseMessageMetadata
|
|
135
|
+
Error?: ServiceError<ID_TYPE>;
|
|
136
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
90
137
|
RefreshToken?: string;
|
|
91
138
|
}
|
|
92
139
|
/**
|
|
140
|
+
* Returns the blob url where the LiveGuard data can be downloaded from.
|
|
141
|
+
*/
|
|
142
|
+
export interface LiveGuardGetData<ID_TYPE = string> {
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
93
145
|
* Returns id mapping for cloud vs liveguard entities
|
|
94
146
|
*/
|
|
95
|
-
export interface LiveGuardGetMapping {
|
|
147
|
+
export interface LiveGuardGetMapping<ID_TYPE = string> {
|
|
96
148
|
}
|
|
97
|
-
export interface LiveGuardGetMappingResponse {
|
|
98
|
-
Error?: ServiceError
|
|
99
|
-
Mapping?: Record<string, Record<string,
|
|
100
|
-
Metadata?: ResponseMessageMetadata
|
|
149
|
+
export interface LiveGuardGetMappingResponse<ID_TYPE = string> {
|
|
150
|
+
Error?: ServiceError<ID_TYPE>;
|
|
151
|
+
Mapping?: Record<string, Record<string, ID_TYPE> | null>;
|
|
152
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
101
153
|
}
|
|
102
154
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* Can only be called by the liveguard user
|
|
155
|
+
* Get a trust token that needs to be provided in the Login call to the cloud to verify local presence
|
|
106
156
|
*/
|
|
107
|
-
export interface
|
|
108
|
-
UseJwtTokens?: boolean;
|
|
109
|
-
Username: string;
|
|
157
|
+
export interface LiveGuardGetTrustToken<ID_TYPE = string> {
|
|
110
158
|
}
|
|
111
|
-
export interface
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
RefreshToken?: string;
|
|
159
|
+
export interface LiveGuardGetTrustTokenResponse<ID_TYPE = string> {
|
|
160
|
+
Error?: ServiceError<ID_TYPE>;
|
|
161
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
162
|
+
TrustToken: string;
|
|
116
163
|
}
|
|
117
164
|
/**
|
|
118
165
|
* Create a new SSL certificate for a Watchtower device.
|
|
119
166
|
*/
|
|
120
|
-
export interface CreateWatchtowerCertificate {
|
|
167
|
+
export interface CreateWatchtowerCertificate<ID_TYPE = string> {
|
|
121
168
|
CertificateSigningRequest: string;
|
|
122
169
|
}
|
|
123
|
-
export interface CreateWatchtowerCertificateResponse {
|
|
170
|
+
export interface CreateWatchtowerCertificateResponse<ID_TYPE = string> {
|
|
124
171
|
Certificate: string;
|
|
125
|
-
Error?: ServiceError
|
|
126
|
-
Metadata?: ResponseMessageMetadata
|
|
172
|
+
Error?: ServiceError<ID_TYPE>;
|
|
173
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
127
174
|
}
|
|
128
175
|
/**
|
|
129
176
|
* Create a new watchtower device
|
|
130
177
|
*
|
|
131
178
|
* To create a device for fallback IO, leave the HardwareID null
|
|
132
|
-
* When a HardwareID is set, the device will be boarded
|
|
179
|
+
* When a HardwareID is set, the device will be boarded and prepared for use.
|
|
133
180
|
*/
|
|
134
|
-
export interface CreateWatchtowerDevice {
|
|
181
|
+
export interface CreateWatchtowerDevice<ID_TYPE = string> {
|
|
135
182
|
HardwareID?: string;
|
|
136
183
|
Name: string;
|
|
137
184
|
/**
|
|
138
185
|
* Entity type: OrganizationUnit
|
|
139
186
|
*/
|
|
140
|
-
OrganizationUnitID:
|
|
187
|
+
OrganizationUnitID: ID_TYPE;
|
|
141
188
|
}
|
|
142
|
-
export interface CreateWatchtowerDeviceResponse {
|
|
189
|
+
export interface CreateWatchtowerDeviceResponse<ID_TYPE = string> {
|
|
143
190
|
ApiKey?: string;
|
|
144
|
-
Error?: ServiceError
|
|
191
|
+
Error?: ServiceError<ID_TYPE>;
|
|
145
192
|
/**
|
|
146
193
|
* Entity type: Device
|
|
147
194
|
*/
|
|
148
|
-
ID:
|
|
149
|
-
Metadata?: ResponseMessageMetadata
|
|
195
|
+
ID: ID_TYPE;
|
|
196
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Create a new VPN Configuration for a Watchtower device.
|
|
200
|
+
*/
|
|
201
|
+
export interface CreateWatchtowerVPNConfiguration<ID_TYPE = string> {
|
|
202
|
+
}
|
|
203
|
+
export interface CreateWatchtowerVPNConfigurationResponse<ID_TYPE = string> {
|
|
204
|
+
Config?: string;
|
|
205
|
+
Error?: ServiceError<ID_TYPE>;
|
|
206
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
150
207
|
}
|
|
151
208
|
/**
|
|
152
209
|
* List the configured watchtower devices with their status
|
|
210
|
+
*
|
|
211
|
+
* Sorting is supported on the following properties:
|
|
212
|
+
* - ID
|
|
213
|
+
* - Name
|
|
214
|
+
* - HardwareID
|
|
215
|
+
* - OrganizationUnitID
|
|
216
|
+
* - OrganizationUnitBackendID
|
|
217
|
+
* - OrganizationUnitName
|
|
218
|
+
* - OrganizationUnitCountryID
|
|
219
|
+
* - OrganizationUnitStatus
|
|
220
|
+
* - WatchtowerIOConnected
|
|
221
|
+
* - WatchtowerIOLastSeen
|
|
222
|
+
* - ForceLocalMode
|
|
153
223
|
*/
|
|
154
|
-
export interface ListWatchtowerDevices {
|
|
155
|
-
PageConfig?: PageConfig<ServicesManagementListWatchtowerDevicesFilter>;
|
|
224
|
+
export interface ListWatchtowerDevices<ID_TYPE = string> {
|
|
225
|
+
PageConfig?: PageConfig<ServicesManagementListWatchtowerDevicesFilter<ID_TYPE>, ID_TYPE>;
|
|
156
226
|
}
|
|
157
|
-
export interface ServicesManagementListWatchtowerDevicesFilter {
|
|
227
|
+
export interface ServicesManagementListWatchtowerDevicesFilter<ID_TYPE = string> {
|
|
158
228
|
/**
|
|
159
229
|
* Entity type: Country
|
|
160
230
|
*/
|
|
@@ -162,31 +232,35 @@ export interface ServicesManagementListWatchtowerDevicesFilter {
|
|
|
162
232
|
/**
|
|
163
233
|
* Entity type: Device
|
|
164
234
|
*/
|
|
165
|
-
DeviceID?:
|
|
235
|
+
DeviceID?: ID_TYPE;
|
|
236
|
+
FleetManagerID?: string;
|
|
237
|
+
ForceLocalMode?: boolean;
|
|
166
238
|
HardwareID?: string;
|
|
167
239
|
IncludeChildOrganizationUnits?: boolean;
|
|
240
|
+
IsLocked?: boolean;
|
|
168
241
|
IsWatchtowerConnected?: boolean;
|
|
169
242
|
IsWatchtowerIOConnected?: boolean;
|
|
170
243
|
IsWatchtowerOnline?: boolean;
|
|
171
|
-
MenderID?: string;
|
|
172
244
|
/**
|
|
173
245
|
* Entity type: OrganizationUnit
|
|
174
246
|
*/
|
|
175
|
-
OrganizationUnitID?:
|
|
247
|
+
OrganizationUnitID?: ID_TYPE;
|
|
176
248
|
OrganizationUnitStatus?: DataModelsOrganizationUnitStatus;
|
|
177
249
|
}
|
|
178
|
-
export interface ListWatchtowerDevicesResponse {
|
|
179
|
-
Error?: ServiceError
|
|
180
|
-
Metadata?: ResponseMessageMetadata
|
|
181
|
-
Result
|
|
250
|
+
export interface ListWatchtowerDevicesResponse<ID_TYPE = string> {
|
|
251
|
+
Error?: ServiceError<ID_TYPE>;
|
|
252
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
253
|
+
Result: PagedResult<ServicesManagementListWatchtowerDevicesResponse_Watchtower<ID_TYPE>, ID_TYPE>;
|
|
182
254
|
}
|
|
183
|
-
export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
255
|
+
export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower<ID_TYPE = string> {
|
|
256
|
+
ForceLocalMode: boolean;
|
|
184
257
|
HardwareID?: string;
|
|
185
258
|
/**
|
|
186
259
|
* Entity type: Device
|
|
187
260
|
*/
|
|
188
|
-
ID:
|
|
261
|
+
ID: ID_TYPE;
|
|
189
262
|
LastSeen?: string;
|
|
263
|
+
Locked: boolean;
|
|
190
264
|
Name?: string;
|
|
191
265
|
Online: boolean;
|
|
192
266
|
/**
|
|
@@ -200,7 +274,7 @@ export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
|
200
274
|
/**
|
|
201
275
|
* Entity type: OrganizationUnit
|
|
202
276
|
*/
|
|
203
|
-
OrganizationUnitID:
|
|
277
|
+
OrganizationUnitID: ID_TYPE;
|
|
204
278
|
OrganizationUnitName?: string;
|
|
205
279
|
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
206
280
|
WatchtowerConnected: boolean;
|
|
@@ -211,90 +285,85 @@ export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
|
211
285
|
/**
|
|
212
286
|
* Execute a command on a device
|
|
213
287
|
*/
|
|
214
|
-
export interface LiveGuardExecuteTask {
|
|
288
|
+
export interface LiveGuardExecuteTask<ID_TYPE = string> {
|
|
215
289
|
Catalog?: boolean;
|
|
216
290
|
/**
|
|
217
291
|
* Entity type: Device
|
|
218
292
|
*/
|
|
219
|
-
DeviceID:
|
|
293
|
+
DeviceID: ID_TYPE;
|
|
220
294
|
General?: boolean;
|
|
221
295
|
Users?: boolean;
|
|
222
296
|
}
|
|
223
297
|
/**
|
|
224
298
|
* Push the current configuration for the given device to mender
|
|
225
299
|
*/
|
|
226
|
-
export interface PushWatchtowerConfigurationToDevice {
|
|
300
|
+
export interface PushWatchtowerConfigurationToDevice<ID_TYPE = string> {
|
|
301
|
+
/**
|
|
302
|
+
* Entity type: Device
|
|
303
|
+
*/
|
|
304
|
+
DeviceID: ID_TYPE;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Update the lock status of a watchtower device.
|
|
308
|
+
*
|
|
309
|
+
* This can only be done when the device is online
|
|
310
|
+
*/
|
|
311
|
+
export interface ToggleLockStatusForWatchtowerDevice<ID_TYPE = string> {
|
|
227
312
|
/**
|
|
228
313
|
* Entity type: Device
|
|
229
314
|
*/
|
|
230
|
-
DeviceID:
|
|
315
|
+
DeviceID: ID_TYPE;
|
|
316
|
+
IsLocked?: boolean;
|
|
231
317
|
}
|
|
232
318
|
/**
|
|
233
319
|
* Execute a command on a device
|
|
234
320
|
*/
|
|
235
|
-
export interface WatchtowerExecuteCommand {
|
|
321
|
+
export interface WatchtowerExecuteCommand<ID_TYPE = string> {
|
|
236
322
|
Address?: string;
|
|
237
323
|
/**
|
|
238
324
|
* Entity type: Device
|
|
239
325
|
*/
|
|
240
|
-
DeviceID:
|
|
326
|
+
DeviceID: ID_TYPE;
|
|
241
327
|
Port?: number;
|
|
242
328
|
Type: string;
|
|
243
329
|
}
|
|
244
|
-
export interface WatchtowerExecuteCommandResponse {
|
|
245
|
-
Error?: ServiceError
|
|
246
|
-
Metadata?: ResponseMessageMetadata
|
|
330
|
+
export interface WatchtowerExecuteCommandResponse<ID_TYPE = string> {
|
|
331
|
+
Error?: ServiceError<ID_TYPE>;
|
|
332
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
247
333
|
Output?: string;
|
|
248
334
|
Success: boolean;
|
|
249
335
|
}
|
|
250
336
|
/**
|
|
251
|
-
* Try to find the device by the HardwareID in mender
|
|
252
|
-
*
|
|
253
|
-
* Returns the DeviceID if already existing in EVA
|
|
254
|
-
* Returns the MenderID if found in mender or already stored in EVA
|
|
255
|
-
*/
|
|
256
|
-
export interface WatchtowerGetDeviceByHardwareID {
|
|
257
|
-
HardwareID: string;
|
|
258
|
-
}
|
|
259
|
-
export interface WatchtowerGetDeviceByHardwareIDResponse {
|
|
260
|
-
/**
|
|
261
|
-
* Entity type: Device
|
|
262
|
-
*/
|
|
263
|
-
DeviceID?: string;
|
|
264
|
-
Error?: ServiceError;
|
|
265
|
-
MenderID?: string;
|
|
266
|
-
Metadata?: ResponseMessageMetadata;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
337
|
* Get details about the given device.
|
|
270
338
|
*/
|
|
271
|
-
export interface WatchtowerGetDeviceDetails {
|
|
339
|
+
export interface WatchtowerGetDeviceDetails<ID_TYPE = string> {
|
|
272
340
|
/**
|
|
273
341
|
* Entity type: Device
|
|
274
342
|
*/
|
|
275
|
-
DeviceID:
|
|
343
|
+
DeviceID: ID_TYPE;
|
|
276
344
|
}
|
|
277
|
-
export interface WatchtowerGetDeviceDetailsResponse {
|
|
278
|
-
/**
|
|
279
|
-
* Removed
|
|
280
|
-
*/
|
|
281
|
-
ApiKey?: string;
|
|
345
|
+
export interface WatchtowerGetDeviceDetailsResponse<ID_TYPE = string> {
|
|
282
346
|
CatalogTaskState?: SchedulingTaskState;
|
|
283
347
|
CatalogTaskStateLastRunTime?: string;
|
|
284
348
|
EVAVersion?: string;
|
|
285
349
|
EVAVersionLastCheckinTime?: string;
|
|
286
|
-
Error?: ServiceError
|
|
350
|
+
Error?: ServiceError<ID_TYPE>;
|
|
351
|
+
FleetManagerID?: string;
|
|
352
|
+
FleetManagerLastCheckIn?: string;
|
|
353
|
+
FleetManagerStatus?: ManagersFleetManagerDeviceStatus;
|
|
354
|
+
ForceLocalMode: boolean;
|
|
287
355
|
GeneralTaskState?: SchedulingTaskState;
|
|
288
356
|
GeneralTaskStateLastRunTime?: string;
|
|
289
357
|
HardwareID?: string;
|
|
290
|
-
ID:
|
|
358
|
+
ID: ID_TYPE;
|
|
291
359
|
IOVersion?: string;
|
|
292
360
|
IOVersionLastCheckinTime?: string;
|
|
293
361
|
LastSeen?: string;
|
|
294
362
|
LiveGuardStateLastCheckinTime?: string;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
363
|
+
Locked: boolean;
|
|
364
|
+
Logs?: DevicesWatchtowerLog<ID_TYPE>[];
|
|
365
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
366
|
+
NetworkInterfaces?: ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface<ID_TYPE>[];
|
|
298
367
|
OSVersion?: string;
|
|
299
368
|
OSVersionLastCheckinTime?: string;
|
|
300
369
|
Online: boolean;
|
|
@@ -306,7 +375,7 @@ export interface WatchtowerGetDeviceDetailsResponse {
|
|
|
306
375
|
/**
|
|
307
376
|
* Entity type: OrganizationUnit
|
|
308
377
|
*/
|
|
309
|
-
OrganizationUnitID:
|
|
378
|
+
OrganizationUnitID: ID_TYPE;
|
|
310
379
|
OrganizationUnitName?: string;
|
|
311
380
|
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
312
381
|
PendingOrderExports?: number;
|
|
@@ -323,294 +392,354 @@ export interface WatchtowerGetDeviceDetailsResponse {
|
|
|
323
392
|
WatchtowerIOLastSeen?: string;
|
|
324
393
|
WatchtowerLastSeen?: string;
|
|
325
394
|
}
|
|
326
|
-
export interface ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface {
|
|
395
|
+
export interface ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface<ID_TYPE = string> {
|
|
327
396
|
IPV4?: string;
|
|
328
397
|
IPV6?: string;
|
|
329
398
|
MacAddress?: string;
|
|
330
399
|
Name?: string;
|
|
331
400
|
}
|
|
332
|
-
export interface EVAStatus {
|
|
401
|
+
export interface EVAStatus<ID_TYPE = string> {
|
|
333
402
|
}
|
|
334
|
-
export interface EVAStatusResponse {
|
|
335
|
-
Error?: ServiceError
|
|
336
|
-
Metadata?: ResponseMessageMetadata
|
|
403
|
+
export interface EVAStatusResponse<ID_TYPE = string> {
|
|
404
|
+
Error?: ServiceError<ID_TYPE>;
|
|
405
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
337
406
|
Ready: boolean;
|
|
338
407
|
}
|
|
339
408
|
/**
|
|
340
409
|
* Returns some basic information about the current state of the liveGuard
|
|
341
410
|
*/
|
|
342
|
-
export interface LiveGuardGetInformation {
|
|
411
|
+
export interface LiveGuardGetInformation<ID_TYPE = string> {
|
|
343
412
|
}
|
|
344
|
-
export interface LiveGuardGetInformationResponse {
|
|
345
|
-
|
|
413
|
+
export interface LiveGuardGetInformationResponse<ID_TYPE = string> {
|
|
414
|
+
CatalogTaskLastRun?: string;
|
|
415
|
+
CatalogTaskState?: SchedulingTaskState;
|
|
416
|
+
Error?: ServiceError<ID_TYPE>;
|
|
417
|
+
GeneralTaskLastRun?: string;
|
|
418
|
+
GeneralTaskState?: SchedulingTaskState;
|
|
346
419
|
HardwareID?: string;
|
|
347
420
|
LastCatalogSync?: string;
|
|
348
421
|
LastGeneralSync?: string;
|
|
349
422
|
LastUserSync?: string;
|
|
350
|
-
Metadata?: ResponseMessageMetadata
|
|
423
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
351
424
|
OrganizationUnitBackendID?: string;
|
|
352
425
|
OrganizationUnitName?: string;
|
|
353
426
|
PendingOrderExports: number;
|
|
354
427
|
ProductsCount: number;
|
|
355
428
|
SettingsCount: number;
|
|
429
|
+
UserTaskLastRun?: string;
|
|
430
|
+
UserTaskState?: SchedulingTaskState;
|
|
356
431
|
UsersCount: number;
|
|
357
432
|
Version?: string;
|
|
358
433
|
}
|
|
359
434
|
/**
|
|
360
435
|
* This service returns the operational flags for a liveguard instance.
|
|
361
436
|
*/
|
|
362
|
-
export interface LiveGuardGetStatus {
|
|
437
|
+
export interface LiveGuardGetStatus<ID_TYPE = string> {
|
|
363
438
|
}
|
|
364
|
-
export interface LiveGuardGetStatusResponse {
|
|
439
|
+
export interface LiveGuardGetStatusResponse<ID_TYPE = string> {
|
|
365
440
|
DisableCheckTask: boolean;
|
|
366
441
|
EVACloudAvailable: boolean;
|
|
367
|
-
Error?: ServiceError
|
|
442
|
+
Error?: ServiceError<ID_TYPE>;
|
|
368
443
|
InternetAvailable: boolean;
|
|
369
|
-
Metadata?: ResponseMessageMetadata
|
|
444
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
370
445
|
RunningOnWatchtower: boolean;
|
|
371
446
|
}
|
|
372
447
|
/**
|
|
373
448
|
* Push metrics of the watchtower device to the cloud.
|
|
374
449
|
*/
|
|
375
|
-
export interface LiveGuardPushMetrics {
|
|
450
|
+
export interface LiveGuardPushMetrics<ID_TYPE = string> {
|
|
376
451
|
AvgLatency?: number;
|
|
377
452
|
CPUUsage?: number;
|
|
453
|
+
DNSLatency?: number;
|
|
378
454
|
DiskUsage?: number;
|
|
379
455
|
EVAVersion?: string;
|
|
380
456
|
HardwareID: string;
|
|
381
457
|
IOVersion?: string;
|
|
382
458
|
LastBootTime?: string;
|
|
383
459
|
Latency?: number;
|
|
460
|
+
Logs?: DevicesWatchtowerLog<ID_TYPE>[];
|
|
384
461
|
OSVersion?: string;
|
|
385
462
|
RAMUsage?: number;
|
|
386
463
|
State?: string;
|
|
387
464
|
Temperature?: number;
|
|
388
465
|
}
|
|
389
466
|
/**
|
|
390
|
-
* This service overrides the operational flags for a liveguard instance.
|
|
391
|
-
*
|
|
392
|
-
* This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
|
|
393
|
-
*/
|
|
394
|
-
export interface LiveGuardSetStatus {
|
|
395
|
-
/**
|
|
396
|
-
* Disable the automatic task that checks for Internet/EVACloud. This should be set to true if these properties need to be managed by hand.
|
|
397
|
-
*/
|
|
398
|
-
DisableCheckTask?: boolean;
|
|
399
|
-
/**
|
|
400
|
-
* Flag this environment as if the cloud deployment of EVA is not availabled. Will disable a lot of functionality.
|
|
401
|
-
*/
|
|
402
|
-
EVACloudAvailable?: boolean;
|
|
403
|
-
/**
|
|
404
|
-
* Flag this environment as if it has no working internet connection. Will disable a lot of functionality.
|
|
405
|
-
*/
|
|
406
|
-
InternetAvailable?: boolean;
|
|
407
|
-
/**
|
|
408
|
-
* Flag this environment as if it's running on a watchtower device. Will disable a lot of functionality.
|
|
409
|
-
*/
|
|
410
|
-
RunningOnWatchtower?: boolean;
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
467
|
* Get user information to sync to LiveGuard
|
|
414
468
|
*/
|
|
415
|
-
export interface GetUserForLiveGuard {
|
|
469
|
+
export interface GetUserForLiveGuard<ID_TYPE = string> {
|
|
416
470
|
EmailAddress?: string;
|
|
417
471
|
NickName?: string;
|
|
418
472
|
/**
|
|
419
473
|
* Entity type: User
|
|
420
474
|
*/
|
|
421
|
-
UserID?:
|
|
475
|
+
UserID?: ID_TYPE;
|
|
422
476
|
}
|
|
423
|
-
export interface GetUserForLiveGuardResponse {
|
|
424
|
-
AuthenticationData?: ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto[];
|
|
477
|
+
export interface GetUserForLiveGuardResponse<ID_TYPE = string> {
|
|
478
|
+
AuthenticationData?: ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto<ID_TYPE>[];
|
|
425
479
|
BackendID?: string;
|
|
426
480
|
BackendSystemID?: string;
|
|
427
481
|
/**
|
|
482
|
+
* Entity type: User
|
|
483
|
+
*/
|
|
484
|
+
CloudIDs?: ID_TYPE[];
|
|
485
|
+
/**
|
|
428
486
|
* Entity type: Country
|
|
429
487
|
*/
|
|
430
488
|
CountryID?: string;
|
|
431
489
|
EmailAddress?: string;
|
|
432
|
-
Error?: ServiceError
|
|
490
|
+
Error?: ServiceError<ID_TYPE>;
|
|
433
491
|
FirstName?: string;
|
|
434
492
|
/**
|
|
435
493
|
* Entity type: Language
|
|
436
494
|
*/
|
|
437
495
|
LanguageID?: string;
|
|
438
496
|
LastName?: string;
|
|
439
|
-
Metadata?: ResponseMessageMetadata
|
|
497
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
440
498
|
Nickname?: string;
|
|
441
|
-
Roles?: ServicesSyncGetUserForLiveGuardResponse_RoleDto[];
|
|
499
|
+
Roles?: ServicesSyncGetUserForLiveGuardResponse_RoleDto<ID_TYPE>[];
|
|
442
500
|
TimeZone?: string;
|
|
443
501
|
Type: UserTypes;
|
|
444
502
|
}
|
|
445
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto {
|
|
503
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto<ID_TYPE = string> {
|
|
446
504
|
Data?: string;
|
|
447
505
|
SearchKey?: string;
|
|
448
506
|
Type?: string;
|
|
449
507
|
}
|
|
450
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto {
|
|
508
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto<ID_TYPE = string> {
|
|
509
|
+
ElevationType: SecurityElevationType;
|
|
451
510
|
Functionality: string;
|
|
452
511
|
FunctionalityScope: SecurityFunctionalityScope;
|
|
453
|
-
RequiresElevation: boolean;
|
|
454
512
|
}
|
|
455
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_RoleDto {
|
|
513
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_RoleDto<ID_TYPE = string> {
|
|
456
514
|
Code?: string;
|
|
457
515
|
DeactivateUserAfterInactiveDays?: number;
|
|
458
|
-
Functionalities: ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto[];
|
|
516
|
+
Functionalities: ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto<ID_TYPE>[];
|
|
459
517
|
GlobalID?: string;
|
|
460
518
|
Name?: string;
|
|
461
519
|
UserType: UserTypes;
|
|
462
520
|
}
|
|
463
|
-
export interface LiveGuardGenerateApiKey {
|
|
521
|
+
export interface LiveGuardGenerateApiKey<ID_TYPE = string> {
|
|
464
522
|
/**
|
|
465
523
|
* Entity type: OrganizationUnit
|
|
466
524
|
*/
|
|
467
|
-
OrganizationUnitID:
|
|
525
|
+
OrganizationUnitID: ID_TYPE;
|
|
468
526
|
}
|
|
469
|
-
export interface LiveGuardGenerateApiKeyResponse {
|
|
527
|
+
export interface LiveGuardGenerateApiKeyResponse<ID_TYPE = string> {
|
|
470
528
|
ApiKey: string;
|
|
471
|
-
Error?: ServiceError
|
|
472
|
-
Metadata?: ResponseMessageMetadata
|
|
529
|
+
Error?: ServiceError<ID_TYPE>;
|
|
530
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Generate a trust token that needs to be provided in the Login call to the cloud to verify local presence
|
|
534
|
+
*/
|
|
535
|
+
export interface LiveGuardGenerateTrustToken<ID_TYPE = string> {
|
|
536
|
+
}
|
|
537
|
+
export interface LiveGuardGenerateTrustTokenResponse<ID_TYPE = string> {
|
|
538
|
+
Error?: ServiceError<ID_TYPE>;
|
|
539
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
540
|
+
TrustToken: string;
|
|
473
541
|
}
|
|
474
542
|
/**
|
|
475
543
|
* Retreive current chain status for the connected watchtower
|
|
476
544
|
*/
|
|
477
|
-
export interface LiveGuardGetAuditChains {
|
|
545
|
+
export interface LiveGuardGetAuditChains<ID_TYPE = string> {
|
|
478
546
|
}
|
|
479
|
-
export interface LiveGuardGetAuditChainsResponse {
|
|
480
|
-
Chains?: TasksChainDto[];
|
|
481
|
-
Error?: ServiceError
|
|
482
|
-
Metadata?: ResponseMessageMetadata
|
|
547
|
+
export interface LiveGuardGetAuditChainsResponse<ID_TYPE = string> {
|
|
548
|
+
Chains?: TasksChainDto<ID_TYPE>[];
|
|
549
|
+
Error?: ServiceError<ID_TYPE>;
|
|
550
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
483
551
|
}
|
|
484
552
|
/**
|
|
485
553
|
* Retreive current secret for TOTP token usage
|
|
486
554
|
*/
|
|
487
|
-
export interface LiveGuardGetTOTPSecret {
|
|
555
|
+
export interface LiveGuardGetTOTPSecret<ID_TYPE = string> {
|
|
488
556
|
}
|
|
489
|
-
export interface LiveGuardGetTOTPSecretResponse {
|
|
490
|
-
Error?: ServiceError
|
|
491
|
-
Metadata?: ResponseMessageMetadata
|
|
492
|
-
Secret: LiveGuardTOTPSecretWrapper
|
|
557
|
+
export interface LiveGuardGetTOTPSecretResponse<ID_TYPE = string> {
|
|
558
|
+
Error?: ServiceError<ID_TYPE>;
|
|
559
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
560
|
+
Secret: LiveGuardTOTPSecretWrapper<ID_TYPE>;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
|
|
564
|
+
*
|
|
565
|
+
* Can only be called by the liveguard user
|
|
566
|
+
*/
|
|
567
|
+
export interface LiveGuardGetTokenForUser<ID_TYPE = string> {
|
|
568
|
+
UseJwtTokens?: boolean;
|
|
569
|
+
Username: string;
|
|
570
|
+
}
|
|
571
|
+
export interface LiveGuardGetTokenForUserResponse<ID_TYPE = string> {
|
|
572
|
+
AuthenticationToken: string;
|
|
573
|
+
Error?: ServiceError<ID_TYPE>;
|
|
574
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
575
|
+
RefreshToken?: string;
|
|
493
576
|
}
|
|
494
577
|
/**
|
|
495
578
|
* Accepts an Order pushed from a LiveGuard instance
|
|
496
579
|
*/
|
|
497
|
-
export interface LiveGuardPushOrder {
|
|
498
|
-
BillingAddress?: AddressesAddressDataDto
|
|
580
|
+
export interface LiveGuardPushOrder<ID_TYPE = string> {
|
|
581
|
+
BillingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
499
582
|
BlobID: string;
|
|
500
|
-
Blobs?: ServicesSyncLiveGuardPushOrder_OrderBlobDto[];
|
|
501
|
-
|
|
583
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_OrderBlobDto<ID_TYPE>[];
|
|
584
|
+
BoardingPass?: ServicesSyncLiveGuardPushOrder_BoardingPassDto<ID_TYPE>;
|
|
585
|
+
Chains?: TasksChainDto<ID_TYPE>[];
|
|
502
586
|
CreationTime?: string;
|
|
503
|
-
Customer?: ServicesSyncLiveGuardPushOrder_CustomerDto
|
|
504
|
-
CustomerIdentifiers?: ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto
|
|
505
|
-
|
|
587
|
+
Customer?: ServicesSyncLiveGuardPushOrder_CustomerDto<ID_TYPE>;
|
|
588
|
+
CustomerIdentifiers?: ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto<ID_TYPE>;
|
|
589
|
+
DisplayID?: string;
|
|
590
|
+
Invoices?: ServicesSyncLiveGuardPushOrder_InvoiceDto<ID_TYPE>[];
|
|
506
591
|
IsPaid?: boolean;
|
|
507
592
|
IsShipped?: boolean;
|
|
508
|
-
Lines?: ServicesSyncLiveGuardPushOrder_OrderLineDto[];
|
|
593
|
+
Lines?: ServicesSyncLiveGuardPushOrder_OrderLineDto<ID_TYPE>[];
|
|
509
594
|
LiveGuardOrderID?: string;
|
|
510
|
-
Payments?: ServicesSyncLiveGuardPushOrder_PaymentDto[];
|
|
511
|
-
PickupAddress?: AddressesAddressDataDto
|
|
595
|
+
Payments?: ServicesSyncLiveGuardPushOrder_PaymentDto<ID_TYPE>[];
|
|
596
|
+
PickupAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
512
597
|
Remark?: string;
|
|
513
|
-
ShippingAddress?: AddressesAddressDataDto
|
|
598
|
+
ShippingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
514
599
|
SoldBy?: string;
|
|
515
600
|
}
|
|
516
|
-
export interface
|
|
601
|
+
export interface ServicesSyncLiveGuardPushOrder_BoardingPassDto<ID_TYPE = string> {
|
|
602
|
+
AirlineCompanyCode?: string;
|
|
603
|
+
Cabin?: string;
|
|
604
|
+
CheckinSequence?: number;
|
|
605
|
+
Data?: string;
|
|
606
|
+
DepartingAirportCode?: string;
|
|
607
|
+
DestinationAirportCode?: string;
|
|
608
|
+
FlightNumber?: number;
|
|
609
|
+
Format?: string;
|
|
610
|
+
JulianDate?: number;
|
|
611
|
+
Name?: string;
|
|
612
|
+
NumberOfLegs?: number;
|
|
613
|
+
OperatingCarrierPNRCode?: string;
|
|
614
|
+
Seat?: string;
|
|
615
|
+
Status?: number;
|
|
616
|
+
Type?: string;
|
|
617
|
+
}
|
|
618
|
+
export interface ServicesSyncLiveGuardPushOrder_ChainLedgerDto<ID_TYPE = string> {
|
|
517
619
|
CreationTime: string;
|
|
518
|
-
NewSequenceNumber
|
|
620
|
+
NewSequenceNumber?: number;
|
|
519
621
|
NewSignature?: string;
|
|
520
|
-
PreviousSequenceNumber
|
|
622
|
+
PreviousSequenceNumber?: number;
|
|
521
623
|
PreviousSignature?: string;
|
|
522
624
|
}
|
|
523
|
-
export interface ServicesSyncLiveGuardPushOrder_CustomerDto {
|
|
625
|
+
export interface ServicesSyncLiveGuardPushOrder_CustomerDto<ID_TYPE = string> {
|
|
524
626
|
CountryID?: string;
|
|
525
627
|
EmailAddress?: string;
|
|
526
628
|
FirstName?: string;
|
|
527
629
|
Gender?: string;
|
|
528
630
|
LanguageID?: string;
|
|
529
631
|
LastName?: string;
|
|
530
|
-
|
|
632
|
+
/**
|
|
633
|
+
* Entity type: User
|
|
634
|
+
*/
|
|
635
|
+
LiveGuardID: ID_TYPE;
|
|
531
636
|
PhoneNumber?: string;
|
|
532
637
|
}
|
|
533
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceBlobDto {
|
|
638
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceBlobDto<ID_TYPE = string> {
|
|
534
639
|
BackendID?: string;
|
|
535
640
|
BlobID: string;
|
|
536
641
|
Category?: string;
|
|
537
642
|
MimeType?: string;
|
|
538
643
|
OriginalName?: string;
|
|
539
644
|
}
|
|
540
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDataDto {
|
|
645
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE = string> {
|
|
541
646
|
Data?: string;
|
|
542
647
|
SearchKey?: string;
|
|
543
648
|
Type?: string;
|
|
544
649
|
}
|
|
545
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto {
|
|
546
|
-
|
|
650
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto<ID_TYPE = string> {
|
|
651
|
+
/**
|
|
652
|
+
* Entity type: AuditChain
|
|
653
|
+
*/
|
|
654
|
+
ChainID?: ID_TYPE;
|
|
547
655
|
FailureReason?: string;
|
|
548
|
-
Format
|
|
549
|
-
InvoiceDocumentLedgerData?: DataModelsInvoiceDocumentLedgerData
|
|
656
|
+
Format?: DataModelsInvoiceDocumentLedgerFormats;
|
|
657
|
+
InvoiceDocumentLedgerData?: DataModelsInvoiceDocumentLedgerData<ID_TYPE>;
|
|
550
658
|
IsSuccess?: boolean;
|
|
551
|
-
|
|
552
|
-
|
|
659
|
+
/**
|
|
660
|
+
* Entity type: Device
|
|
661
|
+
*/
|
|
662
|
+
OriginalDeviceID?: ID_TYPE;
|
|
663
|
+
PreviousSequenceNumber?: number;
|
|
553
664
|
PreviousSignature?: string;
|
|
554
665
|
ReportContentBlobID?: string;
|
|
555
666
|
ReprintNumber?: number;
|
|
556
|
-
SequenceNumber
|
|
667
|
+
SequenceNumber?: number;
|
|
557
668
|
Signature?: string;
|
|
558
|
-
Type
|
|
669
|
+
Type?: DataModelsInvoiceDocumentLedgerTypes;
|
|
559
670
|
}
|
|
560
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDto {
|
|
671
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDto<ID_TYPE = string> {
|
|
561
672
|
AuditingProvider?: string;
|
|
562
673
|
BackendID?: string;
|
|
563
674
|
BackendSystemID?: string;
|
|
564
675
|
BackendTypeID?: number;
|
|
565
|
-
Blobs?: ServicesSyncLiveGuardPushOrder_InvoiceBlobDto[];
|
|
566
|
-
CalculationMethod
|
|
567
|
-
|
|
676
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_InvoiceBlobDto<ID_TYPE>[];
|
|
677
|
+
CalculationMethod?: DataModelsInvoiceCalculationMethod;
|
|
678
|
+
/**
|
|
679
|
+
* Entity type: AuditChain
|
|
680
|
+
*/
|
|
681
|
+
ChainID?: ID_TYPE;
|
|
568
682
|
CurrencyID?: string;
|
|
569
683
|
Description?: string;
|
|
570
|
-
DocumentLedger?: ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto[];
|
|
684
|
+
DocumentLedger?: ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto<ID_TYPE>[];
|
|
685
|
+
ExpirationDate?: string;
|
|
571
686
|
FiscalID?: string;
|
|
572
|
-
|
|
573
|
-
|
|
687
|
+
/**
|
|
688
|
+
* Entity type: Invoice
|
|
689
|
+
*/
|
|
690
|
+
ID: ID_TYPE;
|
|
691
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE>[];
|
|
574
692
|
InvoiceDate?: string;
|
|
575
693
|
InvoiceNumber?: string;
|
|
576
|
-
Lines?: ServicesSyncLiveGuardPushOrder_InvoiceLineDto[];
|
|
694
|
+
Lines?: ServicesSyncLiveGuardPushOrder_InvoiceLineDto<ID_TYPE>[];
|
|
577
695
|
PreviousSignature?: string;
|
|
578
696
|
PrintCount?: number;
|
|
579
697
|
ReferencedInvoice?: string;
|
|
580
|
-
SequenceNumber?:
|
|
698
|
+
SequenceNumber?: number;
|
|
581
699
|
Signature?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Entity type: Station
|
|
702
|
+
*/
|
|
582
703
|
StationID?: string;
|
|
583
|
-
Status
|
|
704
|
+
Status?: DataModelsInvoiceStatuses;
|
|
584
705
|
TaxReverseCharge?: boolean;
|
|
585
706
|
TotalAmount: number;
|
|
586
|
-
Type
|
|
587
|
-
UserData?: ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto
|
|
707
|
+
Type?: DataModelsInvoiceTypes;
|
|
708
|
+
UserData?: ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto<ID_TYPE>;
|
|
588
709
|
VatNumber?: string;
|
|
589
710
|
}
|
|
590
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto {
|
|
711
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto<ID_TYPE = string> {
|
|
591
712
|
Amount: number;
|
|
592
713
|
BackendID?: string;
|
|
714
|
+
CloudID?: ID_TYPE;
|
|
593
715
|
Description?: string;
|
|
594
716
|
}
|
|
595
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDto {
|
|
717
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDto<ID_TYPE = string> {
|
|
718
|
+
Description?: string;
|
|
596
719
|
DiscountAmount: number;
|
|
597
|
-
DiscountDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto[];
|
|
598
|
-
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto[];
|
|
720
|
+
DiscountDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto<ID_TYPE>[];
|
|
721
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE>[];
|
|
599
722
|
InvoicedBy?: string;
|
|
600
|
-
|
|
723
|
+
NetTaxAmount: number;
|
|
724
|
+
/**
|
|
725
|
+
* Entity type: OrderLine
|
|
726
|
+
*/
|
|
727
|
+
OrderLineID: ID_TYPE;
|
|
601
728
|
Quantity?: number;
|
|
602
729
|
TaxAmount?: number;
|
|
603
730
|
TaxCode?: string;
|
|
604
|
-
TaxDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto[];
|
|
731
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto<ID_TYPE>[];
|
|
605
732
|
TaxRate: number;
|
|
606
733
|
TaxRateCategory?: DataModelsTaxRateCategory;
|
|
607
734
|
TotalAmountInvoiced: number;
|
|
608
735
|
TotalAmountInvoicedInTax: number;
|
|
609
|
-
|
|
736
|
+
TotalTaxAmount: number;
|
|
737
|
+
Type?: DataModelsInvoiceLineTypes;
|
|
610
738
|
UnitCost?: number;
|
|
611
739
|
UnitPrice?: number;
|
|
740
|
+
UnitPriceInTax: number;
|
|
612
741
|
}
|
|
613
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto {
|
|
742
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto<ID_TYPE = string> {
|
|
614
743
|
TaxAmount: number;
|
|
615
744
|
TaxName?: string;
|
|
616
745
|
TaxRate: number;
|
|
@@ -618,11 +747,11 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto {
|
|
|
618
747
|
TaxSubTypeName?: string;
|
|
619
748
|
TaxType?: string;
|
|
620
749
|
}
|
|
621
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
750
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto<ID_TYPE = string> {
|
|
622
751
|
BackendRelationID?: string;
|
|
623
752
|
BankAccount?: string;
|
|
624
|
-
BillingAddress?: AddressesAddressDataDto
|
|
625
|
-
Company?: CompaniesCompanyDto
|
|
753
|
+
BillingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
754
|
+
Company?: CompaniesCompanyDto<ID_TYPE>;
|
|
626
755
|
CountryID?: string;
|
|
627
756
|
EmailAddress?: string;
|
|
628
757
|
FirstName?: string;
|
|
@@ -637,7 +766,7 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
|
637
766
|
OrganizationUnitBackendID?: string;
|
|
638
767
|
OrganizationUnitBranchNumber?: string;
|
|
639
768
|
OrganizationUnitCity?: string;
|
|
640
|
-
OrganizationUnitCompany?: CompaniesCompanyDto
|
|
769
|
+
OrganizationUnitCompany?: CompaniesCompanyDto<ID_TYPE>;
|
|
641
770
|
OrganizationUnitCompanyVatNumber?: string;
|
|
642
771
|
OrganizationUnitCountryID?: string;
|
|
643
772
|
OrganizationUnitDistrict?: string;
|
|
@@ -651,43 +780,61 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
|
651
780
|
OrganizationUnitWebsite?: string;
|
|
652
781
|
OrganizationUnitZipCode?: string;
|
|
653
782
|
PhoneNumber?: string;
|
|
654
|
-
ShippingAddress?: AddressesAddressDataDto
|
|
783
|
+
ShippingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
655
784
|
}
|
|
656
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderBlobDto {
|
|
785
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderBlobDto<ID_TYPE = string> {
|
|
657
786
|
BlobID: string;
|
|
658
|
-
|
|
787
|
+
/**
|
|
788
|
+
* Entity type: Invoice
|
|
789
|
+
*/
|
|
790
|
+
InvoiceID?: ID_TYPE;
|
|
659
791
|
Name?: string;
|
|
660
|
-
|
|
661
|
-
|
|
792
|
+
/**
|
|
793
|
+
* Entity type: OrderLine
|
|
794
|
+
*/
|
|
795
|
+
OrderLineID?: ID_TYPE;
|
|
796
|
+
Type?: DataModelsOrderBlobTypes;
|
|
662
797
|
}
|
|
663
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto {
|
|
798
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto<ID_TYPE = string> {
|
|
664
799
|
EmailAddress?: string;
|
|
665
800
|
UserBackendID?: string;
|
|
666
801
|
UserCustomID?: string;
|
|
667
802
|
UserID?: string;
|
|
668
803
|
UserSubscriptionID?: string;
|
|
669
804
|
}
|
|
670
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineDiscount {
|
|
805
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDiscount<ID_TYPE = string> {
|
|
671
806
|
Amount: number;
|
|
672
807
|
BackendID?: string;
|
|
808
|
+
CloudID?: ID_TYPE;
|
|
673
809
|
Description?: string;
|
|
674
|
-
|
|
810
|
+
/**
|
|
811
|
+
* Entity type: OrderLine
|
|
812
|
+
*/
|
|
813
|
+
OrderLineID: ID_TYPE;
|
|
675
814
|
}
|
|
676
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineDto {
|
|
815
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDto<ID_TYPE = string> {
|
|
677
816
|
Amount: number;
|
|
678
817
|
BackendID?: string;
|
|
679
818
|
CustomID?: string;
|
|
680
819
|
Description?: string;
|
|
681
|
-
Discounts?: ServicesSyncLiveGuardPushOrder_OrderLineDiscount[];
|
|
682
|
-
|
|
820
|
+
Discounts?: ServicesSyncLiveGuardPushOrder_OrderLineDiscount<ID_TYPE>[];
|
|
821
|
+
/**
|
|
822
|
+
* Entity type: OrderLine
|
|
823
|
+
*/
|
|
824
|
+
ID: ID_TYPE;
|
|
683
825
|
Quantity?: number;
|
|
826
|
+
ReturnReason?: string;
|
|
827
|
+
ReturnReasonType?: DataModelsReturnReasonType;
|
|
684
828
|
SerialNumber?: string;
|
|
685
|
-
|
|
829
|
+
StockProductBackendID?: string;
|
|
830
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail<ID_TYPE>[];
|
|
686
831
|
TaxRate: number;
|
|
832
|
+
TaxRateCategory?: DataModelsTaxRateCategory;
|
|
687
833
|
UnitPriceBeforeCorrection?: number;
|
|
834
|
+
UnitPriceBeforeCorrectionInTax?: number;
|
|
688
835
|
UnitPriceCorrectionReason?: string;
|
|
689
836
|
}
|
|
690
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail {
|
|
837
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail<ID_TYPE = string> {
|
|
691
838
|
TaxAmount: number;
|
|
692
839
|
TaxName?: string;
|
|
693
840
|
TaxRate: number;
|
|
@@ -695,62 +842,95 @@ export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail {
|
|
|
695
842
|
TaxSubTypeName?: string;
|
|
696
843
|
TaxType?: string;
|
|
697
844
|
}
|
|
698
|
-
export interface ServicesSyncLiveGuardPushOrder_PaymentDto {
|
|
845
|
+
export interface ServicesSyncLiveGuardPushOrder_PaymentDto<ID_TYPE = string> {
|
|
699
846
|
Amount: number;
|
|
700
847
|
BackendID?: string;
|
|
701
848
|
Data?: string;
|
|
702
|
-
|
|
849
|
+
DataObjects?: string;
|
|
850
|
+
/**
|
|
851
|
+
* Entity type: PaymentTransaction
|
|
852
|
+
*/
|
|
853
|
+
ID: ID_TYPE;
|
|
703
854
|
Method?: string;
|
|
704
|
-
|
|
855
|
+
/**
|
|
856
|
+
* Entity type: Device
|
|
857
|
+
*/
|
|
858
|
+
OriginalDeviceID?: ID_TYPE;
|
|
859
|
+
Status?: DataModelsPaymentStatuses;
|
|
705
860
|
Type?: string;
|
|
706
861
|
}
|
|
707
|
-
export interface LiveGuardPushOrderResponse {
|
|
862
|
+
export interface LiveGuardPushOrderResponse<ID_TYPE = string> {
|
|
708
863
|
AlreadyExists: boolean;
|
|
709
|
-
Error?: ServiceError
|
|
710
|
-
|
|
711
|
-
|
|
864
|
+
Error?: ServiceError<ID_TYPE>;
|
|
865
|
+
/**
|
|
866
|
+
* Entity type: Order
|
|
867
|
+
*/
|
|
868
|
+
ID: ID_TYPE;
|
|
869
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
712
870
|
}
|
|
713
|
-
export interface LiveGuardSyncCatalogByBlob {
|
|
871
|
+
export interface LiveGuardSyncCatalogByBlob<ID_TYPE = string> {
|
|
714
872
|
}
|
|
715
|
-
export interface LiveGuardSyncCatalogByBlobResponse {
|
|
873
|
+
export interface LiveGuardSyncCatalogByBlobResponse<ID_TYPE = string> {
|
|
716
874
|
Bundles?: string;
|
|
717
875
|
EcoTaxPriceList?: string;
|
|
718
|
-
Error?: ServiceError
|
|
719
|
-
Metadata?: ResponseMessageMetadata
|
|
876
|
+
Error?: ServiceError<ID_TYPE>;
|
|
877
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
720
878
|
PriceList?: string;
|
|
721
879
|
Products?: string;
|
|
722
880
|
PromotionPriceList?: string;
|
|
723
881
|
}
|
|
724
|
-
export interface LiveGuardSyncGeneralByBlob {
|
|
882
|
+
export interface LiveGuardSyncGeneralByBlob<ID_TYPE = string> {
|
|
725
883
|
}
|
|
726
|
-
export interface LiveGuardSyncGeneralByBlobResponse {
|
|
727
|
-
Error?: ServiceError
|
|
884
|
+
export interface LiveGuardSyncGeneralByBlobResponse<ID_TYPE = string> {
|
|
885
|
+
Error?: ServiceError<ID_TYPE>;
|
|
728
886
|
ID?: string;
|
|
729
|
-
Metadata?: ResponseMessageMetadata
|
|
887
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
730
888
|
Url?: string;
|
|
731
889
|
}
|
|
732
|
-
export interface LiveGuardSyncUsersByBlob {
|
|
890
|
+
export interface LiveGuardSyncUsersByBlob<ID_TYPE = string> {
|
|
733
891
|
}
|
|
734
|
-
export interface LiveGuardSyncUsersByBlobResponse {
|
|
735
|
-
Error?: ServiceError
|
|
736
|
-
Metadata?: ResponseMessageMetadata
|
|
892
|
+
export interface LiveGuardSyncUsersByBlobResponse<ID_TYPE = string> {
|
|
893
|
+
Error?: ServiceError<ID_TYPE>;
|
|
894
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
737
895
|
Url?: string;
|
|
738
896
|
}
|
|
739
897
|
/**
|
|
740
898
|
* Trigger a full sync on a liveguard instance, this has major performance impact for a while
|
|
741
899
|
*/
|
|
742
|
-
export interface LiveGuardTriggerSync {
|
|
900
|
+
export interface LiveGuardTriggerSync<ID_TYPE = string> {
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Validate the given token with the cloud, and if valid, trust the chain.
|
|
904
|
+
*/
|
|
905
|
+
export interface LiveGuardValidateToken<ID_TYPE = string> {
|
|
906
|
+
AuthenticationToken?: string;
|
|
907
|
+
CloudChainID?: string;
|
|
908
|
+
LocalChainID?: string;
|
|
743
909
|
}
|
|
744
|
-
export interface
|
|
745
|
-
|
|
910
|
+
export interface LiveGuardValidateTokenResponse<ID_TYPE = string> {
|
|
911
|
+
ChainID?: string;
|
|
912
|
+
EmailAddress?: string;
|
|
913
|
+
Error?: ServiceError<ID_TYPE>;
|
|
914
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
915
|
+
Nickname?: string;
|
|
916
|
+
/**
|
|
917
|
+
* Entity type: User
|
|
918
|
+
*/
|
|
919
|
+
UserID?: ID_TYPE;
|
|
920
|
+
}
|
|
921
|
+
export interface TasksChainDto<ID_TYPE = string> {
|
|
922
|
+
CurrentSequenceNumber?: number;
|
|
746
923
|
CurrentSignature?: string;
|
|
747
|
-
Discriminator:
|
|
748
|
-
|
|
924
|
+
Discriminator: ID_TYPE;
|
|
925
|
+
/**
|
|
926
|
+
* Entity type: AuditChain
|
|
927
|
+
*/
|
|
928
|
+
ID: ID_TYPE;
|
|
749
929
|
Identifier?: string;
|
|
750
|
-
PreviousSequenceNumber
|
|
930
|
+
PreviousSequenceNumber?: number;
|
|
751
931
|
PreviousSignature?: string;
|
|
752
|
-
RecentLedgers?: ServicesSyncLiveGuardPushOrder_ChainLedgerDto[];
|
|
753
|
-
Type
|
|
754
|
-
Version
|
|
932
|
+
RecentLedgers?: ServicesSyncLiveGuardPushOrder_ChainLedgerDto<ID_TYPE>[];
|
|
933
|
+
Type?: AuditingAuditChainTypes;
|
|
934
|
+
Version?: number;
|
|
755
935
|
}
|
|
756
936
|
//# sourceMappingURL=eva-services-core-live-guard.d.ts.map
|