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