@fluxo-dev/api-client-base 0.0.8 → 0.0.11

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 (237) hide show
  1. package/index.esm.d.ts +1 -0
  2. package/index.esm.js +21126 -0
  3. package/package.json +7 -5
  4. package/src/{index.ts → index.d.ts} +0 -19
  5. package/src/lib/apps/apps.service.d.ts +11 -0
  6. package/src/lib/apps/models/app-state.d.ts +4 -0
  7. package/src/lib/apps/models/app-type.d.ts +4 -0
  8. package/src/lib/apps/models/embedded-module.d.ts +30 -0
  9. package/src/lib/apps/models/fluxo-app-menu.d.ts +11 -0
  10. package/src/lib/apps/models/fluxo-app.d.ts +15 -0
  11. package/src/lib/apps/models/fluxo-embedded-module-configuration.d.ts +9 -0
  12. package/src/lib/apps/models/fluxo-frontend-app-configuration.d.ts +10 -0
  13. package/src/lib/apps/models/flx-app-routes.d.ts +4 -0
  14. package/src/lib/apps/models/flx-route.d.ts +7 -0
  15. package/src/lib/apps/models/{index.ts → index.d.ts} +1 -1
  16. package/src/lib/auth/auth-service.d.ts +9 -0
  17. package/src/lib/configuration/app-menu-create-command.d.ts +8 -0
  18. package/src/lib/configuration/app-menu-item.d.ts +14 -0
  19. package/src/lib/configuration/app-menu.d.ts +14 -0
  20. package/src/lib/configuration/client-ui.d.ts +5 -0
  21. package/src/lib/configuration/configuration.service.d.ts +31 -0
  22. package/src/lib/configuration/models/feature-list.d.ts +6 -0
  23. package/src/lib/configuration/models/feature.d.ts +11 -0
  24. package/src/lib/configuration/models/module.d.ts +5 -0
  25. package/src/lib/constants/local-storage.d.ts +4 -0
  26. package/src/lib/fluxo-client-base-sys.d.ts +8 -0
  27. package/src/lib/fluxo-client-interface.d.ts +17 -0
  28. package/src/lib/fluxo-client.d.ts +42 -0
  29. package/src/lib/fluxo-state-dispatcher.d.ts +18 -0
  30. package/src/lib/http-client/http-client.d.ts +10 -0
  31. package/src/lib/infrastructure/base-common-service.d.ts +15 -0
  32. package/src/lib/interfaces/crud-service-interface.d.ts +8 -0
  33. package/src/lib/interfaces/rc-paginated-result.d.ts +6 -0
  34. package/src/lib/korebi/app-service/app-service.service.d.ts +4 -0
  35. package/src/lib/korebi/app-service/model/dynamic-api-service.d.ts +13 -0
  36. package/src/lib/korebi/app-service/model/dynamic-api-services-method.d.ts +8 -0
  37. package/src/lib/korebi/documentation/documentation.service.d.ts +8 -0
  38. package/src/lib/korebi/documentation/intellisense.service.d.ts +6 -0
  39. package/src/lib/korebi/documentation/models/command-input-type.d.ts +10 -0
  40. package/src/lib/korebi/documentation/models/command-metadata.d.ts +10 -0
  41. package/src/lib/korebi/documentation/models/command-output-type.d.ts +5 -0
  42. package/src/lib/korebi/documentation/models/command.d.ts +18 -0
  43. package/src/lib/korebi/documentation/models/documentation.d.ts +12 -0
  44. package/src/lib/korebi/documentation/models/korebi-profile.d.ts +4 -0
  45. package/src/lib/korebi/documentation/models/type-meta-structure.d.ts +11 -0
  46. package/src/lib/korebi/documentation/models/type-specs.d.ts +5 -0
  47. package/src/lib/korebi/dynamic-configuration/dynamic-configuration.service.d.ts +7 -0
  48. package/src/lib/korebi/dynamic-configuration/model/attribute-marker-location.d.ts +7 -0
  49. package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.d.ts +25 -0
  50. package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.d.ts +19 -0
  51. package/src/lib/korebi/dynamic-configuration/model/profile-json-configuration.d.ts +5 -0
  52. package/src/lib/korebi/dynamic-configuration/model/rest-adapter-info.d.ts +9 -0
  53. package/src/lib/korebi/dynamic-configuration/model/startup-exception-context.d.ts +41 -0
  54. package/src/lib/korebi/dynamic-configuration/model/tenant-json-configuration.d.ts +5 -0
  55. package/src/lib/korebi/korebi-facade.d.ts +14 -0
  56. package/src/lib/modules/fluxo-module.d.ts +6 -0
  57. package/src/lib/printing/models/add-printer-command.d.ts +11 -0
  58. package/src/lib/printing/models/create-print-server-command.d.ts +10 -0
  59. package/src/lib/printing/models/print-server-managed-type.d.ts +4 -0
  60. package/src/lib/printing/models/print-server-type.d.ts +4 -0
  61. package/src/lib/printing/models/printer-manufacturer.d.ts +3 -0
  62. package/src/lib/printing/models/printer-type.d.ts +4 -0
  63. package/src/lib/printing/models/{update-print-server-command.ts → update-print-server-command.d.ts} +2 -2
  64. package/src/lib/printing/models/virtual-print-server.d.ts +13 -0
  65. package/src/lib/printing/models/virtual-printer.d.ts +13 -0
  66. package/src/lib/printing/printing.service.d.ts +12 -0
  67. package/src/lib/reporting/models/create-report-command.d.ts +8 -0
  68. package/src/lib/reporting/models/parameters-schema.d.ts +6 -0
  69. package/src/lib/reporting/models/print-report-command.d.ts +5 -0
  70. package/src/lib/reporting/models/report-info.d.ts +5 -0
  71. package/src/lib/reporting/models/report-parameter.d.ts +6 -0
  72. package/src/lib/reporting/models/report.d.ts +10 -0
  73. package/src/lib/reporting/models/reports-list.d.ts +9 -0
  74. package/src/lib/reporting/reporting.service.d.ts +13 -0
  75. package/src/lib/security/apikey/apikey-service.d.ts +10 -0
  76. package/src/lib/security/apikey/apikey.d.ts +7 -0
  77. package/src/lib/security/apikey/new-apikey.d.ts +4 -0
  78. package/src/lib/security/domain-role/domain-role.d.ts +7 -0
  79. package/src/lib/security/domain-role/domain-role.service.d.ts +9 -0
  80. package/src/lib/security/permission/create-custom-permission-command.d.ts +7 -0
  81. package/src/lib/security/permission/create-permission-scope-command.d.ts +6 -0
  82. package/src/lib/security/permission/install-permission-command.d.ts +6 -0
  83. package/src/lib/security/permission/permission-identifier.d.ts +4 -0
  84. package/src/lib/security/permission/permission-scope.d.ts +7 -0
  85. package/src/lib/security/permission/permission.d.ts +9 -0
  86. package/src/lib/security/permission/permission.service.d.ts +14 -0
  87. package/src/lib/security/permission/structured-permission.d.ts +18 -0
  88. package/src/lib/security/route-rule/{route-rule-with-permissions.ts → route-rule-with-permissions.d.ts} +2 -2
  89. package/src/lib/security/route-rule/route-rule.d.ts +7 -0
  90. package/src/lib/security/route-rule/route-rule.service.d.ts +10 -0
  91. package/src/lib/security/security-facade.d.ts +18 -0
  92. package/src/lib/security/user/{change-password.ts → change-password.d.ts} +1 -1
  93. package/src/lib/security/user/{forgot-password.ts → forgot-password.d.ts} +1 -1
  94. package/src/lib/security/user/identityOperationResult.d.ts +8 -0
  95. package/src/lib/security/user/{new-account-confirmation.ts → new-account-confirmation.d.ts} +1 -1
  96. package/src/lib/security/user/{new-user.ts → new-user.d.ts} +5 -6
  97. package/src/lib/security/user/user-service.d.ts +20 -0
  98. package/src/lib/security/user/{user.ts → user.d.ts} +1 -3
  99. package/src/lib/utils/server-filter-helper.d.ts +6 -0
  100. package/src/lib/workflow/models/action-category-definition.d.ts +5 -0
  101. package/src/lib/workflow/models/action-definition.d.ts +11 -0
  102. package/src/lib/workflow/models/action-input-definition.d.ts +8 -0
  103. package/src/lib/workflow/models/{action-output-definition.ts → action-output-definition.d.ts} +2 -2
  104. package/src/lib/workflow/models/{trigger-category-definition.ts → trigger-category-definition.d.ts} +2 -3
  105. package/src/lib/workflow/models/trigger-definition.d.ts +10 -0
  106. package/src/lib/workflow/models/workflow-action-input-type.d.ts +6 -0
  107. package/src/lib/workflow/models/workflow-action-input.d.ts +5 -0
  108. package/src/lib/workflow/models/workflow-action.d.ts +16 -0
  109. package/src/lib/workflow/models/workflow-trigger.d.ts +11 -0
  110. package/src/lib/workflow/models/workflow.d.ts +9 -0
  111. package/src/lib/workflow/workflow.service.d.ts +6 -0
  112. package/.babelrc +0 -12
  113. package/.eslintrc.json +0 -18
  114. package/jest.config.ts +0 -11
  115. package/project.json +0 -43
  116. package/src/lib/apps/apps.service.ts +0 -46
  117. package/src/lib/apps/models/app-state.ts +0 -4
  118. package/src/lib/apps/models/app-type.ts +0 -4
  119. package/src/lib/apps/models/embedded-module.ts +0 -106
  120. package/src/lib/apps/models/fluxo-app-menu.ts +0 -12
  121. package/src/lib/apps/models/fluxo-app.ts +0 -17
  122. package/src/lib/apps/models/fluxo-embedded-module-configuration.ts +0 -10
  123. package/src/lib/apps/models/fluxo-frontend-app-configuration.ts +0 -12
  124. package/src/lib/apps/models/flx-app-routes.ts +0 -5
  125. package/src/lib/apps/models/flx-route.ts +0 -6
  126. package/src/lib/auth/auth-service.ts +0 -149
  127. package/src/lib/configuration/app-menu-create-command.ts +0 -9
  128. package/src/lib/configuration/app-menu-item.ts +0 -14
  129. package/src/lib/configuration/app-menu.ts +0 -15
  130. package/src/lib/configuration/client-ui.ts +0 -5
  131. package/src/lib/configuration/configuration.service.ts +0 -57
  132. package/src/lib/configuration/models/feature-list.ts +0 -8
  133. package/src/lib/configuration/models/feature.ts +0 -11
  134. package/src/lib/configuration/models/module.ts +0 -5
  135. package/src/lib/constants/local-storage.ts +0 -4
  136. package/src/lib/fluxo-client-base-sys.ts +0 -28
  137. package/src/lib/fluxo-client-interface.ts +0 -27
  138. package/src/lib/fluxo-client.ts +0 -142
  139. package/src/lib/fluxo-state-dispatcher.ts +0 -81
  140. package/src/lib/http-client/http-client.ts +0 -75
  141. package/src/lib/infrastructure/base-common-service.ts +0 -45
  142. package/src/lib/interfaces/crud-service-interface.ts +0 -9
  143. package/src/lib/interfaces/rc-paginated-result.ts +0 -6
  144. package/src/lib/korebi/app-service/app-service.service.ts +0 -8
  145. package/src/lib/korebi/app-service/model/dynamic-api-service.ts +0 -15
  146. package/src/lib/korebi/app-service/model/dynamic-api-services-method.ts +0 -6
  147. package/src/lib/korebi/documentation/documentation.service.ts +0 -26
  148. package/src/lib/korebi/documentation/intellisense.service.ts +0 -21
  149. package/src/lib/korebi/documentation/models/command-input-type.ts +0 -11
  150. package/src/lib/korebi/documentation/models/command-metadata.ts +0 -10
  151. package/src/lib/korebi/documentation/models/command-output-type.ts +0 -6
  152. package/src/lib/korebi/documentation/models/command.ts +0 -19
  153. package/src/lib/korebi/documentation/models/documentation.ts +0 -13
  154. package/src/lib/korebi/documentation/models/korebi-profile.ts +0 -5
  155. package/src/lib/korebi/documentation/models/type-meta-structure.ts +0 -11
  156. package/src/lib/korebi/documentation/models/type-specs.ts +0 -5
  157. package/src/lib/korebi/dynamic-configuration/dynamic-configuration.service.ts +0 -17
  158. package/src/lib/korebi/dynamic-configuration/model/attribute-marker-location.ts +0 -7
  159. package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.ts +0 -20
  160. package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.ts +0 -19
  161. package/src/lib/korebi/dynamic-configuration/model/profile-json-configuration.ts +0 -6
  162. package/src/lib/korebi/dynamic-configuration/model/rest-adapter-info.ts +0 -9
  163. package/src/lib/korebi/dynamic-configuration/model/startup-exception-context.ts +0 -44
  164. package/src/lib/korebi/dynamic-configuration/model/tenant-json-configuration.ts +0 -6
  165. package/src/lib/korebi/korebi-facade.ts +0 -33
  166. package/src/lib/modules/fluxo-module.ts +0 -13
  167. package/src/lib/printing/models/add-printer-command.ts +0 -12
  168. package/src/lib/printing/models/create-print-server-command.ts +0 -11
  169. package/src/lib/printing/models/print-server-managed-type.ts +0 -4
  170. package/src/lib/printing/models/print-server-type.ts +0 -4
  171. package/src/lib/printing/models/printer-manufacturer.ts +0 -3
  172. package/src/lib/printing/models/printer-type.ts +0 -4
  173. package/src/lib/printing/models/virtual-print-server.ts +0 -14
  174. package/src/lib/printing/models/virtual-printer.ts +0 -14
  175. package/src/lib/printing/printing.service.ts +0 -32
  176. package/src/lib/reporting/models/create-report-command.ts +0 -8
  177. package/src/lib/reporting/models/parameters-schema.ts +0 -8
  178. package/src/lib/reporting/models/print-report-command.ts +0 -5
  179. package/src/lib/reporting/models/report-info.ts +0 -5
  180. package/src/lib/reporting/models/report-parameter.ts +0 -6
  181. package/src/lib/reporting/models/report.ts +0 -10
  182. package/src/lib/reporting/models/reports-list.ts +0 -10
  183. package/src/lib/reporting/reporting.service.ts +0 -33
  184. package/src/lib/security/apikey/apikey-service.ts +0 -30
  185. package/src/lib/security/apikey/apikey.ts +0 -7
  186. package/src/lib/security/apikey/new-apikey.ts +0 -4
  187. package/src/lib/security/domain-role/domain-role.service.ts +0 -22
  188. package/src/lib/security/domain-role/domain-role.ts +0 -7
  189. package/src/lib/security/permission/create-custom-permission-command.ts +0 -7
  190. package/src/lib/security/permission/create-permission-scope-command.ts +0 -6
  191. package/src/lib/security/permission/install-permission-command.ts +0 -7
  192. package/src/lib/security/permission/permission-identifier.ts +0 -4
  193. package/src/lib/security/permission/permission-scope.ts +0 -7
  194. package/src/lib/security/permission/permission.service.ts +0 -38
  195. package/src/lib/security/permission/permission.ts +0 -9
  196. package/src/lib/security/permission/structured-permission.ts +0 -22
  197. package/src/lib/security/route-rule/route-rule.service.ts +0 -26
  198. package/src/lib/security/route-rule/route-rule.ts +0 -7
  199. package/src/lib/security/security-facade.ts +0 -42
  200. package/src/lib/security/user/identityOperationResult.ts +0 -9
  201. package/src/lib/security/user/user-service.ts +0 -83
  202. package/src/lib/utils/server-filter-helper.ts +0 -34
  203. package/src/lib/workflow/models/action-category-definition.ts +0 -7
  204. package/src/lib/workflow/models/action-definition.ts +0 -12
  205. package/src/lib/workflow/models/action-input-definition.ts +0 -8
  206. package/src/lib/workflow/models/trigger-definition.ts +0 -11
  207. package/src/lib/workflow/models/workflow-action-input-type.ts +0 -6
  208. package/src/lib/workflow/models/workflow-action-input.ts +0 -6
  209. package/src/lib/workflow/models/workflow-action.ts +0 -14
  210. package/src/lib/workflow/models/workflow-trigger.ts +0 -11
  211. package/src/lib/workflow/models/workflow.ts +0 -10
  212. package/src/lib/workflow/workflow.service.ts +0 -17
  213. package/tsconfig.json +0 -20
  214. package/tsconfig.lib.json +0 -24
  215. package/tsconfig.spec.json +0 -20
  216. /package/src/lib/apps/{index.ts → index.d.ts} +0 -0
  217. /package/src/lib/configuration/{index.ts → index.d.ts} +0 -0
  218. /package/src/lib/configuration/models/{index.ts → index.d.ts} +0 -0
  219. /package/src/lib/infrastructure/{index.ts → index.d.ts} +0 -0
  220. /package/src/lib/interfaces/{index.ts → index.d.ts} +0 -0
  221. /package/src/lib/korebi/app-service/{index.ts → index.d.ts} +0 -0
  222. /package/src/lib/korebi/documentation/{index.ts → index.d.ts} +0 -0
  223. /package/src/lib/korebi/documentation/models/{index.ts → index.d.ts} +0 -0
  224. /package/src/lib/korebi/dynamic-configuration/{index.ts → index.d.ts} +0 -0
  225. /package/src/lib/korebi/{index.ts → index.d.ts} +0 -0
  226. /package/src/lib/printing/{index.ts → index.d.ts} +0 -0
  227. /package/src/lib/printing/models/{index.ts → index.d.ts} +0 -0
  228. /package/src/lib/reporting/{index.ts → index.d.ts} +0 -0
  229. /package/src/lib/reporting/models/{index.ts → index.d.ts} +0 -0
  230. /package/src/lib/security/apikey/{index.ts → index.d.ts} +0 -0
  231. /package/src/lib/security/domain-role/{index.ts → index.d.ts} +0 -0
  232. /package/src/lib/security/permission/{index.ts → index.d.ts} +0 -0
  233. /package/src/lib/security/route-rule/{index.ts → index.d.ts} +0 -0
  234. /package/src/lib/security/user/{index.ts → index.d.ts} +0 -0
  235. /package/src/lib/utils/{index.ts → index.d.ts} +0 -0
  236. /package/src/lib/workflow/{index.ts → index.d.ts} +0 -0
  237. /package/src/lib/workflow/models/{index.ts → index.d.ts} +0 -0
