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