oip-common 0.0.6 → 0.0.7

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 (105) hide show
  1. package/ng-package.json +19 -0
  2. package/package.json +19 -38
  3. package/src/api/FolderModule.ts +124 -0
  4. package/src/api/Menu.ts +134 -0
  5. package/src/api/Module.ts +92 -0
  6. package/src/api/Security.ts +40 -0
  7. package/src/api/Service.ts +57 -0
  8. package/src/api/data-contracts.ts +186 -0
  9. package/src/api/http-client.ts +276 -0
  10. package/src/components/app-configurator.component.ts +491 -0
  11. package/src/components/app-floating-configurator.component.ts +47 -0
  12. package/src/components/app-modules.component.ts +144 -0
  13. package/src/components/app.layout.component.ts +130 -0
  14. package/src/components/auth/access/access.component.ts +42 -0
  15. package/src/components/auth/error/error.component.ts +42 -0
  16. package/src/components/auth/login/login.component.ts +120 -0
  17. package/src/components/auth/unauthorized/unauthorized.component.ts +51 -0
  18. package/src/components/base-module.component.ts +258 -0
  19. package/src/components/config.component.ts +131 -0
  20. package/src/components/db-migration/db-migration.component.ts +164 -0
  21. package/src/components/db-migration.component.ts +156 -0
  22. package/src/components/footer.component.ts +17 -0
  23. package/src/components/logo.component.ts +34 -0
  24. package/src/components/menu/menu-item-create-dialog.component.ts +119 -0
  25. package/src/components/menu/menu-item-edit-dialog.component.ts +124 -0
  26. package/src/components/menu/menu-item.component.ts +295 -0
  27. package/src/components/menu/menu.component.ts +85 -0
  28. package/src/components/notfound.component.ts +31 -0
  29. package/src/components/profile.component.ts +44 -0
  30. package/src/components/security.component.ts +102 -0
  31. package/src/components/sidebar.component.ts +12 -0
  32. package/src/components/top-bar.component.ts +147 -0
  33. package/src/dtos/context-menu-item.dto.ts +23 -0
  34. package/src/dtos/edit-module-instance.dto.ts +8 -0
  35. package/src/dtos/no-settings.dto.ts +4 -0
  36. package/src/dtos/put-security.dto.ts +6 -0
  37. package/src/dtos/security.dto.ts +6 -0
  38. package/src/dtos/top-bar.dto.ts +13 -0
  39. package/src/events/menu-change.event.ts +23 -0
  40. package/src/helpers/date.helper.ts +94 -0
  41. package/src/intercepts/i18n-intercept.service.ts +13 -0
  42. package/src/modules/http-loader.factory.ts +40 -0
  43. package/src/modules/secure.pipe.ts +19 -0
  44. package/src/public-api.ts +42 -0
  45. package/src/services/app-title.service.ts +22 -0
  46. package/src/services/app.layout.service.ts +236 -0
  47. package/src/services/app.menu.service.ts +64 -0
  48. package/src/services/auth.service.ts +58 -0
  49. package/src/services/base-data.service.ts +74 -0
  50. package/src/services/l10n.service.ts +71 -0
  51. package/src/services/msg.service.ts +76 -0
  52. package/src/services/security-data.service.ts +19 -0
  53. package/src/services/security-storage.service.ts +21 -0
  54. package/src/services/security.service.ts +116 -0
  55. package/src/services/top-bar.service.ts +44 -0
  56. package/src/services/user.service.ts +77 -0
  57. package/src/test.ts +11 -0
  58. package/src/user-api/UserProfile.ts +85 -0
  59. package/src/user-api/data-contracts.ts +42 -0
  60. package/src/user-api/http-client.ts +253 -0
  61. package/templates/api.ejs +30 -0
  62. package/templates/data-contract-jsdoc.ejs +37 -0
  63. package/templates/data-contracts.ejs +52 -0
  64. package/templates/enum-data-contract.ejs +12 -0
  65. package/templates/http-client.ejs +245 -0
  66. package/templates/interface-data-contract.ejs +10 -0
  67. package/templates/object-field-jsdoc.ejs +28 -0
  68. package/templates/procedure-call.ejs +100 -0
  69. package/templates/route-docs.ejs +29 -0
  70. package/templates/route-name.ejs +42 -0
  71. package/templates/route-type.ejs +23 -0
  72. package/templates/route-types.ejs +18 -0
  73. package/templates/type-data-contract.ejs +15 -0
  74. package/tsconfig.lib.json +12 -0
  75. package/tsconfig.lib.prod.json +10 -0
  76. package/tsconfig.spec.json +9 -0
  77. /package/{assets → src/assets}/demo/code.scss +0 -0
  78. /package/{assets → src/assets}/demo/demo.scss +0 -0
  79. /package/{assets → src/assets}/demo/flags/flags.scss +0 -0
  80. /package/{assets → src/assets}/demo/flags/flags_responsive.png +0 -0
  81. /package/{assets → src/assets}/demo/images/access/asset-access.svg +0 -0
  82. /package/{assets → src/assets}/demo/images/error/asset-error.svg +0 -0
  83. /package/{assets → src/assets}/demo/images/flag/flag_placeholder.png +0 -0
  84. /package/{assets → src/assets}/favicon.svg +0 -0
  85. /package/{assets → src/assets}/i18n/app-modules.en.json +0 -0
  86. /package/{assets → src/assets}/i18n/app-modules.ru.json +0 -0
  87. /package/{assets → src/assets}/i18n/config.en.json +0 -0
  88. /package/{assets → src/assets}/i18n/config.ru.json +0 -0
  89. /package/{assets → src/assets}/layout/_core.scss +0 -0
  90. /package/{assets → src/assets}/layout/_footer.scss +0 -0
  91. /package/{assets → src/assets}/layout/_logo.scss +0 -0
  92. /package/{assets → src/assets}/layout/_main.scss +0 -0
  93. /package/{assets → src/assets}/layout/_menu.scss +0 -0
  94. /package/{assets → src/assets}/layout/_mixins.scss +0 -0
  95. /package/{assets → src/assets}/layout/_preloading.scss +0 -0
  96. /package/{assets → src/assets}/layout/_responsive.scss +0 -0
  97. /package/{assets → src/assets}/layout/_topbar.scss +0 -0
  98. /package/{assets → src/assets}/layout/_typography.scss +0 -0
  99. /package/{assets → src/assets}/layout/_utils.scss +0 -0
  100. /package/{assets → src/assets}/layout/layout.scss +0 -0
  101. /package/{assets → src/assets}/layout/variables/_common.scss +0 -0
  102. /package/{assets → src/assets}/layout/variables/_dark.scss +0 -0
  103. /package/{assets → src/assets}/layout/variables/_light.scss +0 -0
  104. /package/{assets → src/assets}/oip-common.scss +0 -0
  105. /package/{assets → src/assets}/tailwind.css +0 -0
