@acorex-platform/module-integration-management-client 2.0.0-next.6 → 2.0.0-next.61
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-module-integration-management-client-connect-with-credentials.command-DO_zqjHV.mjs → acorex-platform-module-integration-management-client-connect-with-credentials.command-i8HJe3MA.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-connect-with-credentials.command-DO_zqjHV.mjs.map → acorex-platform-module-integration-management-client-connect-with-credentials.command-i8HJe3MA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-k3HR1biJ.mjs → acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-uUrGq-Wk.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-k3HR1biJ.mjs.map → acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-uUrGq-Wk.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-DhOHTht5.mjs → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BVOP8fyI.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-DhOHTht5.mjs.map → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BVOP8fyI.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-BAM1TCdS.mjs → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-FkDRq6vX.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-BAM1TCdS.mjs.map → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-FkDRq6vX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-CHsVwNda.mjs → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-ra2IuHDf.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-CHsVwNda.mjs.map → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-ra2IuHDf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-remote-record.entity-D9oTVEHF.mjs → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-remote-record.entity-BgVz3A-n.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-remote-record.entity-D9oTVEHF.mjs.map → acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-remote-record.entity-BgVz3A-n.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-integration-management-client-contracts.mjs +5 -1
- package/fesm2022/acorex-platform-module-integration-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-delete-connection.command-CCMZwP4W.mjs → acorex-platform-module-integration-management-client-delete-connection.command-DXxr1N1S.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-delete-connection.command-CCMZwP4W.mjs.map → acorex-platform-module-integration-management-client-delete-connection.command-DXxr1N1S.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-disconnect-connection.command-DpVoXBdW.mjs → acorex-platform-module-integration-management-client-disconnect-connection.command-DwgAYZvz.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-disconnect-connection.command-DpVoXBdW.mjs.map → acorex-platform-module-integration-management-client-disconnect-connection.command-DwgAYZvz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-get-provider.query-Ds10RwnU.mjs → acorex-platform-module-integration-management-client-get-provider.query-C6OAU1vi.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-get-provider.query-Ds10RwnU.mjs.map → acorex-platform-module-integration-management-client-get-provider.query-C6OAU1vi.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-connection-lifecycle.dispatcher-DRWR9ysx.mjs → acorex-platform-module-integration-management-client-integration-connection-lifecycle.dispatcher-DjSMX8af.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-connection-lifecycle.dispatcher-DRWR9ysx.mjs.map → acorex-platform-module-integration-management-client-integration-connection-lifecycle.dispatcher-DjSMX8af.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-CY0tOlNi.mjs → acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-iBh2QP2t.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-CY0tOlNi.mjs.map → acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-iBh2QP2t.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-display.service-CP818xou.mjs → acorex-platform-module-integration-management-client-integration-ref-display.service-BMhSRuGH.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-display.service-CP818xou.mjs.map → acorex-platform-module-integration-management-client-integration-ref-display.service-BMhSRuGH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-zVURpFT4.mjs → acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-Dy9tVipC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-zVURpFT4.mjs.map → acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-Dy9tVipC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-page.component-C131H4e1.mjs → acorex-platform-module-integration-management-client-integration-ref-page.component-BwvqmRou.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-page.component-C131H4e1.mjs.map → acorex-platform-module-integration-management-client-integration-ref-page.component-BwvqmRou.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-widget-column.component-ClPcvcUW.mjs → acorex-platform-module-integration-management-client-integration-ref-widget-column.component-DoLD_v28.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-widget-column.component-ClPcvcUW.mjs.map → acorex-platform-module-integration-management-client-integration-ref-widget-column.component-DoLD_v28.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-widget-view.component-BRpGpWHZ.mjs → acorex-platform-module-integration-management-client-integration-ref-widget-view.component-CP2UnG1M.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-widget-view.component-BRpGpWHZ.mjs.map → acorex-platform-module-integration-management-client-integration-ref-widget-view.component-CP2UnG1M.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-integrations-page.component-B_YdPi2k.mjs → acorex-platform-module-integration-management-client-integrations-page.component-BUQG6o29.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-integration-management-client-integrations-page.component-B_YdPi2k.mjs.map → acorex-platform-module-integration-management-client-integrations-page.component-BUQG6o29.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-domains.query--GGD6J46.mjs → acorex-platform-module-integration-management-client-list-domains.query-Ca1m9f4f.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-domains.query--GGD6J46.mjs.map → acorex-platform-module-integration-management-client-list-domains.query-Ca1m9f4f.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-my-connections.query-CmHu1qFm.mjs → acorex-platform-module-integration-management-client-list-my-connections.query-DSeVnGtV.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-my-connections.query-CmHu1qFm.mjs.map → acorex-platform-module-integration-management-client-list-my-connections.query-DSeVnGtV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-providers.query-ODKJ_UhI.mjs → acorex-platform-module-integration-management-client-list-providers.query-J5DtFS0C.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-list-providers.query-ODKJ_UhI.mjs.map → acorex-platform-module-integration-management-client-list-providers.query-J5DtFS0C.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-update-connection.command-Kqir73pA.mjs → acorex-platform-module-integration-management-client-update-connection.command-B-WPsT5j.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-integration-management-client-update-connection.command-Kqir73pA.mjs.map → acorex-platform-module-integration-management-client-update-connection.command-B-WPsT5j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-validate-connection.command-D4RZ6WPP.mjs → acorex-platform-module-integration-management-client-validate-connection.command-D2QgFRTV.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-integration-management-client-validate-connection.command-D4RZ6WPP.mjs.map → acorex-platform-module-integration-management-client-validate-connection.command-D2QgFRTV.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-integration-management-client.mjs +80 -38
- package/fesm2022/acorex-platform-module-integration-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-integration-management-client-contracts.d.ts +6 -2
- package/types/acorex-platform-module-integration-management-client.d.ts +8 -1
|
@@ -3,7 +3,7 @@ import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-p
|
|
|
3
3
|
import { AXPEntityService, configureEntityListColumnsSettingsMigrateDrop, configureEntityListColumnsSettingsVersion, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_MODIFIER } from '@acorex-platform/framework-client/layout/entity';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, Injectable, NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { trim, defaultTo, isEmpty } from 'lodash';
|
|
7
7
|
import { RootConfig, AXPAdministrationPermissionKeys, AXMIntegrationManagementMenuKeys, AXMIntegrationManagementCommandKeys, AXMIntegrationManagementQueryKeys } from '@acorex-platform/module-integration-management-client/contracts';
|
|
8
8
|
export { IntegrationManagementManifest } from '@acorex-platform/module-integration-management-client/contracts';
|
|
9
9
|
import { AXPIntegrationRuntimeService, AXPIntegrationProviderRegistryService, AXP_INTEGRATION_SECRET_STORE, AXP_INTEGRATION_RUNTIME_PROVIDER, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_INTEGRATION_DOMAIN_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
@@ -23,12 +23,20 @@ import { AXPWidgetGroupEnum } from '@acorex-platform/framework-shared/widget-cor
|
|
|
23
23
|
|
|
24
24
|
//#region ---- Credential helpers ----
|
|
25
25
|
const AXP_INTEGRATION_CREDENTIAL_MASK = '••••••••';
|
|
26
|
+
/** User owner stored on `config` because create stamps `scopeInfo` without `userId`. */
|
|
27
|
+
const CONNECTION_OWNER_USER_ID_FIELD = 'config.ownerUserId';
|
|
28
|
+
function connectionOwnerUserId(connection) {
|
|
29
|
+
const config = (connection.config ?? {});
|
|
30
|
+
return trim(defaultTo(config.ownerUserId, connection.scopeInfo?.userId));
|
|
31
|
+
}
|
|
26
32
|
function hasConfigCredential(config) {
|
|
27
33
|
return (!isEmpty(trim(String(config['apiKey'] ?? ''))) ||
|
|
28
34
|
!isEmpty(trim(String(config['accessToken'] ?? ''))) ||
|
|
29
35
|
!isEmpty(trim(String(config['refreshToken'] ?? ''))) ||
|
|
30
36
|
!isEmpty(trim(String(config['clientSecret'] ?? ''))) ||
|
|
31
|
-
!isEmpty(trim(String(config['
|
|
37
|
+
!isEmpty(trim(String(config['secretKey'] ?? ''))) ||
|
|
38
|
+
!isEmpty(trim(String(config['botToken'] ?? ''))) ||
|
|
39
|
+
!isEmpty(trim(String(config['token'] ?? ''))));
|
|
32
40
|
}
|
|
33
41
|
function isMaskedIntegrationCredential(value) {
|
|
34
42
|
const normalized = trim(value ?? '');
|
|
@@ -49,6 +57,7 @@ function scrubDisconnectedConnectionConfig(config) {
|
|
|
49
57
|
delete next['password'];
|
|
50
58
|
delete next['apiToken'];
|
|
51
59
|
delete next['apiKey'];
|
|
60
|
+
delete next['secretKey'];
|
|
52
61
|
delete next['botToken'];
|
|
53
62
|
return next;
|
|
54
63
|
}
|
|
@@ -127,7 +136,7 @@ class AXMIntegrationConnectionManager {
|
|
|
127
136
|
{ field: 'scopeInfo.applicationId', operator: { type: 'equal' }, value: applicationId },
|
|
128
137
|
];
|
|
129
138
|
if (userId) {
|
|
130
|
-
filters.push({ field:
|
|
139
|
+
filters.push({ field: CONNECTION_OWNER_USER_ID_FIELD, operator: { type: 'equal' }, value: userId });
|
|
131
140
|
}
|
|
132
141
|
return filters;
|
|
133
142
|
}
|
|
@@ -168,7 +177,7 @@ class AXMIntegrationConnectionManager {
|
|
|
168
177
|
operator: { type: 'equal' },
|
|
169
178
|
value: AXP_INTEGRATION_CONNECTION_SCOPE.User,
|
|
170
179
|
},
|
|
171
|
-
{ field:
|
|
180
|
+
{ field: CONNECTION_OWNER_USER_ID_FIELD, operator: { type: 'equal' }, value: userId },
|
|
172
181
|
],
|
|
173
182
|
},
|
|
174
183
|
],
|
|
@@ -180,7 +189,7 @@ class AXMIntegrationConnectionManager {
|
|
|
180
189
|
if (item.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.Tenant) {
|
|
181
190
|
return true;
|
|
182
191
|
}
|
|
183
|
-
return item
|
|
192
|
+
return connectionOwnerUserId(item) === userId;
|
|
184
193
|
});
|
|
185
194
|
}
|
|
186
195
|
async findByUniqueKey(input) {
|
|
@@ -221,8 +230,12 @@ class AXMIntegrationConnectionManager {
|
|
|
221
230
|
userId: data.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.User ? userId : undefined,
|
|
222
231
|
});
|
|
223
232
|
const scopeInfo = this.buildOwnershipInfo(tenantId, applicationId, data.connectionScope, userId);
|
|
233
|
+
const config = data.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.User
|
|
234
|
+
? { ...(data.config ?? {}), ownerUserId: userId }
|
|
235
|
+
: (data.config ?? null);
|
|
224
236
|
const payload = {
|
|
225
237
|
...data,
|
|
238
|
+
config,
|
|
226
239
|
scopeInfo,
|
|
227
240
|
isRevoked: defaultTo(data.isRevoked, false),
|
|
228
241
|
isDisabled: defaultTo(data.isDisabled, false),
|
|
@@ -258,7 +271,7 @@ class AXMIntegrationConnectionManager {
|
|
|
258
271
|
lastSyncAt: data.lastSyncAt ?? null,
|
|
259
272
|
lastErrorCode: data.lastErrorCode ?? null,
|
|
260
273
|
lastErrorMessage: data.lastErrorMessage ?? null,
|
|
261
|
-
config
|
|
274
|
+
config,
|
|
262
275
|
};
|
|
263
276
|
const id = await this.connectionAccessor().create(createPayload);
|
|
264
277
|
const created = await this.connectionAccessor().byKey(id);
|
|
@@ -299,7 +312,7 @@ class AXMIntegrationConnectionManager {
|
|
|
299
312
|
if (connection.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.Tenant) {
|
|
300
313
|
return true;
|
|
301
314
|
}
|
|
302
|
-
return connection
|
|
315
|
+
return connectionOwnerUserId(connection) === userId;
|
|
303
316
|
}
|
|
304
317
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMIntegrationConnectionManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
305
318
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMIntegrationConnectionManager, providedIn: 'root' }); }
|
|
@@ -372,28 +385,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
372
385
|
//#region ---- Imports ----
|
|
373
386
|
//#endregion
|
|
374
387
|
//#region ---- Settings Provider ----
|
|
375
|
-
const I18N$
|
|
388
|
+
const I18N$2 = '@integration-management:settings';
|
|
376
389
|
class AXMIntegrationManagementSettingProvider {
|
|
377
390
|
async provide(context) {
|
|
378
391
|
if (context.hasGroup('integrations')) {
|
|
379
392
|
return;
|
|
380
393
|
}
|
|
381
394
|
context
|
|
382
|
-
.addGroup('integrations', `${I18N$
|
|
395
|
+
.addGroup('integrations', `${I18N$2}.group.nav-title`, `${I18N$2}.group.description`, 'fa-light fa-plug', `${I18N$2}.group.title`, 45)
|
|
383
396
|
.endGroup();
|
|
384
397
|
}
|
|
385
398
|
}
|
|
386
399
|
//#endregion
|
|
387
400
|
|
|
388
|
-
const I18N = '@integration-management:settings.domains.other';
|
|
401
|
+
const I18N$1 = '@integration-management:settings.domains.other';
|
|
389
402
|
/** Fallback domain for connectors not yet assigned to a first-class integration domain. */
|
|
390
403
|
class AXMIntegrationLegacyDomainProvider {
|
|
391
404
|
async provide(context) {
|
|
392
405
|
context.register({
|
|
393
406
|
id: 'other',
|
|
394
407
|
module: RootConfig.module.name,
|
|
395
|
-
displayName: `${I18N}.title`,
|
|
396
|
-
description: `${I18N}.description`,
|
|
408
|
+
displayName: `${I18N$1}.title`,
|
|
409
|
+
description: `${I18N$1}.description`,
|
|
397
410
|
icon: 'fa-light fa-plug',
|
|
398
411
|
category: AXP_INTEGRATION_CATEGORY.Other,
|
|
399
412
|
capabilities: [],
|
|
@@ -564,7 +577,7 @@ function integrationManagementRoutesFactory() {
|
|
|
564
577
|
children: [
|
|
565
578
|
{
|
|
566
579
|
path: '',
|
|
567
|
-
loadComponent: () => import('./acorex-platform-module-integration-management-client-integrations-page.component-
|
|
580
|
+
loadComponent: () => import('./acorex-platform-module-integration-management-client-integrations-page.component-BUQG6o29.mjs').then((c) => c.AXMIntegrationsPageComponent),
|
|
568
581
|
data: { reuse: true },
|
|
569
582
|
},
|
|
570
583
|
],
|
|
@@ -577,12 +590,12 @@ const integrationOAuthCallbackRoutes = [
|
|
|
577
590
|
// App-agnostic callback first — must win over `:appName/...` (else appName="integrations").
|
|
578
591
|
{
|
|
579
592
|
path: 'integrations/oauth/callback/:providerId',
|
|
580
|
-
loadComponent: () => import('./acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-
|
|
593
|
+
loadComponent: () => import('./acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-iBh2QP2t.mjs').then((c) => c.AXMIntegrationOAuthCallbackPageComponent),
|
|
581
594
|
},
|
|
582
595
|
// Legacy app-prefixed callback (older provider redirect URI configs).
|
|
583
596
|
{
|
|
584
597
|
path: ':appName/integrations/oauth/callback/:providerId',
|
|
585
|
-
loadComponent: () => import('./acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-
|
|
598
|
+
loadComponent: () => import('./acorex-platform-module-integration-management-client-integration-oauth-callback-page.component-iBh2QP2t.mjs').then((c) => c.AXMIntegrationOAuthCallbackPageComponent),
|
|
586
599
|
},
|
|
587
600
|
];
|
|
588
601
|
|
|
@@ -608,7 +621,7 @@ const AXMIntegrationRefFilterWidget = {
|
|
|
608
621
|
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
609
622
|
components: {
|
|
610
623
|
edit: {
|
|
611
|
-
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-
|
|
624
|
+
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-Dy9tVipC.mjs').then((c) => c.AXMIntegrationRefFilterWidgetEditComponent),
|
|
612
625
|
},
|
|
613
626
|
},
|
|
614
627
|
};
|
|
@@ -633,10 +646,10 @@ const AXMIntegrationRefWidget = {
|
|
|
633
646
|
properties: [],
|
|
634
647
|
components: {
|
|
635
648
|
column: {
|
|
636
|
-
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-widget-column.component-
|
|
649
|
+
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-widget-column.component-DoLD_v28.mjs').then((c) => c.AXMIntegrationRefWidgetColumnComponent),
|
|
637
650
|
},
|
|
638
651
|
view: {
|
|
639
|
-
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-widget-view.component-
|
|
652
|
+
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-widget-view.component-CP2UnG1M.mjs').then((c) => c.AXMIntegrationRefWidgetViewComponent),
|
|
640
653
|
},
|
|
641
654
|
},
|
|
642
655
|
};
|
|
@@ -886,7 +899,7 @@ class AXMIntegrationRefPageComponentProvider {
|
|
|
886
899
|
return [
|
|
887
900
|
{
|
|
888
901
|
key: AXM_INTEGRATION_REF_PAGE_COMPONENT_KEY,
|
|
889
|
-
loader: () => import('./acorex-platform-module-integration-management-client-integration-ref-page.component-
|
|
902
|
+
loader: () => import('./acorex-platform-module-integration-management-client-integration-ref-page.component-BwvqmRou.mjs').then((m) => m.AXMIntegrationRefPageComponent),
|
|
890
903
|
},
|
|
891
904
|
];
|
|
892
905
|
}
|
|
@@ -964,41 +977,41 @@ class AXMIntegrationManagementModule {
|
|
|
964
977
|
provideCommandSetups([
|
|
965
978
|
{
|
|
966
979
|
key: AXMIntegrationManagementCommandKeys.ConnectionConnectWithCredentials,
|
|
967
|
-
command: () => import('./acorex-platform-module-integration-management-client-connect-with-credentials.command-
|
|
980
|
+
command: () => import('./acorex-platform-module-integration-management-client-connect-with-credentials.command-i8HJe3MA.mjs').then((c) => c.ConnectWithCredentialsCommand),
|
|
968
981
|
},
|
|
969
982
|
{
|
|
970
983
|
key: AXMIntegrationManagementCommandKeys.ConnectionDisconnect,
|
|
971
|
-
command: () => import('./acorex-platform-module-integration-management-client-disconnect-connection.command-
|
|
984
|
+
command: () => import('./acorex-platform-module-integration-management-client-disconnect-connection.command-DwgAYZvz.mjs').then((c) => c.DisconnectConnectionCommand),
|
|
972
985
|
},
|
|
973
986
|
{
|
|
974
987
|
key: AXMIntegrationManagementCommandKeys.ConnectionDelete,
|
|
975
|
-
command: () => import('./acorex-platform-module-integration-management-client-delete-connection.command-
|
|
988
|
+
command: () => import('./acorex-platform-module-integration-management-client-delete-connection.command-DXxr1N1S.mjs').then((c) => c.DeleteConnectionCommand),
|
|
976
989
|
},
|
|
977
990
|
{
|
|
978
991
|
key: AXMIntegrationManagementCommandKeys.ConnectionUpdate,
|
|
979
|
-
command: () => import('./acorex-platform-module-integration-management-client-update-connection.command-
|
|
992
|
+
command: () => import('./acorex-platform-module-integration-management-client-update-connection.command-B-WPsT5j.mjs').then((c) => c.UpdateConnectionCommand),
|
|
980
993
|
},
|
|
981
994
|
{
|
|
982
995
|
key: AXMIntegrationManagementCommandKeys.ConnectionValidate,
|
|
983
|
-
command: () => import('./acorex-platform-module-integration-management-client-validate-connection.command-
|
|
996
|
+
command: () => import('./acorex-platform-module-integration-management-client-validate-connection.command-D2QgFRTV.mjs').then((c) => c.ValidateConnectionCommand),
|
|
984
997
|
},
|
|
985
998
|
]),
|
|
986
999
|
provideQuerySetups([
|
|
987
1000
|
{
|
|
988
1001
|
key: AXMIntegrationManagementQueryKeys.DomainList,
|
|
989
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-domains.query
|
|
1002
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-domains.query-Ca1m9f4f.mjs').then((c) => c.ListDomainsQuery),
|
|
990
1003
|
},
|
|
991
1004
|
{
|
|
992
1005
|
key: AXMIntegrationManagementQueryKeys.ProviderList,
|
|
993
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-providers.query-
|
|
1006
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-providers.query-J5DtFS0C.mjs').then((c) => c.ListProvidersQuery),
|
|
994
1007
|
},
|
|
995
1008
|
{
|
|
996
1009
|
key: AXMIntegrationManagementQueryKeys.ProviderGet,
|
|
997
|
-
loader: () => import('./acorex-platform-module-integration-management-client-get-provider.query-
|
|
1010
|
+
loader: () => import('./acorex-platform-module-integration-management-client-get-provider.query-C6OAU1vi.mjs').then((c) => c.GetProviderQuery),
|
|
998
1011
|
},
|
|
999
1012
|
{
|
|
1000
1013
|
key: AXMIntegrationManagementQueryKeys.ConnectionListMine,
|
|
1001
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-my-connections.query-
|
|
1014
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-my-connections.query-DSeVnGtV.mjs').then((c) => c.ListMyConnectionsQuery),
|
|
1002
1015
|
},
|
|
1003
1016
|
]),
|
|
1004
1017
|
], imports: [CommonModule, AXPRuntimeModule, AXMIntegrationRefPluginModule] }); }
|
|
@@ -1055,50 +1068,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1055
1068
|
provideCommandSetups([
|
|
1056
1069
|
{
|
|
1057
1070
|
key: AXMIntegrationManagementCommandKeys.ConnectionConnectWithCredentials,
|
|
1058
|
-
command: () => import('./acorex-platform-module-integration-management-client-connect-with-credentials.command-
|
|
1071
|
+
command: () => import('./acorex-platform-module-integration-management-client-connect-with-credentials.command-i8HJe3MA.mjs').then((c) => c.ConnectWithCredentialsCommand),
|
|
1059
1072
|
},
|
|
1060
1073
|
{
|
|
1061
1074
|
key: AXMIntegrationManagementCommandKeys.ConnectionDisconnect,
|
|
1062
|
-
command: () => import('./acorex-platform-module-integration-management-client-disconnect-connection.command-
|
|
1075
|
+
command: () => import('./acorex-platform-module-integration-management-client-disconnect-connection.command-DwgAYZvz.mjs').then((c) => c.DisconnectConnectionCommand),
|
|
1063
1076
|
},
|
|
1064
1077
|
{
|
|
1065
1078
|
key: AXMIntegrationManagementCommandKeys.ConnectionDelete,
|
|
1066
|
-
command: () => import('./acorex-platform-module-integration-management-client-delete-connection.command-
|
|
1079
|
+
command: () => import('./acorex-platform-module-integration-management-client-delete-connection.command-DXxr1N1S.mjs').then((c) => c.DeleteConnectionCommand),
|
|
1067
1080
|
},
|
|
1068
1081
|
{
|
|
1069
1082
|
key: AXMIntegrationManagementCommandKeys.ConnectionUpdate,
|
|
1070
|
-
command: () => import('./acorex-platform-module-integration-management-client-update-connection.command-
|
|
1083
|
+
command: () => import('./acorex-platform-module-integration-management-client-update-connection.command-B-WPsT5j.mjs').then((c) => c.UpdateConnectionCommand),
|
|
1071
1084
|
},
|
|
1072
1085
|
{
|
|
1073
1086
|
key: AXMIntegrationManagementCommandKeys.ConnectionValidate,
|
|
1074
|
-
command: () => import('./acorex-platform-module-integration-management-client-validate-connection.command-
|
|
1087
|
+
command: () => import('./acorex-platform-module-integration-management-client-validate-connection.command-D2QgFRTV.mjs').then((c) => c.ValidateConnectionCommand),
|
|
1075
1088
|
},
|
|
1076
1089
|
]),
|
|
1077
1090
|
provideQuerySetups([
|
|
1078
1091
|
{
|
|
1079
1092
|
key: AXMIntegrationManagementQueryKeys.DomainList,
|
|
1080
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-domains.query
|
|
1093
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-domains.query-Ca1m9f4f.mjs').then((c) => c.ListDomainsQuery),
|
|
1081
1094
|
},
|
|
1082
1095
|
{
|
|
1083
1096
|
key: AXMIntegrationManagementQueryKeys.ProviderList,
|
|
1084
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-providers.query-
|
|
1097
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-providers.query-J5DtFS0C.mjs').then((c) => c.ListProvidersQuery),
|
|
1085
1098
|
},
|
|
1086
1099
|
{
|
|
1087
1100
|
key: AXMIntegrationManagementQueryKeys.ProviderGet,
|
|
1088
|
-
loader: () => import('./acorex-platform-module-integration-management-client-get-provider.query-
|
|
1101
|
+
loader: () => import('./acorex-platform-module-integration-management-client-get-provider.query-C6OAU1vi.mjs').then((c) => c.GetProviderQuery),
|
|
1089
1102
|
},
|
|
1090
1103
|
{
|
|
1091
1104
|
key: AXMIntegrationManagementQueryKeys.ConnectionListMine,
|
|
1092
|
-
loader: () => import('./acorex-platform-module-integration-management-client-list-my-connections.query-
|
|
1105
|
+
loader: () => import('./acorex-platform-module-integration-management-client-list-my-connections.query-DSeVnGtV.mjs').then((c) => c.ListMyConnectionsQuery),
|
|
1093
1106
|
},
|
|
1094
1107
|
]),
|
|
1095
1108
|
],
|
|
1096
1109
|
}]
|
|
1097
1110
|
}] });
|
|
1098
1111
|
|
|
1112
|
+
//#region ----- Imports -----
|
|
1113
|
+
//#endregion
|
|
1114
|
+
//#region ----- Constants -----
|
|
1115
|
+
const INTEGRATIONS_SETTINGS_GROUP = 'integrations';
|
|
1116
|
+
/** One section for every personal connection card (Telegram, WhatsApp, Jira, …). */
|
|
1117
|
+
const USER_CONNECTIONS_SECTION = 'user-connections';
|
|
1118
|
+
const I18N = '@integration-management:settings.section.connections';
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region ----- Section -----
|
|
1121
|
+
/**
|
|
1122
|
+
* Returns the shared user-connections section on the Integrations settings group.
|
|
1123
|
+
* The first caller creates it. Later callers append cards to the same section.
|
|
1124
|
+
*/
|
|
1125
|
+
function ensureUserIntegrationConnectionsSection(context) {
|
|
1126
|
+
if (!context.hasGroup(INTEGRATIONS_SETTINGS_GROUP)) {
|
|
1127
|
+
return null;
|
|
1128
|
+
}
|
|
1129
|
+
const integrations = context.group(INTEGRATIONS_SETTINGS_GROUP);
|
|
1130
|
+
const group = context.getGroup(INTEGRATIONS_SETTINGS_GROUP);
|
|
1131
|
+
if (!integrations || !group) {
|
|
1132
|
+
return null;
|
|
1133
|
+
}
|
|
1134
|
+
if (group.sections.some((section) => section.name === USER_CONNECTIONS_SECTION)) {
|
|
1135
|
+
return integrations.section(USER_CONNECTIONS_SECTION);
|
|
1136
|
+
}
|
|
1137
|
+
return integrations.addSection(USER_CONNECTIONS_SECTION, `${I18N}.title`, `${I18N}.description`);
|
|
1138
|
+
}
|
|
1139
|
+
//#endregion
|
|
1140
|
+
|
|
1099
1141
|
/**
|
|
1100
1142
|
* Generated bundle index. Do not edit.
|
|
1101
1143
|
*/
|
|
1102
1144
|
|
|
1103
|
-
export { AXMIntegrationConnectionManager, AXMIntegrationManagementModule, AXP_INTEGRATION_CREDENTIAL_MASK, hasConfiguredIntegrationCredentials, isMaskedIntegrationCredential, scrubDisconnectedConnectionConfig, toSafeIntegrationConnectionDto };
|
|
1145
|
+
export { AXMIntegrationConnectionManager, AXMIntegrationManagementModule, AXP_INTEGRATION_CREDENTIAL_MASK, ensureUserIntegrationConnectionsSection, hasConfiguredIntegrationCredentials, isMaskedIntegrationCredential, scrubDisconnectedConnectionConfig, toSafeIntegrationConnectionDto };
|
|
1104
1146
|
//# sourceMappingURL=acorex-platform-module-integration-management-client.mjs.map
|