@docsvision/management-console 6.2.0-beta.3 → 6.2.0-beta.5

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
@@ -99,6 +99,22 @@ declare type $DashboardConfigurationService_2 = { dashboardConfigurationService:
99
99
 
100
100
  declare const $DashboardConfigurationService_2 = serviceName((s: $DashboardConfigurationService_2) => s.dashboardConfigurationService);
101
101
 
102
+ declare type $DatabaseMasterController = { databaseMasterController: IDatabaseMasterController };
103
+
104
+ declare const $DatabaseMasterController = serviceName((s: $DatabaseMasterController) => s.databaseMasterController);
105
+
106
+ declare type $DatabasesConfigurationController = { databasesConfigurationController: IDatabasesConfigurationController };
107
+
108
+ declare const $DatabasesConfigurationController = serviceName((s: $DatabasesConfigurationController) => s.databasesConfigurationController);
109
+
110
+ declare type $DatabasesController = { databasesController: IDatabasesController };
111
+
112
+ declare const $DatabasesController = serviceName((s: $DatabasesController) => s.databasesController);
113
+
114
+ declare type $DatabaseWizard = { databaseWizardService: IDatabaseWizardService; };
115
+
116
+ declare const $DatabaseWizard = serviceName((s: $DatabaseWizard) => s.databaseWizardService);
117
+
102
118
  export declare type $DomEntryPointService = {
103
119
  domEntryPointService: IDomEntryPointService;
104
120
  };
@@ -231,16 +247,6 @@ declare type $ResourcesManagement_2 = { resourcesManagement: IResourcesManagemen
231
247
 
232
248
  declare const $ResourcesManagement_2 = serviceName((s: $ResourcesManagement_2) => s.resourcesManagement);
233
249
 
234
- export declare type $RootElement = {
235
- rootElement: IRootElementService;
236
- };
237
-
238
- export declare const $RootElement: string | ((model?: $RootElement) => IRootElementService);
239
-
240
- declare type $RootElement_2 = { rootElement: IRootElementService_2 };
241
-
242
- declare const $RootElement_2 = serviceName((s: $RootElement_2) => s.rootElement);
243
-
244
250
  export declare type $RouteContentRender = {
245
251
  routeContentRender: IRouteContentRenderService;
246
252
  };
@@ -342,12 +348,15 @@ export declare class Application extends ServiceContainer implements IApplicatio
342
348
  serverController: IServersController_2;
343
349
  settingsNavigation: ISettingsNavigationService;
344
350
  formControl: IFormControl;
351
+ databaseWizardService: IDatabaseWizardService;
352
+ databaseMasterController: IDatabaseMasterController;
353
+ databasesConfigurationController: IDatabasesConfigurationController;
354
+ databasesController: IDatabasesController;
345
355
  realtimeCommunication: IRealtimeCommunicationService_2;
346
356
  sessionsController: ISessionsController;
347
357
  configurationLocksController: IConfigurationLocksController;
348
358
  extendedConfigurationController: IExtendedConfigurationController_2;
349
359
  processTemplatesController: IProcessTemplatesController;
350
- rootElement: IRootElementService_2;
351
360
  constructor(reactRootElementId: string);
352
361
  static instance: IApplication;
353
362
  initialize(): Promise<void>;
@@ -410,6 +419,18 @@ export declare const commonMuiProps: {
410
419
 
411
420
  export declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
412
421
 
422
+ declare enum ConnectionStatus {
423
+ Unknown = -1,
424
+ Succesfull = 0,
425
+ DatabaseNotExist = 1,
426
+ ServerNotExist = 2,
427
+ LoginFailed = 3,
428
+ AuthNotSupported = 4,
429
+
430
+ AliasAlreadyExists = 100,
431
+ DatabaseAlreadyExists = 101
432
+ }
433
+
413
434
  export declare const convertBase64ToString: (base64: string) => string;
414
435
 
415
436
  export declare const convertDataToBase64: (data: object) => string;
@@ -473,10 +494,30 @@ export declare class DashboardConfigurationService implements IDashboardConfigur
473
494
  removeDashboardConfiguration(dashboardId: string): Promise<void>;
474
495
  }
475
496
 
497
+ export declare function DatabaseSelectionModal(props: IDatabaseSelectionModalProps): JSX.Element;
498
+
476
499
  export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps): JSX.Element;
477
500
 
478
501
  export declare type DatabaseSettingsCardSize = "sm" | "md";
479
502
 
503
+ declare enum DatabaseState {
504
+ Attached,
505
+ Updating,
506
+ Creating,
507
+ Attaching
508
+ }
509
+
510
+ declare enum DatabaseType {
511
+ Postgre,
512
+ SQL
513
+ }
514
+
515
+ declare enum DatabaseWizardMode {
516
+ Create,
517
+ Add,
518
+ Update
519
+ }
520
+
480
521
  export declare const DateRangeCalendarIcon: React_2.NamedExoticComponent<IDateRangeProps>;
481
522
 
482
523
  export declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
@@ -548,6 +589,11 @@ declare type EffectCallbackAsync = () => (Promise<void> | (() => Promise<void |
548
589
 
549
590
  export declare const EMAIL_CONNECTION_SETTINGS_LAYOUT = "ea883b59-bb95-446e-879b-97874ac4d82b";
550
591
 
592
+ export declare enum EngineType {
593
+ MsSQL = 0,
594
+ PgSQL = 1
595
+ }
596
+
551
597
  export declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
552
598
 
553
599
  export declare function ErrorBlock({ text, close }: IErrorBlockProps): JSX.Element;
@@ -706,7 +752,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
706
752
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
707
753
  }
708
754
 
709
- 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, $ConfigurationLocksController, $SessionsController, $ProcessTemplatesController, $RootElement_2 {
755
+ 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 {
710
756
  }
711
757
 
712
758
  declare interface IApplicationServices_2 extends
@@ -737,10 +783,13 @@ $SettingsNavigation_2,
737
783
  $FormControl_2,
738
784
  $ExtendedConfigurationController,
739
785
  $RealtimeCommunication,
786
+ $DatabaseWizard,
787
+ $DatabasesController,
788
+ $DatabasesConfigurationController,
789
+ $DatabaseMasterController,
740
790
  $ConfigurationLocksController,
741
791
  $SessionsController,
742
- $ProcessTemplatesController,
743
- $RootElement_2 {
792
+ $ProcessTemplatesController {
744
793
 
745
794
  }
746
795
 
@@ -954,6 +1003,12 @@ declare interface IConfigurationValueChange_2 extends IConfigurationValue_2 {
954
1003
  operation: IChangeOperationType_2;
955
1004
  }
956
1005
 
1006
+ declare interface IConnectionStatusInfo {
1007
+ status: ConnectionStatus;
1008
+ message: string;
1009
+ uniqueServerName?: string;
1010
+ }
1011
+
957
1012
  export declare interface IContainerProps extends HtmlProps.button {
958
1013
  title?: string;
959
1014
  content?: JSX.Element | string;
@@ -1111,6 +1166,100 @@ declare interface IDashboardPosition_2 {
1111
1166
  order: number;
1112
1167
  }
1113
1168
 
1169
+ declare interface IDatabase {
1170
+ alias: string;
1171
+ databaseName: string;
1172
+ databaseType: DatabaseType;
1173
+ serverName: string;
1174
+ isDefault: boolean;
1175
+ databaseState: DatabaseState;
1176
+ deleted: boolean;
1177
+ }
1178
+
1179
+ declare interface IDatabaseInfo {
1180
+ databaseAlias: string;
1181
+ connectionStatus: IConnectionStatusInfo;
1182
+ baseVersion: unknown;
1183
+ updateDate: string;
1184
+ fullTextSearchEnabled: boolean;
1185
+ }
1186
+
1187
+ declare interface IDatabaseMasterController extends Service {
1188
+ setState(serverId: string, state: IDatabaseMasterModel): Promise<void>;
1189
+ getState(serverId: string, databaseAlias: string): Promise<IDatabaseMasterModel>;
1190
+ deleteState(serverId: string, databaseAlias: string): Promise<void>;
1191
+ }
1192
+
1193
+ declare interface IDatabaseMasterModel {
1194
+ serverParameters?: IServerParameters;
1195
+ databaseParameters?: IDatabaseParameters;
1196
+ scriptGenerationParameters?: IScriptGenerationParameters;
1197
+ libraries?: string[];
1198
+ timeout?: number;
1199
+ localeId?: number;
1200
+ dbFilePath?: string;
1201
+ currentPageName: string;
1202
+ state?: IDatabaseMasterState;
1203
+ lastProcessError?: string;
1204
+ masterType: DatabaseWizardMode;
1205
+ }
1206
+
1207
+ declare enum IDatabaseMasterState {
1208
+ Preparing = 0,
1209
+ DatabaseInProcess = 1,
1210
+ DatabaseProcessFinished = 2,
1211
+ SolutionInProcess = 3,
1212
+ SolutionProcessFinished = 4
1213
+ }
1214
+
1215
+ export declare interface IDatabaseModel {
1216
+ baseName: string;
1217
+ sqlServerName: string;
1218
+ serverType: EngineType;
1219
+ usesFileService: boolean;
1220
+ hash: string;
1221
+ serverNames: string[];
1222
+ error?: string;
1223
+ }
1224
+
1225
+ declare interface IDatabaseParameters {
1226
+ alias: string;
1227
+ databaseName: string;
1228
+ additionalOptions?: Record<string, string>;
1229
+ }
1230
+
1231
+ declare interface IDatabasesConfigurationController extends Service {
1232
+ getDefault(serviceId: string): Promise<string>;
1233
+ setDefault(serviceId: string, databaseAlias: string): Promise<void>;
1234
+ add(serviceId: string, databaseAlias: string): Promise<void>;
1235
+ delete(serviceId: string, databaseAlias: string): Promise<void>;
1236
+ all(serviceId: string): Promise<IDatabase[]>;
1237
+ }
1238
+
1239
+ declare interface IDatabasesController extends Service {
1240
+ create(serviceId: string, databaseAlias: string): Promise<void>;
1241
+ update(serviceId: string, databaseAlias: string): Promise<void>;
1242
+ status(serviceId: string, databaseAlias: string): Promise<IProcessStatus>;
1243
+ stop(serviceId: string, databaseAlias: string): Promise<void>;
1244
+ databases(serviceId: string, serverParameters: IServerParameters): Promise<string[]>;
1245
+ checkSqlServerConnection(serviceId: string, serverParameters: IServerParameters): Promise<IConnectionStatusInfo>;
1246
+ checkSqlDatabaseConnection(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters): Promise<IConnectionStatusInfo>;
1247
+ checkSqlDatabaseConnectionFull(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters)
1248
+ : Promise<IConnectionStatusInfo>;
1249
+ info(serviceId: string): Promise<IDatabaseInfo[]>;
1250
+ libraries(serviceId: string, databaseAlias: string): Promise<IScriptGenerationModel>
1251
+ solutions(serviceId: string, databaseAlias: string): Promise<ISolution[]>
1252
+ installSolutions(serviceId: string, databaseAlias: string, solutions: string[]): Promise<void>;
1253
+ }
1254
+
1255
+ export declare interface IDatabaseSelectionModalProps {
1256
+ open: boolean;
1257
+ databases: IDatabaseModel[];
1258
+ onCancel: () => void;
1259
+ onApply: (selected: IDatabaseModel[]) => void;
1260
+ resources: IResourcesMap_2;
1261
+ }
1262
+
1114
1263
  export declare interface IDatabaseSettingsCardProps {
1115
1264
  title: string;
1116
1265
  label: string;
@@ -1120,6 +1269,12 @@ export declare interface IDatabaseSettingsCardProps {
1120
1269
  error?: string;
1121
1270
  }
1122
1271
 
1272
+ declare interface IDatabaseWizardService extends Service {
1273
+ openCreateMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1274
+ openUpdateMode(serviceId: string, databaseAlias: string, databaseChangeStateEvent?: Event_2<void>);
1275
+ openConnectMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1276
+ }
1277
+
1123
1278
  export declare interface IDateRangeComponent {
1124
1279
  value?: string[];
1125
1280
  onChange?(value: (string | Moment)[]): void;
@@ -1464,6 +1619,19 @@ declare interface ILayoutService_2 extends Service {
1464
1619
  saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement_2[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel_2>;
1465
1620
  }
1466
1621
 
1622
+ declare interface ILibrary {
1623
+ id: string,
1624
+ alias: string,
1625
+ name: string,
1626
+ cardLibVersion: number,
1627
+ dbVersion: number,
1628
+ dbSysVersion: number;
1629
+ haveUserMetadata: boolean;
1630
+ haveUnknownLinks?: boolean;
1631
+ canUpdate?: boolean;
1632
+ libraryDependencies: TLibraryDependency[];
1633
+ }
1634
+
1467
1635
  declare interface ILineWithError {
1468
1636
  error: string;
1469
1637
  }
@@ -1481,7 +1649,6 @@ declare interface IListPanelProps {
1481
1649
  disabled?: boolean;
1482
1650
  validate?: (value: string) => Promise<boolean>;
1483
1651
  errorMessage?: string;
1484
- services: IApplicationServices;
1485
1652
  }
1486
1653
 
1487
1654
  export declare interface ILocalizationService {
@@ -1847,6 +2014,11 @@ export declare interface IPopupNotificationProps extends Noty_2.Options {
1847
2014
  buttonsProps?: IButtonsProps[];
1848
2015
  }
1849
2016
 
2017
+ declare interface IProcessStatus {
2018
+ state: ProcessState;
2019
+ errorMessage?: string
2020
+ }
2021
+
1850
2022
  declare interface IProcessTemplatesController extends Service {
1851
2023
  installProcessTemplates(serviceId: string, data: IInstallProcessTemplatesRequestModel): Promise<void>;
1852
2024
  }
@@ -1887,14 +2059,6 @@ declare interface IResourcesMap_2 {
1887
2059
  [id: string]: string;
1888
2060
  }
1889
2061
 
1890
- export declare interface IRootElementService {
1891
- readonly rootElementId: string;
1892
- }
1893
-
1894
- declare interface IRootElementService_2 {
1895
- readonly rootElementId: string;
1896
- }
1897
-
1898
2062
  export declare interface IRouteContentRenderService {
1899
2063
  register(path: string, routeHandler: RouteHandler, hooks?: HooksHandler): any;
1900
2064
  $contentComponent: Store<JSX.Element>;
@@ -1937,6 +2101,23 @@ declare interface ISavePageResultModel_2 {
1937
2101
  timestamp?: number;
1938
2102
  }
1939
2103
 
2104
+ declare interface IScriptGenerationModel {
2105
+ scriptGeneratorVersion: number,
2106
+ libraries: ILibrary[]
2107
+ }
2108
+
2109
+ declare interface IScriptGenerationParameters {
2110
+ searchDataBaseType: TableLocationType,
2111
+ changedObjectDataBaseType: TableLocationTypeExtended,
2112
+ iconDataBaseType: TableLocationType,
2113
+ keysetDataBaseType: TableLocationType,
2114
+ fileCursorDataBaseType: TableLocationType,
2115
+ cursorDataBaseType: TableLocationType,
2116
+ useOuterMetadata: boolean,
2117
+ useOuterLog: boolean,
2118
+ useOuterArchive: boolean,
2119
+ }
2120
+
1940
2121
  export declare interface ISectionContentWrapperProps extends IPageModelElement {
1941
2122
  className?: string;
1942
2123
  refElement?: React_2.RefObject<HTMLDivElement>;
@@ -1969,6 +2150,17 @@ export declare interface IServerExtensionResourcesDescriptor {
1969
2150
  url: string;
1970
2151
  }
1971
2152
 
2153
+ declare interface IServerParameters {
2154
+ serverName: string;
2155
+ serverType: ServerType;
2156
+ user: string;
2157
+ password: string;
2158
+ passwordChanged?: boolean;
2159
+ port?: number;
2160
+ integratedSecurity: boolean;
2161
+ trustServerCertificate?: boolean;
2162
+ }
2163
+
1972
2164
  declare interface IServersController extends Service {
1973
2165
  getServers(): Promise<IServerDescription[]>;
1974
2166
  getServerInfo(id: string): Promise<IServerDetails>;
@@ -2065,6 +2257,16 @@ declare interface ISettingsService_2 {
2065
2257
  connectAddress: string;
2066
2258
  }
2067
2259
 
2260
+ declare interface ISolution {
2261
+ id: string,
2262
+ name: string,
2263
+ version?: number,
2264
+ currentOption: string,
2265
+ databaseVersion?: number,
2266
+ installDisabled: boolean,
2267
+ canUpdate: boolean,
2268
+ }
2269
+
2068
2270
  export declare interface IStaticExtensionResourcesDescriptor {
2069
2271
  mode: "static";
2070
2272
  folder?: string;
@@ -2497,6 +2699,13 @@ declare enum PeriodType {
2497
2699
  DateRange
2498
2700
  }
2499
2701
 
2702
+ declare enum ProcessState {
2703
+ Running = 0,
2704
+ Finished = 1,
2705
+ Error = 2,
2706
+ Canceled = 3
2707
+ }
2708
+
2500
2709
  export declare function registerEditors(): void;
2501
2710
 
2502
2711
  export declare function removeCssVariables(theme: Theme): void;
@@ -2507,11 +2716,6 @@ export declare class ResourcesManagement implements IResourcesManagement {
2507
2716
  addResources(resourcesMap: any): void;
2508
2717
  }
2509
2718
 
2510
- export declare class RootElementService implements IRootElementService_2 {
2511
- readonly rootElementId: string;
2512
- constructor(rootElementId: string);
2513
- }
2514
-
2515
2719
  export declare class RouteContentRenderService implements IRouteContentRenderService_2 {
2516
2720
  private readonly application?;
2517
2721
  domain: Domain;
@@ -2545,6 +2749,11 @@ declare enum SavePageStatus_2 {
2545
2749
 
2546
2750
  export declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
2547
2751
 
2752
+ declare enum ServerType {
2753
+ PostgreSQL,
2754
+ "MS SQL SERVER",
2755
+ }
2756
+
2548
2757
  export declare const ServicesContext: React_2.Context<IApplicationServices>;
2549
2758
 
2550
2759
  declare enum SessionFilterTypes {
@@ -2581,6 +2790,22 @@ export declare function showNotification(text: string): void;
2581
2790
 
2582
2791
  declare type Story = StoryObj<INavigationMenuProps>;
2583
2792
 
2793
+ declare enum TableLocationType {
2794
+ UseDefaultOrCurrent,
2795
+ UseOwnDatabase,
2796
+ UseOuterDatabase,
2797
+ UseTemporaryDatabase,
2798
+ }
2799
+
2800
+ declare enum TableLocationTypeExtended {
2801
+ UseDefaultOrCurrent,
2802
+ UseOwnDatabase,
2803
+ UseOuterDatabase,
2804
+ UseTemporaryDatabase,
2805
+ InMemoryTableOwnDatabase,
2806
+ InMemoryTableOwnDatabaseNotPersistData,
2807
+ }
2808
+
2584
2809
  export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
2585
2810
 
2586
2811
  export declare class TenantsService implements ITenantsService {
@@ -2597,6 +2822,8 @@ export declare function TextMessage(props: ITextMessage): JSX.Element;
2597
2822
 
2598
2823
  export declare const theme: Theme;
2599
2824
 
2825
+ declare type TLibraryDependency = Omit<ILibrary, "haveUserMetadata" | "name" | "cardLibVersion" | "dbSysVersion" | "dbVersion" | "haveUnknownLinks" | "canUpdate">;
2826
+
2600
2827
  export declare const toWidgetSettings: (serverSettings: IWidgetSettingServerModel[]) => IWidgetSettings;
2601
2828
 
2602
2829
  export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;