@@ -0,0 +1,19 @@
1
+ export interface InstructionJsonConfiguration {
2
+ instructionType: 'function' | 'action';
3
+ paramsNumber: number;
4
+ input1FullyQualifiedName?: string | null;
5
+ input2FullyQualifiedName?: string | null;
6
+ input3FullyQualifiedName?: string | null;
7
+ input4FullyQualifiedName?: string | null;
8
+ serviceFullyQualifiedName?: string | null;
9
+ outputFullyQualifiedName?: string | null;
10
+ instructionName?: string;
11
+ setAsVariable?: string;
12
+ setAsResult?: string;
13
+ setOperationInputReferences?: any[];
14
+ isScript: boolean;
15
+ scriptCode?: string;
16
+ complexScriptCode?: string;
17
+ isAsync: boolean;
18
+ throwExceptionIfOperationResultIsDefault?: boolean;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { CommandJsonConfiguration } from "./command-json-configuration";
2
+ export interface ProfileJsonConfiguration {
3
+ profileName: string;
4
+ commands: CommandJsonConfiguration[];
5
+ }
@@ -0,0 +1,9 @@
1
+ export interface RestAdapterInfo {
2
+ permission: string[];
3
+ httpMethod: string;
4
+ urlTemplate: string;
5
+ authenticationSchemes: string;
6
+ deprecationInfo: string;
7
+ httpStatusErrors: string;
8
+ isLoginEndpoint: boolean;
9
+ }
@@ -0,0 +1,41 @@
1
+ export interface StartupExceptionContext {
2
+ eventExceptions: EventBuildException[];
3
+ buildExceptions: {
4
+ [key: string]: CommandBuildException;
5
+ };
6
+ parseExceptions: CommandParseException[];
7
+ startupExceptionsToString: string;
8
+ containsErrors: boolean;
9
+ }
10
+ export interface EventBuildException {
11
+ exception1: any;
12
+ eventName: string;
13
+ }
14
+ export interface CommandBuildException {
15
+ props: CommandContextMetadataProperties;
16
+ commandName: string;
17
+ commandConfigurationException: ExceptionDto;
18
+ reAdded: boolean;
19
+ }
20
+ export interface CommandParseException {
21
+ message: string;
22
+ exception: ExceptionDto;
23
+ }
24
+ export interface ExceptionDto {
25
+ message: string;
26
+ stackTrace: string;
27
+ innerExceptionMessage: string;
28
+ innerInnerException: string;
29
+ }
30
+ export interface CommandContextMetadataProperties {
31
+ commandDescription: string;
32
+ profileName: string;
33
+ originalCommandName: string;
34
+ completeCommandName: string;
35
+ commandType: string;
36
+ configurationType: string;
37
+ commandAlias: string;
38
+ definitionType: string;
39
+ namespace: string;
40
+ containingAssembly: string;
41
+ }
@@ -0,0 +1,5 @@
1
+ import { ProfileJsonConfiguration } from "./profile-json-configuration";
2
+ export interface TenantJsonConfiguration {
3
+ tenantName: string;
4
+ profiles: ProfileJsonConfiguration[];
5
+ }
@@ -0,0 +1,14 @@
1
+ import { DocumentationService, IntellisenseService } from "./documentation";
2
+ import { AppServiceService } from "./app-service";
3
+ import { DynamicConfigurationService } from "./dynamic-configuration";
4
+ export declare class KorebiFacade {
5
+ private readonly _documentationService;
6
+ private readonly _appServiceService;
7
+ private readonly _dynamicConfigurationService;
8
+ private readonly _intellisenseService;
9
+ constructor();
10
+ get documentation(): DocumentationService;
11
+ get appService(): AppServiceService;
12
+ get dynamicConfiguration(): DynamicConfigurationService;
13
+ get intellisense(): IntellisenseService;
14
+ }
@@ -0,0 +1,6 @@
1
+ export declare class FluxoModule {
2
+ private _name;
3
+ private _subModules;
4
+ constructor(name: string);
5
+ addModule(module: FluxoModule): void;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { PrinterType } from "./printer-type";
2
+ import { PrinterManufacturer } from "./printer-manufacturer";
3
+ export interface AddPrinterCommand {
4
+ name: string;
5
+ description: string;
6
+ type: PrinterType;
7
+ manufacturer: PrinterManufacturer;
8
+ ipAddress: string;
9
+ port: number;
10
+ mappedPrinterName: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { PrintServerType } from "./print-server-type";
2
+ import { PrintServerManagedType } from "./print-server-managed-type";
3
+ export interface CreatePrintServerCommand {
4
+ name: string;
5
+ description: string;
6
+ type: PrintServerType;
7
+ managedType: PrintServerManagedType;
8
+ ipAddress: string | null;
9
+ port: number;
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PrintServerManagedType {
2
+ Ipp = 0,
3
+ Windows = 1
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PrintServerType {
2
+ Direct = 0,
3
+ Remote = 1
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum PrinterManufacturer {
2
+ Zebra = 0
3
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PrinterType {
2
+ Managed = 0,
3
+ Unmanaged = 1
4
+ }
@@ -1,4 +1,4 @@
1
1
  export interface UpdatePrintServerCommand {
2
- name: string;
3
- description: string;
2
+ name: string;
3
+ description: string;
4
4
  }
@@ -0,0 +1,13 @@
1
+ import { PrintServerType } from "./print-server-type";
2
+ import { PrintServerManagedType } from "./print-server-managed-type";
3
+ import { VirtualPrinter } from "./virtual-printer";
4
+ export interface VirtualPrintServer {
5
+ id: number;
6
+ name: string;
7
+ description: string;
8
+ type: PrintServerType;
9
+ managedType: PrintServerManagedType;
10
+ printers: VirtualPrinter[];
11
+ ipAddress: string;
12
+ port: number;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { PrinterType } from "./printer-type";
2
+ import { PrinterManufacturer } from "./printer-manufacturer";
3
+ export interface VirtualPrinter {
4
+ id: number;
5
+ mappedPrinterName: string;
6
+ printServerId: number;
7
+ type: PrinterType;
8
+ description: string;
9
+ name: string;
10
+ manufacturer: PrinterManufacturer | null;
11
+ ipAddress: string | null;
12
+ port: number | null;
13
+ }
@@ -0,0 +1,12 @@
1
+ import { VirtualPrintServer } from "./models/virtual-print-server";
2
+ import { AddPrinterCommand } from "./models/add-printer-command";
3
+ import { CreatePrintServerCommand } from "./models/create-print-server-command";
4
+ import { UpdatePrintServerCommand } from "./models/update-print-server-command";
5
+ export declare class PrintingService {
6
+ GetPrintServerList(): Promise<VirtualPrintServer[]>;
7
+ GetPrintServer(printServerId: number): Promise<VirtualPrintServer>;
8
+ UpdatePrintServer(printServerId: number, command: UpdatePrintServerCommand): Promise<import("axios").AxiosResponse<any, any>>;
9
+ GetPrintServerPrinters(printServerId: number): Promise<string[]>;
10
+ CreatePrintServer(command: CreatePrintServerCommand): Promise<import("axios").AxiosResponse<any, any>>;
11
+ AddPrinter(printServerId: number, command: AddPrinterCommand): Promise<import("axios").AxiosResponse<any, any>>;
12
+ }
@@ -0,0 +1,8 @@
1
+ export interface CreateReportCommand {
2
+ name: string;
3
+ scope: string;
4
+ packageName: string;
5
+ namespace: string;
6
+ id: string;
7
+ annotations: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { ReportParameter } from "./report-parameter";
2
+ export interface ParametersSchema {
3
+ reportName: string;
4
+ parametersCount: number;
5
+ parameters: ReportParameter[];
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface PrintReportCommand {
2
+ reportUrl: string;
3
+ virtualServerId: number;
4
+ virtualPrinterId: number;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface ReportInfo {
2
+ id: number;
3
+ name: string;
4
+ annotations: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface ReportParameter {
2
+ key: string;
3
+ displayName: string;
4
+ type: 'string' | 'date' | 'number' | 'boolean';
5
+ isRequired: boolean;
6
+ }
@@ -0,0 +1,10 @@
1
+ export interface Report {
2
+ id: number;
3
+ scope: string;
4
+ packageName: string;
5
+ namespace: string;
6
+ reportId: string;
7
+ name: string;
8
+ layout: string;
9
+ annotations: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { ReportInfo } from "./report-info";
2
+ export interface ReportsList {
3
+ scope: string;
4
+ packageName: string;
5
+ namespace: string;
6
+ reportTypeId: string;
7
+ category: string;
8
+ reports: ReportInfo[];
9
+ }
@@ -0,0 +1,13 @@
1
+ import { ReportsList } from "./models/reports-list";
2
+ import { CreateReportCommand } from "./models/create-report-command";
3
+ import { Report } from "./models/report";
4
+ import { ParametersSchema } from "./models/parameters-schema";
5
+ import { PrintReportCommand } from "./models/print-report-command";
6
+ export declare class ReportingService {
7
+ getReportsList(scopeFilter?: string): Promise<ReportsList[]>;
8
+ createReport(command: CreateReportCommand): Promise<number>;
9
+ getReportById(id: number): Promise<Report>;
10
+ deleteReport(id: number): Promise<void>;
11
+ getParametersSchema(fullScope: string): Promise<ParametersSchema>;
12
+ print(command: PrintReportCommand): Promise<void>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import { ApiKey } from "./apikey";
2
+ import { NewApiKey } from "./new-apikey";
3
+ export declare class ApiKeyService {
4
+ constructor();
5
+ getApiKeys(): Promise<ApiKey[]>;
6
+ create(apiKey: NewApiKey): Promise<string>;
7
+ delete(apiKeyId: number): Promise<void>;
8
+ enable(apiKeyId: number): Promise<void>;
9
+ disable(apiKeyId: number): Promise<void>;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface ApiKey {
2
+ id: number;
3
+ description: string;
4
+ expirationDate: Date;
5
+ isActive: boolean;
6
+ isExpired: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface NewApiKey {
2
+ expirationDate: Date;
3
+ description: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface DomainRole {
2
+ id?: number;
3
+ identifier: string;
4
+ name: string;
5
+ description?: string;
6
+ permissionCount?: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { DomainRole } from "./domain-role";
2
+ import { BaseCommonService } from "../../infrastructure";
3
+ import { Permission } from "../permission";
4
+ export declare class DomainRoleService extends BaseCommonService<DomainRole> {
5
+ constructor();
6
+ getPermissions(domainRoleId: string): Promise<Permission[]>;
7
+ addPermission(domainRoleId: number, permissionId: number): Promise<void>;
8
+ removePermission(domainRoleId: number, permissionId: number): Promise<void>;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface CreateCustomPermissionCommand {
2
+ scope: string;
3
+ packageName: string;
4
+ namespace: string;
5
+ identifier: string;
6
+ description: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface CreatePermissionScopeCommand {
2
+ scope: string;
3
+ packageName: string;
4
+ namespace: string;
5
+ namespaceDescription: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { PermissionIdentifier } from "./permission-identifier";
2
+ export interface InstallPermissionCommand {
3
+ scope: string;
4
+ packageName: string;
5
+ permissions: PermissionIdentifier[];
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface PermissionIdentifier {
2
+ identifier: string;
3
+ description: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface PermissionScope {
2
+ scope: string;
3
+ packageName: string;
4
+ namespace: string;
5
+ namespaceDescription: string;
6
+ permissionsCount: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ export interface Permission {
2
+ id: number;
3
+ identifier: string;
4
+ description: string;
5
+ scope: string;
6
+ packageName: string;
7
+ namespace: string;
8
+ isCustom: boolean;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { InstallPermissionCommand } from "./install-permission-command";
2
+ import { Permission } from "./permission";
3
+ import { CreatePermissionScopeCommand } from "./create-permission-scope-command";
4
+ import { PermissionScope } from "./permission-scope";
5
+ import { CreateCustomPermissionCommand } from "./create-custom-permission-command";
6
+ export declare class PermissionService {
7
+ getPermissionScopes(): Promise<PermissionScope[]>;
8
+ getPermissionsInScope(scope: string, packageName: string, namespace: string): Promise<Permission[]>;
9
+ createPermissionScope(data: CreatePermissionScopeCommand): Promise<void>;
10
+ deletePermissionScope(scope: string, packageName: string, namespace: string): Promise<void>;
11
+ installPermissions(data: InstallPermissionCommand): Promise<void>;
12
+ createCustomPermission(data: CreateCustomPermissionCommand): Promise<void>;
13
+ deleteCustomPermission(permissionId: number): Promise<void>;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { Permission } from "./permission";
2
+ export interface StructuredPermissions {
3
+ scopes: StructuredPermissionsScope[];
4
+ scopesCount: number;
5
+ packageNamesCount: number;
6
+ permissionsCount: number;
7
+ }
8
+ export interface StructuredPermissionsScope {
9
+ name: string;
10
+ packageNames: StructuredPermissionsPackageName[];
11
+ packageNamesCount: number;
12
+ permissionsCount: number;
13
+ }
14
+ export interface StructuredPermissionsPackageName {
15
+ name: string;
16
+ parentScope: string;
17
+ permissions: Permission[];
18
+ }
@@ -1,4 +1,4 @@
1
1
  export interface RouteRuleWithPermissions {
2
- route: string;
3
- permissions: string[];
2
+ route: string;
3
+ permissions: string[];
4
4
  }
@@ -0,0 +1,7 @@
1
+ export interface RouteRule {
2
+ id?: number;
3
+ scope: string;
4
+ packageName: string;
5
+ route: string;
6
+ permissionsCount?: number;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { RouteRule } from "./route-rule";
2
+ import { BaseCommonService } from "../../infrastructure";
3
+ import { Permission } from "../permission";
4
+ export declare class RouteRuleService extends BaseCommonService<RouteRule> {
5
+ constructor();
6
+ getRouteRulesForScope(scope: string, packageName: string): Promise<RouteRule[]>;
7
+ getPermissions(routeRuleId: string): Promise<Permission[]>;
8
+ addPermission(routeRuleId: number, permissionId: number): Promise<void>;
9
+ removePermission(routeRuleId: number, permissionId: number): Promise<void>;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { UserService } from "./user/user-service";
2
+ import { DomainRoleService } from "./domain-role";
3
+ import { ApiKeyService } from "./apikey";
4
+ import { PermissionService } from "./permission/permission.service";
5
+ import { RouteRuleService } from "./route-rule/route-rule.service";
6
+ export declare class SecurityFacade {
7
+ private readonly _userService;
8
+ private readonly _apiKeyService;
9
+ private readonly _domainRoleService;
10
+ private readonly _permissionService;
11
+ private readonly _routeRuleService;
12
+ constructor();
13
+ get user(): UserService;
14
+ get permission(): PermissionService;
15
+ get routeRule(): RouteRuleService;
16
+ get apiKey(): ApiKeyService;
17
+ get domainRole(): DomainRoleService;
18
+ }
@@ -1,4 +1,4 @@
1
1
  export interface ChangePassword {
2
2
  currentPassword: string;
3
3
  newPassword: string;
4
- }
4
+ }
@@ -2,4 +2,4 @@ export interface ForgotPassword {
2
2
  token: string;
3
3
  email: string;
4
4
  password: string;
5
- }
5
+ }
@@ -0,0 +1,8 @@
1
+ export interface IdentityOperationResult {
2
+ success: boolean;
3
+ errors: IdentityOperationResultError[];
4
+ }
5
+ export interface IdentityOperationResultError {
6
+ code: string;
7
+ description: string;
8
+ }
@@ -1,4 +1,4 @@
1
1
  export interface NewAccountConfirmation {
2
2
  token: string;
3
3
  email: string;
4
- }
4
+ }
@@ -1,12 +1,11 @@
1
1
  export interface NewUser {
2
- user: NewUserUser,
2
+ user: NewUserUser;
3
3
  assignToRoles: string[];
4
4
  assignToDomainRoles: number[];
5
5
  }
6
-
7
6
  export interface NewUserUser {
8
- firstName: string,
9
- lastName: string,
10
- userName: string,
11
- email: string
7
+ firstName: string;
8
+ lastName: string;
9
+ userName: string;
10
+ email: string;
12
11
  }
@@ -0,0 +1,20 @@
1
+ import { ChangePassword } from "./change-password";
2
+ import { ForgotPassword } from "./forgot-password";
3
+ import { IdentityOperationResult } from "./identityOperationResult";
4
+ import { NewAccountConfirmation } from "./new-account-confirmation";
5
+ import { NewUser } from "./new-user";
6
+ import { User } from "./user";
7
+ export declare class UserService {
8
+ constructor();
9
+ currentUserHasPermissions(requiredPermissions: string[], strategy?: 'all' | 'any'): boolean;
10
+ getAllUsers(): Promise<User[]>;
11
+ createUser(user: NewUser): Promise<IdentityOperationResult>;
12
+ updateUser(userId: string, user: NewUser): Promise<IdentityOperationResult>;
13
+ deleteUser(userId: string): Promise<IdentityOperationResult>;
14
+ confirmEmail(user: NewAccountConfirmation): Promise<IdentityOperationResult>;
15
+ changePassword(changePassword: ChangePassword): Promise<IdentityOperationResult>;
16
+ forgotPassword(email: string): Promise<IdentityOperationResult>;
17
+ forgotPasswordConfirm(forgotPassword: ForgotPassword): Promise<IdentityOperationResult>;
18
+ disableUserLogin(userId: string): Promise<IdentityOperationResult>;
19
+ enableUserLogin(userId: string): Promise<IdentityOperationResult>;
20
+ }
@@ -1,5 +1,4 @@
1
- import {DomainRole} from "../domain-role";
2
-
1
+ import { DomainRole } from "../domain-role";
3
2
  export interface User {
4
3
  id: string;
5
4
  email: string;
@@ -12,7 +11,6 @@ export interface User {
12
11
  lockoutEnd: string | null;
13
12
  lockoutEnabled: boolean;
14
13
  }
15
-
16
14
  export interface UserData {
17
15
  FirstName: string;
18
16
  LastName: string;
@@ -0,0 +1,6 @@
1
+ export declare class ServerFilterHelper {
2
+ static getFilterString(filter: string | undefined, globalSearchQuery: string | undefined, globalSearchQueryFields: {
3
+ fieldName: string;
4
+ fieldType: 'string' | 'number';
5
+ }[] | undefined, globalQueryOperator?: 'and' | 'or'): string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { ActionDefinition } from "./action-definition";
2
+ export interface ActionCategoryDefinition {
3
+ name: string;
4
+ actions: ActionDefinition[];
5
+ }
@@ -0,0 +1,11 @@
1
+ import { ActionInputDefinition } from "./action-input-definition";
2
+ import { ActionOutputDefinition } from "./action-output-definition";
3
+ export interface ActionDefinition {
4
+ id: string;
5
+ category: string;
6
+ name: string;
7
+ type: string;
8
+ inputs: ActionInputDefinition[];
9
+ outputs: ActionOutputDefinition[];
10
+ outcomes: string[];
11
+ }
@@ -0,0 +1,8 @@
1
+ export interface ActionInputDefinition {
2
+ name: string;
3
+ type: string;
4
+ required: boolean;
5
+ uiHint: string;
6
+ displayName: null | string;
7
+ optionsProviderType: null | string;
8
+ }
@@ -1,4 +1,4 @@
1
1
  export interface ActionOutputDefinition {
2
- name: string;
3
- type: string;
2
+ name: string;
3
+ type: string;
4
4
  }
@@ -1,6 +1,5 @@
1
1
  import { TriggerDefinition } from "./trigger-definition";
2
-
3
2
  export interface TriggerCategoryDefinition {
4
- name: string;
5
- triggers: TriggerDefinition[];
3
+ name: string;
4
+ triggers: TriggerDefinition[];
6
5
  }
@@ -0,0 +1,10 @@
1
+ import { ActionInputDefinition } from "./action-input-definition";
2
+ import { ActionOutputDefinition } from "./action-output-definition";
3
+ export interface TriggerDefinition {
4
+ id: string;
5
+ category: string;
6
+ name: string;
7
+ type: string;
8
+ inputs: ActionInputDefinition[];
9
+ outputs: ActionOutputDefinition[];
10
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum WorkflowActionInputType {
2
+ none = 0,
3
+ manual = 1,
4
+ dynamic = 2,
5
+ expression = 3
6
+ }
@@ -0,0 +1,5 @@
1
+ import { WorkflowActionInputType } from "./workflow-action-input-type";
2
+ export interface WorkflowActionInput {
3
+ type: WorkflowActionInputType;
4
+ value: string | undefined;
5
+ }