@acorex-platform/module-help-desk-client 0.0.21

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 (17) hide show
  1. package/fesm2022/acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs +783 -0
  2. package/fesm2022/acorex-platform-module-help-desk-client-acorex-platform-module-help-desk-client-OtDtf3iY.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs +28 -0
  4. package/fesm2022/acorex-platform-module-help-desk-client-capture-screen.component-AyM-9U5W.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-help-desk-client-contracts.mjs +1375 -0
  6. package/fesm2022/acorex-platform-module-help-desk-client-contracts.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-help-desk-client-download-log-file.command-eMaHHzLd.mjs +30 -0
  8. package/fesm2022/acorex-platform-module-help-desk-client-download-log-file.command-eMaHHzLd.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs +246 -0
  10. package/fesm2022/acorex-platform-module-help-desk-client-report-new-issue.component-C-vY_x_C.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-help-desk-client-show-report-issue.command-q2fqdnAS.mjs +23 -0
  12. package/fesm2022/acorex-platform-module-help-desk-client-show-report-issue.command-q2fqdnAS.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-help-desk-client.mjs +2 -0
  14. package/fesm2022/acorex-platform-module-help-desk-client.mjs.map +1 -0
  15. package/package.json +29 -0
  16. package/types/acorex-platform-module-help-desk-client-contracts.d.ts +149 -0
  17. package/types/acorex-platform-module-help-desk-client.d.ts +58 -0
