@springtree/eva-services-core-live-guard 3.0.0-beta.5 → 3.0.0-beta.51
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 +412 -240
- 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, 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,105 @@ 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
|
+
* - Name
|
|
204
|
+
* - OrganizationUnitName
|
|
205
|
+
* - Locked
|
|
206
|
+
* - Online
|
|
207
|
+
* - LastSeen
|
|
208
|
+
* - WatchtowerLastSeen
|
|
209
|
+
* - WatchtowerIOLastSeen
|
|
149
210
|
*/
|
|
150
|
-
export interface ListWatchtowerDevices {
|
|
151
|
-
PageConfig?: PageConfig<ServicesManagementListWatchtowerDevicesFilter>;
|
|
211
|
+
export interface ListWatchtowerDevices<ID_TYPE = string> {
|
|
212
|
+
PageConfig?: PageConfig<ServicesManagementListWatchtowerDevicesFilter<ID_TYPE>, ID_TYPE>;
|
|
152
213
|
}
|
|
153
|
-
export interface ServicesManagementListWatchtowerDevicesFilter {
|
|
214
|
+
export interface ServicesManagementListWatchtowerDevicesFilter<ID_TYPE = string> {
|
|
154
215
|
/**
|
|
155
216
|
* Entity type: Country
|
|
156
217
|
*/
|
|
@@ -158,31 +219,34 @@ export interface ServicesManagementListWatchtowerDevicesFilter {
|
|
|
158
219
|
/**
|
|
159
220
|
* Entity type: Device
|
|
160
221
|
*/
|
|
161
|
-
DeviceID?:
|
|
222
|
+
DeviceID?: ID_TYPE;
|
|
223
|
+
FleetManagerID?: string;
|
|
162
224
|
HardwareID?: string;
|
|
163
225
|
IncludeChildOrganizationUnits?: boolean;
|
|
226
|
+
IsLocked?: boolean;
|
|
164
227
|
IsWatchtowerConnected?: boolean;
|
|
165
228
|
IsWatchtowerIOConnected?: boolean;
|
|
166
229
|
IsWatchtowerOnline?: boolean;
|
|
167
|
-
MenderID?: string;
|
|
168
230
|
/**
|
|
169
231
|
* Entity type: OrganizationUnit
|
|
170
232
|
*/
|
|
171
|
-
OrganizationUnitID?:
|
|
233
|
+
OrganizationUnitID?: ID_TYPE;
|
|
172
234
|
OrganizationUnitStatus?: DataModelsOrganizationUnitStatus;
|
|
173
235
|
}
|
|
174
|
-
export interface ListWatchtowerDevicesResponse {
|
|
175
|
-
Error?: ServiceError
|
|
176
|
-
Metadata?: ResponseMessageMetadata
|
|
177
|
-
Result
|
|
236
|
+
export interface ListWatchtowerDevicesResponse<ID_TYPE = string> {
|
|
237
|
+
Error?: ServiceError<ID_TYPE>;
|
|
238
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
239
|
+
Result: PagedResult<ServicesManagementListWatchtowerDevicesResponse_Watchtower<ID_TYPE>, ID_TYPE>;
|
|
178
240
|
}
|
|
179
|
-
export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
241
|
+
export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower<ID_TYPE = string> {
|
|
242
|
+
ForceLocalMode: boolean;
|
|
180
243
|
HardwareID?: string;
|
|
181
244
|
/**
|
|
182
245
|
* Entity type: Device
|
|
183
246
|
*/
|
|
184
|
-
ID:
|
|
247
|
+
ID: ID_TYPE;
|
|
185
248
|
LastSeen?: string;
|
|
249
|
+
Locked: boolean;
|
|
186
250
|
Name?: string;
|
|
187
251
|
Online: boolean;
|
|
188
252
|
/**
|
|
@@ -196,7 +260,7 @@ export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
|
196
260
|
/**
|
|
197
261
|
* Entity type: OrganizationUnit
|
|
198
262
|
*/
|
|
199
|
-
OrganizationUnitID:
|
|
263
|
+
OrganizationUnitID: ID_TYPE;
|
|
200
264
|
OrganizationUnitName?: string;
|
|
201
265
|
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
202
266
|
WatchtowerConnected: boolean;
|
|
@@ -207,90 +271,85 @@ export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
|
207
271
|
/**
|
|
208
272
|
* Execute a command on a device
|
|
209
273
|
*/
|
|
210
|
-
export interface LiveGuardExecuteTask {
|
|
274
|
+
export interface LiveGuardExecuteTask<ID_TYPE = string> {
|
|
211
275
|
Catalog?: boolean;
|
|
212
276
|
/**
|
|
213
277
|
* Entity type: Device
|
|
214
278
|
*/
|
|
215
|
-
DeviceID:
|
|
279
|
+
DeviceID: ID_TYPE;
|
|
216
280
|
General?: boolean;
|
|
217
281
|
Users?: boolean;
|
|
218
282
|
}
|
|
219
283
|
/**
|
|
220
284
|
* Push the current configuration for the given device to mender
|
|
221
285
|
*/
|
|
222
|
-
export interface PushWatchtowerConfigurationToDevice {
|
|
286
|
+
export interface PushWatchtowerConfigurationToDevice<ID_TYPE = string> {
|
|
287
|
+
/**
|
|
288
|
+
* Entity type: Device
|
|
289
|
+
*/
|
|
290
|
+
DeviceID: ID_TYPE;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Update the lock status of a watchtower device.
|
|
294
|
+
*
|
|
295
|
+
* This can only be done when the device is online
|
|
296
|
+
*/
|
|
297
|
+
export interface ToggleLockStatusForWatchtowerDevice<ID_TYPE = string> {
|
|
223
298
|
/**
|
|
224
299
|
* Entity type: Device
|
|
225
300
|
*/
|
|
226
|
-
DeviceID:
|
|
301
|
+
DeviceID: ID_TYPE;
|
|
302
|
+
IsLocked?: boolean;
|
|
227
303
|
}
|
|
228
304
|
/**
|
|
229
305
|
* Execute a command on a device
|
|
230
306
|
*/
|
|
231
|
-
export interface WatchtowerExecuteCommand {
|
|
307
|
+
export interface WatchtowerExecuteCommand<ID_TYPE = string> {
|
|
232
308
|
Address?: string;
|
|
233
309
|
/**
|
|
234
310
|
* Entity type: Device
|
|
235
311
|
*/
|
|
236
|
-
DeviceID:
|
|
312
|
+
DeviceID: ID_TYPE;
|
|
237
313
|
Port?: number;
|
|
238
314
|
Type: string;
|
|
239
315
|
}
|
|
240
|
-
export interface WatchtowerExecuteCommandResponse {
|
|
241
|
-
Error?: ServiceError
|
|
242
|
-
Metadata?: ResponseMessageMetadata
|
|
316
|
+
export interface WatchtowerExecuteCommandResponse<ID_TYPE = string> {
|
|
317
|
+
Error?: ServiceError<ID_TYPE>;
|
|
318
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
243
319
|
Output?: string;
|
|
244
320
|
Success: boolean;
|
|
245
321
|
}
|
|
246
322
|
/**
|
|
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
323
|
* Get details about the given device.
|
|
266
324
|
*/
|
|
267
|
-
export interface WatchtowerGetDeviceDetails {
|
|
325
|
+
export interface WatchtowerGetDeviceDetails<ID_TYPE = string> {
|
|
268
326
|
/**
|
|
269
327
|
* Entity type: Device
|
|
270
328
|
*/
|
|
271
|
-
DeviceID:
|
|
329
|
+
DeviceID: ID_TYPE;
|
|
272
330
|
}
|
|
273
|
-
export interface WatchtowerGetDeviceDetailsResponse {
|
|
274
|
-
/**
|
|
275
|
-
* Removed
|
|
276
|
-
*/
|
|
277
|
-
ApiKey?: string;
|
|
331
|
+
export interface WatchtowerGetDeviceDetailsResponse<ID_TYPE = string> {
|
|
278
332
|
CatalogTaskState?: SchedulingTaskState;
|
|
279
333
|
CatalogTaskStateLastRunTime?: string;
|
|
280
334
|
EVAVersion?: string;
|
|
281
335
|
EVAVersionLastCheckinTime?: string;
|
|
282
|
-
Error?: ServiceError
|
|
336
|
+
Error?: ServiceError<ID_TYPE>;
|
|
337
|
+
FleetManagerID?: string;
|
|
338
|
+
FleetManagerLastCheckIn?: string;
|
|
339
|
+
FleetManagerStatus?: ManagersFleetManagerDeviceStatus;
|
|
340
|
+
ForceLocalMode: boolean;
|
|
283
341
|
GeneralTaskState?: SchedulingTaskState;
|
|
284
342
|
GeneralTaskStateLastRunTime?: string;
|
|
285
343
|
HardwareID?: string;
|
|
286
|
-
ID:
|
|
344
|
+
ID: ID_TYPE;
|
|
287
345
|
IOVersion?: string;
|
|
288
346
|
IOVersionLastCheckinTime?: string;
|
|
289
347
|
LastSeen?: string;
|
|
290
348
|
LiveGuardStateLastCheckinTime?: string;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
349
|
+
Locked: boolean;
|
|
350
|
+
Logs?: DevicesWatchtowerLog<ID_TYPE>[];
|
|
351
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
352
|
+
NetworkInterfaces?: ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface<ID_TYPE>[];
|
|
294
353
|
OSVersion?: string;
|
|
295
354
|
OSVersionLastCheckinTime?: string;
|
|
296
355
|
Online: boolean;
|
|
@@ -302,7 +361,7 @@ export interface WatchtowerGetDeviceDetailsResponse {
|
|
|
302
361
|
/**
|
|
303
362
|
* Entity type: OrganizationUnit
|
|
304
363
|
*/
|
|
305
|
-
OrganizationUnitID:
|
|
364
|
+
OrganizationUnitID: ID_TYPE;
|
|
306
365
|
OrganizationUnitName?: string;
|
|
307
366
|
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
308
367
|
PendingOrderExports?: number;
|
|
@@ -319,64 +378,72 @@ export interface WatchtowerGetDeviceDetailsResponse {
|
|
|
319
378
|
WatchtowerIOLastSeen?: string;
|
|
320
379
|
WatchtowerLastSeen?: string;
|
|
321
380
|
}
|
|
322
|
-
export interface ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface {
|
|
381
|
+
export interface ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface<ID_TYPE = string> {
|
|
323
382
|
IPV4?: string;
|
|
324
383
|
IPV6?: string;
|
|
325
384
|
MacAddress?: string;
|
|
326
385
|
Name?: string;
|
|
327
386
|
}
|
|
328
|
-
export interface EVAStatus {
|
|
387
|
+
export interface EVAStatus<ID_TYPE = string> {
|
|
329
388
|
}
|
|
330
|
-
export interface EVAStatusResponse {
|
|
331
|
-
Error?: ServiceError
|
|
332
|
-
Metadata?: ResponseMessageMetadata
|
|
389
|
+
export interface EVAStatusResponse<ID_TYPE = string> {
|
|
390
|
+
Error?: ServiceError<ID_TYPE>;
|
|
391
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
333
392
|
Ready: boolean;
|
|
334
393
|
}
|
|
335
394
|
/**
|
|
336
395
|
* Returns some basic information about the current state of the liveGuard
|
|
337
396
|
*/
|
|
338
|
-
export interface LiveGuardGetInformation {
|
|
397
|
+
export interface LiveGuardGetInformation<ID_TYPE = string> {
|
|
339
398
|
}
|
|
340
|
-
export interface LiveGuardGetInformationResponse {
|
|
341
|
-
|
|
399
|
+
export interface LiveGuardGetInformationResponse<ID_TYPE = string> {
|
|
400
|
+
CatalogTaskLastRun?: string;
|
|
401
|
+
CatalogTaskState?: SchedulingTaskState;
|
|
402
|
+
Error?: ServiceError<ID_TYPE>;
|
|
403
|
+
GeneralTaskLastRun?: string;
|
|
404
|
+
GeneralTaskState?: SchedulingTaskState;
|
|
342
405
|
HardwareID?: string;
|
|
343
406
|
LastCatalogSync?: string;
|
|
344
407
|
LastGeneralSync?: string;
|
|
345
408
|
LastUserSync?: string;
|
|
346
|
-
Metadata?: ResponseMessageMetadata
|
|
409
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
347
410
|
OrganizationUnitBackendID?: string;
|
|
348
411
|
OrganizationUnitName?: string;
|
|
349
412
|
PendingOrderExports: number;
|
|
350
413
|
ProductsCount: number;
|
|
351
414
|
SettingsCount: number;
|
|
415
|
+
UserTaskLastRun?: string;
|
|
416
|
+
UserTaskState?: SchedulingTaskState;
|
|
352
417
|
UsersCount: number;
|
|
353
418
|
Version?: string;
|
|
354
419
|
}
|
|
355
420
|
/**
|
|
356
421
|
* This service returns the operational flags for a liveguard instance.
|
|
357
422
|
*/
|
|
358
|
-
export interface LiveGuardGetStatus {
|
|
423
|
+
export interface LiveGuardGetStatus<ID_TYPE = string> {
|
|
359
424
|
}
|
|
360
|
-
export interface LiveGuardGetStatusResponse {
|
|
425
|
+
export interface LiveGuardGetStatusResponse<ID_TYPE = string> {
|
|
361
426
|
DisableCheckTask: boolean;
|
|
362
427
|
EVACloudAvailable: boolean;
|
|
363
|
-
Error?: ServiceError
|
|
428
|
+
Error?: ServiceError<ID_TYPE>;
|
|
364
429
|
InternetAvailable: boolean;
|
|
365
|
-
Metadata?: ResponseMessageMetadata
|
|
430
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
366
431
|
RunningOnWatchtower: boolean;
|
|
367
432
|
}
|
|
368
433
|
/**
|
|
369
434
|
* Push metrics of the watchtower device to the cloud.
|
|
370
435
|
*/
|
|
371
|
-
export interface LiveGuardPushMetrics {
|
|
436
|
+
export interface LiveGuardPushMetrics<ID_TYPE = string> {
|
|
372
437
|
AvgLatency?: number;
|
|
373
438
|
CPUUsage?: number;
|
|
439
|
+
DNSLatency?: number;
|
|
374
440
|
DiskUsage?: number;
|
|
375
441
|
EVAVersion?: string;
|
|
376
442
|
HardwareID: string;
|
|
377
443
|
IOVersion?: string;
|
|
378
444
|
LastBootTime?: string;
|
|
379
445
|
Latency?: number;
|
|
446
|
+
Logs?: DevicesWatchtowerLog<ID_TYPE>[];
|
|
380
447
|
OSVersion?: string;
|
|
381
448
|
RAMUsage?: number;
|
|
382
449
|
State?: string;
|
|
@@ -387,7 +454,7 @@ export interface LiveGuardPushMetrics {
|
|
|
387
454
|
*
|
|
388
455
|
* This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
|
|
389
456
|
*/
|
|
390
|
-
export interface LiveGuardSetStatus {
|
|
457
|
+
export interface LiveGuardSetStatus<ID_TYPE = string> {
|
|
391
458
|
/**
|
|
392
459
|
* 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
460
|
*/
|
|
@@ -408,205 +475,262 @@ export interface LiveGuardSetStatus {
|
|
|
408
475
|
/**
|
|
409
476
|
* Get user information to sync to LiveGuard
|
|
410
477
|
*/
|
|
411
|
-
export interface GetUserForLiveGuard {
|
|
478
|
+
export interface GetUserForLiveGuard<ID_TYPE = string> {
|
|
412
479
|
EmailAddress?: string;
|
|
413
480
|
NickName?: string;
|
|
414
481
|
/**
|
|
415
482
|
* Entity type: User
|
|
416
483
|
*/
|
|
417
|
-
UserID?:
|
|
484
|
+
UserID?: ID_TYPE;
|
|
418
485
|
}
|
|
419
|
-
export interface GetUserForLiveGuardResponse {
|
|
420
|
-
AuthenticationData?: ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto[];
|
|
486
|
+
export interface GetUserForLiveGuardResponse<ID_TYPE = string> {
|
|
487
|
+
AuthenticationData?: ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto<ID_TYPE>[];
|
|
421
488
|
BackendID?: string;
|
|
422
489
|
BackendSystemID?: string;
|
|
423
490
|
/**
|
|
491
|
+
* Entity type: User
|
|
492
|
+
*/
|
|
493
|
+
CloudIDs?: ID_TYPE[];
|
|
494
|
+
/**
|
|
424
495
|
* Entity type: Country
|
|
425
496
|
*/
|
|
426
497
|
CountryID?: string;
|
|
427
498
|
EmailAddress?: string;
|
|
428
|
-
Error?: ServiceError
|
|
499
|
+
Error?: ServiceError<ID_TYPE>;
|
|
429
500
|
FirstName?: string;
|
|
430
501
|
/**
|
|
431
502
|
* Entity type: Language
|
|
432
503
|
*/
|
|
433
504
|
LanguageID?: string;
|
|
434
505
|
LastName?: string;
|
|
435
|
-
Metadata?: ResponseMessageMetadata
|
|
506
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
436
507
|
Nickname?: string;
|
|
437
|
-
Roles?: ServicesSyncGetUserForLiveGuardResponse_RoleDto[];
|
|
508
|
+
Roles?: ServicesSyncGetUserForLiveGuardResponse_RoleDto<ID_TYPE>[];
|
|
438
509
|
TimeZone?: string;
|
|
439
510
|
Type: UserTypes;
|
|
440
511
|
}
|
|
441
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto {
|
|
512
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto<ID_TYPE = string> {
|
|
442
513
|
Data?: string;
|
|
443
514
|
SearchKey?: string;
|
|
444
515
|
Type?: string;
|
|
445
516
|
}
|
|
446
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto {
|
|
517
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto<ID_TYPE = string> {
|
|
447
518
|
Functionality: string;
|
|
448
519
|
FunctionalityScope: SecurityFunctionalityScope;
|
|
449
520
|
RequiresElevation: boolean;
|
|
450
521
|
}
|
|
451
|
-
export interface ServicesSyncGetUserForLiveGuardResponse_RoleDto {
|
|
522
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_RoleDto<ID_TYPE = string> {
|
|
452
523
|
Code?: string;
|
|
453
524
|
DeactivateUserAfterInactiveDays?: number;
|
|
454
|
-
Functionalities: ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto[];
|
|
525
|
+
Functionalities: ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto<ID_TYPE>[];
|
|
455
526
|
GlobalID?: string;
|
|
456
527
|
Name?: string;
|
|
457
528
|
UserType: UserTypes;
|
|
458
529
|
}
|
|
459
|
-
export interface LiveGuardGenerateApiKey {
|
|
530
|
+
export interface LiveGuardGenerateApiKey<ID_TYPE = string> {
|
|
460
531
|
/**
|
|
461
532
|
* Entity type: OrganizationUnit
|
|
462
533
|
*/
|
|
463
|
-
OrganizationUnitID:
|
|
534
|
+
OrganizationUnitID: ID_TYPE;
|
|
464
535
|
}
|
|
465
|
-
export interface LiveGuardGenerateApiKeyResponse {
|
|
536
|
+
export interface LiveGuardGenerateApiKeyResponse<ID_TYPE = string> {
|
|
466
537
|
ApiKey: string;
|
|
467
|
-
Error?: ServiceError
|
|
468
|
-
Metadata?: ResponseMessageMetadata
|
|
538
|
+
Error?: ServiceError<ID_TYPE>;
|
|
539
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Generate a trust token that needs to be provided in the Login call to the cloud to verify local presence
|
|
543
|
+
*/
|
|
544
|
+
export interface LiveGuardGenerateTrustToken<ID_TYPE = string> {
|
|
545
|
+
}
|
|
546
|
+
export interface LiveGuardGenerateTrustTokenResponse<ID_TYPE = string> {
|
|
547
|
+
Error?: ServiceError<ID_TYPE>;
|
|
548
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
549
|
+
TrustToken: string;
|
|
469
550
|
}
|
|
470
551
|
/**
|
|
471
552
|
* Retreive current chain status for the connected watchtower
|
|
472
553
|
*/
|
|
473
|
-
export interface LiveGuardGetAuditChains {
|
|
554
|
+
export interface LiveGuardGetAuditChains<ID_TYPE = string> {
|
|
474
555
|
}
|
|
475
|
-
export interface LiveGuardGetAuditChainsResponse {
|
|
476
|
-
Chains?: TasksChainDto[];
|
|
477
|
-
Error?: ServiceError
|
|
478
|
-
Metadata?: ResponseMessageMetadata
|
|
556
|
+
export interface LiveGuardGetAuditChainsResponse<ID_TYPE = string> {
|
|
557
|
+
Chains?: TasksChainDto<ID_TYPE>[];
|
|
558
|
+
Error?: ServiceError<ID_TYPE>;
|
|
559
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
479
560
|
}
|
|
480
561
|
/**
|
|
481
562
|
* Retreive current secret for TOTP token usage
|
|
482
563
|
*/
|
|
483
|
-
export interface LiveGuardGetTOTPSecret {
|
|
564
|
+
export interface LiveGuardGetTOTPSecret<ID_TYPE = string> {
|
|
484
565
|
}
|
|
485
|
-
export interface LiveGuardGetTOTPSecretResponse {
|
|
486
|
-
Error?: ServiceError
|
|
487
|
-
Metadata?: ResponseMessageMetadata
|
|
488
|
-
Secret: LiveGuardTOTPSecretWrapper
|
|
566
|
+
export interface LiveGuardGetTOTPSecretResponse<ID_TYPE = string> {
|
|
567
|
+
Error?: ServiceError<ID_TYPE>;
|
|
568
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
569
|
+
Secret: LiveGuardTOTPSecretWrapper<ID_TYPE>;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
|
|
573
|
+
*
|
|
574
|
+
* Can only be called by the liveguard user
|
|
575
|
+
*/
|
|
576
|
+
export interface LiveGuardGetTokenForUser<ID_TYPE = string> {
|
|
577
|
+
UseJwtTokens?: boolean;
|
|
578
|
+
Username: string;
|
|
579
|
+
}
|
|
580
|
+
export interface LiveGuardGetTokenForUserResponse<ID_TYPE = string> {
|
|
581
|
+
AuthenticationToken: string;
|
|
582
|
+
Error?: ServiceError<ID_TYPE>;
|
|
583
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
584
|
+
RefreshToken?: string;
|
|
489
585
|
}
|
|
490
586
|
/**
|
|
491
587
|
* Accepts an Order pushed from a LiveGuard instance
|
|
492
588
|
*/
|
|
493
|
-
export interface LiveGuardPushOrder {
|
|
494
|
-
BillingAddress?: AddressesAddressDataDto
|
|
589
|
+
export interface LiveGuardPushOrder<ID_TYPE = string> {
|
|
590
|
+
BillingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
495
591
|
BlobID: string;
|
|
496
|
-
Blobs?: ServicesSyncLiveGuardPushOrder_OrderBlobDto[];
|
|
497
|
-
Chains?: TasksChainDto[];
|
|
592
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_OrderBlobDto<ID_TYPE>[];
|
|
593
|
+
Chains?: TasksChainDto<ID_TYPE>[];
|
|
498
594
|
CreationTime?: string;
|
|
499
|
-
Customer?: ServicesSyncLiveGuardPushOrder_CustomerDto
|
|
500
|
-
CustomerIdentifiers?: ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto
|
|
501
|
-
|
|
595
|
+
Customer?: ServicesSyncLiveGuardPushOrder_CustomerDto<ID_TYPE>;
|
|
596
|
+
CustomerIdentifiers?: ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto<ID_TYPE>;
|
|
597
|
+
DisplayID?: string;
|
|
598
|
+
Invoices?: ServicesSyncLiveGuardPushOrder_InvoiceDto<ID_TYPE>[];
|
|
502
599
|
IsPaid?: boolean;
|
|
503
600
|
IsShipped?: boolean;
|
|
504
|
-
Lines?: ServicesSyncLiveGuardPushOrder_OrderLineDto[];
|
|
601
|
+
Lines?: ServicesSyncLiveGuardPushOrder_OrderLineDto<ID_TYPE>[];
|
|
505
602
|
LiveGuardOrderID?: string;
|
|
506
|
-
Payments?: ServicesSyncLiveGuardPushOrder_PaymentDto[];
|
|
507
|
-
PickupAddress?: AddressesAddressDataDto
|
|
603
|
+
Payments?: ServicesSyncLiveGuardPushOrder_PaymentDto<ID_TYPE>[];
|
|
604
|
+
PickupAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
508
605
|
Remark?: string;
|
|
509
|
-
ShippingAddress?: AddressesAddressDataDto
|
|
606
|
+
ShippingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
510
607
|
SoldBy?: string;
|
|
511
608
|
}
|
|
512
|
-
export interface ServicesSyncLiveGuardPushOrder_ChainLedgerDto {
|
|
609
|
+
export interface ServicesSyncLiveGuardPushOrder_ChainLedgerDto<ID_TYPE = string> {
|
|
513
610
|
CreationTime: string;
|
|
514
|
-
NewSequenceNumber
|
|
611
|
+
NewSequenceNumber?: number;
|
|
515
612
|
NewSignature?: string;
|
|
516
|
-
PreviousSequenceNumber
|
|
613
|
+
PreviousSequenceNumber?: number;
|
|
517
614
|
PreviousSignature?: string;
|
|
518
615
|
}
|
|
519
|
-
export interface ServicesSyncLiveGuardPushOrder_CustomerDto {
|
|
616
|
+
export interface ServicesSyncLiveGuardPushOrder_CustomerDto<ID_TYPE = string> {
|
|
520
617
|
CountryID?: string;
|
|
521
618
|
EmailAddress?: string;
|
|
522
619
|
FirstName?: string;
|
|
523
620
|
Gender?: string;
|
|
524
621
|
LanguageID?: string;
|
|
525
622
|
LastName?: string;
|
|
526
|
-
|
|
623
|
+
/**
|
|
624
|
+
* Entity type: User
|
|
625
|
+
*/
|
|
626
|
+
LiveGuardID: ID_TYPE;
|
|
527
627
|
PhoneNumber?: string;
|
|
528
628
|
}
|
|
529
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceBlobDto {
|
|
629
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceBlobDto<ID_TYPE = string> {
|
|
530
630
|
BackendID?: string;
|
|
531
631
|
BlobID: string;
|
|
532
632
|
Category?: string;
|
|
533
633
|
MimeType?: string;
|
|
534
634
|
OriginalName?: string;
|
|
535
635
|
}
|
|
536
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDataDto {
|
|
636
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE = string> {
|
|
537
637
|
Data?: string;
|
|
538
638
|
SearchKey?: string;
|
|
539
639
|
Type?: string;
|
|
540
640
|
}
|
|
541
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto {
|
|
542
|
-
|
|
641
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto<ID_TYPE = string> {
|
|
642
|
+
/**
|
|
643
|
+
* Entity type: AuditChain
|
|
644
|
+
*/
|
|
645
|
+
ChainID?: ID_TYPE;
|
|
543
646
|
FailureReason?: string;
|
|
544
|
-
Format
|
|
545
|
-
InvoiceDocumentLedgerData?: DataModelsInvoiceDocumentLedgerData
|
|
647
|
+
Format?: DataModelsInvoiceDocumentLedgerFormats;
|
|
648
|
+
InvoiceDocumentLedgerData?: DataModelsInvoiceDocumentLedgerData<ID_TYPE>;
|
|
546
649
|
IsSuccess?: boolean;
|
|
547
|
-
|
|
548
|
-
|
|
650
|
+
/**
|
|
651
|
+
* Entity type: Device
|
|
652
|
+
*/
|
|
653
|
+
OriginalDeviceID?: ID_TYPE;
|
|
654
|
+
PreviousSequenceNumber?: number;
|
|
549
655
|
PreviousSignature?: string;
|
|
550
656
|
ReportContentBlobID?: string;
|
|
551
657
|
ReprintNumber?: number;
|
|
552
|
-
SequenceNumber
|
|
658
|
+
SequenceNumber?: number;
|
|
553
659
|
Signature?: string;
|
|
554
|
-
Type
|
|
660
|
+
Type?: DataModelsInvoiceDocumentLedgerTypes;
|
|
555
661
|
}
|
|
556
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceDto {
|
|
662
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDto<ID_TYPE = string> {
|
|
557
663
|
AuditingProvider?: string;
|
|
558
664
|
BackendID?: string;
|
|
559
665
|
BackendSystemID?: string;
|
|
560
666
|
BackendTypeID?: number;
|
|
561
|
-
Blobs?: ServicesSyncLiveGuardPushOrder_InvoiceBlobDto[];
|
|
562
|
-
CalculationMethod
|
|
563
|
-
|
|
667
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_InvoiceBlobDto<ID_TYPE>[];
|
|
668
|
+
CalculationMethod?: DataModelsInvoiceCalculationMethod;
|
|
669
|
+
/**
|
|
670
|
+
* Entity type: AuditChain
|
|
671
|
+
*/
|
|
672
|
+
ChainID?: ID_TYPE;
|
|
564
673
|
CurrencyID?: string;
|
|
565
674
|
Description?: string;
|
|
566
|
-
DocumentLedger?: ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto[];
|
|
675
|
+
DocumentLedger?: ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto<ID_TYPE>[];
|
|
676
|
+
ExpirationDate?: string;
|
|
567
677
|
FiscalID?: string;
|
|
568
|
-
|
|
569
|
-
|
|
678
|
+
/**
|
|
679
|
+
* Entity type: Invoice
|
|
680
|
+
*/
|
|
681
|
+
ID: ID_TYPE;
|
|
682
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE>[];
|
|
570
683
|
InvoiceDate?: string;
|
|
571
684
|
InvoiceNumber?: string;
|
|
572
|
-
Lines?: ServicesSyncLiveGuardPushOrder_InvoiceLineDto[];
|
|
685
|
+
Lines?: ServicesSyncLiveGuardPushOrder_InvoiceLineDto<ID_TYPE>[];
|
|
573
686
|
PreviousSignature?: string;
|
|
574
687
|
PrintCount?: number;
|
|
575
688
|
ReferencedInvoice?: string;
|
|
576
|
-
SequenceNumber?:
|
|
689
|
+
SequenceNumber?: number;
|
|
577
690
|
Signature?: string;
|
|
691
|
+
/**
|
|
692
|
+
* Entity type: Station
|
|
693
|
+
*/
|
|
578
694
|
StationID?: string;
|
|
579
|
-
Status
|
|
695
|
+
Status?: DataModelsInvoiceStatuses;
|
|
580
696
|
TaxReverseCharge?: boolean;
|
|
581
697
|
TotalAmount: number;
|
|
582
|
-
Type
|
|
583
|
-
UserData?: ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto
|
|
698
|
+
Type?: DataModelsInvoiceTypes;
|
|
699
|
+
UserData?: ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto<ID_TYPE>;
|
|
584
700
|
VatNumber?: string;
|
|
585
701
|
}
|
|
586
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto {
|
|
702
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto<ID_TYPE = string> {
|
|
587
703
|
Amount: number;
|
|
588
704
|
BackendID?: string;
|
|
705
|
+
CloudID?: ID_TYPE;
|
|
589
706
|
Description?: string;
|
|
590
707
|
}
|
|
591
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDto {
|
|
708
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDto<ID_TYPE = string> {
|
|
709
|
+
Description?: string;
|
|
592
710
|
DiscountAmount: number;
|
|
593
|
-
DiscountDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto[];
|
|
594
|
-
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto[];
|
|
711
|
+
DiscountDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto<ID_TYPE>[];
|
|
712
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto<ID_TYPE>[];
|
|
595
713
|
InvoicedBy?: string;
|
|
596
|
-
|
|
714
|
+
NetTaxAmount: number;
|
|
715
|
+
/**
|
|
716
|
+
* Entity type: OrderLine
|
|
717
|
+
*/
|
|
718
|
+
OrderLineID: ID_TYPE;
|
|
597
719
|
Quantity?: number;
|
|
598
720
|
TaxAmount?: number;
|
|
599
721
|
TaxCode?: string;
|
|
600
|
-
TaxDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto[];
|
|
722
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto<ID_TYPE>[];
|
|
601
723
|
TaxRate: number;
|
|
602
724
|
TaxRateCategory?: DataModelsTaxRateCategory;
|
|
603
725
|
TotalAmountInvoiced: number;
|
|
604
726
|
TotalAmountInvoicedInTax: number;
|
|
605
|
-
|
|
727
|
+
TotalTaxAmount: number;
|
|
728
|
+
Type?: DataModelsInvoiceLineTypes;
|
|
606
729
|
UnitCost?: number;
|
|
607
730
|
UnitPrice?: number;
|
|
731
|
+
UnitPriceInTax: number;
|
|
608
732
|
}
|
|
609
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto {
|
|
733
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto<ID_TYPE = string> {
|
|
610
734
|
TaxAmount: number;
|
|
611
735
|
TaxName?: string;
|
|
612
736
|
TaxRate: number;
|
|
@@ -614,11 +738,11 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto {
|
|
|
614
738
|
TaxSubTypeName?: string;
|
|
615
739
|
TaxType?: string;
|
|
616
740
|
}
|
|
617
|
-
export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
741
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto<ID_TYPE = string> {
|
|
618
742
|
BackendRelationID?: string;
|
|
619
743
|
BankAccount?: string;
|
|
620
|
-
BillingAddress?: AddressesAddressDataDto
|
|
621
|
-
Company?: CompaniesCompanyDto
|
|
744
|
+
BillingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
745
|
+
Company?: CompaniesCompanyDto<ID_TYPE>;
|
|
622
746
|
CountryID?: string;
|
|
623
747
|
EmailAddress?: string;
|
|
624
748
|
FirstName?: string;
|
|
@@ -627,14 +751,13 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
|
627
751
|
Initials?: string;
|
|
628
752
|
LanguageID?: string;
|
|
629
753
|
LastName?: string;
|
|
630
|
-
OrganizationUnitAddress?: AddressesAddressDataDto;
|
|
631
754
|
OrganizationUnitAddress1?: string;
|
|
632
755
|
OrganizationUnitAddress2?: string;
|
|
633
756
|
OrganizationUnitBIC?: string;
|
|
634
757
|
OrganizationUnitBackendID?: string;
|
|
635
758
|
OrganizationUnitBranchNumber?: string;
|
|
636
759
|
OrganizationUnitCity?: string;
|
|
637
|
-
OrganizationUnitCompany?: CompaniesCompanyDto
|
|
760
|
+
OrganizationUnitCompany?: CompaniesCompanyDto<ID_TYPE>;
|
|
638
761
|
OrganizationUnitCompanyVatNumber?: string;
|
|
639
762
|
OrganizationUnitCountryID?: string;
|
|
640
763
|
OrganizationUnitDistrict?: string;
|
|
@@ -648,43 +771,60 @@ export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
|
648
771
|
OrganizationUnitWebsite?: string;
|
|
649
772
|
OrganizationUnitZipCode?: string;
|
|
650
773
|
PhoneNumber?: string;
|
|
651
|
-
ShippingAddress?: AddressesAddressDataDto
|
|
774
|
+
ShippingAddress?: AddressesAddressDataDto<ID_TYPE>;
|
|
652
775
|
}
|
|
653
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderBlobDto {
|
|
776
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderBlobDto<ID_TYPE = string> {
|
|
654
777
|
BlobID: string;
|
|
655
|
-
|
|
778
|
+
/**
|
|
779
|
+
* Entity type: Invoice
|
|
780
|
+
*/
|
|
781
|
+
InvoiceID?: ID_TYPE;
|
|
656
782
|
Name?: string;
|
|
657
|
-
|
|
658
|
-
|
|
783
|
+
/**
|
|
784
|
+
* Entity type: OrderLine
|
|
785
|
+
*/
|
|
786
|
+
OrderLineID?: ID_TYPE;
|
|
787
|
+
Type?: DataModelsOrderBlobTypes;
|
|
659
788
|
}
|
|
660
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto {
|
|
789
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto<ID_TYPE = string> {
|
|
661
790
|
EmailAddress?: string;
|
|
662
791
|
UserBackendID?: string;
|
|
663
792
|
UserCustomID?: string;
|
|
664
793
|
UserID?: string;
|
|
665
794
|
UserSubscriptionID?: string;
|
|
666
795
|
}
|
|
667
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineDiscount {
|
|
796
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDiscount<ID_TYPE = string> {
|
|
668
797
|
Amount: number;
|
|
669
798
|
BackendID?: string;
|
|
799
|
+
CloudID?: ID_TYPE;
|
|
670
800
|
Description?: string;
|
|
671
|
-
|
|
801
|
+
/**
|
|
802
|
+
* Entity type: OrderLine
|
|
803
|
+
*/
|
|
804
|
+
OrderLineID: ID_TYPE;
|
|
672
805
|
}
|
|
673
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineDto {
|
|
806
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDto<ID_TYPE = string> {
|
|
674
807
|
Amount: number;
|
|
675
808
|
BackendID?: string;
|
|
676
809
|
CustomID?: string;
|
|
677
810
|
Description?: string;
|
|
678
|
-
Discounts?: ServicesSyncLiveGuardPushOrder_OrderLineDiscount[];
|
|
679
|
-
|
|
811
|
+
Discounts?: ServicesSyncLiveGuardPushOrder_OrderLineDiscount<ID_TYPE>[];
|
|
812
|
+
/**
|
|
813
|
+
* Entity type: OrderLine
|
|
814
|
+
*/
|
|
815
|
+
ID: ID_TYPE;
|
|
680
816
|
Quantity?: number;
|
|
817
|
+
ReturnReason?: string;
|
|
818
|
+
ReturnReasonType?: DataModelsReturnReasonType;
|
|
681
819
|
SerialNumber?: string;
|
|
682
|
-
TaxDetails?: ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail[];
|
|
820
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail<ID_TYPE>[];
|
|
683
821
|
TaxRate: number;
|
|
822
|
+
TaxRateCategory?: DataModelsTaxRateCategory;
|
|
684
823
|
UnitPriceBeforeCorrection?: number;
|
|
824
|
+
UnitPriceBeforeCorrectionInTax?: number;
|
|
685
825
|
UnitPriceCorrectionReason?: string;
|
|
686
826
|
}
|
|
687
|
-
export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail {
|
|
827
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail<ID_TYPE = string> {
|
|
688
828
|
TaxAmount: number;
|
|
689
829
|
TaxName?: string;
|
|
690
830
|
TaxRate: number;
|
|
@@ -692,61 +832,93 @@ export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail {
|
|
|
692
832
|
TaxSubTypeName?: string;
|
|
693
833
|
TaxType?: string;
|
|
694
834
|
}
|
|
695
|
-
export interface ServicesSyncLiveGuardPushOrder_PaymentDto {
|
|
835
|
+
export interface ServicesSyncLiveGuardPushOrder_PaymentDto<ID_TYPE = string> {
|
|
696
836
|
Amount: number;
|
|
697
837
|
BackendID?: string;
|
|
698
838
|
Data?: string;
|
|
699
|
-
|
|
839
|
+
DataObjects?: string;
|
|
840
|
+
/**
|
|
841
|
+
* Entity type: PaymentTransaction
|
|
842
|
+
*/
|
|
843
|
+
ID: ID_TYPE;
|
|
700
844
|
Method?: string;
|
|
701
|
-
|
|
845
|
+
/**
|
|
846
|
+
* Entity type: Device
|
|
847
|
+
*/
|
|
848
|
+
OriginalDeviceID?: ID_TYPE;
|
|
702
849
|
Type?: string;
|
|
703
850
|
}
|
|
704
|
-
export interface LiveGuardPushOrderResponse {
|
|
851
|
+
export interface LiveGuardPushOrderResponse<ID_TYPE = string> {
|
|
705
852
|
AlreadyExists: boolean;
|
|
706
|
-
Error?: ServiceError
|
|
707
|
-
|
|
708
|
-
|
|
853
|
+
Error?: ServiceError<ID_TYPE>;
|
|
854
|
+
/**
|
|
855
|
+
* Entity type: Order
|
|
856
|
+
*/
|
|
857
|
+
ID: ID_TYPE;
|
|
858
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
709
859
|
}
|
|
710
|
-
export interface LiveGuardSyncCatalogByBlob {
|
|
860
|
+
export interface LiveGuardSyncCatalogByBlob<ID_TYPE = string> {
|
|
711
861
|
}
|
|
712
|
-
export interface LiveGuardSyncCatalogByBlobResponse {
|
|
862
|
+
export interface LiveGuardSyncCatalogByBlobResponse<ID_TYPE = string> {
|
|
713
863
|
Bundles?: string;
|
|
714
864
|
EcoTaxPriceList?: string;
|
|
715
|
-
Error?: ServiceError
|
|
716
|
-
Metadata?: ResponseMessageMetadata
|
|
865
|
+
Error?: ServiceError<ID_TYPE>;
|
|
866
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
717
867
|
PriceList?: string;
|
|
718
868
|
Products?: string;
|
|
719
869
|
PromotionPriceList?: string;
|
|
720
870
|
}
|
|
721
|
-
export interface LiveGuardSyncGeneralByBlob {
|
|
871
|
+
export interface LiveGuardSyncGeneralByBlob<ID_TYPE = string> {
|
|
722
872
|
}
|
|
723
|
-
export interface LiveGuardSyncGeneralByBlobResponse {
|
|
724
|
-
Error?: ServiceError
|
|
725
|
-
|
|
726
|
-
|
|
873
|
+
export interface LiveGuardSyncGeneralByBlobResponse<ID_TYPE = string> {
|
|
874
|
+
Error?: ServiceError<ID_TYPE>;
|
|
875
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
876
|
+
Url?: string;
|
|
727
877
|
}
|
|
728
|
-
export interface LiveGuardSyncUsersByBlob {
|
|
878
|
+
export interface LiveGuardSyncUsersByBlob<ID_TYPE = string> {
|
|
729
879
|
}
|
|
730
|
-
export interface LiveGuardSyncUsersByBlobResponse {
|
|
731
|
-
Error?: ServiceError
|
|
732
|
-
Metadata?: ResponseMessageMetadata
|
|
880
|
+
export interface LiveGuardSyncUsersByBlobResponse<ID_TYPE = string> {
|
|
881
|
+
Error?: ServiceError<ID_TYPE>;
|
|
882
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
733
883
|
Url?: string;
|
|
734
884
|
}
|
|
735
885
|
/**
|
|
736
886
|
* Trigger a full sync on a liveguard instance, this has major performance impact for a while
|
|
737
887
|
*/
|
|
738
|
-
export interface LiveGuardTriggerSync {
|
|
888
|
+
export interface LiveGuardTriggerSync<ID_TYPE = string> {
|
|
739
889
|
}
|
|
740
|
-
|
|
741
|
-
|
|
890
|
+
/**
|
|
891
|
+
* Validate the given token with the cloud, and if valid, trust the chain.
|
|
892
|
+
*/
|
|
893
|
+
export interface LiveGuardValidateToken<ID_TYPE = string> {
|
|
894
|
+
AuthenticationToken?: string;
|
|
895
|
+
CloudChainID?: string;
|
|
896
|
+
LocalChainID?: string;
|
|
897
|
+
}
|
|
898
|
+
export interface LiveGuardValidateTokenResponse<ID_TYPE = string> {
|
|
899
|
+
ChainID?: string;
|
|
900
|
+
EmailAddress?: string;
|
|
901
|
+
Error?: ServiceError<ID_TYPE>;
|
|
902
|
+
Metadata?: ResponseMessageMetadata<ID_TYPE>;
|
|
903
|
+
Nickname?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Entity type: User
|
|
906
|
+
*/
|
|
907
|
+
UserID?: ID_TYPE;
|
|
908
|
+
}
|
|
909
|
+
export interface TasksChainDto<ID_TYPE = string> {
|
|
910
|
+
CurrentSequenceNumber?: number;
|
|
742
911
|
CurrentSignature?: string;
|
|
743
|
-
Discriminator
|
|
744
|
-
|
|
912
|
+
Discriminator?: number;
|
|
913
|
+
/**
|
|
914
|
+
* Entity type: AuditChain
|
|
915
|
+
*/
|
|
916
|
+
ID: ID_TYPE;
|
|
745
917
|
Identifier?: string;
|
|
746
|
-
PreviousSequenceNumber
|
|
918
|
+
PreviousSequenceNumber?: number;
|
|
747
919
|
PreviousSignature?: string;
|
|
748
|
-
RecentLedgers?: ServicesSyncLiveGuardPushOrder_ChainLedgerDto[];
|
|
749
|
-
Type
|
|
750
|
-
Version
|
|
920
|
+
RecentLedgers?: ServicesSyncLiveGuardPushOrder_ChainLedgerDto<ID_TYPE>[];
|
|
921
|
+
Type?: AuditingAuditChainTypes;
|
|
922
|
+
Version?: number;
|
|
751
923
|
}
|
|
752
924
|
//# sourceMappingURL=eva-services-core-live-guard.d.ts.map
|