@acorex-platform/extension-project-management-fergus-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.
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-complete-fergus-oauth.command-Cdw8Bola.mjs +50 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-complete-fergus-oauth.command-Cdw8Bola.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-connect-fergus.command-CIo20MSc.mjs +300 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-connect-fergus.command-CIo20MSc.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-contracts.mjs +115 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-contracts.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-fergus-oauth-http.client-B_owd8Wu.mjs +36 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client-fergus-oauth-http.client-B_owd8Wu.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client.mjs +425 -0
- package/fesm2022/acorex-platform-extension-project-management-fergus-client.mjs.map +1 -0
- package/package.json +28 -0
- package/types/acorex-platform-extension-project-management-fergus-client-contracts.d.ts +208 -0
- package/types/acorex-platform-extension-project-management-fergus-client.d.ts +23 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { AXMIntegrationManagementModule } from '@acorex-platform/module-integration-management-client';
|
|
2
|
+
import { AXPIntegrationRuntimeService, AXP_INTEGRATION_SECRET_STORE, AXPSettingsService, AXP_INTEGRATION_RUNTIME_PROVIDER, AXP_MENU_PROVIDER, AXP_INTEGRATION_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
3
|
+
import { AXP_LOGO_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex-platform/framework-client/core';
|
|
4
|
+
import { AXPEntityService, ensureListActions, actionExists, AXP_ENTITY_MODIFIER } from '@acorex-platform/framework-client/layout/entity';
|
|
5
|
+
import { provideCommandSetups } from '@acorex-platform/framework-client/runtime';
|
|
6
|
+
import * as i0 from '@angular/core';
|
|
7
|
+
import { inject, Injectable, NgModule } from '@angular/core';
|
|
8
|
+
import { AXEFergusCommandKeys, RootConfig as RootConfig$1, AXPAdministrationPermissionKeys, AXEFergusMenuKeys } from '@acorex-platform/extension-project-management-fergus-client/contracts';
|
|
9
|
+
import { AXE_PM_INTEGRATION_PROVIDER_FERGUS } from '@acorex-platform/extension-project-management-core-client/contracts';
|
|
10
|
+
import { RootConfig } from '@acorex-platform/module-project-management-client/contracts';
|
|
11
|
+
import { AXPSystemActionType, AXPWidgetsList, AXP_INTEGRATION_AUTH_METHOD_TYPE, AXP_INTEGRATION_CONNECTION_SCOPE, AXP_INTEGRATION_CAPABILITY, AXPRegionalSetting, AXP_INTEGRATION_CONNECTION_STATUS } from '@acorex-platform/framework-shared/core';
|
|
12
|
+
import { AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';
|
|
13
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
14
|
+
import { trim, defaultTo } from 'lodash-es';
|
|
15
|
+
import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';
|
|
16
|
+
|
|
17
|
+
const AXE_FERGUS_EXPRESSION_SCOPE = 'FergusExtension';
|
|
18
|
+
|
|
19
|
+
//#region ---- Imports ----
|
|
20
|
+
//#endregion
|
|
21
|
+
class AXEFergusProjectLinkExpressionEvaluatorScopeProvider {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.entityService = inject(AXPEntityService);
|
|
24
|
+
this.integrationRuntime = inject(AXPIntegrationRuntimeService);
|
|
25
|
+
}
|
|
26
|
+
async provide(context) {
|
|
27
|
+
context.addScope(AXE_FERGUS_EXPRESSION_SCOPE, {
|
|
28
|
+
hasProjectLink: async (platformProjectIdRaw) => {
|
|
29
|
+
const platformProjectId = typeof platformProjectIdRaw === 'string' ? platformProjectIdRaw.trim() : '';
|
|
30
|
+
if (!platformProjectId) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
const project = (await this.entityService
|
|
34
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.project.name)
|
|
35
|
+
.data()
|
|
36
|
+
.byKey(platformProjectId));
|
|
37
|
+
return project?.integrationRef?.source === AXE_PM_INTEGRATION_PROVIDER_FERGUS;
|
|
38
|
+
},
|
|
39
|
+
hasFergusConnection: async () => {
|
|
40
|
+
try {
|
|
41
|
+
await this.integrationRuntime.getConnection({ providerId: 'fergus', connectionScope: 'tenant' });
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
|
|
53
|
+
//#region ---- Imports ----
|
|
54
|
+
//#endregion
|
|
55
|
+
const IMPORT_ORDER = 36;
|
|
56
|
+
const SYNC_ORDER = 37;
|
|
57
|
+
function buildImportAction() {
|
|
58
|
+
return {
|
|
59
|
+
name: AXEFergusCommandKeys.ProjectImportFromFergus,
|
|
60
|
+
title: '@extensions-fergus:actions.import-from-fergus.title',
|
|
61
|
+
command: { name: AXEFergusCommandKeys.ProjectImportFromFergus },
|
|
62
|
+
priority: 'secondary',
|
|
63
|
+
type: AXPSystemActionType.Import,
|
|
64
|
+
icon: 'fa-light fa-briefcase',
|
|
65
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
66
|
+
order: IMPORT_ORDER,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function buildSyncAction() {
|
|
70
|
+
return {
|
|
71
|
+
name: AXEFergusCommandKeys.ProjectSync,
|
|
72
|
+
title: '@extensions-fergus:actions.sync.title',
|
|
73
|
+
command: {
|
|
74
|
+
name: AXEFergusCommandKeys.ProjectSync,
|
|
75
|
+
options: { platformProjectId: '{{ context.eval("id") }}' },
|
|
76
|
+
},
|
|
77
|
+
priority: 'secondary',
|
|
78
|
+
type: AXPSystemActionType.Sync,
|
|
79
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
80
|
+
scope: AXPEntityCommandScope.Individual,
|
|
81
|
+
order: SYNC_ORDER,
|
|
82
|
+
hidden: `{{ !(await ${AXE_FERGUS_EXPRESSION_SCOPE}.hasProjectLink(context.eval("id"))) }}`,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/** Adds Fergus import/sync actions to ProjectManagement.Project views. */
|
|
86
|
+
const AXEFergusProjectEntityModifier = {
|
|
87
|
+
entityName: RootConfig.entities.project.name,
|
|
88
|
+
order: 50,
|
|
89
|
+
modifier: (ctx) => {
|
|
90
|
+
if (ctx.module.get() !== RootConfig.module.name) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
ensureListActions(ctx);
|
|
94
|
+
ctx.interfaces.update((interfaces) => {
|
|
95
|
+
const next = (interfaces ?? {});
|
|
96
|
+
const master = (next['master'] ?? {});
|
|
97
|
+
const list = (master['list'] ?? { actions: [], views: [] });
|
|
98
|
+
const listActions = (list['actions'] ?? []);
|
|
99
|
+
if (!actionExists(listActions, AXEFergusCommandKeys.ProjectImportFromFergus)) {
|
|
100
|
+
listActions.push(buildImportAction());
|
|
101
|
+
}
|
|
102
|
+
list['actions'] = listActions;
|
|
103
|
+
master['list'] = list;
|
|
104
|
+
const single = master['single'];
|
|
105
|
+
if (single) {
|
|
106
|
+
const singleActions = (single['actions'] ?? []);
|
|
107
|
+
if (!actionExists(singleActions, AXEFergusCommandKeys.ProjectSync)) {
|
|
108
|
+
singleActions.push(buildSyncAction());
|
|
109
|
+
}
|
|
110
|
+
single['actions'] = singleActions;
|
|
111
|
+
}
|
|
112
|
+
next['master'] = master;
|
|
113
|
+
return next;
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
|
|
119
|
+
//#region ---- Fergus logo registry key ----
|
|
120
|
+
const axpFergusLogoKey = 'fergus';
|
|
121
|
+
/** Mark artwork; consuming apps copy to `assets/images/brand/integrations/`. */
|
|
122
|
+
const AXE_FERGUS_MARK_SRC = 'assets/images/brand/integrations/fergus-mark.png';
|
|
123
|
+
/** Source mark is 266×311. */
|
|
124
|
+
const AXE_FERGUS_MARK_ASPECT = 266 / 311;
|
|
125
|
+
//#endregion
|
|
126
|
+
|
|
127
|
+
class AXEFergusIntegrationProvider {
|
|
128
|
+
async provide(context) {
|
|
129
|
+
const I18N = `@${RootConfig$1.config.i18n}:integration`;
|
|
130
|
+
context.register({
|
|
131
|
+
domainId: 'project-management',
|
|
132
|
+
id: 'fergus',
|
|
133
|
+
module: RootConfig$1.module.name,
|
|
134
|
+
displayName: `${I18N}.display-name`,
|
|
135
|
+
description: `${I18N}.description`,
|
|
136
|
+
icon: RootConfig$1.module.icon,
|
|
137
|
+
logoKey: axpFergusLogoKey,
|
|
138
|
+
capabilities: [AXP_INTEGRATION_CAPABILITY.Sync, AXP_INTEGRATION_CAPABILITY.Import],
|
|
139
|
+
connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],
|
|
140
|
+
allowMultipleConnections: false,
|
|
141
|
+
defaultConnectionKey: 'default',
|
|
142
|
+
connectCommandKey: AXEFergusCommandKeys.ConnectionConnect,
|
|
143
|
+
completeOAuthCommandKey: AXEFergusCommandKeys.ConnectionCompleteOAuth,
|
|
144
|
+
authMethods: [
|
|
145
|
+
{
|
|
146
|
+
type: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,
|
|
147
|
+
label: `${I18N}.auth.pat.label`,
|
|
148
|
+
instructions: `${I18N}.auth.pat.instructions`,
|
|
149
|
+
supportsValidation: true,
|
|
150
|
+
fields: [
|
|
151
|
+
{
|
|
152
|
+
type: AXPWidgetsList.Editors.PasswordBox,
|
|
153
|
+
path: 'personalAccessToken',
|
|
154
|
+
options: { placeholder: `${I18N}.auth.pat.token.placeholder` },
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: AXP_INTEGRATION_AUTH_METHOD_TYPE.OAuth2,
|
|
160
|
+
label: `${I18N}.auth.oauth.label`,
|
|
161
|
+
instructions: `${I18N}.auth.oauth.instructions`,
|
|
162
|
+
usesRedirect: false,
|
|
163
|
+
supportsRefresh: true,
|
|
164
|
+
supportsRevoke: false,
|
|
165
|
+
supportsValidation: true,
|
|
166
|
+
fields: [
|
|
167
|
+
{
|
|
168
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
169
|
+
path: 'clientId',
|
|
170
|
+
options: { placeholder: `${I18N}.auth.oauth.client-id.placeholder` },
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: AXPWidgetsList.Editors.PasswordBox,
|
|
174
|
+
path: 'clientSecret',
|
|
175
|
+
options: { placeholder: `${I18N}.auth.oauth.client-secret.placeholder` },
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
183
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationProvider }); }
|
|
184
|
+
}
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationProvider, decorators: [{
|
|
186
|
+
type: Injectable
|
|
187
|
+
}] });
|
|
188
|
+
|
|
189
|
+
//#region ---- Fergus integration settings badges ----
|
|
190
|
+
const FERGUS_I18N = '@extensions-fergus:integration.badges';
|
|
191
|
+
async function formatSyncTimestamp(iso, formatService, settingsService) {
|
|
192
|
+
const parsed = Date.parse(iso);
|
|
193
|
+
if (!Number.isFinite(parsed)) {
|
|
194
|
+
return undefined;
|
|
195
|
+
}
|
|
196
|
+
const dateFormat = await settingsService.get(AXPRegionalSetting.ShortDate);
|
|
197
|
+
const timeFormat = await settingsService.get(AXPRegionalSetting.ShortTime);
|
|
198
|
+
const format = `${dateFormat} ${timeFormat}`.trim();
|
|
199
|
+
return formatService.format(new Date(parsed), 'datetime', { format });
|
|
200
|
+
}
|
|
201
|
+
async function resolveFergusConnectionSettingsBadges(ctx, formatService, settingsService) {
|
|
202
|
+
const config = (ctx.connection.config ?? {});
|
|
203
|
+
const jobsSync = config.jobsSync;
|
|
204
|
+
const lastSync = config.jobsSync?.lastSyncAt?.trim() ||
|
|
205
|
+
(typeof jobsSync?.['lastSuccessfulSyncAt'] === 'string' ? jobsSync['lastSuccessfulSyncAt'].trim() : '');
|
|
206
|
+
if (!lastSync) {
|
|
207
|
+
return [
|
|
208
|
+
{
|
|
209
|
+
labelKey: `${FERGUS_I18N}.never-synced`,
|
|
210
|
+
color: 'warning',
|
|
211
|
+
},
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
const datetime = await formatSyncTimestamp(lastSync, formatService, settingsService);
|
|
215
|
+
if (!datetime) {
|
|
216
|
+
return [];
|
|
217
|
+
}
|
|
218
|
+
return [
|
|
219
|
+
{
|
|
220
|
+
labelKey: `${FERGUS_I18N}.last-sync`,
|
|
221
|
+
params: { datetime },
|
|
222
|
+
color: 'success',
|
|
223
|
+
},
|
|
224
|
+
];
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
|
|
228
|
+
class AXEFergusIntegrationRuntimeProvider {
|
|
229
|
+
constructor() {
|
|
230
|
+
this.providerId = 'fergus';
|
|
231
|
+
this.secretStore = inject(AXP_INTEGRATION_SECRET_STORE, { optional: true });
|
|
232
|
+
this.formatService = inject(AXFormatService);
|
|
233
|
+
this.settingsService = inject(AXPSettingsService);
|
|
234
|
+
}
|
|
235
|
+
async getHooks() {
|
|
236
|
+
return {
|
|
237
|
+
validateConnection: (ctx) => this.validateConnection(ctx),
|
|
238
|
+
createClient: (ctx) => this.createClient(ctx),
|
|
239
|
+
getConnectionSettingsBadges: (ctx) => resolveFergusConnectionSettingsBadges(ctx, this.formatService, this.settingsService),
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
async validateConnection(ctx) {
|
|
243
|
+
if (!this.hasUsableCredentials(ctx)) {
|
|
244
|
+
return {
|
|
245
|
+
valid: false,
|
|
246
|
+
status: AXP_INTEGRATION_CONNECTION_STATUS.Invalid,
|
|
247
|
+
errorMessage: 'Fergus Personal Access Token or OAuth client credentials are required.',
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
valid: true,
|
|
252
|
+
status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,
|
|
253
|
+
externalAccountName: trim(defaultTo(ctx.instanceUrl, 'Fergus')) || 'Fergus',
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
async createClient(ctx) {
|
|
257
|
+
const credentials = await this.resolveClientCredentials(ctx);
|
|
258
|
+
return {
|
|
259
|
+
clientId: credentials.clientId,
|
|
260
|
+
baseUrl: defaultTo(ctx.instanceUrl, undefined),
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
hasUsableCredentials(ctx) {
|
|
264
|
+
const config = (ctx.config ?? {});
|
|
265
|
+
const personalAccessToken = trim(defaultTo(config.personalAccessToken, ''));
|
|
266
|
+
const clientId = trim(defaultTo(config.clientId, ''));
|
|
267
|
+
const clientSecret = trim(defaultTo(config.clientSecret, ''));
|
|
268
|
+
const accessToken = trim(defaultTo(config.accessToken, ''));
|
|
269
|
+
const refreshToken = trim(defaultTo(config.refreshToken, ''));
|
|
270
|
+
return Boolean(personalAccessToken || (clientId && clientSecret) || accessToken || refreshToken);
|
|
271
|
+
}
|
|
272
|
+
async resolveClientCredentials(ctx) {
|
|
273
|
+
const config = (ctx.config ?? {});
|
|
274
|
+
const configClientId = trim(defaultTo(config.clientId, ''));
|
|
275
|
+
const configClientSecret = trim(defaultTo(config.clientSecret, ''));
|
|
276
|
+
if (configClientId && configClientSecret) {
|
|
277
|
+
return { clientId: configClientId, clientSecret: configClientSecret };
|
|
278
|
+
}
|
|
279
|
+
if (!this.secretStore || !trim(defaultTo(ctx.secretRef, ''))) {
|
|
280
|
+
throw new Error('Fergus connection has no client credentials.');
|
|
281
|
+
}
|
|
282
|
+
const credentials = await this.secretStore.resolve(ctx.secretRef, ctx);
|
|
283
|
+
const clientId = trim(defaultTo(credentials.token ?? credentials.email, ''));
|
|
284
|
+
const clientSecret = trim(defaultTo(credentials.password ?? credentials.apiToken, ''));
|
|
285
|
+
if (!clientId || !clientSecret) {
|
|
286
|
+
throw new Error('Fergus connection has no usable client credentials.');
|
|
287
|
+
}
|
|
288
|
+
return { clientId, clientSecret };
|
|
289
|
+
}
|
|
290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationRuntimeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
291
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationRuntimeProvider }); }
|
|
292
|
+
}
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusIntegrationRuntimeProvider, decorators: [{
|
|
294
|
+
type: Injectable
|
|
295
|
+
}] });
|
|
296
|
+
const provideFergusIntegrationRuntimeProvider = {
|
|
297
|
+
provide: AXP_INTEGRATION_RUNTIME_PROVIDER,
|
|
298
|
+
useClass: AXEFergusIntegrationRuntimeProvider,
|
|
299
|
+
multi: true,
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const fergusLogoProvider = {
|
|
303
|
+
key: axpFergusLogoKey,
|
|
304
|
+
resolve: async (request) => ({
|
|
305
|
+
kind: 'image',
|
|
306
|
+
src: AXE_FERGUS_MARK_SRC,
|
|
307
|
+
height: request.size,
|
|
308
|
+
width: Math.round(request.size * AXE_FERGUS_MARK_ASPECT),
|
|
309
|
+
}),
|
|
310
|
+
};
|
|
311
|
+
const AXE_FERGUS_LOGO_PROVIDER = {
|
|
312
|
+
provide: AXP_LOGO_PROVIDER,
|
|
313
|
+
useValue: fergusLogoProvider,
|
|
314
|
+
multi: true,
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
//#region ---- Manifest ----
|
|
318
|
+
const FergusExtensionManifest = {
|
|
319
|
+
name: RootConfig$1.module.name,
|
|
320
|
+
version: '1.0.0',
|
|
321
|
+
title: RootConfig$1.module.title,
|
|
322
|
+
icon: RootConfig$1.module.icon,
|
|
323
|
+
i18n: RootConfig$1.config.i18n,
|
|
324
|
+
type: 'integration',
|
|
325
|
+
domain: 'project-management',
|
|
326
|
+
dependencies: [],
|
|
327
|
+
};
|
|
328
|
+
//#endregion
|
|
329
|
+
|
|
330
|
+
//#region ---- Imports ----
|
|
331
|
+
//#endregion
|
|
332
|
+
class AXEFergusMenuProvider {
|
|
333
|
+
async provide(context) {
|
|
334
|
+
const module = RootConfig$1.module;
|
|
335
|
+
const policy = {
|
|
336
|
+
features: [module.name],
|
|
337
|
+
permissions: [AXPAdministrationPermissionKeys.MaintainConnections],
|
|
338
|
+
};
|
|
339
|
+
const configMenu = context.find(AXPCommonMenuKeys.Configuration);
|
|
340
|
+
if (!context.find(AXEFergusMenuKeys.FergusExtensionConfig).exists) {
|
|
341
|
+
configMenu.addItems([
|
|
342
|
+
{
|
|
343
|
+
name: AXEFergusMenuKeys.FergusExtensionConfig,
|
|
344
|
+
text: '@extensions-fergus:module.menus.configuration.title',
|
|
345
|
+
icon: module.icon,
|
|
346
|
+
type: 'menu',
|
|
347
|
+
priority: 8940,
|
|
348
|
+
policy,
|
|
349
|
+
children: [],
|
|
350
|
+
},
|
|
351
|
+
]);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusMenuProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
355
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusMenuProvider }); }
|
|
356
|
+
}
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusMenuProvider, decorators: [{
|
|
358
|
+
type: Injectable
|
|
359
|
+
}] });
|
|
360
|
+
|
|
361
|
+
//#region ---- Imports ----
|
|
362
|
+
//#endregion
|
|
363
|
+
class AXEFergusExtensionModule {
|
|
364
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
365
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusExtensionModule, imports: [AXMIntegrationManagementModule] }); }
|
|
366
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusExtensionModule, providers: [
|
|
367
|
+
AXE_FERGUS_LOGO_PROVIDER,
|
|
368
|
+
{ provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: FergusExtensionManifest, multi: true },
|
|
369
|
+
{ provide: AXP_MENU_PROVIDER, useClass: AXEFergusMenuProvider, multi: true },
|
|
370
|
+
{ provide: AXP_ENTITY_MODIFIER, useValue: AXEFergusProjectEntityModifier, multi: true },
|
|
371
|
+
{
|
|
372
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
373
|
+
useClass: AXEFergusProjectLinkExpressionEvaluatorScopeProvider,
|
|
374
|
+
multi: true,
|
|
375
|
+
},
|
|
376
|
+
{ provide: AXP_INTEGRATION_PROVIDER, useClass: AXEFergusIntegrationProvider, multi: true },
|
|
377
|
+
provideFergusIntegrationRuntimeProvider,
|
|
378
|
+
provideCommandSetups([
|
|
379
|
+
{
|
|
380
|
+
key: AXEFergusCommandKeys.ConnectionConnect,
|
|
381
|
+
command: () => import('./acorex-platform-extension-project-management-fergus-client-connect-fergus.command-CIo20MSc.mjs').then((c) => c.ConnectFergusCommand),
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
key: AXEFergusCommandKeys.ConnectionCompleteOAuth,
|
|
385
|
+
command: () => import('./acorex-platform-extension-project-management-fergus-client-complete-fergus-oauth.command-Cdw8Bola.mjs').then((c) => c.CompleteFergusOAuthCommand),
|
|
386
|
+
},
|
|
387
|
+
]),
|
|
388
|
+
], imports: [AXMIntegrationManagementModule] }); }
|
|
389
|
+
}
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEFergusExtensionModule, decorators: [{
|
|
391
|
+
type: NgModule,
|
|
392
|
+
args: [{
|
|
393
|
+
imports: [AXMIntegrationManagementModule],
|
|
394
|
+
providers: [
|
|
395
|
+
AXE_FERGUS_LOGO_PROVIDER,
|
|
396
|
+
{ provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: FergusExtensionManifest, multi: true },
|
|
397
|
+
{ provide: AXP_MENU_PROVIDER, useClass: AXEFergusMenuProvider, multi: true },
|
|
398
|
+
{ provide: AXP_ENTITY_MODIFIER, useValue: AXEFergusProjectEntityModifier, multi: true },
|
|
399
|
+
{
|
|
400
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
401
|
+
useClass: AXEFergusProjectLinkExpressionEvaluatorScopeProvider,
|
|
402
|
+
multi: true,
|
|
403
|
+
},
|
|
404
|
+
{ provide: AXP_INTEGRATION_PROVIDER, useClass: AXEFergusIntegrationProvider, multi: true },
|
|
405
|
+
provideFergusIntegrationRuntimeProvider,
|
|
406
|
+
provideCommandSetups([
|
|
407
|
+
{
|
|
408
|
+
key: AXEFergusCommandKeys.ConnectionConnect,
|
|
409
|
+
command: () => import('./acorex-platform-extension-project-management-fergus-client-connect-fergus.command-CIo20MSc.mjs').then((c) => c.ConnectFergusCommand),
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
key: AXEFergusCommandKeys.ConnectionCompleteOAuth,
|
|
413
|
+
command: () => import('./acorex-platform-extension-project-management-fergus-client-complete-fergus-oauth.command-Cdw8Bola.mjs').then((c) => c.CompleteFergusOAuthCommand),
|
|
414
|
+
},
|
|
415
|
+
]),
|
|
416
|
+
],
|
|
417
|
+
}]
|
|
418
|
+
}] });
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Generated bundle index. Do not edit.
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
export { AXEFergusExtensionModule, AXE_FERGUS_LOGO_PROVIDER, AXE_FERGUS_MARK_ASPECT, AXE_FERGUS_MARK_SRC, axpFergusLogoKey };
|
|
425
|
+
//# sourceMappingURL=acorex-platform-extension-project-management-fergus-client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-project-management-fergus-client.mjs","sources":["../../../../libs/extensions/project-management/fergus/client/src/lib/features/project-management/fergus-expression-scope.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/features/project-management/fergus-project-link-expression-evaluator-scope.provider.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/features/project-management/project-fergus.entity-modifier.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/brand/fergus-logo-key.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/integration/fergus.integration.provider.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/integration/fergus-integration-settings-badges.util.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/integration/fergus.integration-runtime.provider.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/brand/fergus-logo.provider.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/manifest.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/menu.provider.ts","../../../../libs/extensions/project-management/fergus/client/src/lib/fergus-extension.module.ts","../../../../libs/extensions/project-management/fergus/client/src/acorex-platform-extension-project-management-fergus-client.ts"],"sourcesContent":["export const AXE_FERGUS_EXPRESSION_SCOPE = 'FergusExtension';\n","//#region ---- Imports ----\n\nimport { AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex-platform/framework-shared/core';\nimport { AXPIntegrationRuntimeService } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { AXE_PM_INTEGRATION_PROVIDER_FERGUS } from '@acorex-platform/extension-project-management-core-client/contracts';\nimport { RootConfig as PmRootConfig } from '@acorex-platform/module-project-management-client/contracts';\nimport type { AXMProjectManagementProjectEntityModel } from '@acorex-platform/module-project-management-client/contracts';\nimport { AXE_FERGUS_EXPRESSION_SCOPE } from './fergus-expression-scope';\n\n//#endregion\n\nexport class AXEFergusProjectLinkExpressionEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {\n private readonly entityService = inject(AXPEntityService);\n private readonly integrationRuntime = inject(AXPIntegrationRuntimeService);\n\n async provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void> {\n context.addScope(AXE_FERGUS_EXPRESSION_SCOPE, {\n hasProjectLink: async (platformProjectIdRaw?: unknown): Promise<boolean> => {\n const platformProjectId = typeof platformProjectIdRaw === 'string' ? platformProjectIdRaw.trim() : '';\n if (!platformProjectId) {\n return false;\n }\n\n const project = (await this.entityService\n .withEntity(PmRootConfig.module.name, PmRootConfig.entities.project.name)\n .data<string, AXMProjectManagementProjectEntityModel>()\n .byKey(platformProjectId)) as AXMProjectManagementProjectEntityModel | null;\n\n return project?.integrationRef?.source === AXE_PM_INTEGRATION_PROVIDER_FERGUS;\n },\n hasFergusConnection: async (): Promise<boolean> => {\n try {\n await this.integrationRuntime.getConnection({ providerId: 'fergus', connectionScope: 'tenant' });\n return true;\n } catch {\n return false;\n }\n },\n });\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityAction, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';\nimport {\n actionExists,\n AXPEntityModifierProvider,\n ensureListActions,\n} from '@acorex-platform/framework-client/layout/entity';\nimport { AXEFergusCommandKeys } from '@acorex-platform/extension-project-management-fergus-client/contracts';\nimport { RootConfig as PmRootConfig } from '@acorex-platform/module-project-management-client/contracts';\nimport { AXE_FERGUS_EXPRESSION_SCOPE } from './fergus-expression-scope';\n\n//#endregion\n\nconst IMPORT_ORDER = 36;\nconst SYNC_ORDER = 37;\n\nfunction buildImportAction(): AXPEntityAction {\n return {\n name: AXEFergusCommandKeys.ProjectImportFromFergus,\n title: '@extensions-fergus:actions.import-from-fergus.title',\n command: { name: AXEFergusCommandKeys.ProjectImportFromFergus },\n priority: 'secondary',\n type: AXPSystemActionType.Import,\n icon: 'fa-light fa-briefcase',\n scope: AXPEntityCommandScope.TypeLevel,\n order: IMPORT_ORDER,\n };\n}\n\nfunction buildSyncAction(): AXPEntityAction {\n return {\n name: AXEFergusCommandKeys.ProjectSync,\n title: '@extensions-fergus:actions.sync.title',\n command: {\n name: AXEFergusCommandKeys.ProjectSync,\n options: { platformProjectId: '{{ context.eval(\"id\") }}' },\n },\n priority: 'secondary',\n type: AXPSystemActionType.Sync,\n icon: 'fa-light fa-arrows-rotate',\n scope: AXPEntityCommandScope.Individual,\n order: SYNC_ORDER,\n hidden: `{{ !(await ${AXE_FERGUS_EXPRESSION_SCOPE}.hasProjectLink(context.eval(\"id\"))) }}`,\n };\n}\n\n/** Adds Fergus import/sync actions to ProjectManagement.Project views. */\nexport const AXEFergusProjectEntityModifier: AXPEntityModifierProvider = {\n entityName: PmRootConfig.entities.project.name,\n order: 50,\n modifier: (ctx) => {\n if (ctx.module.get() !== PmRootConfig.module.name) {\n return;\n }\n\n ensureListActions(ctx);\n\n ctx.interfaces.update((interfaces) => {\n const next = (interfaces ?? {}) as Record<string, unknown>;\n const master = (next['master'] ?? {}) as Record<string, unknown>;\n const list = (master['list'] ?? { actions: [], views: [] }) as Record<string, unknown>;\n const listActions = (list['actions'] ?? []) as AXPEntityAction[];\n\n if (!actionExists(listActions, AXEFergusCommandKeys.ProjectImportFromFergus)) {\n listActions.push(buildImportAction());\n }\n list['actions'] = listActions;\n master['list'] = list;\n\n const single = master['single'] as Record<string, unknown> | undefined;\n if (single) {\n const singleActions = (single['actions'] ?? []) as AXPEntityAction[];\n if (!actionExists(singleActions, AXEFergusCommandKeys.ProjectSync)) {\n singleActions.push(buildSyncAction());\n }\n single['actions'] = singleActions;\n }\n\n next['master'] = master;\n return next as typeof interfaces;\n });\n },\n};\n\n//#endregion\n","//#region ---- Fergus logo registry key ----\n\nexport const axpFergusLogoKey = 'fergus' as const;\n\n/** Mark artwork; consuming apps copy to `assets/images/brand/integrations/`. */\nexport const AXE_FERGUS_MARK_SRC = 'assets/images/brand/integrations/fergus-mark.png';\n\n/** Source mark is 266×311. */\nexport const AXE_FERGUS_MARK_ASPECT = 266 / 311;\n\n//#endregion\n","import {\n AXP_INTEGRATION_AUTH_METHOD_TYPE,\n AXP_INTEGRATION_CAPABILITY,\n AXP_INTEGRATION_CONNECTION_SCOPE,\n AXPWidgetsList,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPIntegrationProvider, AXPIntegrationProviderContext } from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport { AXEFergusCommandKeys, RootConfig } from '@acorex-platform/extension-project-management-fergus-client/contracts';\nimport { axpFergusLogoKey } from '../brand/fergus-logo-key';\n\n@Injectable()\nexport class AXEFergusIntegrationProvider implements AXPIntegrationProvider {\n async provide(context: AXPIntegrationProviderContext): Promise<void> {\n const I18N = `@${RootConfig.config.i18n}:integration`;\n\n context.register({\n domainId: 'project-management',\n id: 'fergus',\n module: RootConfig.module.name,\n displayName: `${I18N}.display-name`,\n description: `${I18N}.description`,\n icon: RootConfig.module.icon,\n logoKey: axpFergusLogoKey,\n capabilities: [AXP_INTEGRATION_CAPABILITY.Sync, AXP_INTEGRATION_CAPABILITY.Import],\n connectionScopes: [AXP_INTEGRATION_CONNECTION_SCOPE.Tenant],\n allowMultipleConnections: false,\n defaultConnectionKey: 'default',\n connectCommandKey: AXEFergusCommandKeys.ConnectionConnect,\n completeOAuthCommandKey: AXEFergusCommandKeys.ConnectionCompleteOAuth,\n authMethods: [\n {\n type: AXP_INTEGRATION_AUTH_METHOD_TYPE.Pat,\n label: `${I18N}.auth.pat.label`,\n instructions: `${I18N}.auth.pat.instructions`,\n supportsValidation: true,\n fields: [\n {\n type: AXPWidgetsList.Editors.PasswordBox,\n path: 'personalAccessToken',\n options: { placeholder: `${I18N}.auth.pat.token.placeholder` },\n },\n ],\n },\n {\n type: AXP_INTEGRATION_AUTH_METHOD_TYPE.OAuth2,\n label: `${I18N}.auth.oauth.label`,\n instructions: `${I18N}.auth.oauth.instructions`,\n usesRedirect: false,\n supportsRefresh: true,\n supportsRevoke: false,\n supportsValidation: true,\n fields: [\n {\n type: AXPWidgetsList.Editors.TextBox,\n path: 'clientId',\n options: { placeholder: `${I18N}.auth.oauth.client-id.placeholder` },\n },\n {\n type: AXPWidgetsList.Editors.PasswordBox,\n path: 'clientSecret',\n options: { placeholder: `${I18N}.auth.oauth.client-secret.placeholder` },\n },\n ],\n },\n ],\n });\n }\n}\n","//#region ---- Fergus integration settings badges ----\n\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport type {\n AXPIntegrationConnectionSettingsContext,\n AXPIntegrationSettingsRowBadge,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXEFergusConnectionConfig } from '@acorex-platform/extension-project-management-fergus-client/contracts';\n\nconst FERGUS_I18N = '@extensions-fergus:integration.badges';\n\nasync function formatSyncTimestamp(\n iso: string,\n formatService: AXFormatService,\n settingsService: AXPSettingsService,\n): Promise<string | undefined> {\n const parsed = Date.parse(iso);\n if (!Number.isFinite(parsed)) {\n return undefined;\n }\n\n const dateFormat = await settingsService.get(AXPRegionalSetting.ShortDate);\n const timeFormat = await settingsService.get(AXPRegionalSetting.ShortTime);\n const format = `${dateFormat} ${timeFormat}`.trim();\n\n return formatService.format(new Date(parsed), 'datetime', { format });\n}\n\nexport async function resolveFergusConnectionSettingsBadges(\n ctx: AXPIntegrationConnectionSettingsContext,\n formatService: AXFormatService,\n settingsService: AXPSettingsService,\n): Promise<AXPIntegrationSettingsRowBadge[]> {\n const config = (ctx.connection.config ?? {}) as AXEFergusConnectionConfig;\n const jobsSync = config.jobsSync as Record<string, unknown> | undefined;\n const lastSync =\n config.jobsSync?.lastSyncAt?.trim() ||\n (typeof jobsSync?.['lastSuccessfulSyncAt'] === 'string' ? jobsSync['lastSuccessfulSyncAt'].trim() : '');\n\n if (!lastSync) {\n return [\n {\n labelKey: `${FERGUS_I18N}.never-synced`,\n color: 'warning',\n },\n ];\n }\n\n const datetime = await formatSyncTimestamp(lastSync, formatService, settingsService);\n if (!datetime) {\n return [];\n }\n\n return [\n {\n labelKey: `${FERGUS_I18N}.last-sync`,\n params: { datetime },\n color: 'success',\n },\n ];\n}\n\n//#endregion\n","import {\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPIntegrationProviderRuntimeHooks,\n type AXPIntegrationRuntimeContext,\n type AXPIntegrationValidationResult,\n} from '@acorex-platform/framework-shared/core';\nimport {\n AXP_INTEGRATION_RUNTIME_PROVIDER,\n AXP_INTEGRATION_SECRET_STORE,\n type AXPIntegrationRuntimeProvider,\n} from '@acorex-platform/framework-client/common';\nimport type { AXEFergusConnectionConfig } from '@acorex-platform/extension-project-management-fergus-client/contracts';\nimport { Injectable, inject } from '@angular/core';\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { defaultTo, trim } from 'lodash-es';\nimport { resolveFergusConnectionSettingsBadges } from './fergus-integration-settings-badges.util';\n\n@Injectable()\nexport class AXEFergusIntegrationRuntimeProvider implements AXPIntegrationRuntimeProvider {\n readonly providerId = 'fergus';\n\n private readonly secretStore = inject(AXP_INTEGRATION_SECRET_STORE, { optional: true });\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n\n async getHooks(): Promise<AXPIntegrationProviderRuntimeHooks> {\n return {\n validateConnection: (ctx) => this.validateConnection(ctx),\n createClient: (ctx) => this.createClient(ctx),\n getConnectionSettingsBadges: (ctx) =>\n resolveFergusConnectionSettingsBadges(ctx, this.formatService, this.settingsService),\n };\n }\n\n private async validateConnection(ctx: AXPIntegrationRuntimeContext): Promise<AXPIntegrationValidationResult> {\n if (!this.hasUsableCredentials(ctx)) {\n return {\n valid: false,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Invalid,\n errorMessage: 'Fergus Personal Access Token or OAuth client credentials are required.',\n };\n }\n\n return {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n externalAccountName: trim(defaultTo(ctx.instanceUrl, 'Fergus')) || 'Fergus',\n };\n }\n\n private async createClient(ctx: AXPIntegrationRuntimeContext): Promise<{ clientId: string; baseUrl?: string }> {\n const credentials = await this.resolveClientCredentials(ctx);\n return {\n clientId: credentials.clientId,\n baseUrl: defaultTo(ctx.instanceUrl, undefined),\n };\n }\n\n private hasUsableCredentials(ctx: AXPIntegrationRuntimeContext): boolean {\n const config = (ctx.config ?? {}) as AXEFergusConnectionConfig;\n const personalAccessToken = trim(defaultTo(config.personalAccessToken, ''));\n const clientId = trim(defaultTo(config.clientId, ''));\n const clientSecret = trim(defaultTo(config.clientSecret, ''));\n const accessToken = trim(defaultTo(config.accessToken, ''));\n const refreshToken = trim(defaultTo(config.refreshToken, ''));\n return Boolean(personalAccessToken || (clientId && clientSecret) || accessToken || refreshToken);\n }\n\n private async resolveClientCredentials(\n ctx: AXPIntegrationRuntimeContext,\n ): Promise<{ clientId: string; clientSecret?: string }> {\n const config = (ctx.config ?? {}) as AXEFergusConnectionConfig;\n const configClientId = trim(defaultTo(config.clientId, ''));\n const configClientSecret = trim(defaultTo(config.clientSecret, ''));\n\n if (configClientId && configClientSecret) {\n return { clientId: configClientId, clientSecret: configClientSecret };\n }\n\n if (!this.secretStore || !trim(defaultTo(ctx.secretRef, ''))) {\n throw new Error('Fergus connection has no client credentials.');\n }\n\n const credentials = await this.secretStore.resolve(ctx.secretRef, ctx);\n const clientId = trim(defaultTo(credentials.token ?? credentials.email, ''));\n const clientSecret = trim(defaultTo(credentials.password ?? credentials.apiToken, ''));\n if (!clientId || !clientSecret) {\n throw new Error('Fergus connection has no usable client credentials.');\n }\n\n return { clientId, clientSecret };\n }\n}\n\nexport const provideFergusIntegrationRuntimeProvider = {\n provide: AXP_INTEGRATION_RUNTIME_PROVIDER,\n useClass: AXEFergusIntegrationRuntimeProvider,\n multi: true,\n};\n","import {\n AXP_LOGO_PROVIDER,\n type AXPLogoProvider,\n type AXPLogoRequest,\n type AXPLogoView,\n} from '@acorex-platform/framework-client/core';\nimport {\n AXE_FERGUS_MARK_ASPECT,\n AXE_FERGUS_MARK_SRC,\n axpFergusLogoKey,\n} from './fergus-logo-key';\n\nconst fergusLogoProvider: AXPLogoProvider = {\n key: axpFergusLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'image',\n src: AXE_FERGUS_MARK_SRC,\n height: request.size,\n width: Math.round(request.size * AXE_FERGUS_MARK_ASPECT),\n }),\n};\n\nexport const AXE_FERGUS_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: fergusLogoProvider,\n multi: true,\n} as const;\n","//#region ---- Manifest ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/extension-project-management-fergus-client/contracts';\n\nexport const FergusExtensionManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'integration',\n domain: 'project-management',\n dependencies: [],\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport {\n AXEFergusMenuKeys,\n RootConfig,\n AXPAdministrationPermissionKeys\n} from '@acorex-platform/extension-project-management-fergus-client/contracts';\n\n//#endregion\n\n@Injectable()\nexport class AXEFergusMenuProvider implements AXPMenuProvider {\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const policy = {\n features: [module.name],\n permissions: [AXPAdministrationPermissionKeys.MaintainConnections],\n };\n\n const configMenu = context.find(AXPCommonMenuKeys.Configuration);\n if (!context.find(AXEFergusMenuKeys.FergusExtensionConfig).exists) {\n configMenu.addItems([\n {\n name: AXEFergusMenuKeys.FergusExtensionConfig,\n text: '@extensions-fergus:module.menus.configuration.title',\n icon: module.icon,\n type: 'menu',\n priority: 8940,\n policy,\n children: [],\n },\n ]);\n }\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXMIntegrationManagementModule } from '@acorex-platform/module-integration-management-client';\nimport { AXP_INTEGRATION_PROVIDER, AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { AXP_ENTITY_MODIFIER } from '@acorex-platform/framework-client/layout/entity';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\nimport { AXEFergusCommandKeys } from '@acorex-platform/extension-project-management-fergus-client/contracts';\nimport { AXEFergusProjectLinkExpressionEvaluatorScopeProvider } from './features/project-management/fergus-project-link-expression-evaluator-scope.provider';\nimport { AXEFergusProjectEntityModifier } from './features/project-management/project-fergus.entity-modifier';\nimport { AXEFergusIntegrationProvider } from './integration/fergus.integration.provider';\nimport { provideFergusIntegrationRuntimeProvider } from './integration/fergus.integration-runtime.provider';\nimport { AXE_FERGUS_LOGO_PROVIDER } from './brand/fergus-logo.provider';\nimport { FergusExtensionManifest } from './manifest';\nimport { AXEFergusMenuProvider } from './menu.provider';\n\n//#endregion\n\n@NgModule({\n imports: [AXMIntegrationManagementModule],\n providers: [\n AXE_FERGUS_LOGO_PROVIDER,\n { provide: AXP_MODULE_MANIFEST_PROVIDER, useValue: FergusExtensionManifest, multi: true },\n { provide: AXP_MENU_PROVIDER, useClass: AXEFergusMenuProvider, multi: true },\n { provide: AXP_ENTITY_MODIFIER, useValue: AXEFergusProjectEntityModifier, multi: true },\n {\n provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,\n useClass: AXEFergusProjectLinkExpressionEvaluatorScopeProvider,\n multi: true,\n },\n { provide: AXP_INTEGRATION_PROVIDER, useClass: AXEFergusIntegrationProvider, multi: true },\n provideFergusIntegrationRuntimeProvider,\n provideCommandSetups([\n {\n key: AXEFergusCommandKeys.ConnectionConnect,\n command: () => import('./features/connect/connect-fergus.command').then((c) => c.ConnectFergusCommand),\n },\n {\n key: AXEFergusCommandKeys.ConnectionCompleteOAuth,\n command: () =>\n import('./features/connect/complete-fergus-oauth.command').then((c) => c.CompleteFergusOAuthCommand),\n },\n ]),\n ],\n})\nexport class AXEFergusExtensionModule {}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PmRootConfig","RootConfig"],"mappings":";;;;;;;;;;;;;;;;AAAO,MAAM,2BAA2B,GAAG,iBAAiB;;ACA5D;AAWA;MAEa,oDAAoD,CAAA;AAAjE,IAAA,WAAA,GAAA;AACmB,QA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AC,oBAAoB,CAAC;AACvG,6BAAA;AACD,4BAAA;gCACE,GAAG,EAAE,oBAAoB,CAAC,uBAAuB;AACjD,gCAAA,OAAO,EAAE,MACP,OAAO,yGAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC;AACvG,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC7CD;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/extension-project-management-fergus-client",
|
|
3
|
+
"version": "0.0.21",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^21.0.0",
|
|
7
|
+
"@angular/core": "^21.0.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"module": "fesm2022/acorex-platform-extension-project-management-fergus-client.mjs",
|
|
13
|
+
"typings": "types/acorex-platform-extension-project-management-fergus-client.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./types/acorex-platform-extension-project-management-fergus-client.d.ts",
|
|
20
|
+
"default": "./fesm2022/acorex-platform-extension-project-management-fergus-client.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./contracts": {
|
|
23
|
+
"types": "./types/acorex-platform-extension-project-management-fergus-client-contracts.d.ts",
|
|
24
|
+
"default": "./fesm2022/acorex-platform-extension-project-management-fergus-client-contracts.mjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"type": "module"
|
|
28
|
+
}
|