@docsvision/management-console 6.2.4-beta.4 → 6.2.5-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.
package/index.d.ts CHANGED
@@ -62,6 +62,10 @@ import { UseFormResetField } from 'react-hook-form';
62
62
  import { UseFormSetFocus } from 'react-hook-form';
63
63
  import { UseFormSetValue } from 'react-hook-form';
64
64
 
65
+ declare type $AboutApplication = { aboutApplicationService: IAboutApplicationService; };
66
+
67
+ declare const $AboutApplication = serviceName((s: $AboutApplication) => s.aboutApplicationService);
68
+
65
69
  export declare type $AboutSettings = {
66
70
  aboutSettings: IAboutSettings;
67
71
  };
@@ -180,6 +184,10 @@ declare type $LocalStorage_2 = { localStorage: ILocalStorage_2; };
180
184
 
181
185
  declare const $LocalStorage_2 = serviceName((s: $LocalStorage_2) => s.localStorage);
182
186
 
187
+ declare type $LogsController = { logsController: ILogsController };
188
+
189
+ declare const $LogsController = serviceName((s: $LogsController) => s.logsController);
190
+
183
191
  declare type $MessageWindow = { messageWindow: IMessageWindowService; };
184
192
 
185
193
  declare const $MessageWindow = serviceName((s: $MessageWindow) => s.messageWindow);
@@ -360,6 +368,8 @@ export declare class Application extends ServiceContainer implements IApplicatio
360
368
  extendedConfigurationController: IExtendedConfigurationController_2;
361
369
  rootElement: IRootElementService_2;
362
370
  settingsController: ISettingsController;
371
+ logsController: ILogsController;
372
+ aboutApplicationService: IAboutApplicationService;
363
373
  constructor(reactRootElementId: string);
364
374
  static instance: IApplication;
365
375
  initialize(): Promise<void>;
@@ -734,6 +744,10 @@ export declare type HooksHandler = (application: IApplication_2) => RouteHooks;
734
744
 
735
745
  declare type HooksHandler_2 = (application: IApplication_2) => RouteHooks;
736
746
 
