@springtree/eva-services-core-live-guard 2.0.18 → 2.1.0-beta.1

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