@@ -0,0 +1,149 @@
1
+ import { AXPEntity, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+
3
+ interface AXMLogMessage {
4
+ type: 'log' | 'error' | 'warning';
5
+ message: string;
6
+ timeStamp: string;
7
+ }
8
+ interface AXMLogCaptureState {
9
+ logs: AXMLogMessage[];
10
+ canCapture: boolean;
11
+ }
12
+
13
+ declare const AXPHelpDeskMenuKeys: {
14
+ readonly ReportedIssues: "help-desk:menu:reported-issues";
15
+ readonly IssueTypes: "help-desk:menu:issue-types";
16
+ readonly MyReportedIssues: "help-desk:my-reported-issues";
17
+ readonly Divider1: "help-desk:divider-1";
18
+ };
19
+
20
+ /**
21
+ * Collaboration capabilities used by this module.
22
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
23
+ */
24
+ declare const AXPCollaborationPermissionKeys: {
25
+ readonly Access: "Collaboration:Permission:Access";
26
+ readonly MaintainConversations: "Collaboration:Permission:MaintainConversations";
27
+ readonly MaintainMeetings: "Collaboration:Permission:MaintainMeetings";
28
+ readonly MaintainCalendars: "Collaboration:Permission:MaintainCalendars";
29
+ readonly MaintainCommunications: "Collaboration:Permission:MaintainCommunications";
30
+ readonly MaintainReservations: "Collaboration:Permission:MaintainReservations";
31
+ readonly MaintainHelpDesk: "Collaboration:Permission:MaintainHelpDesk";
32
+ readonly Setup: "Collaboration:Permission:Setup";
33
+ };
34
+ /**
35
+ * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.
36
+ * Legacy nested shape kept so existing imports compile during migration.
37
+ */
38
+ declare const AXMPermissionsKeys: {
39
+ readonly Issue: {
40
+ readonly Management: "Collaboration:Permission:MaintainHelpDesk";
41
+ readonly MyReportedIssues: {
42
+ readonly Management: "Collaboration:Permission:MaintainHelpDesk";
43
+ readonly View: "Collaboration:Permission:MaintainHelpDesk";
44
+ readonly Edit: "Collaboration:Permission:MaintainHelpDesk";
45
+ readonly Delete: "Collaboration:Permission:MaintainHelpDesk";
46
+ readonly Create: "Collaboration:Permission:MaintainHelpDesk";
47
+ };
48
+ readonly ReportedIssues: {
49
+ readonly Management: "Collaboration:Permission:MaintainHelpDesk";
50
+ readonly View: "Collaboration:Permission:MaintainHelpDesk";
51
+ readonly Edit: "Collaboration:Permission:MaintainHelpDesk";
52
+ readonly Delete: "Collaboration:Permission:MaintainHelpDesk";
53
+ readonly Create: "Collaboration:Permission:MaintainHelpDesk";
54
+ };
55
+ };
56
+ };
57
+
58
+ declare const RootConfig: {
59
+ readonly config: {
60
+ i18n: string;
61
+ };
62
+ readonly module: {
63
+ readonly route: "help-desk";
64
+ readonly name: "HelpDesk";
65
+ readonly title: "@help-desk:module.title";
66
+ readonly icon: "fa-light fa-file-invoice";
67
+ };
68
+ readonly entities: {
69
+ readonly issueType: {
70
+ readonly name: "IssueType";
71
+ readonly title: "@help-desk:issue-types.entities.issue-type.title";
72
+ readonly titlePlural: "@help-desk:issue-types.entities.issue-type.plural";
73
+ readonly icon: "fa-light fa-list";
74
+ };
75
+ readonly reportedIssues: {
76
+ readonly name: "ReportedIssues";
77
+ readonly title: "@help-desk:reported-issues.entities.reported-issue.title";
78
+ readonly titlePlural: "@help-desk:reported-issues.entities.reported-issue.plural";
79
+ readonly icon: "fa-light fa-bug";
80
+ };
81
+ readonly myReportedIssues: {
82
+ readonly name: "MyReportedIssues";
83
+ readonly title: "@help-desk:my-reported-issues.entities.my-reported-issue.title";
84
+ readonly titlePlural: "@help-desk:my-reported-issues.entities.my-reported-issue.plural";
85
+ readonly icon: "fa-light fa-message-exclamation";
86
+ };
87
+ readonly reportNewIssue: {
88
+ readonly name: "ReportNewIssue";
89
+ readonly title: "@help-desk:report-new-issue.entities.report-new-issue.title";
90
+ readonly titlePlural: "@help-desk:report-new-issue.entities.report-new-issue.plural";
91
+ readonly icon: "fa-light fa-clipboard-list-check";
92
+ };
93
+ };
94
+ };
95
+
96
+ declare function issueTypeEntityFactory(): Promise<AXPEntity | null>;
97
+
98
+ interface AXMHelpDeskIssueTypeEntityModel extends AXPEntityModel<string> {
99
+ name: string;
100
+ title: string;
101
+ description?: string;
102
+ }
103
+
104
+ declare function myReportedIssuesEntityFactory(): Promise<AXPEntity | null>;
105
+
106
+ interface AXMHelpDeskMyReportedIssuesEntityModel extends AXPEntityModel<string> {
107
+ id: string;
108
+ user: any;
109
+ issueType: {
110
+ title: string;
111
+ id: string;
112
+ };
113
+ priority: {
114
+ title: string;
115
+ id: string;
116
+ };
117
+ status: string;
118
+ title: string;
119
+ description: string;
120
+ attachments?: any[];
121
+ systemInfo: string;
122
+ errorLogs: AXMLogMessage[];
123
+ createdAt: Date;
124
+ }
125
+
126
+ declare function reportedIssuesEntityFactory(): Promise<AXPEntity | null>;
127
+
128
+ interface AXMHelpDeskReportedIssuesEntityModel extends AXPEntityModel<string> {
129
+ id: string;
130
+ user: any;
131
+ issueType: {
132
+ title: string;
133
+ id: string;
134
+ };
135
+ priority: {
136
+ title: string;
137
+ id: string;
138
+ };
139
+ status: string;
140
+ title: string;
141
+ description: string;
142
+ attachments?: any[];
143
+ systemInfo: string;
144
+ errorLogs: AXMLogMessage[];
145
+ createdAt: Date;
146
+ }
147
+
148
+ export { AXMPermissionsKeys, AXPCollaborationPermissionKeys, AXPHelpDeskMenuKeys, RootConfig, issueTypeEntityFactory, myReportedIssuesEntityFactory, reportedIssuesEntityFactory };
149
+ export type { AXMHelpDeskIssueTypeEntityModel, AXMHelpDeskMyReportedIssuesEntityModel, AXMHelpDeskReportedIssuesEntityModel, AXMLogCaptureState, AXMLogMessage };
@@ -0,0 +1,58 @@
1
+ import * as _ngrx_signals from '@ngrx/signals';
2
+ import * as _angular_core from '@angular/core';
3
+ import * as _acorex_platform_module_help_desk_client_contracts from '@acorex-platform/module-help-desk-client/contracts';
4
+ import { AXPStatusProvider, AXPStatusDefinition, AXPStatusTransition } from '@acorex-platform/framework-shared/core';
5
+ import * as i1 from '@acorex-platform/framework-client/core';
6
+ import { AXPMenuProvider, AXPMenuProviderContext, AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';
7
+ import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';
8
+
9
+ declare const AXMLogCaptureService: _angular_core.Type<{
10
+ logs: _angular_core.Signal<_acorex_platform_module_help_desk_client_contracts.AXMLogMessage[]>;
11
+ canCapture: _angular_core.Signal<boolean>;
12
+ canCaptureLog: _angular_core.Signal<boolean>;
13
+ consoleLogs: _angular_core.Signal<_acorex_platform_module_help_desk_client_contracts.AXMLogMessage[]>;
14
+ startCapturingLog: () => void;
15
+ finishCapturingLog: () => void;
16
+ addConsoleLog: (message: string) => void;
17
+ addConsoleError: (message: string) => void;
18
+ addConsoleWarning: (message: string) => void;
19
+ } & _ngrx_signals.StateSource<{
20
+ logs: _acorex_platform_module_help_desk_client_contracts.AXMLogMessage[];
21
+ canCapture: boolean;
22
+ }>>;
23
+
24
+ /**
25
+ * Provides lifecycle status definitions for reported issues.
26
+ */
27
+ declare class AXMReportedIssuesStatusProvider extends AXPStatusProvider {
28
+ readonly key = "help-desk.status.reported-issues";
29
+ readonly statuses: AXPStatusDefinition[];
30
+ readonly transitions: AXPStatusTransition[];
31
+ readonly defaultStatus = "new";
32
+ }
33
+
34
+ declare class AXMHelpDeskModule {
35
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMHelpDeskModule, never>;
36
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXMHelpDeskModule, never, [typeof i1.AXPComponentSlotModule], never>;
37
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMHelpDeskModule>;
38
+ }
39
+
40
+ declare class AXMMenuProvider implements AXPMenuProvider {
41
+ private entityService;
42
+ provide(context: AXPMenuProviderContext): Promise<void>;
43
+ }
44
+
45
+ /**
46
+ * Registers help desk capabilities into the shared Collaboration group.
47
+ */
48
+ declare class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
49
+ define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
50
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMPermissionDefinitionProvider, never>;
51
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMPermissionDefinitionProvider>;
52
+ }
53
+
54
+ declare class AXMSettingProvider implements AXPSettingDefinitionProvider {
55
+ provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
56
+ }
57
+
58
+ export { AXMHelpDeskModule, AXMLogCaptureService, AXMMenuProvider, AXMPermissionDefinitionProvider, AXMReportedIssuesStatusProvider, AXMSettingProvider };