oip-common 0.0.4 → 0.0.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.
Files changed (95) hide show
  1. package/fesm2022/oip-common.mjs +4267 -0
  2. package/fesm2022/oip-common.mjs.map +1 -0
  3. package/index.d.ts +1028 -0
  4. package/package.json +17 -5
  5. package/ng-package.json +0 -19
  6. package/src/api/FolderModule.ts +0 -124
  7. package/src/api/Menu.ts +0 -134
  8. package/src/api/Module.ts +0 -92
  9. package/src/api/Security.ts +0 -40
  10. package/src/api/Service.ts +0 -57
  11. package/src/api/data-contracts.ts +0 -186
  12. package/src/api/http-client.ts +0 -276
  13. package/src/components/app-configurator.component.ts +0 -491
  14. package/src/components/app-floating-configurator.component.ts +0 -47
  15. package/src/components/app-modules.component.ts +0 -144
  16. package/src/components/app.layout.component.ts +0 -130
  17. package/src/components/auth/access/access.component.ts +0 -42
  18. package/src/components/auth/error/error.component.ts +0 -42
  19. package/src/components/auth/login/login.component.ts +0 -120
  20. package/src/components/auth/unauthorized/unauthorized.component.ts +0 -51
  21. package/src/components/base-module.component.ts +0 -258
  22. package/src/components/config.component.ts +0 -131
  23. package/src/components/db-migration/db-migration.component.ts +0 -164
  24. package/src/components/db-migration.component.ts +0 -155
  25. package/src/components/footer.component.ts +0 -17
  26. package/src/components/logo.component.ts +0 -34
  27. package/src/components/menu/menu-item-create-dialog.component.ts +0 -119
  28. package/src/components/menu/menu-item-edit-dialog.component.ts +0 -124
  29. package/src/components/menu/menu-item.component.ts +0 -295
  30. package/src/components/menu/menu.component.ts +0 -85
  31. package/src/components/notfound.component.ts +0 -31
  32. package/src/components/profile.component.ts +0 -44
  33. package/src/components/security.component.ts +0 -102
  34. package/src/components/sidebar.component.ts +0 -12
  35. package/src/components/top-bar.component.ts +0 -147
  36. package/src/dtos/context-menu-item.dto.ts +0 -23
  37. package/src/dtos/edit-module-instance.dto.ts +0 -8
  38. package/src/dtos/no-settings.dto.ts +0 -4
  39. package/src/dtos/put-security.dto.ts +0 -6
  40. package/src/dtos/security.dto.ts +0 -6
  41. package/src/dtos/top-bar.dto.ts +0 -13
  42. package/src/events/menu-change.event.ts +0 -23
  43. package/src/helpers/date.helper.ts +0 -94
  44. package/src/intercepts/i18n-intercept.service.ts +0 -13
  45. package/src/modules/http-loader.factory.ts +0 -40
  46. package/src/modules/secure.pipe.ts +0 -19
  47. package/src/public-api.ts +0 -42
  48. package/src/services/app-title.service.ts +0 -22
  49. package/src/services/app.layout.service.ts +0 -236
  50. package/src/services/app.menu.service.ts +0 -64
  51. package/src/services/auth.service.ts +0 -58
  52. package/src/services/base-data.service.ts +0 -74
  53. package/src/services/l10n.service.ts +0 -71
  54. package/src/services/msg.service.ts +0 -76
  55. package/src/services/security-data.service.ts +0 -19
  56. package/src/services/security-storage.service.ts +0 -21
  57. package/src/services/security.service.ts +0 -116
  58. package/src/services/top-bar.service.ts +0 -44
  59. package/src/services/user.service.ts +0 -77
  60. package/src/test.ts +0 -11
  61. package/src/user-api/UserProfile.ts +0 -85
  62. package/src/user-api/data-contracts.ts +0 -42
  63. package/src/user-api/http-client.ts +0 -253
  64. package/tsconfig.lib.json +0 -12
  65. package/tsconfig.lib.prod.json +0 -10
  66. package/tsconfig.spec.json +0 -9
  67. /package/{src/assets → assets}/demo/code.scss +0 -0
  68. /package/{src/assets → assets}/demo/demo.scss +0 -0
  69. /package/{src/assets → assets}/demo/flags/flags.scss +0 -0
  70. /package/{src/assets → assets}/demo/flags/flags_responsive.png +0 -0
  71. /package/{src/assets → assets}/demo/images/access/asset-access.svg +0 -0
  72. /package/{src/assets → assets}/demo/images/error/asset-error.svg +0 -0
  73. /package/{src/assets → assets}/demo/images/flag/flag_placeholder.png +0 -0
  74. /package/{src/assets → assets}/favicon.svg +0 -0
  75. /package/{src/assets → assets}/i18n/app-modules.en.json +0 -0
  76. /package/{src/assets → assets}/i18n/app-modules.ru.json +0 -0
  77. /package/{src/assets → assets}/i18n/config.en.json +0 -0
  78. /package/{src/assets → assets}/i18n/config.ru.json +0 -0
  79. /package/{src/assets → assets}/layout/_core.scss +0 -0
  80. /package/{src/assets → assets}/layout/_footer.scss +0 -0
  81. /package/{src/assets → assets}/layout/_logo.scss +0 -0
  82. /package/{src/assets → assets}/layout/_main.scss +0 -0
  83. /package/{src/assets → assets}/layout/_menu.scss +0 -0
  84. /package/{src/assets → assets}/layout/_mixins.scss +0 -0
  85. /package/{src/assets → assets}/layout/_preloading.scss +0 -0
  86. /package/{src/assets → assets}/layout/_responsive.scss +0 -0
  87. /package/{src/assets → assets}/layout/_topbar.scss +0 -0
  88. /package/{src/assets → assets}/layout/_typography.scss +0 -0
  89. /package/{src/assets → assets}/layout/_utils.scss +0 -0
  90. /package/{src/assets → assets}/layout/layout.scss +0 -0
  91. /package/{src/assets → assets}/layout/variables/_common.scss +0 -0
  92. /package/{src/assets → assets}/layout/variables/_dark.scss +0 -0
  93. /package/{src/assets → assets}/layout/variables/_light.scss +0 -0
  94. /package/{src/assets → assets}/oip-common.scss +0 -0
  95. /package/{src/assets → assets}/tailwind.css +0 -0
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "pub": "npm publish"
8
- },
9
6
  "keywords": [
10
7
  "oip",
11
8
  "template"
@@ -15,5 +12,20 @@
15
12
  "repository": {
16
13
  "type": "git",
17
14
  "url": "git+https://github.com/g10101k/Oip.git"
15
+ },
16
+ "module": "fesm2022/oip-common.mjs",
17
+ "typings": "index.d.ts",
18
+ "exports": {
19
+ "./package.json": {
20
+ "default": "./package.json"
21
+ },
22
+ ".": {
23
+ "types": "./index.d.ts",
24
+ "default": "./fesm2022/oip-common.mjs"
25
+ }
26
+ },
27
+ "sideEffects": false,
28
+ "dependencies": {
29
+ "tslib": "^2.3.0"
18
30
  }
19
- }
31
+ }
package/ng-package.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/oip-common",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "assets": [
8
- {
9
- "input": "./src/assets",
10
- "glob": "**/*",
11
- "output": "assets"
12
- },
13
- {
14
- "input": "./templates",
15
- "glob": "**/*",
16
- "output": "templates"
17
- }
18
- ]
19
- }
@@ -1,124 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import { Injectable } from "@angular/core";
14
- import {
15
- ApiExceptionResponse,
16
- FolderModuleGetModuleInstanceSettingsParams,
17
- FolderModuleGetSecurityParams,
18
- FolderModuleSettingsSaveSettingsRequest,
19
- PutSecurityRequest,
20
- SecurityResponse,
21
- } from "./data-contracts";
22
- import { ContentType, HttpClient, RequestParams } from "./http-client";
23
-
24
- @Injectable()
25
- export class FolderModule<
26
- SecurityDataType = unknown,
27
- > extends HttpClient<SecurityDataType> {
28
- /**
29
- * @description Returns a list of rights (permissions) required to access the folder module.
30
- *
31
- * @tags FolderModule
32
- * @name folderModuleGetModuleRights
33
- * @request GET:/api/folder-module/get-module-rights
34
- * @secure
35
- */
36
- folderModuleGetModuleRights = (params: RequestParams = {}) =>
37
- this.request<SecurityResponse[], ApiExceptionResponse>({
38
- path: `/api/folder-module/get-module-rights`,
39
- method: "GET",
40
- secure: true,
41
- format: "json",
42
- ...params,
43
- });
44
- /**
45
- * @description Gets the security configuration for the specified module instance ID.
46
- *
47
- * @tags FolderModule
48
- * @name folderModuleGetSecurity
49
- * @request GET:/api/folder-module/get-security
50
- * @secure
51
- */
52
- folderModuleGetSecurity = (
53
- query: FolderModuleGetSecurityParams,
54
- params: RequestParams = {},
55
- ) =>
56
- this.request<SecurityResponse[], ApiExceptionResponse>({
57
- path: `/api/folder-module/get-security`,
58
- method: "GET",
59
- query: query,
60
- secure: true,
61
- format: "json",
62
- ...params,
63
- });
64
- /**
65
- * @description Updates the security configuration for the specified module instance.
66
- *
67
- * @tags FolderModule
68
- * @name folderModulePutSecurity
69
- * @request PUT:/api/folder-module/put-security
70
- * @secure
71
- */
72
- folderModulePutSecurity = (
73
- data: PutSecurityRequest,
74
- params: RequestParams = {},
75
- ) =>
76
- this.request<void, ApiExceptionResponse>({
77
- path: `/api/folder-module/put-security`,
78
- method: "PUT",
79
- body: data,
80
- secure: true,
81
- type: ContentType.Json,
82
- ...params,
83
- });
84
- /**
85
- * @description Gets the settings for the specified module instance.
86
- *
87
- * @tags FolderModule
88
- * @name folderModuleGetModuleInstanceSettings
89
- * @request GET:/api/folder-module/get-module-instance-settings
90
- * @secure
91
- */
92
- folderModuleGetModuleInstanceSettings = (
93
- query: FolderModuleGetModuleInstanceSettingsParams,
94
- params: RequestParams = {},
95
- ) =>
96
- this.request<any, ApiExceptionResponse>({
97
- path: `/api/folder-module/get-module-instance-settings`,
98
- method: "GET",
99
- query: query,
100
- secure: true,
101
- format: "json",
102
- ...params,
103
- });
104
- /**
105
- * No description
106
- *
107
- * @tags FolderModule
108
- * @name folderModulePutModuleInstanceSettings
109
- * @request PUT:/api/folder-module/put-module-instance-settings
110
- * @secure
111
- */
112
- folderModulePutModuleInstanceSettings = (
113
- data: FolderModuleSettingsSaveSettingsRequest,
114
- params: RequestParams = {},
115
- ) =>
116
- this.request<void, ApiExceptionResponse>({
117
- path: `/api/folder-module/put-module-instance-settings`,
118
- method: "PUT",
119
- body: data,
120
- secure: true,
121
- type: ContentType.Json,
122
- ...params,
123
- });
124
- }
package/src/api/Menu.ts DELETED
@@ -1,134 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import { Injectable } from "@angular/core";
14
- import {
15
- AddModuleInstanceDto,
16
- EditModuleInstanceDto,
17
- IntKeyValueDto,
18
- MenuDeleteModuleInstanceParams,
19
- ModuleInstanceDto,
20
- } from "./data-contracts";
21
- import { ContentType, HttpClient, RequestParams } from "./http-client";
22
-
23
- @Injectable()
24
- export class Menu<
25
- SecurityDataType = unknown,
26
- > extends HttpClient<SecurityDataType> {
27
- /**
28
- * @description Retrieves the menu available to the current authenticated user.
29
- *
30
- * @tags Menu
31
- * @name menuGet
32
- * @request GET:/api/menu/get
33
- * @secure
34
- */
35
- menuGet = (params: RequestParams = {}) =>
36
- this.request<ModuleInstanceDto[], any>({
37
- path: `/api/menu/get`,
38
- method: "GET",
39
- secure: true,
40
- format: "json",
41
- ...params,
42
- });
43
- /**
44
- * @description Retrieves the admin-specific menu.
45
- *
46
- * @tags Menu
47
- * @name menuGetAdminMenu
48
- * @request GET:/api/menu/get-admin-menu
49
- * @secure
50
- */
51
- menuGetAdminMenu = (params: RequestParams = {}) =>
52
- this.request<ModuleInstanceDto[], any>({
53
- path: `/api/menu/get-admin-menu`,
54
- method: "GET",
55
- secure: true,
56
- format: "json",
57
- ...params,
58
- });
59
- /**
60
- * @description Retrieves all available modules in the system.
61
- *
62
- * @tags Menu
63
- * @name menuGetModules
64
- * @request GET:/api/menu/get-modules
65
- * @secure
66
- */
67
- menuGetModules = (params: RequestParams = {}) =>
68
- this.request<IntKeyValueDto[], any>({
69
- path: `/api/menu/get-modules`,
70
- method: "GET",
71
- secure: true,
72
- format: "json",
73
- ...params,
74
- });
75
- /**
76
- * @description Adds a new module instance to the system.
77
- *
78
- * @tags Menu
79
- * @name menuAddModuleInstance
80
- * @request POST:/api/menu/add-module-instance
81
- * @secure
82
- */
83
- menuAddModuleInstance = (
84
- data: AddModuleInstanceDto,
85
- params: RequestParams = {},
86
- ) =>
87
- this.request<void, any>({
88
- path: `/api/menu/add-module-instance`,
89
- method: "POST",
90
- body: data,
91
- secure: true,
92
- type: ContentType.Json,
93
- ...params,
94
- });
95
- /**
96
- * @description Edits an existing module instance.
97
- *
98
- * @tags Menu
99
- * @name menuEditModuleInstance
100
- * @request POST:/api/menu/edit-module-instance
101
- * @secure
102
- */
103
- menuEditModuleInstance = (
104
- data: EditModuleInstanceDto,
105
- params: RequestParams = {},
106
- ) =>
107
- this.request<void, any>({
108
- path: `/api/menu/edit-module-instance`,
109
- method: "POST",
110
- body: data,
111
- secure: true,
112
- type: ContentType.Json,
113
- ...params,
114
- });
115
- /**
116
- * @description Deletes a module instance by its identifier.
117
- *
118
- * @tags Menu
119
- * @name menuDeleteModuleInstance
120
- * @request DELETE:/api/menu/delete-module-instance
121
- * @secure
122
- */
123
- menuDeleteModuleInstance = (
124
- query: MenuDeleteModuleInstanceParams,
125
- params: RequestParams = {},
126
- ) =>
127
- this.request<void, any>({
128
- path: `/api/menu/delete-module-instance`,
129
- method: "DELETE",
130
- query: query,
131
- secure: true,
132
- ...params,
133
- });
134
- }
package/src/api/Module.ts DELETED
@@ -1,92 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import { Injectable } from "@angular/core";
14
- import {
15
- ApiExceptionResponse,
16
- ExistModuleDto,
17
- ModuleDeleteRequest,
18
- ModuleDto,
19
- } from "./data-contracts";
20
- import { ContentType, HttpClient, RequestParams } from "./http-client";
21
-
22
- @Injectable()
23
- export class Module<
24
- SecurityDataType = unknown,
25
- > extends HttpClient<SecurityDataType> {
26
- /**
27
- * @description Retrieves all modules stored in the system.
28
- *
29
- * @tags Module
30
- * @name moduleGetAll
31
- * @request GET:/api/module/get-all
32
- * @secure
33
- */
34
- moduleGetAll = (params: RequestParams = {}) =>
35
- this.request<ModuleDto[], ApiExceptionResponse>({
36
- path: `/api/module/get-all`,
37
- method: "GET",
38
- secure: true,
39
- format: "json",
40
- ...params,
41
- });
42
- /**
43
- * @description Inserts a new module into the system.
44
- *
45
- * @tags Module
46
- * @name moduleInsert
47
- * @request POST:/api/module/insert
48
- * @secure
49
- */
50
- moduleInsert = (data: ModuleDto, params: RequestParams = {}) =>
51
- this.request<void, ApiExceptionResponse>({
52
- path: `/api/module/insert`,
53
- method: "POST",
54
- body: data,
55
- secure: true,
56
- type: ContentType.Json,
57
- ...params,
58
- });
59
- /**
60
- * @description Deletes a module by its identifier.
61
- *
62
- * @tags Module
63
- * @name moduleDelete
64
- * @request DELETE:/api/module/delete
65
- * @secure
66
- */
67
- moduleDelete = (data: ModuleDeleteRequest, params: RequestParams = {}) =>
68
- this.request<void, ApiExceptionResponse>({
69
- path: `/api/module/delete`,
70
- method: "DELETE",
71
- body: data,
72
- secure: true,
73
- type: ContentType.Json,
74
- ...params,
75
- });
76
- /**
77
- * @description Returns all registered modules and indicates whether each one is currently loaded into the application.
78
- *
79
- * @tags Module
80
- * @name moduleGetModulesWithLoadStatus
81
- * @request GET:/api/module/get-modules-with-load-status
82
- * @secure
83
- */
84
- moduleGetModulesWithLoadStatus = (params: RequestParams = {}) =>
85
- this.request<ExistModuleDto[], ApiExceptionResponse>({
86
- path: `/api/module/get-modules-with-load-status`,
87
- method: "GET",
88
- secure: true,
89
- format: "json",
90
- ...params,
91
- });
92
- }
@@ -1,40 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import { Injectable } from "@angular/core";
14
- import {
15
- ApiExceptionResponse,
16
- GetKeycloakClientSettingsResponse,
17
- } from "./data-contracts";
18
- import { HttpClient, RequestParams } from "./http-client";
19
-
20
- @Injectable()
21
- export class Security<
22
- SecurityDataType = unknown,
23
- > extends HttpClient<SecurityDataType> {
24
- /**
25
- * @description Retrieves Keycloak client settings needed by frontend applications.
26
- *
27
- * @tags Security
28
- * @name securityGetKeycloakClientSettings
29
- * @request GET:/api/security/get-keycloak-client-settings
30
- * @secure
31
- */
32
- securityGetKeycloakClientSettings = (params: RequestParams = {}) =>
33
- this.request<GetKeycloakClientSettingsResponse, ApiExceptionResponse>({
34
- path: `/api/security/get-keycloak-client-settings`,
35
- method: "GET",
36
- secure: true,
37
- format: "json",
38
- ...params,
39
- });
40
- }
@@ -1,57 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import { Injectable } from "@angular/core";
14
- import { GetManifestResponse, RegisterModuleDto } from "./data-contracts";
15
- import { ContentType, HttpClient, RequestParams } from "./http-client";
16
-
17
- @Injectable()
18
- export class Service<
19
- SecurityDataType = unknown,
20
- > extends HttpClient<SecurityDataType> {
21
- /**
22
- * @description Get manifest for client app
23
- *
24
- * @tags Service
25
- * @name serviceGet
26
- * @request GET:/api/service/get
27
- * @secure
28
- */
29
- serviceGet = (params: RequestParams = {}) =>
30
- this.request<Record<string, GetManifestResponse>, any>({
31
- path: `/api/service/get`,
32
- method: "GET",
33
- secure: true,
34
- format: "json",
35
- ...params,
36
- });
37
- /**
38
- * @description Registry module
39
- *
40
- * @tags Service
41
- * @name serviceRegisterModule
42
- * @request POST:/api/service/register-module
43
- * @secure
44
- */
45
- serviceRegisterModule = (
46
- data: RegisterModuleDto,
47
- params: RequestParams = {},
48
- ) =>
49
- this.request<void, any>({
50
- path: `/api/service/register-module`,
51
- method: "POST",
52
- body: data,
53
- secure: true,
54
- type: ContentType.Json,
55
- ...params,
56
- });
57
- }
@@ -1,186 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- /** Data Transfer Object for creating a new module instance */
14
- export interface AddModuleInstanceDto {
15
- /** The identifier of the module to create an instance of */
16
- moduleId?: number;
17
- /** The display label for the module instance */
18
- label?: string | null;
19
- /** The icon identifier for the module instance (optional) */
20
- icon?: string | null;
21
- /** The parent module instance identifier (optional) */
22
- parentId?: number | null;
23
- /** Array of role identifiers that can view this module instance (optional) */
24
- viewRoles?: string[] | null;
25
- }
26
-
27
- /** Standardized response format for API exceptions */
28
- export interface ApiExceptionResponse {
29
- /** User-friendly title of the exception */
30
- title?: string | null;
31
- /** Detailed description of the error */
32
- message?: string | null;
33
- /** HTTP status code associated with the exception */
34
- statusCode?: number;
35
- /** Stack trace information (optional, typically omitted in production) */
36
- stackTrace?: string | null;
37
- }
38
-
39
- /** Data Transfer Object for editing an existing module instance */
40
- export interface EditModuleInstanceDto {
41
- /** The identifier of the module instance to edit */
42
- moduleInstanceId?: number;
43
- /** The updated display label for the module instance */
44
- label?: string | null;
45
- /** The updated icon identifier for the module instance (optional) */
46
- icon?: string | null;
47
- /** The updated parent module instance identifier (optional) */
48
- parentId?: number | null;
49
- /** Updated array of role identifiers that can view this module instance (optional) */
50
- viewRoles?: string[] | null;
51
- }
52
-
53
- /** Data transfer object representing a module and its loaded status. */
54
- export interface ExistModuleDto {
55
- /** Gets or sets the unique identifier of the module. */
56
- moduleId?: number;
57
- /** Gets or sets the name of the module. */
58
- name?: string | null;
59
- /** Gets or sets a value indicating whether the module is currently loaded in the application. */
60
- currentlyLoaded?: boolean;
61
- }
62
-
63
- /** Module settings. */
64
- export interface FolderModuleSettings {
65
- /** HTML content for the module. */
66
- html?: string | null;
67
- }
68
-
69
- /** Represents a request to save module instance settings. */
70
- export interface FolderModuleSettingsSaveSettingsRequest {
71
- /** Gets or sets the ID of the module instance. */
72
- id?: number;
73
- /** Module settings. */
74
- settings?: FolderModuleSettings;
75
- }
76
-
77
- /** Response front security settings */
78
- export interface GetKeycloakClientSettingsResponse {
79
- /** Authority */
80
- authority?: string | null;
81
- /** Client id */
82
- clientId?: string | null;
83
- /** Scope */
84
- scope?: string | null;
85
- /** Response Type */
86
- responseType?: string | null;
87
- /** Use Refresh Token */
88
- useRefreshToken?: boolean;
89
- /** Silent Renew */
90
- silentRenew?: boolean;
91
- /** Log level None = 0, Debug = 1, Warn = 2, Error = 3 */
92
- logLevel?: number;
93
- /** Urls with auth */
94
- secureRoutes?: string[] | null;
95
- }
96
-
97
- /** Represents a key-value pair where the key is an integer and the value is a string. */
98
- export interface IntKeyValueDto {
99
- key?: number;
100
- value?: string | null;
101
- }
102
-
103
- /** Represents a request to delete a module by its identifier. */
104
- export interface ModuleDeleteRequest {
105
- /** Gets or sets the unique identifier of the module to be deleted. */
106
- moduleId?: number;
107
- }
108
-
109
- /** It module in app */
110
- export interface ModuleDto {
111
- /** Id */
112
- moduleId?: number;
113
- /** Name */
114
- name?: string | null;
115
- /** Settings */
116
- settings?: string | null;
117
- /** Securities */
118
- moduleSecurities?: ModuleSecurityDto[] | null;
119
- }
120
-
121
- /** Module Instance Dto */
122
- export interface ModuleInstanceDto {
123
- /** Unique identifier for the module instance. */
124
- moduleInstanceId?: number;
125
- /** Identifier for the module. */
126
- moduleId?: number;
127
- /** The label for the module instance. */
128
- label?: string | null;
129
- /** Icon associated with the module instance. see https://primeng.org/icons */
130
- icon?: string | null;
131
- /** Route link. */
132
- routerLink?: string[] | null;
133
- /** URL for the module instance. */
134
- url?: string | null;
135
- /** The target. */
136
- target?: string | null;
137
- /** Configuration settings for the module instance. */
138
- settings?: string | null;
139
- /** Child module instances. */
140
- items?: ModuleInstanceDto[] | null;
141
- /** Securities */
142
- securities?: string[] | null;
143
- }
144
-
145
- /** Module security DTO */
146
- export interface ModuleSecurityDto {
147
- /** Right */
148
- right?: string | null;
149
- /** Role */
150
- role?: string | null;
151
- }
152
-
153
- /** Put security dto */
154
- export interface PutSecurityRequest {
155
- /** Instance id */
156
- id?: number;
157
- /** Securities */
158
- securities?: SecurityResponse[] | null;
159
- }
160
-
161
- /** Security dto */
162
- export interface SecurityResponse {
163
- /** Code */
164
- code?: string | null;
165
- /** Name */
166
- name?: string | null;
167
- /** Description */
168
- description?: string | null;
169
- /** Roles */
170
- roles?: string[] | null;
171
- }
172
-
173
- export interface FolderModuleGetSecurityParams {
174
- /** The ID of the module instance. */
175
- id?: number;
176
- }
177
-
178
- export interface FolderModuleGetModuleInstanceSettingsParams {
179
- /** The ID of the module instance. */
180
- id?: number;
181
- }
182
-
183
- export interface MenuDeleteModuleInstanceParams {
184
- /** The unique identifier of the module instance to delete. */
185
- id?: number;
186
- }