@springtree/eva-services-core-live-guard 3.0.0-beta.4 → 3.0.0-beta.41

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