@docsvision/management-console 6.2.0-beta.3 → 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.
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;
@@ -477,6 +498,24 @@ export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps):
477
498
 
478
499
  export declare type DatabaseSettingsCardSize = "sm" | "md";
479
500
 
501
+ declare enum DatabaseState {
502
+ Attached,
503
+ Updating,
504
+ Creating,
505
+ Attaching
506
+ }
507
+
508
+ declare enum DatabaseType {
509
+ Postgre,
510
+ SQL
511
+ }
512
+
513
+ declare enum DatabaseWizardMode {
514
+ Create,
515
+ Add,
516
+ Update
517
+ }
518
+
480
519
  export declare const DateRangeCalendarIcon: React_2.NamedExoticComponent<IDateRangeProps>;
481
520
 
482
521
  export declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
@@ -706,7 +745,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
706
745
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
707
746
  }
708
747
 
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 {
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 {
710
749
  }
711
750
 
712
751
  declare interface IApplicationServices_2 extends
@@ -737,10 +776,13 @@ $SettingsNavigation_2,
737
776
  $FormControl_2,
738
777
  $ExtendedConfigurationController,
739
778
  $RealtimeCommunication,
779
+ $DatabaseWizard,
780
+ $DatabasesController,
781
+ $DatabasesConfigurationController,
782
+ $DatabaseMasterController,
740
783
  $ConfigurationLocksController,
741
784
  $SessionsController,
742
- $ProcessTemplatesController,
743
- $RootElement_2 {
785
+ $ProcessTemplatesController {
744
786
 
745
787
  }
746
788
 
@@ -954,6 +996,12 @@ declare interface IConfigurationValueChange_2 extends IConfigurationValue_2 {
954
996
  operation: IChangeOperationType_2;
955
997
  }
956
998
 
999
+ declare interface IConnectionStatusInfo {
1000
+ status: ConnectionStatus;
1001
+ message: string;
1002
+ uniqueServerName?: string;
1003
+ }
1004
+
957
1005
  export declare interface IContainerProps extends HtmlProps.button {
958
1006
  title?: string;
959
1007
  content?: JSX.Element | string;
@@ -1111,6 +1159,82 @@ declare interface IDashboardPosition_2 {
1111
1159
  order: number;
1112
1160
  }
1113
1161
 
1162
+ declare interface IDatabase {
1163
+ alias: string;
1164
+ databaseName: string;
1165
+ databaseType: DatabaseType;
1166
+ serverName: string;
1167
+ isDefault: boolean;
1168
+ databaseState: DatabaseState;
1169
+ deleted: boolean;
1170
+ }
1171
+
1172
+ declare interface IDatabaseInfo {
1173
+ databaseAlias: string;
1174
+ connectionStatus: IConnectionStatusInfo;
1175
+ baseVersion: unknown;
1176
+ updateDate: string;
1177
+ fullTextSearchEnabled: boolean;
1178
+ }
1179
+
1180
+ declare interface IDatabaseMasterController extends Service {
1181
+ setState(serverId: string, state: IDatabaseMasterModel): Promise<void>;
1182
+ getState(serverId: string, databaseAlias: string): Promise<IDatabaseMasterModel>;
1183
+ deleteState(serverId: string, databaseAlias: string): Promise<void>;
1184
+ }
1185
+
1186
+ declare interface IDatabaseMasterModel {
1187
+ serverParameters?: IServerParameters;
1188
+ databaseParameters?: IDatabaseParameters;
1189
+ scriptGenerationParameters?: IScriptGenerationParameters;
1190
+ libraries?: string[];
1191
+ timeout?: number;
1192
+ localeId?: number;
1193
+ dbFilePath?: string;
1194
+ currentPageName: string;
1195
+ state?: IDatabaseMasterState;
1196
+ lastProcessError?: string;
1197
+ masterType: DatabaseWizardMode;
1198
+ }
1199
+
1200
+ declare enum IDatabaseMasterState {
1201
+ Preparing = 0,
1202
+ DatabaseInProcess = 1,
1203
+ DatabaseProcessFinished = 2,
1204
+ SolutionInProcess = 3,
1205
+ SolutionProcessFinished = 4
1206
+ }
1207
+
1208
+ declare interface IDatabaseParameters {
1209
+ alias: string;
1210
+ databaseName: string;
1211
+ additionalOptions?: Record<string, string>;
1212
+ }
1213
+
1214
+ declare interface IDatabasesConfigurationController extends Service {
1215
+ getDefault(serviceId: string): Promise<string>;
1216
+ setDefault(serviceId: string, databaseAlias: string): Promise<void>;
1217
+ add(serviceId: string, databaseAlias: string): Promise<void>;
1218
+ delete(serviceId: string, databaseAlias: string): Promise<void>;
1219
+ all(serviceId: string): Promise<IDatabase[]>;
1220
+ }
1221
+
1222
+ declare interface IDatabasesController extends Service {
1223
+ create(serviceId: string, databaseAlias: string): Promise<void>;
1224
+ update(serviceId: string, databaseAlias: string): Promise<void>;
1225
+ status(serviceId: string, databaseAlias: string): Promise<IProcessStatus>;
1226
+ stop(serviceId: string, databaseAlias: string): Promise<void>;
1227
+ databases(serviceId: string, serverParameters: IServerParameters): Promise<string[]>;
1228
+ checkSqlServerConnection(serviceId: string, serverParameters: IServerParameters): Promise<IConnectionStatusInfo>;
1229
+ checkSqlDatabaseConnection(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters): Promise<IConnectionStatusInfo>;
1230
+ checkSqlDatabaseConnectionFull(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters)
1231
+ : Promise<IConnectionStatusInfo>;
1232
+ info(serviceId: string): Promise<IDatabaseInfo[]>;
1233
+ libraries(serviceId: string, databaseAlias: string): Promise<IScriptGenerationModel>
1234
+ solutions(serviceId: string, databaseAlias: string): Promise<ISolution[]>
1235
+ installSolutions(serviceId: string, databaseAlias: string, solutions: string[]): Promise<void>;
1236
+ }
1237
+
1114
1238
  export declare interface IDatabaseSettingsCardProps {
1115
1239
  title: string;
1116
1240
  label: string;
@@ -1120,6 +1244,12 @@ export declare interface IDatabaseSettingsCardProps {
1120
1244
  error?: string;
1121
1245
  }
1122
1246
 
1247
+ declare interface IDatabaseWizardService extends Service {
1248
+ openCreateMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1249
+ openUpdateMode(serviceId: string, databaseAlias: string, databaseChangeStateEvent?: Event_2<void>);
1250
+ openConnectMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1251
+ }
1252
+
1123
1253
  export declare interface IDateRangeComponent {
1124
1254
  value?: string[];
1125
1255
  onChange?(value: (string | Moment)[]): void;
@@ -1464,6 +1594,19 @@ declare interface ILayoutService_2 extends Service {
1464
1594
  saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement_2[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel_2>;
1465
1595
  }
1466
1596
 
1597
+ declare interface ILibrary {
1598
+ id: string,
1599
+ alias: string,
1600
+ name: string,
1601
+ cardLibVersion: number,
1602
+ dbVersion: number,
1603
+ dbSysVersion: number;
1604
+ haveUserMetadata: boolean;
1605
+ haveUnknownLinks?: boolean;
1606
+ canUpdate?: boolean;
1607
+ libraryDependencies: TLibraryDependency[];
1608
+ }
1609
+
1467
1610
  declare interface ILineWithError {
1468
1611
  error: string;
1469
1612
  }
@@ -1481,7 +1624,6 @@ declare interface IListPanelProps {
1481
1624
  disabled?: boolean;
1482
1625
  validate?: (value: string) => Promise<boolean>;
1483
1626
  errorMessage?: string;
1484
- services: IApplicationServices;
1485
1627
  }
1486
1628
 
1487
1629
  export declare interface ILocalizationService {
@@ -1847,6 +1989,11 @@ export declare interface IPopupNotificationProps extends Noty_2.Options {
1847
1989
  buttonsProps?: IButtonsProps[];
1848
1990
  }
1849
1991
 
1992
+ declare interface IProcessStatus {
1993
+ state: ProcessState;
1994
+ errorMessage?: string
1995
+ }
1996
+
1850
1997
  declare interface IProcessTemplatesController extends Service {
1851
1998
  installProcessTemplates(serviceId: string, data: IInstallProcessTemplatesRequestModel): Promise<void>;
1852
1999
  }
@@ -1887,14 +2034,6 @@ declare interface IResourcesMap_2 {
1887
2034
  [id: string]: string;
1888
2035
  }
1889
2036
 
1890
- export declare interface IRootElementService {
1891
- readonly rootElementId: string;
1892
- }
1893
-
1894
- declare interface IRootElementService_2 {
1895
- readonly rootElementId: string;
1896
- }
1897
-
1898
2037
  export declare interface IRouteContentRenderService {
1899
2038
  register(path: string, routeHandler: RouteHandler, hooks?: HooksHandler): any;
1900
2039
  $contentComponent: Store<JSX.Element>;
@@ -1937,6 +2076,23 @@ declare interface ISavePageResultModel_2 {
1937
2076
  timestamp?: number;
1938
2077
  }
1939
2078
 
2079
+ declare interface IScriptGenerationModel {
2080
+ scriptGeneratorVersion: number,
2081
+ libraries: ILibrary[]
2082
+ }
2083
+
2084
+ declare interface IScriptGenerationParameters {
2085
+ searchDataBaseType: TableLocationType,
2086
+ changedObjectDataBaseType: TableLocationTypeExtended,
2087
+ iconDataBaseType: TableLocationType,
2088
+ keysetDataBaseType: TableLocationType,
2089
+ fileCursorDataBaseType: TableLocationType,
2090
+ cursorDataBaseType: TableLocationType,
2091
+ useOuterMetadata: boolean,
2092
+ useOuterLog: boolean,
2093
+ useOuterArchive: boolean,
2094
+ }
2095
+
1940
2096
  export declare interface ISectionContentWrapperProps extends IPageModelElement {
1941
2097
  className?: string;
1942
2098
  refElement?: React_2.RefObject<HTMLDivElement>;
@@ -1969,6 +2125,17 @@ export declare interface IServerExtensionResourcesDescriptor {
1969
2125
  url: string;
1970
2126
  }
1971
2127
 
2128
+ declare interface IServerParameters {
2129
+ serverName: string;
2130
+ serverType: ServerType;
2131
+ user: string;
2132
+ password: string;
2133
+ passwordChanged?: boolean;
2134
+ port?: number;
2135
+ integratedSecurity: boolean;
2136
+ trustServerCertificate?: boolean;
2137
+ }
2138
+
1972
2139
  declare interface IServersController extends Service {
1973
2140
  getServers(): Promise<IServerDescription[]>;
1974
2141
  getServerInfo(id: string): Promise<IServerDetails>;
@@ -2065,6 +2232,16 @@ declare interface ISettingsService_2 {
2065
2232
  connectAddress: string;
2066
2233
  }
2067
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
+
2068
2245
  export declare interface IStaticExtensionResourcesDescriptor {
2069
2246
  mode: "static";
2070
2247
  folder?: string;
@@ -2497,6 +2674,13 @@ declare enum PeriodType {
2497
2674
  DateRange
2498
2675
  }
2499
2676
 
2677
+ declare enum ProcessState {
2678
+ Running = 0,
2679
+ Finished = 1,
2680
+ Error = 2,
2681
+ Canceled = 3
2682
+ }
2683
+
2500
2684
  export declare function registerEditors(): void;
2501
2685
 
2502
2686
  export declare function removeCssVariables(theme: Theme): void;
@@ -2507,11 +2691,6 @@ export declare class ResourcesManagement implements IResourcesManagement {
2507
2691
  addResources(resourcesMap: any): void;
2508
2692
  }
2509
2693
 
2510
- export declare class RootElementService implements IRootElementService_2 {
2511
- readonly rootElementId: string;
2512
- constructor(rootElementId: string);
2513
- }
2514
-
2515
2694
  export declare class RouteContentRenderService implements IRouteContentRenderService_2 {
2516
2695
  private readonly application?;
2517
2696
  domain: Domain;
@@ -2545,6 +2724,11 @@ declare enum SavePageStatus_2 {
2545
2724
 
2546
2725
  export declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
2547
2726
 
2727
+ declare enum ServerType {
2728
+ PostgreSQL,
2729
+ "MS SQL SERVER",
2730
+ }
2731
+
2548
2732
  export declare const ServicesContext: React_2.Context<IApplicationServices>;
2549
2733
 
2550
2734
  declare enum SessionFilterTypes {
@@ -2581,6 +2765,22 @@ export declare function showNotification(text: string): void;
2581
2765
 
2582
2766
  declare type Story = StoryObj<INavigationMenuProps>;
2583
2767
 
2768
+ declare enum TableLocationType {
2769
+ UseDefaultOrCurrent,
2770
+ UseOwnDatabase,
2771
+ UseOuterDatabase,
2772
+ UseTemporaryDatabase,
2773
+ }
2774
+
2775
+ declare enum TableLocationTypeExtended {
2776
+ UseDefaultOrCurrent,
2777
+ UseOwnDatabase,
2778
+ UseOuterDatabase,
2779
+ UseTemporaryDatabase,
2780
+ InMemoryTableOwnDatabase,
2781
+ InMemoryTableOwnDatabaseNotPersistData,
2782
+ }
2783
+
2584
2784
  export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
2585
2785
 
2586
2786
  export declare class TenantsService implements ITenantsService {
@@ -2597,6 +2797,8 @@ export declare function TextMessage(props: ITextMessage): JSX.Element;
2597
2797
 
2598
2798
  export declare const theme: Theme;
2599
2799
 
2800
+ declare type TLibraryDependency = Omit<ILibrary, "haveUserMetadata" | "name" | "cardLibVersion" | "dbSysVersion" | "dbVersion" | "haveUnknownLinks" | "canUpdate">;
2801
+
2600
2802
  export declare const toWidgetSettings: (serverSettings: IWidgetSettingServerModel[]) => IWidgetSettings;
2601
2803
 
2602
2804
  export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;