747
+ declare interface IAboutApplicationService extends Service {
748
+ show: () => void;
749
+ }
750
+
737
751
  export declare interface IAboutSettings {
738
752
  /**
739
753
  * Gets application name
@@ -781,6 +795,7 @@ export declare interface IAccordionProps {
781
795
  ariaControls: string;
782
796
  id: string;
783
797
  dataTestId?: string;
798
+ summaryClassName?: string;
784
799
  }
785
800
 
786
801
  declare interface IAlertBanner {
@@ -800,7 +815,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
800
815
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
801
816
  }
802
817
 
803
- export declare interface IApplicationServices extends SystemServices, $ExtensionsService_2, $DomEntryPointService, $ApplicationSettings_2, $WidgetsService_2, $Router, $RoutingService, $TenantsService_2, $DashboardConfigurationService_2, $LocalizationService_2, $AboutSettings_2, $LocalStorage_2, $ResourcesManagement_2, $Resources_3, $RouteContentRender_2, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu_2, $ServersController_2, $SettingsNavigation, $FormControl, $ExtendedConfigurationController_2, $RealtimeCommunication_2, $ConfigurationLocksController, $SessionsController, $RootElement_2, $SettingsController {
818
+ export declare interface IApplicationServices extends SystemServices, $ExtensionsService_2, $DomEntryPointService, $ApplicationSettings_2, $WidgetsService_2, $Router, $RoutingService, $TenantsService_2, $DashboardConfigurationService_2, $LocalizationService_2, $AboutSettings_2, $LocalStorage_2, $ResourcesManagement_2, $Resources_3, $RouteContentRender_2, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu_2, $ServersController_2, $SettingsNavigation, $FormControl, $ExtendedConfigurationController_2, $RealtimeCommunication_2, $ConfigurationLocksController, $SessionsController, $RootElement_2, $SettingsController, $LogsController, $AboutApplication {
804
819
  }
805
820
 
806
821
  declare interface IApplicationServices_2 extends
@@ -834,7 +849,9 @@ $RealtimeCommunication,
834
849
  $ConfigurationLocksController,
835
850
  $SessionsController,
836
851
  $RootElement_2,
837
- $SettingsController
852
+ $SettingsController,
853
+ $LogsController,
854
+ $AboutApplication
838
855
  {
839
856
  }
840
857
 
@@ -1435,6 +1452,12 @@ export declare interface IErrorMessageProps {
1435
1452
  className?: string;
1436
1453
  }
1437
1454
 
1455
+ declare interface IErrorModel {
1456
+ connectionId: string;
1457
+ field: string;
1458
+ errorMessage: string;
1459
+ }
1460
+
1438
1461
  export declare interface IExpandButtonProps extends HtmlProps_2.button {
1439
1462
  expanded?: boolean;
1440
1463
  dataTestId?: string;
@@ -1525,6 +1548,11 @@ export declare interface IFilteringClearButtonProps {
1525
1548
  visible: boolean;
1526
1549
  }
1527
1550
 
1551
+ declare interface IFilterPeriod {
1552
+ period: string;
1553
+ range: string[];
1554
+ }
1555
+
1528
1556
  declare interface IFilterPluginsLoadingService {
1529
1557
  $stateButtons: Store<IDistinctValue[]>;
1530
1558
  $services: Store<IDistinctValue[]>;
@@ -1548,6 +1576,11 @@ declare interface IFilterPluginsLoadingService {
1548
1576
  $savedFilters: Store<IFilterValues>;
1549
1577
  save: Event_2<IFilterValues>;
1550
1578
  $disabled: Store<boolean>;
1579
+ setDisabled: Event_2<boolean>;
1580
+ $tableDataLoading: Store<boolean>;
1581
+ setTableDataLoading: Event_2<boolean>;
1582
+ $selectedFilterPeriod: Store<IFilterPeriod>;
1583
+ setSelectedFilterPeriod: Event_2<IFilterPeriod>;
1551
1584
  }
1552
1585
 
1553
1586
  declare interface IFilterValues {
@@ -1577,6 +1610,27 @@ declare interface IFormControl_2 {
1577
1610
  onCancel: () => void;
1578
1611
  }
1579
1612
 
1613
+ declare interface IGetLogDetailsResponse {
1614
+ serviceId: string;
1615
+ errorMessage?: string;
1616
+ details: string;
1617
+ }
1618
+
1619
+ declare interface IGetLogsRequestOptions {
1620
+ dateFrom: string;
1621
+ dateTo: string;
1622
+ level?: string;
1623
+ sortColumn?: string;
1624
+ sortDirection?: string;
1625
+ offset: number;
1626
+ count: number;
1627
+ }
1628
+
1629
+ declare interface IGetLogsResponse {
1630
+ totalCount: number;
1631
+ items: ILogEntry[];
1632
+ }
1633
+
1580
1634
  export declare interface IGroupPanelProps {
1581
1635
  groups: Record<string, string[]>;
1582
1636
  selectedGroup: string;
@@ -1607,6 +1661,7 @@ export declare interface IInformationIconProps {
1607
1661
  export declare interface IKeyValue {
1608
1662
  key: string;
1609
1663
  value: string;
1664
+ errors?: IErrorModel[];
1610
1665
  }
1611
1666
 
1612
1667
  export declare interface ILayoutService extends Service {
@@ -1770,6 +1825,23 @@ declare interface ILocalStorage_2 {
1770
1825
  transformId(id: string): string;
1771
1826
  }
1772
1827
 
1828
+ declare interface ILogEntry {
1829
+ id: number;
1830
+ timestamp: string;
1831
+ level: string;
1832
+ userName: string;
1833
+ eventType: string;
1834
+ serviceName: string;
1835
+ result: string;
1836
+ isSuccess?: boolean;
1837
+ }
1838
+
1839
+ declare interface ILogsController extends Service {
1840
+ getAvaliableLogsLevels(dateFrom: string, dateTo: string): Promise<LogsLevels[]>;
1841
+ getLogs(options: IGetLogsRequestOptions): Promise<IGetLogsResponse>;
1842
+ getLogDetails(logId: string): Promise<IGetLogDetailsResponse>;
1843
+ }
1844
+
1773
1845
  declare interface ILongOperation {
1774
1846
  operationId: string;
1775
1847
  serverName: string;
@@ -2141,6 +2213,11 @@ declare interface IResourcesMap_2 {
2141
2213
  [id: string]: string;
2142
2214
  }
2143
2215
 
2216
+ declare interface IResponseModel<T> {
2217
+ data: T;
2218
+ errors: IErrorModel[];
2219
+ }
2220
+
2144
2221
  export declare interface IRootElementService {
2145
2222
  readonly rootElementId: string;
2146
2223
  }
@@ -2191,7 +2268,7 @@ declare interface ISavePageResultModel_2 {
2191
2268
  timestamp?: number;
2192
2269
  }
2193
2270
 
2194
- export declare interface ISectionContentWrapperProps extends IPageModelElement {
2271
+ export declare interface ISectionContentWrapperProps extends IPageModelElement_2 {
2195
2272
  className?: string;
2196
2273
  refElement?: React_2.RefObject<HTMLDivElement>;
2197
2274
  }
@@ -2370,6 +2447,7 @@ declare interface ISystemSettings_2 {
2370
2447
  }
2371
2448
 
2372
2449
  export declare interface ITableScrollContainerComponentProps extends HtmlProps_2.div {
2450
+ scrollContainerClassName?: string;
2373
2451
  }
2374
2452
 
2375
2453
  export declare interface ITenant {
@@ -2411,19 +2489,19 @@ declare interface ITenantModel_2 {
2411
2489
  }
2412
2490
 
2413
2491
  export declare interface ITenantsService {
2414
- getTenant(tenantId: string): Promise<ITenantModel>;
2415
- getTenants(): Promise<ITenantModel[]>;
2416
- addTenant(tenant: ITenant): Promise<void>;
2492
+ getTenant(tenantId: string): Promise<IResponseModel<ITenantModel>>;
2493
+ getTenants(): Promise<IResponseModel<ITenantModel[]>>;
2494
+ addTenant(tenant: ITenant): Promise<IResponseModel<ITenantModel>>;
2417
2495
  removeTenant(tenantId: string): Promise<void>;
2418
- findTenant(connectAddress: string, database: string): Promise<ITenantModel>;
2496
+ findTenant(connectAddress: string, database: string): Promise<IResponseModel<ITenantModel>>;
2419
2497
  }
2420
2498
 
2421
2499
  declare interface ITenantsService_2 {
2422
- getTenant(tenantId: string): Promise<ITenantModel_2>;
2423
- getTenants(): Promise<ITenantModel_2[]>;
2424
- addTenant(tenant: ITenant_2): Promise<void>;
2500
+ getTenant(tenantId: string): Promise<IResponseModel<ITenantModel_2>>;
2501
+ getTenants(): Promise<IResponseModel<ITenantModel_2[]>>;
2502
+ addTenant(tenant: ITenant_2): Promise<IResponseModel<ITenantModel_2>>;
2425
2503
  removeTenant(tenantId: string): Promise<void>;
2426
- findTenant(connectAddress: string, database: string): Promise<ITenantModel_2>;
2504
+ findTenant(connectAddress: string, database: string): Promise<IResponseModel<ITenantModel_2>>;
2427
2505
  }
2428
2506
 
2429
2507
  declare interface ITextMessage {
@@ -2771,6 +2849,12 @@ export declare class LocalStorage implements ILocalStorage_2 {
2771
2849
  transformId(id: string): string;
2772
2850
  }
2773
2851
 
2852
+ declare enum LogsLevels {
2853
+ Error = 1,
2854
+ Warning = 2,
2855
+ Information = 3
2856
+ }
2857
+
2774
2858
  export declare function MessageWindow(props: IMessageWindowProps): JSX.Element;
2775
2859
 
2776
2860
  export declare class MessageWindowService implements IMessageWindowService {
@@ -2954,16 +3038,16 @@ export declare function ShowInformationButton(props: IContainerProps): JSX.Eleme
2954
3038
 
2955
3039
  export declare function showNotification(text: string): void;
2956
3040
 
2957
- export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
3041
+ export declare const TableScrollContainerComponent: React_2.ForwardRefExoticComponent<Pick<ITableScrollContainerComponentProps, "slot" | "style" | "title" | "onClick" | "color" | "children" | "className" | "id" | "onChange" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "scrollContainerClassName"> & React_2.RefAttributes<HTMLDivElement>>;
2958
3042
 
2959
3043
  export declare class TenantsService implements ITenantsService {
2960
3044
  private readonly requestService;
2961
3045
  constructor(requestService: IRequestService);
2962
- getTenant(tenantId: string): Promise<ITenantModel>;
2963
- getTenants(): Promise<ITenantModel[]>;
2964
- addTenant(tenant: ITenant): any;
3046
+ getTenant(tenantId: string): Promise<IResponseModel<ITenantModel>>;
3047
+ getTenants(): Promise<IResponseModel<ITenantModel[]>>;
3048
+ addTenant(tenant: ITenant): Promise<IResponseModel<ITenantModel>>;
2965
3049
  removeTenant(tenantId: string): any;
2966
- findTenant(connectAddress: string, database: string): Promise<ITenantModel>;
3050
+ findTenant(connectAddress: string, database: string): Promise<IResponseModel<ITenantModel>>;
2967
3051
  }
2968
3052
 
2969
3053
  export declare function TextMessage(props: ITextMessage): JSX.Element;