@docsvision/management-console 6.2.0-beta.2 → 6.2.0-beta.4

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.
Files changed (5) hide show
  1. package/index.css +1 -1
  2. package/index.d.ts +132 -34
  3. package/index.js +17410 -16734
  4. package/index.js.map +1 -1
  5. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -209,6 +209,10 @@ declare type $PanelsExpansionService = { panelsExpansionService: IPanelsExpansio
209
209
 
210
210
  declare const $PanelsExpansionService = serviceName((s: $PanelsExpansionService) => s.panelsExpansionService);
211
211
 
212
+ declare type $ProcessTemplatesController = { processTemplatesController: IProcessTemplatesController };
213
+
214
+ declare const $ProcessTemplatesController = serviceName((s: $ProcessTemplatesController) => s.processTemplatesController);
215
+
212
216
  declare type $RealtimeCommunication = { realtimeCommunication: IRealtimeCommunicationService };
213
217
 
214
218
  declare const $RealtimeCommunication = serviceName((s: $RealtimeCommunication) => s.realtimeCommunication);
@@ -263,6 +267,10 @@ declare type $ServersController_2 = {
263
267
 
264
268
  declare const $ServersController_2: string | ((model?: $ServersController_2) => IServersController_2);
265
269
 
270
+ declare type $SessionsController = { sessionsController: ISessionsController };
271
+
272
+ declare const $SessionsController = serviceName((s: $SessionsController) => s.sessionsController);
273
+
266
274
  export declare type $SettingsNavigation = {
267
275
  settingsNavigation: ISettingsNavigationService;
268
276
  };
@@ -345,8 +353,10 @@ export declare class Application extends ServiceContainer implements IApplicatio
345
353
  databasesConfigurationController: IDatabasesConfigurationController;
346
354
  databasesController: IDatabasesController;
347
355
  realtimeCommunication: IRealtimeCommunicationService_2;
356
+ sessionsController: ISessionsController;
348
357
  configurationLocksController: IConfigurationLocksController;
349
358
  extendedConfigurationController: IExtendedConfigurationController_2;
359
+ processTemplatesController: IProcessTemplatesController;
350
360
  constructor(reactRootElementId: string);
351
361
  static instance: IApplication;
352
362
  initialize(): Promise<void>;
@@ -374,8 +384,9 @@ declare enum BreadcrumbsLabel {
374
384
  PageOutgoingMessagesQueue,
375
385
  WidgetSearchForCardMessages,
376
386
  PageSearchForCardMessages,
377
- PageErrorAndBlockLog
378
-
387
+ PageErrorAndBlockLog,
388
+ WidgetOpenSessions,
389
+ PageOpenSessions
379
390
  }
380
391
 
381
392
  declare enum BreadcrumbsLabel_2 {
@@ -385,7 +396,9 @@ declare enum BreadcrumbsLabel_2 {
385
396
  PageOutgoingMessagesQueue = 3,
386
397
  WidgetSearchForCardMessages = 4,
387
398
  PageSearchForCardMessages = 5,
388
- PageErrorAndBlockLog = 6
399
+ PageErrorAndBlockLog = 6,
400
+ WidgetOpenSessions = 7,
401
+ PageOpenSessions = 8
389
402
  }
390
403
 
391
404
  export declare function ButtonWithLoading(props: IButtonWithLoadingProps): JSX.Element;
@@ -481,8 +494,6 @@ export declare class DashboardConfigurationService implements IDashboardConfigur
481
494
  removeDashboardConfiguration(dashboardId: string): Promise<void>;
482
495
  }
483
496
 
484
- export declare function DatabaseSelectionModal(props: IDatabaseSelectionModalProps): JSX.Element;
485
-
486
497
  export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps): JSX.Element;
487
498
 
488
499
  export declare type DatabaseSettingsCardSize = "sm" | "md";
@@ -535,6 +546,8 @@ export declare function DropdownBody(props: IDropdownBodyProps): JSX.Element;
535
546
 
536
547
  export declare const DropdownOption: React_2.ForwardRefExoticComponent<Pick<IDropdownOptionProps, "slot" | "style" | "title" | "onClick" | "color" | "children" | "className" | "id" | "classes" | "onChange" | "sx" | "translate" | "disabled" | "disableGutters" | "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" | "autoFocus" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "component" | "dense" | "displayName" | "divider"> & React_2.RefAttributes<HTMLLIElement>>;
537
548
 
549
+ export declare function EditorCollectionEditor(props: IEditorCollectionEditorProps): JSX.Element;
550
+
538
551
  export declare function EditorContainer(props: IEditorContainer): JSX.Element;
539
552
 
540
553
  export declare function EditorDescription({ text }: {
@@ -574,11 +587,6 @@ declare type EffectCallbackAsync = () => (Promise<void> | (() => Promise<void |
574
587
 
575
588
  export declare const EMAIL_CONNECTION_SETTINGS_LAYOUT = "ea883b59-bb95-446e-879b-97874ac4d82b";
576
589
 
577
- export declare enum EngineType {
578
- MsSQL = 0,
579
- PgSQL = 1
580
- }
581
-
582
590
  export declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
583
591
 
584
592
  export declare function ErrorBlock({ text, close }: IErrorBlockProps): JSX.Element;
@@ -662,7 +670,7 @@ export declare const getThisMonthBeginAndEndDays: () => {
662
670
  endMonthDate: string;
663
671
  };
664
672
 
665
- export declare const getWidgetsOrder: (id: string) => 0 | 1 | 2;
673
+ export declare const getWidgetsOrder: (id: string) => 0 | 1 | 2 | 3;
666
674
 
667
675
  export declare function GroupPanel(props: IGroupPanelProps): JSX.Element;
668
676
 
@@ -737,7 +745,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
737
745
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
738
746
  }
739
747
 
740
- 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_2, $RouteContentRender_2, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu_2, $ServersController_2, $SettingsNavigation, $FormControl, $ExtendedConfigurationController_2, $RealtimeCommunication_2, $DatabaseWizard, $DatabasesController, $DatabasesConfigurationController, $DatabaseMasterController, $ConfigurationLocksController {
748
+ 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_2, $RouteContentRender_2, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu_2, $ServersController_2, $SettingsNavigation, $FormControl, $ExtendedConfigurationController_2, $RealtimeCommunication_2, $DatabaseWizard, $DatabasesController, $DatabasesConfigurationController, $DatabaseMasterController, $ConfigurationLocksController, $SessionsController, $ProcessTemplatesController {
741
749
  }
742
750
 
743
751
  declare interface IApplicationServices_2 extends
@@ -772,7 +780,9 @@ $DatabaseWizard,
772
780
  $DatabasesController,
773
781
  $DatabasesConfigurationController,
774
782
  $DatabaseMasterController,
775
- $ConfigurationLocksController {
783
+ $ConfigurationLocksController,
784
+ $SessionsController,
785
+ $ProcessTemplatesController {
776
786
 
777
787
  }
778
788
 
@@ -1189,18 +1199,10 @@ declare interface IDatabaseMasterModel {
1189
1199
 
1190
1200
  declare enum IDatabaseMasterState {
1191
1201
  Preparing = 0,
1192
- InProcess = 1,
1193
- ProcessFinished = 2
1194
- }
1195
-
1196
- export declare interface IDatabaseModel {
1197
- baseName: string;
1198
- sqlServerName: string;
1199
- serverType: EngineType;
1200
- usesFileService: boolean;
1201
- hash: string;
1202
- serverNames: string[];
1203
- error?: string;
1202
+ DatabaseInProcess = 1,
1203
+ DatabaseProcessFinished = 2,
1204
+ SolutionInProcess = 3,
1205
+ SolutionProcessFinished = 4
1204
1206
  }
1205
1207
 
1206
1208
  declare interface IDatabaseParameters {
@@ -1229,14 +1231,8 @@ declare interface IDatabasesController extends Service {
1229
1231
  : Promise<IConnectionStatusInfo>;
1230
1232
  info(serviceId: string): Promise<IDatabaseInfo[]>;
1231
1233
  libraries(serviceId: string, databaseAlias: string): Promise<IScriptGenerationModel>
1232
- }
1233
-
1234
- export declare interface IDatabaseSelectionModalProps {
1235
- open: boolean;
1236
- databases: IDatabaseModel[];
1237
- onCancel: () => void;
1238
- onApply: (selected: IDatabaseModel[]) => void;
1239
- resources: IResourcesMap_2;
1234
+ solutions(serviceId: string, databaseAlias: string): Promise<ISolution[]>
1235
+ installSolutions(serviceId: string, databaseAlias: string, solutions: string[]): Promise<void>;
1240
1236
  }
1241
1237
 
1242
1238
  export declare interface IDatabaseSettingsCardProps {
@@ -1245,6 +1241,7 @@ export declare interface IDatabaseSettingsCardProps {
1245
1241
  isDefault: boolean;
1246
1242
  children?: React_2.ReactNode;
1247
1243
  size?: DatabaseSettingsCardSize;
1244
+ error?: string;
1248
1245
  }
1249
1246
 
1250
1247
  declare interface IDatabaseWizardService extends Service {
@@ -1320,6 +1317,14 @@ export declare interface IDropdownOptionProps extends Omit<MenuItemProps, "butto
1320
1317
  displayName: string;
1321
1318
  }
1322
1319
 
1320
+ export declare interface IEditorCollectionEditorProps extends IPageModelElement {
1321
+ children: React_2.ReactNode | React_2.ReactNode[];
1322
+ isChanged?: boolean;
1323
+ resetValue?: () => void;
1324
+ className?: string;
1325
+ isEditable?: boolean;
1326
+ }
1327
+
1323
1328
  export declare interface IEditorContainer extends IPageModelElement {
1324
1329
  children: React_2.ReactNode;
1325
1330
  isChanged?: boolean;
@@ -1569,6 +1574,11 @@ export declare interface IInformationIconProps {
1569
1574
  onClick?: () => void;
1570
1575
  }
1571
1576
 
1577
+ declare interface IInstallProcessTemplatesRequestModel {
1578
+ templateIds: string[];
1579
+ timestamp: string;
1580
+ }
1581
+
1572
1582
  export declare interface IKeyValue {
1573
1583
  key: string;
1574
1584
  value: string;
@@ -1808,7 +1818,7 @@ export declare function InformationIcon(props: IInformationIconProps): JSX.Eleme
1808
1818
 
1809
1819
  declare interface INumberComponentProps extends Omit<OutlinedTextFieldProps, "variant"> {
1810
1820
  name: string;
1811
- value?: number;
1821
+ value?: number | string;
1812
1822
  minValue?: number;
1813
1823
  maxValue?: number;
1814
1824
  fullWidth?: boolean;
@@ -1817,6 +1827,11 @@ declare interface INumberComponentProps extends Omit<OutlinedTextFieldProps, "va
1817
1827
  errorMessage?: string;
1818
1828
  }
1819
1829
 
1830
+ declare interface IOpenSessionsCount {
1831
+ onlineCount: number,
1832
+ offlineCount: number,
1833
+ }
1834
+
1820
1835
  export declare interface IPageElementOption {
1821
1836
  displayName: string;
1822
1837
  value: string | number;
@@ -1908,6 +1923,14 @@ declare interface IPageSaveModelElement_2 {
1908
1923
  value: unknown;
1909
1924
  }
1910
1925
 
1926
+ declare interface IPageSessionResult {
1927
+ queryId: string,
1928
+ result: ISessionInfo[],
1929
+ currentPage: number,
1930
+ hasMore: boolean,
1931
+ totalItemsCount: number
1932
+ }
1933
+
1911
1934
  export declare interface IPageTabLabelProps extends HtmlProps.div {
1912
1935
  text: string;
1913
1936
  selected: boolean;
@@ -1934,6 +1957,12 @@ export declare interface IPageTitleProps extends HtmlProps.div {
1934
1957
  text: string;
1935
1958
  }
1936
1959
 
1960
+ declare interface IPagingParameters {
1961
+ page: number,
1962
+ pageSize?: number,
1963
+ UsePagination?: boolean
1964
+ }
1965
+
1937
1966
  /**
1938
1967
  * Сервис для раскрытия или закрытия всех панелей.
1939
1968
  */
@@ -1965,6 +1994,10 @@ declare interface IProcessStatus {
1965
1994
  errorMessage?: string
1966
1995
  }
1967
1996
 
1997
+ declare interface IProcessTemplatesController extends Service {
1998
+ installProcessTemplates(serviceId: string, data: IInstallProcessTemplatesRequestModel): Promise<void>;
1999
+ }
2000
+
1968
2001
  declare interface IRealtimeCommunicationService {
1969
2002
  on: (methodName: string, callback: (...args: unknown[]) => void) => void;
1970
2003
  off: (methodName: string, callback: (...args: unknown[]) => void) => void;
@@ -2127,6 +2160,49 @@ declare interface IServiceDescription_2 {
2127
2160
  configurationLayoutId: string;
2128
2161
  }
2129
2162
 
2163
+ declare interface ISessionCloseInfo {
2164
+ sessionId: string,
2165
+ message: string
2166
+ }
2167
+
2168
+ declare interface ISessionInfo {
2169
+ id: string,
2170
+ userName: string,
2171
+ computerName: string,
2172
+ loginTime: string,
2173
+ inactivityTime: string,
2174
+ offline: boolean
2175
+ }
2176
+
2177
+ declare interface ISessionsController extends Service {
2178
+ getSessionsCount(connectionId: string): Promise<IOpenSessionsCount>
2179
+ getSessions(connectionId, request: ISessionsGetRequest): Promise<ISessionsGetResponse>
2180
+ closeSessions(connectionId: string, sessionIds: string[]): Promise<ISessionCloseInfo[]>
2181
+ }
2182
+
2183
+ declare interface ISessionsGetRequest {
2184
+ query: ISessionsQuery,
2185
+ pagingParameters: IPagingParameters
2186
+ }
2187
+
2188
+ declare interface ISessionsGetResponse {
2189
+ licenseInfo: IUsedLicenseInfoModel,
2190
+ availableFilterTypes: SessionFilterTypes,
2191
+ pagedResult: IPageSessionResult
2192
+ }
2193
+
2194
+ declare interface ISessionSortCondition {
2195
+ columnName: string,
2196
+ ascending: boolean,
2197
+ order: number
2198
+ }
2199
+
2200
+ declare interface ISessionsQuery {
2201
+ queryId?: string,
2202
+ filterTypes: SessionFilterTypes,
2203
+ sortConditions: ISessionSortCondition[],
2204
+ }
2205
+
2130
2206
  export declare interface ISettingsNavigationService {
2131
2207
  goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
2132
2208
  goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
@@ -2156,6 +2232,16 @@ declare interface ISettingsService_2 {
2156
2232
  connectAddress: string;
2157
2233
  }
2158
2234
 
2235
+ declare interface ISolution {
2236
+ id: string,
2237
+ name: string,
2238
+ version?: number,
2239
+ currentOption: string,
2240
+ databaseVersion?: number,
2241
+ installDisabled: boolean,
2242
+ canUpdate: boolean,
2243
+ }
2244
+
2159
2245
  export declare interface IStaticExtensionResourcesDescriptor {
2160
2246
  mode: "static";
2161
2247
  folder?: string;
@@ -2322,6 +2408,11 @@ export declare interface IUrlModel {
2322
2408
  database?: string;
2323
2409
  }
2324
2410
 
2411
+ declare interface IUsedLicenseInfoModel {
2412
+ totalCount: number,
2413
+ usedCount: number
2414
+ }
2415
+
2325
2416
  export declare interface IUserInfo {
2326
2417
  /**
2327
2418
  * User account name
@@ -2640,6 +2731,13 @@ declare enum ServerType {
2640
2731
 
2641
2732
  export declare const ServicesContext: React_2.Context<IApplicationServices>;
2642
2733
 
2734
+ declare enum SessionFilterTypes {
2735
+ None = 0,
2736
+ Online = 1,
2737
+ Offline = 2,
2738
+ All = 3
2739
+ }
2740
+
2643
2741
  export declare const setDashboardPosition: (settings: IWidgetSettings_2, position: IDashboardPosition_2) => void;
2644
2742
 
2645
2743
  export declare class SettingsNavigationService implements ISettingsNavigationService {