@springtree/eva-services-core-live-guard 2.1.0 → 3.0.0-beta.0
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 +749 -2
- package/lib/eva-services-core-live-guard.d.ts.map +1 -1
- package/lib/eva-services-core-live-guard.js +75 -4
- package/lib/eva-services-core-live-guard.js.map +1 -1
- package/lib/eva-services-core-live-guard.services.d.ts +153 -0
- package/lib/eva-services-core-live-guard.services.d.ts.map +1 -0
- package/lib/eva-services-core-live-guard.services.js +151 -0
- package/lib/eva-services-core-live-guard.services.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/package.json +6 -6
- package/lib/EVA.Core.LiveGuard.Services.d.ts +0 -339
- package/lib/EVA.Core.LiveGuard.Services.d.ts.map +0 -1
- package/lib/EVA.Core.LiveGuard.Services.js +0 -364
- package/lib/EVA.Core.LiveGuard.Services.js.map +0 -1
|
@@ -1,5 +1,752 @@
|
|
|
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 const enum Errors {
|
|
3
|
+
/**
|
|
4
|
+
* You're not allowed to generate this liveguard api key.
|
|
5
|
+
*/
|
|
6
|
+
LiveGuard_NotAllowedToGenerateApiKey = "LiveGuard:NotAllowedToGenerateApiKey",
|
|
7
|
+
/**
|
|
8
|
+
* You're not allowed to generate this liveguard secret.
|
|
9
|
+
*/
|
|
10
|
+
LiveGuard_NotAllowedToGenerateSecret = "LiveGuard:NotAllowedToGenerateSecret",
|
|
11
|
+
/**
|
|
12
|
+
* This is a stub order for offline evapay payments, no mutations allowed.
|
|
13
|
+
*/
|
|
14
|
+
LiveGuard_UnableToMutateEVAPayStub = "LiveGuard:UnableToMutateEVAPayStub",
|
|
15
|
+
/**
|
|
16
|
+
* Device with HardwareID {:string} was not found in mender.
|
|
17
|
+
*/
|
|
18
|
+
LiveGuardBoarding_DeviceNotInMender = "LiveGuardBoarding:DeviceNotInMender",
|
|
19
|
+
/**
|
|
20
|
+
* Device with HardwareID {:string} was already boarded in mender.
|
|
21
|
+
*/
|
|
22
|
+
LiveGuardBoarding_DeviceAlreadyBoarded = "LiveGuardBoarding:DeviceAlreadyBoarded",
|
|
23
|
+
/**
|
|
24
|
+
* Device with HardwareID {hardwareID:string} already exists with ID {deviceID:int64}.
|
|
25
|
+
*/
|
|
26
|
+
LiveGuardBoarding_DeviceAlreadyExists = "LiveGuardBoarding:DeviceAlreadyExists",
|
|
27
|
+
/**
|
|
28
|
+
* OrganizationUnit {organizationUnitID:int64} already has a watchtower with ID {deviceID:int64}.
|
|
29
|
+
*/
|
|
30
|
+
LiveGuardBoarding_DuplicateOrganizationUnit = "LiveGuardBoarding:DuplicateOrganizationUnit",
|
|
31
|
+
/**
|
|
32
|
+
* No registration request found for this device. (Please reboot the device and try again)
|
|
33
|
+
*/
|
|
34
|
+
LiveGuardBoarding_NoRegistrationRequest = "LiveGuardBoarding:NoRegistrationRequest",
|
|
35
|
+
/**
|
|
36
|
+
* Error while accepting device keys.
|
|
37
|
+
*/
|
|
38
|
+
LiveGuardBoarding_AuthorizationFailed = "LiveGuardBoarding:AuthorizationFailed",
|
|
39
|
+
/**
|
|
40
|
+
* Error while boarding the device: {:string}
|
|
41
|
+
*/
|
|
42
|
+
LiveGuardBoarding_BoardingFailed = "LiveGuardBoarding:BoardingFailed",
|
|
43
|
+
/**
|
|
44
|
+
* The configuration is invalid.
|
|
45
|
+
*/
|
|
46
|
+
LiveGuardCertificate_InvalidConfiguration = "LiveGuardCertificate:InvalidConfiguration",
|
|
47
|
+
/**
|
|
48
|
+
* No valid Watchtower for this request.
|
|
49
|
+
*/
|
|
50
|
+
LiveGuardCertificate_NoValidWatchtower = "LiveGuardCertificate:NoValidWatchtower",
|
|
51
|
+
/**
|
|
52
|
+
* CSR could not be parsed.
|
|
53
|
+
*/
|
|
54
|
+
LiveGuardCertificate_CsrInvalid = "LiveGuardCertificate:CsrInvalid",
|
|
55
|
+
/**
|
|
56
|
+
* Failed to generate the certificate.
|
|
57
|
+
*/
|
|
58
|
+
LiveGuardCertificate_CertificateGenerationFailed = "LiveGuardCertificate:CertificateGenerationFailed",
|
|
59
|
+
/**
|
|
60
|
+
* Hostname for this Watchtower does not match the hostname in the CSR.
|
|
61
|
+
*/
|
|
62
|
+
LiveGuardCertificate_HostnameMismatch = "LiveGuardCertificate:HostnameMismatch",
|
|
63
|
+
/**
|
|
64
|
+
* There is no current connection to the selected device.
|
|
65
|
+
*/
|
|
66
|
+
LiveGuardExecuteTask_NoConnection = "LiveGuardExecuteTask:NoConnection",
|
|
67
|
+
/**
|
|
68
|
+
* There is no current connection to the selected device.
|
|
69
|
+
*/
|
|
70
|
+
WatchtowerExecuteCommand_NoConnection = "WatchtowerExecuteCommand:NoConnection",
|
|
71
|
+
/**
|
|
72
|
+
* Failed to connect to the device.
|
|
73
|
+
*/
|
|
74
|
+
WatchtowerIO_ConnectionFailed = "WatchtowerIO:ConnectionFailed"
|
|
75
|
+
}
|
|
1
76
|
/**
|
|
2
|
-
*
|
|
77
|
+
* Get an authentication token that's valid in the cloud for the current user
|
|
3
78
|
*/
|
|
4
|
-
export
|
|
79
|
+
export interface LiveGuardGetCloudToken {
|
|
80
|
+
UseJwtTokens?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface LiveGuardGetCloudTokenResponse {
|
|
83
|
+
AuthenticationToken: string;
|
|
84
|
+
Error?: ServiceError;
|
|
85
|
+
Metadata?: ResponseMessageMetadata;
|
|
86
|
+
RefreshToken?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns id mapping for cloud vs liveguard entities
|
|
90
|
+
*/
|
|
91
|
+
export interface LiveGuardGetMapping {
|
|
92
|
+
}
|
|
93
|
+
export interface LiveGuardGetMappingResponse {
|
|
94
|
+
Error?: ServiceError;
|
|
95
|
+
Mapping?: Record<string, Record<string, string> | null>;
|
|
96
|
+
Metadata?: ResponseMessageMetadata;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
|
|
100
|
+
*
|
|
101
|
+
* Can only be called by the liveguard user
|
|
102
|
+
*/
|
|
103
|
+
export interface LiveGuardGetTokenForUser {
|
|
104
|
+
UseJwtTokens?: boolean;
|
|
105
|
+
Username: string;
|
|
106
|
+
}
|
|
107
|
+
export interface LiveGuardGetTokenForUserResponse {
|
|
108
|
+
AuthenticationToken: string;
|
|
109
|
+
Error?: ServiceError;
|
|
110
|
+
Metadata?: ResponseMessageMetadata;
|
|
111
|
+
RefreshToken?: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Create a new SSL certificate for a Watchtower device.
|
|
115
|
+
*/
|
|
116
|
+
export interface CreateWatchtowerCertificate {
|
|
117
|
+
CertificateSigningRequest: string;
|
|
118
|
+
}
|
|
119
|
+
export interface CreateWatchtowerCertificateResponse {
|
|
120
|
+
Certificate: string;
|
|
121
|
+
Error?: ServiceError;
|
|
122
|
+
Metadata?: ResponseMessageMetadata;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Create a new watchtower device
|
|
126
|
+
*
|
|
127
|
+
* To create a device for fallback IO, leave the HardwareID null
|
|
128
|
+
* When a HardwareID is set, the device will be boarded in mender and prepared for use.
|
|
129
|
+
*/
|
|
130
|
+
export interface CreateWatchtowerDevice {
|
|
131
|
+
HardwareID?: string;
|
|
132
|
+
Name: string;
|
|
133
|
+
/**
|
|
134
|
+
* Entity type: OrganizationUnit
|
|
135
|
+
*/
|
|
136
|
+
OrganizationUnitID: string;
|
|
137
|
+
}
|
|
138
|
+
export interface CreateWatchtowerDeviceResponse {
|
|
139
|
+
ApiKey?: string;
|
|
140
|
+
Error?: ServiceError;
|
|
141
|
+
/**
|
|
142
|
+
* Entity type: Device
|
|
143
|
+
*/
|
|
144
|
+
ID: string;
|
|
145
|
+
Metadata?: ResponseMessageMetadata;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* List the configured watchtower devices with their status
|
|
149
|
+
*/
|
|
150
|
+
export interface ListWatchtowerDevices {
|
|
151
|
+
PageConfig?: PageConfig<ServicesManagementListWatchtowerDevicesFilter>;
|
|
152
|
+
}
|
|
153
|
+
export interface ServicesManagementListWatchtowerDevicesFilter {
|
|
154
|
+
/**
|
|
155
|
+
* Entity type: Country
|
|
156
|
+
*/
|
|
157
|
+
CountryID?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Entity type: Device
|
|
160
|
+
*/
|
|
161
|
+
DeviceID?: string;
|
|
162
|
+
HardwareID?: string;
|
|
163
|
+
IncludeChildOrganizationUnits?: boolean;
|
|
164
|
+
IsWatchtowerConnected?: boolean;
|
|
165
|
+
IsWatchtowerIOConnected?: boolean;
|
|
166
|
+
IsWatchtowerOnline?: boolean;
|
|
167
|
+
MenderID?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Entity type: OrganizationUnit
|
|
170
|
+
*/
|
|
171
|
+
OrganizationUnitID?: string;
|
|
172
|
+
OrganizationUnitStatus?: DataModelsOrganizationUnitStatus;
|
|
173
|
+
}
|
|
174
|
+
export interface ListWatchtowerDevicesResponse {
|
|
175
|
+
Error?: ServiceError;
|
|
176
|
+
Metadata?: ResponseMessageMetadata;
|
|
177
|
+
Result?: PagedResult<ServicesManagementListWatchtowerDevicesResponse_Watchtower>;
|
|
178
|
+
}
|
|
179
|
+
export interface ServicesManagementListWatchtowerDevicesResponse_Watchtower {
|
|
180
|
+
HardwareID?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Entity type: Device
|
|
183
|
+
*/
|
|
184
|
+
ID: string;
|
|
185
|
+
LastSeen?: string;
|
|
186
|
+
Name?: string;
|
|
187
|
+
Online: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Entity type: OrganizationUnit
|
|
190
|
+
*/
|
|
191
|
+
OrganizationUnitBackendID?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Entity type: Country
|
|
194
|
+
*/
|
|
195
|
+
OrganizationUnitCountryID?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Entity type: OrganizationUnit
|
|
198
|
+
*/
|
|
199
|
+
OrganizationUnitID: string;
|
|
200
|
+
OrganizationUnitName?: string;
|
|
201
|
+
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
202
|
+
WatchtowerConnected: boolean;
|
|
203
|
+
WatchtowerIOConnected: boolean;
|
|
204
|
+
WatchtowerIOLastSeen?: string;
|
|
205
|
+
WatchtowerLastSeen?: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Execute a command on a device
|
|
209
|
+
*/
|
|
210
|
+
export interface LiveGuardExecuteTask {
|
|
211
|
+
Catalog?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Entity type: Device
|
|
214
|
+
*/
|
|
215
|
+
DeviceID: string;
|
|
216
|
+
General?: boolean;
|
|
217
|
+
Users?: boolean;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Push the current configuration for the given device to mender
|
|
221
|
+
*/
|
|
222
|
+
export interface PushWatchtowerConfigurationToDevice {
|
|
223
|
+
/**
|
|
224
|
+
* Entity type: Device
|
|
225
|
+
*/
|
|
226
|
+
DeviceID: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Execute a command on a device
|
|
230
|
+
*/
|
|
231
|
+
export interface WatchtowerExecuteCommand {
|
|
232
|
+
Address?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Entity type: Device
|
|
235
|
+
*/
|
|
236
|
+
DeviceID: string;
|
|
237
|
+
Port?: number;
|
|
238
|
+
Type: string;
|
|
239
|
+
}
|
|
240
|
+
export interface WatchtowerExecuteCommandResponse {
|
|
241
|
+
Error?: ServiceError;
|
|
242
|
+
Metadata?: ResponseMessageMetadata;
|
|
243
|
+
Output?: string;
|
|
244
|
+
Success: boolean;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
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
|
+
* Get details about the given device.
|
|
266
|
+
*/
|
|
267
|
+
export interface WatchtowerGetDeviceDetails {
|
|
268
|
+
/**
|
|
269
|
+
* Entity type: Device
|
|
270
|
+
*/
|
|
271
|
+
DeviceID: string;
|
|
272
|
+
}
|
|
273
|
+
export interface WatchtowerGetDeviceDetailsResponse {
|
|
274
|
+
/**
|
|
275
|
+
* Removed
|
|
276
|
+
*/
|
|
277
|
+
ApiKey?: string;
|
|
278
|
+
CatalogTaskState?: SchedulingTaskState;
|
|
279
|
+
CatalogTaskStateLastRunTime?: string;
|
|
280
|
+
EVAVersion?: string;
|
|
281
|
+
EVAVersionLastCheckinTime?: string;
|
|
282
|
+
Error?: ServiceError;
|
|
283
|
+
GeneralTaskState?: SchedulingTaskState;
|
|
284
|
+
GeneralTaskStateLastRunTime?: string;
|
|
285
|
+
HardwareID?: string;
|
|
286
|
+
ID: string;
|
|
287
|
+
IOVersion?: string;
|
|
288
|
+
IOVersionLastCheckinTime?: string;
|
|
289
|
+
LastSeen?: string;
|
|
290
|
+
LiveGuardStateLastCheckinTime?: string;
|
|
291
|
+
MenderID?: string;
|
|
292
|
+
Metadata?: ResponseMessageMetadata;
|
|
293
|
+
NetworkInterfaces?: ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface[];
|
|
294
|
+
OSVersion?: string;
|
|
295
|
+
OSVersionLastCheckinTime?: string;
|
|
296
|
+
Online: boolean;
|
|
297
|
+
OrganizationUnitBackendID?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Entity type: Country
|
|
300
|
+
*/
|
|
301
|
+
OrganizationUnitCountryID?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Entity type: OrganizationUnit
|
|
304
|
+
*/
|
|
305
|
+
OrganizationUnitID: string;
|
|
306
|
+
OrganizationUnitName?: string;
|
|
307
|
+
OrganizationUnitStatus: DataModelsOrganizationUnitStatus;
|
|
308
|
+
PendingOrderExports?: number;
|
|
309
|
+
ProductsCount?: number;
|
|
310
|
+
SettingsCount?: number;
|
|
311
|
+
State?: string;
|
|
312
|
+
StateLastCheckinTime?: string;
|
|
313
|
+
UserTaskState?: SchedulingTaskState;
|
|
314
|
+
UserTaskStateLastRunTime?: string;
|
|
315
|
+
UsersCount?: number;
|
|
316
|
+
Virtual: boolean;
|
|
317
|
+
WatchtowerConnected: boolean;
|
|
318
|
+
WatchtowerIOConnected: boolean;
|
|
319
|
+
WatchtowerIOLastSeen?: string;
|
|
320
|
+
WatchtowerLastSeen?: string;
|
|
321
|
+
}
|
|
322
|
+
export interface ServicesManagementWatchtowerGetDeviceDetailsResponse_NetworkInterface {
|
|
323
|
+
IPV4?: string;
|
|
324
|
+
IPV6?: string;
|
|
325
|
+
MacAddress?: string;
|
|
326
|
+
Name?: string;
|
|
327
|
+
}
|
|
328
|
+
export interface EVAStatus {
|
|
329
|
+
}
|
|
330
|
+
export interface EVAStatusResponse {
|
|
331
|
+
Error?: ServiceError;
|
|
332
|
+
Metadata?: ResponseMessageMetadata;
|
|
333
|
+
Ready: boolean;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Returns some basic information about the current state of the liveGuard
|
|
337
|
+
*/
|
|
338
|
+
export interface LiveGuardGetInformation {
|
|
339
|
+
}
|
|
340
|
+
export interface LiveGuardGetInformationResponse {
|
|
341
|
+
Error?: ServiceError;
|
|
342
|
+
HardwareID?: string;
|
|
343
|
+
LastCatalogSync?: string;
|
|
344
|
+
LastGeneralSync?: string;
|
|
345
|
+
LastUserSync?: string;
|
|
346
|
+
Metadata?: ResponseMessageMetadata;
|
|
347
|
+
OrganizationUnitBackendID?: string;
|
|
348
|
+
OrganizationUnitName?: string;
|
|
349
|
+
PendingOrderExports: number;
|
|
350
|
+
ProductsCount: number;
|
|
351
|
+
SettingsCount: number;
|
|
352
|
+
UsersCount: number;
|
|
353
|
+
Version?: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* This service returns the operational flags for a liveguard instance.
|
|
357
|
+
*/
|
|
358
|
+
export interface LiveGuardGetStatus {
|
|
359
|
+
}
|
|
360
|
+
export interface LiveGuardGetStatusResponse {
|
|
361
|
+
DisableCheckTask: boolean;
|
|
362
|
+
EVACloudAvailable: boolean;
|
|
363
|
+
Error?: ServiceError;
|
|
364
|
+
InternetAvailable: boolean;
|
|
365
|
+
Metadata?: ResponseMessageMetadata;
|
|
366
|
+
RunningOnWatchtower: boolean;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Push metrics of the watchtower device to the cloud.
|
|
370
|
+
*/
|
|
371
|
+
export interface LiveGuardPushMetrics {
|
|
372
|
+
AvgLatency?: number;
|
|
373
|
+
CPUUsage?: number;
|
|
374
|
+
DiskUsage?: number;
|
|
375
|
+
EVAVersion?: string;
|
|
376
|
+
HardwareID: string;
|
|
377
|
+
IOVersion?: string;
|
|
378
|
+
LastBootTime?: string;
|
|
379
|
+
Latency?: number;
|
|
380
|
+
OSVersion?: string;
|
|
381
|
+
RAMUsage?: number;
|
|
382
|
+
State?: string;
|
|
383
|
+
Temperature?: number;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* This service overrides the operational flags for a liveguard instance.
|
|
387
|
+
*
|
|
388
|
+
* This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
|
|
389
|
+
*/
|
|
390
|
+
export interface LiveGuardSetStatus {
|
|
391
|
+
/**
|
|
392
|
+
* 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
|
+
*/
|
|
394
|
+
DisableCheckTask?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Flag this environment as if the cloud deployment of EVA is not availabled. Will disable a lot of functionality.
|
|
397
|
+
*/
|
|
398
|
+
EVACloudAvailable?: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* Flag this environment as if it has no working internet connection. Will disable a lot of functionality.
|
|
401
|
+
*/
|
|
402
|
+
InternetAvailable?: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Flag this environment as if it's running on a watchtower device. Will disable a lot of functionality.
|
|
405
|
+
*/
|
|
406
|
+
RunningOnWatchtower?: boolean;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Get user information to sync to LiveGuard
|
|
410
|
+
*/
|
|
411
|
+
export interface GetUserForLiveGuard {
|
|
412
|
+
EmailAddress?: string;
|
|
413
|
+
NickName?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Entity type: User
|
|
416
|
+
*/
|
|
417
|
+
UserID?: string;
|
|
418
|
+
}
|
|
419
|
+
export interface GetUserForLiveGuardResponse {
|
|
420
|
+
AuthenticationData?: ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto[];
|
|
421
|
+
BackendID?: string;
|
|
422
|
+
BackendSystemID?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Entity type: Country
|
|
425
|
+
*/
|
|
426
|
+
CountryID?: string;
|
|
427
|
+
EmailAddress?: string;
|
|
428
|
+
Error?: ServiceError;
|
|
429
|
+
FirstName?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Entity type: Language
|
|
432
|
+
*/
|
|
433
|
+
LanguageID?: string;
|
|
434
|
+
LastName?: string;
|
|
435
|
+
Metadata?: ResponseMessageMetadata;
|
|
436
|
+
Nickname?: string;
|
|
437
|
+
Roles?: ServicesSyncGetUserForLiveGuardResponse_RoleDto[];
|
|
438
|
+
TimeZone?: string;
|
|
439
|
+
Type: UserTypes;
|
|
440
|
+
}
|
|
441
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_AuthenticationDataDto {
|
|
442
|
+
Data?: string;
|
|
443
|
+
SearchKey?: string;
|
|
444
|
+
Type?: string;
|
|
445
|
+
}
|
|
446
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto {
|
|
447
|
+
Functionality: string;
|
|
448
|
+
FunctionalityScope: SecurityFunctionalityScope;
|
|
449
|
+
RequiresElevation: boolean;
|
|
450
|
+
}
|
|
451
|
+
export interface ServicesSyncGetUserForLiveGuardResponse_RoleDto {
|
|
452
|
+
Code?: string;
|
|
453
|
+
DeactivateUserAfterInactiveDays?: number;
|
|
454
|
+
Functionalities: ServicesSyncGetUserForLiveGuardResponse_FunctionalityDto[];
|
|
455
|
+
GlobalID?: string;
|
|
456
|
+
Name?: string;
|
|
457
|
+
UserType: UserTypes;
|
|
458
|
+
}
|
|
459
|
+
export interface LiveGuardGenerateApiKey {
|
|
460
|
+
/**
|
|
461
|
+
* Entity type: OrganizationUnit
|
|
462
|
+
*/
|
|
463
|
+
OrganizationUnitID: string;
|
|
464
|
+
}
|
|
465
|
+
export interface LiveGuardGenerateApiKeyResponse {
|
|
466
|
+
ApiKey: string;
|
|
467
|
+
Error?: ServiceError;
|
|
468
|
+
Metadata?: ResponseMessageMetadata;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Retreive current chain status for the connected watchtower
|
|
472
|
+
*/
|
|
473
|
+
export interface LiveGuardGetAuditChains {
|
|
474
|
+
}
|
|
475
|
+
export interface LiveGuardGetAuditChainsResponse {
|
|
476
|
+
Chains?: TasksChainDto[];
|
|
477
|
+
Error?: ServiceError;
|
|
478
|
+
Metadata?: ResponseMessageMetadata;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Retreive current secret for TOTP token usage
|
|
482
|
+
*/
|
|
483
|
+
export interface LiveGuardGetTOTPSecret {
|
|
484
|
+
}
|
|
485
|
+
export interface LiveGuardGetTOTPSecretResponse {
|
|
486
|
+
Error?: ServiceError;
|
|
487
|
+
Metadata?: ResponseMessageMetadata;
|
|
488
|
+
Secret: LiveGuardTOTPSecretWrapper;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Accepts an Order pushed from a LiveGuard instance
|
|
492
|
+
*/
|
|
493
|
+
export interface LiveGuardPushOrder {
|
|
494
|
+
BillingAddress?: AddressesAddressDataDto;
|
|
495
|
+
BlobID: string;
|
|
496
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_OrderBlobDto[];
|
|
497
|
+
Chains?: TasksChainDto[];
|
|
498
|
+
CreationTime?: string;
|
|
499
|
+
Customer?: ServicesSyncLiveGuardPushOrder_CustomerDto;
|
|
500
|
+
CustomerIdentifiers?: ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto;
|
|
501
|
+
Invoices?: ServicesSyncLiveGuardPushOrder_InvoiceDto[];
|
|
502
|
+
IsPaid?: boolean;
|
|
503
|
+
IsShipped?: boolean;
|
|
504
|
+
Lines?: ServicesSyncLiveGuardPushOrder_OrderLineDto[];
|
|
505
|
+
LiveGuardOrderID?: string;
|
|
506
|
+
Payments?: ServicesSyncLiveGuardPushOrder_PaymentDto[];
|
|
507
|
+
PickupAddress?: AddressesAddressDataDto;
|
|
508
|
+
Remark?: string;
|
|
509
|
+
ShippingAddress?: AddressesAddressDataDto;
|
|
510
|
+
SoldBy?: string;
|
|
511
|
+
}
|
|
512
|
+
export interface ServicesSyncLiveGuardPushOrder_ChainLedgerDto {
|
|
513
|
+
CreationTime: string;
|
|
514
|
+
NewSequenceNumber: number;
|
|
515
|
+
NewSignature?: string;
|
|
516
|
+
PreviousSequenceNumber: number;
|
|
517
|
+
PreviousSignature?: string;
|
|
518
|
+
}
|
|
519
|
+
export interface ServicesSyncLiveGuardPushOrder_CustomerDto {
|
|
520
|
+
CountryID?: string;
|
|
521
|
+
EmailAddress?: string;
|
|
522
|
+
FirstName?: string;
|
|
523
|
+
Gender?: string;
|
|
524
|
+
LanguageID?: string;
|
|
525
|
+
LastName?: string;
|
|
526
|
+
LiveGuardID: string;
|
|
527
|
+
PhoneNumber?: string;
|
|
528
|
+
}
|
|
529
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceBlobDto {
|
|
530
|
+
BackendID?: string;
|
|
531
|
+
BlobID: string;
|
|
532
|
+
Category?: string;
|
|
533
|
+
MimeType?: string;
|
|
534
|
+
OriginalName?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDataDto {
|
|
537
|
+
Data?: string;
|
|
538
|
+
SearchKey?: string;
|
|
539
|
+
Type?: string;
|
|
540
|
+
}
|
|
541
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto {
|
|
542
|
+
ChainID?: string;
|
|
543
|
+
FailureReason?: string;
|
|
544
|
+
Format: DataModelsInvoiceDocumentLedgerFormats;
|
|
545
|
+
InvoiceDocumentLedgerData?: DataModelsInvoiceDocumentLedgerData;
|
|
546
|
+
IsSuccess?: boolean;
|
|
547
|
+
OriginalDeviceID?: string;
|
|
548
|
+
PreviousSequenceNumber?: string;
|
|
549
|
+
PreviousSignature?: string;
|
|
550
|
+
ReportContentBlobID?: string;
|
|
551
|
+
ReprintNumber?: number;
|
|
552
|
+
SequenceNumber: string;
|
|
553
|
+
Signature?: string;
|
|
554
|
+
Type: DataModelsInvoiceDocumentLedgerTypes;
|
|
555
|
+
}
|
|
556
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceDto {
|
|
557
|
+
AuditingProvider?: string;
|
|
558
|
+
BackendID?: string;
|
|
559
|
+
BackendSystemID?: string;
|
|
560
|
+
BackendTypeID?: number;
|
|
561
|
+
Blobs?: ServicesSyncLiveGuardPushOrder_InvoiceBlobDto[];
|
|
562
|
+
CalculationMethod: DataModelsInvoiceCalculationMethod;
|
|
563
|
+
ChainID?: string;
|
|
564
|
+
CurrencyID?: string;
|
|
565
|
+
Description?: string;
|
|
566
|
+
DocumentLedger?: ServicesSyncLiveGuardPushOrder_InvoiceDocumentLedgerDto[];
|
|
567
|
+
FiscalID?: string;
|
|
568
|
+
ID: string;
|
|
569
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto[];
|
|
570
|
+
InvoiceDate?: string;
|
|
571
|
+
InvoiceNumber?: string;
|
|
572
|
+
Lines?: ServicesSyncLiveGuardPushOrder_InvoiceLineDto[];
|
|
573
|
+
PreviousSignature?: string;
|
|
574
|
+
PrintCount?: number;
|
|
575
|
+
ReferencedInvoice?: string;
|
|
576
|
+
SequenceNumber?: string;
|
|
577
|
+
Signature?: string;
|
|
578
|
+
StationID?: string;
|
|
579
|
+
Status: DataModelsInvoiceStatuses;
|
|
580
|
+
TaxReverseCharge?: boolean;
|
|
581
|
+
TotalAmount: number;
|
|
582
|
+
Type: DataModelsInvoiceTypes;
|
|
583
|
+
UserData?: ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto;
|
|
584
|
+
VatNumber?: string;
|
|
585
|
+
}
|
|
586
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto {
|
|
587
|
+
Amount: number;
|
|
588
|
+
BackendID?: string;
|
|
589
|
+
Description?: string;
|
|
590
|
+
}
|
|
591
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineDto {
|
|
592
|
+
DiscountAmount: number;
|
|
593
|
+
DiscountDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineDiscountDetailDto[];
|
|
594
|
+
InvoiceData?: ServicesSyncLiveGuardPushOrder_InvoiceDataDto[];
|
|
595
|
+
InvoicedBy?: string;
|
|
596
|
+
OrderLineID: string;
|
|
597
|
+
Quantity?: number;
|
|
598
|
+
TaxAmount?: number;
|
|
599
|
+
TaxCode?: string;
|
|
600
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto[];
|
|
601
|
+
TaxRate: number;
|
|
602
|
+
TaxRateCategory?: DataModelsTaxRateCategory;
|
|
603
|
+
TotalAmountInvoiced: number;
|
|
604
|
+
TotalAmountInvoicedInTax: number;
|
|
605
|
+
Type: DataModelsInvoiceLineTypes;
|
|
606
|
+
UnitCost?: number;
|
|
607
|
+
UnitPrice?: number;
|
|
608
|
+
}
|
|
609
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceLineTaxDetailDto {
|
|
610
|
+
TaxAmount: number;
|
|
611
|
+
TaxName?: string;
|
|
612
|
+
TaxRate: number;
|
|
613
|
+
TaxSubType?: string;
|
|
614
|
+
TaxSubTypeName?: string;
|
|
615
|
+
TaxType?: string;
|
|
616
|
+
}
|
|
617
|
+
export interface ServicesSyncLiveGuardPushOrder_InvoiceUserDataDto {
|
|
618
|
+
BackendRelationID?: string;
|
|
619
|
+
BankAccount?: string;
|
|
620
|
+
BillingAddress?: AddressesAddressDataDto;
|
|
621
|
+
Company?: CompaniesCompanyDto;
|
|
622
|
+
CountryID?: string;
|
|
623
|
+
EmailAddress?: string;
|
|
624
|
+
FirstName?: string;
|
|
625
|
+
FiscalID?: string;
|
|
626
|
+
Gender?: string;
|
|
627
|
+
Initials?: string;
|
|
628
|
+
LanguageID?: string;
|
|
629
|
+
LastName?: string;
|
|
630
|
+
OrganizationUnitAddress?: AddressesAddressDataDto;
|
|
631
|
+
OrganizationUnitAddress1?: string;
|
|
632
|
+
OrganizationUnitAddress2?: string;
|
|
633
|
+
OrganizationUnitBIC?: string;
|
|
634
|
+
OrganizationUnitBackendID?: string;
|
|
635
|
+
OrganizationUnitBranchNumber?: string;
|
|
636
|
+
OrganizationUnitCity?: string;
|
|
637
|
+
OrganizationUnitCompany?: CompaniesCompanyDto;
|
|
638
|
+
OrganizationUnitCompanyVatNumber?: string;
|
|
639
|
+
OrganizationUnitCountryID?: string;
|
|
640
|
+
OrganizationUnitDistrict?: string;
|
|
641
|
+
OrganizationUnitEmailAddress?: string;
|
|
642
|
+
OrganizationUnitEstablishmentNumber?: string;
|
|
643
|
+
OrganizationUnitHouseNumber?: string;
|
|
644
|
+
OrganizationUnitName?: string;
|
|
645
|
+
OrganizationUnitPhoneNumber?: string;
|
|
646
|
+
OrganizationUnitState?: string;
|
|
647
|
+
OrganizationUnitSubDistrict?: string;
|
|
648
|
+
OrganizationUnitWebsite?: string;
|
|
649
|
+
OrganizationUnitZipCode?: string;
|
|
650
|
+
PhoneNumber?: string;
|
|
651
|
+
ShippingAddress?: AddressesAddressDataDto;
|
|
652
|
+
}
|
|
653
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderBlobDto {
|
|
654
|
+
BlobID: string;
|
|
655
|
+
InvoiceID?: string;
|
|
656
|
+
Name?: string;
|
|
657
|
+
OrderLineID?: string;
|
|
658
|
+
Type: DataModelsOrderBlobTypes;
|
|
659
|
+
}
|
|
660
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderCustomerIdentifiersDto {
|
|
661
|
+
EmailAddress?: string;
|
|
662
|
+
UserBackendID?: string;
|
|
663
|
+
UserCustomID?: string;
|
|
664
|
+
UserID?: string;
|
|
665
|
+
UserSubscriptionID?: string;
|
|
666
|
+
}
|
|
667
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDiscount {
|
|
668
|
+
Amount: number;
|
|
669
|
+
BackendID?: string;
|
|
670
|
+
Description?: string;
|
|
671
|
+
OrderLineID: string;
|
|
672
|
+
}
|
|
673
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineDto {
|
|
674
|
+
Amount: number;
|
|
675
|
+
BackendID?: string;
|
|
676
|
+
CustomID?: string;
|
|
677
|
+
Description?: string;
|
|
678
|
+
Discounts?: ServicesSyncLiveGuardPushOrder_OrderLineDiscount[];
|
|
679
|
+
ID: string;
|
|
680
|
+
Quantity?: number;
|
|
681
|
+
SerialNumber?: string;
|
|
682
|
+
TaxDetails?: ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail[];
|
|
683
|
+
TaxRate: number;
|
|
684
|
+
UnitPriceBeforeCorrection?: number;
|
|
685
|
+
UnitPriceCorrectionReason?: string;
|
|
686
|
+
}
|
|
687
|
+
export interface ServicesSyncLiveGuardPushOrder_OrderLineTaxDetail {
|
|
688
|
+
TaxAmount: number;
|
|
689
|
+
TaxName?: string;
|
|
690
|
+
TaxRate: number;
|
|
691
|
+
TaxSubType?: string;
|
|
692
|
+
TaxSubTypeName?: string;
|
|
693
|
+
TaxType?: string;
|
|
694
|
+
}
|
|
695
|
+
export interface ServicesSyncLiveGuardPushOrder_PaymentDto {
|
|
696
|
+
Amount: number;
|
|
697
|
+
BackendID?: string;
|
|
698
|
+
Data?: string;
|
|
699
|
+
ID: string;
|
|
700
|
+
Method?: string;
|
|
701
|
+
OriginalDeviceID?: string;
|
|
702
|
+
Type?: string;
|
|
703
|
+
}
|
|
704
|
+
export interface LiveGuardPushOrderResponse {
|
|
705
|
+
AlreadyExists: boolean;
|
|
706
|
+
Error?: ServiceError;
|
|
707
|
+
ID: string;
|
|
708
|
+
Metadata?: ResponseMessageMetadata;
|
|
709
|
+
}
|
|
710
|
+
export interface LiveGuardSyncCatalogByBlob {
|
|
711
|
+
}
|
|
712
|
+
export interface LiveGuardSyncCatalogByBlobResponse {
|
|
713
|
+
Bundles?: string;
|
|
714
|
+
EcoTaxPriceList?: string;
|
|
715
|
+
Error?: ServiceError;
|
|
716
|
+
Metadata?: ResponseMessageMetadata;
|
|
717
|
+
PriceList?: string;
|
|
718
|
+
Products?: string;
|
|
719
|
+
PromotionPriceList?: string;
|
|
720
|
+
}
|
|
721
|
+
export interface LiveGuardSyncGeneralByBlob {
|
|
722
|
+
}
|
|
723
|
+
export interface LiveGuardSyncGeneralByBlobResponse {
|
|
724
|
+
Error?: ServiceError;
|
|
725
|
+
ID?: string;
|
|
726
|
+
Metadata?: ResponseMessageMetadata;
|
|
727
|
+
}
|
|
728
|
+
export interface LiveGuardSyncUsersByBlob {
|
|
729
|
+
}
|
|
730
|
+
export interface LiveGuardSyncUsersByBlobResponse {
|
|
731
|
+
Error?: ServiceError;
|
|
732
|
+
Metadata?: ResponseMessageMetadata;
|
|
733
|
+
Url?: string;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Trigger a full sync on a liveguard instance, this has major performance impact for a while
|
|
737
|
+
*/
|
|
738
|
+
export interface LiveGuardTriggerSync {
|
|
739
|
+
}
|
|
740
|
+
export interface TasksChainDto {
|
|
741
|
+
CurrentSequenceNumber: number;
|
|
742
|
+
CurrentSignature?: string;
|
|
743
|
+
Discriminator: number;
|
|
744
|
+
ID: string;
|
|
745
|
+
Identifier?: string;
|
|
746
|
+
PreviousSequenceNumber: number;
|
|
747
|
+
PreviousSignature?: string;
|
|
748
|
+
RecentLedgers?: ServicesSyncLiveGuardPushOrder_ChainLedgerDto[];
|
|
749
|
+
Type: AuditingAuditChainTypes;
|
|
750
|
+
Version: number;
|
|
751
|
+
}
|
|
5
752
|
//# sourceMappingURL=eva-services-core-live-guard.d.ts.map
|