@@ -0,0 +1,19 @@
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
+ }
package/package.json CHANGED
@@ -1,38 +1,19 @@
1
- {
2
- "name": "oip-common",
3
- "version": "0.0.6",
4
- "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
- "main": "index.js",
6
- "keywords": [
7
- "oip",
8
- "template"
9
- ],
10
- "author": "Igor Tyulyakov aka g101k",
11
- "license": "MIT",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/g10101k/Oip.git"
15
- },
16
- "style": "assets/oip-common.css",
17
- "sass": "assets/oip-common.scss",
18
- "files": [
19
- "assets/",
20
- "dist/",
21
- "package.json"
22
- ],
23
- "module": "fesm2022/oip-common.mjs",
24
- "typings": "index.d.ts",
25
- "exports": {
26
- "./package.json": {
27
- "default": "./package.json"
28
- },
29
- ".": {
30
- "types": "./index.d.ts",
31
- "default": "./fesm2022/oip-common.mjs"
32
- }
33
- },
34
- "sideEffects": false,
35
- "dependencies": {
36
- "tslib": "^2.3.0"
37
- }
38
- }
1
+ {
2
+ "name": "oip-common",
3
+ "version": "0.0.7",
4
+ "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
+ "main": "index.js",
6
+ "keywords": [
7
+ "oip",
8
+ "template"
9
+ ],
10
+ "author": "Igor Tyulyakov aka g101k",
11
+ "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/g10101k/Oip.git"
15
+ }
16
+ }
17
+
18
+
19
+
@@ -0,0 +1,124 @@
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
+ }
@@ -0,0 +1,134 @@
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
+ }
@@ -0,0 +1,92 @@
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
+ }
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,57 @@
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
+ }