@acorex/connectivity 21.0.0-next.8 → 21.0.0-next.85
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-connectivity-api-execute.command-SGNBLcOi.mjs → acorex-connectivity-api-execute.command-CjCFEav4.mjs} +18 -8
- package/fesm2022/acorex-connectivity-api-execute.command-CjCFEav4.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +196 -192
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-Btm13GJK.mjs +86927 -0
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-Btm13GJK.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-assign-to-manager.activity-CY_5d0KF.mjs +288 -0
- package/fesm2022/acorex-connectivity-mock-assign-to-manager.activity-CY_5d0KF.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs +200 -0
- package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs → acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs} +18 -17
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-chat-generate-image.command-Hj-2bHyJ.mjs +111 -0
- package/fesm2022/acorex-connectivity-mock-chat-generate-image.command-Hj-2bHyJ.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-chat-synthesize-speech.command-0ZnevjmT.mjs +121 -0
- package/fesm2022/acorex-connectivity-mock-chat-synthesize-speech.command-0ZnevjmT.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-chat-transcribe-speech.command-D8sCgp69.mjs +121 -0
- package/fesm2022/acorex-connectivity-mock-chat-transcribe-speech.command-D8sCgp69.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-check-permission.activity-vr3OHtjC.mjs +45 -0
- package/fesm2022/acorex-connectivity-mock-check-permission.activity-vr3OHtjC.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-contact-core.module-5TLCGWOR.mjs +968 -0
- package/fesm2022/acorex-connectivity-mock-contact-core.module-5TLCGWOR.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-content-management.module-GQdqKsPB.mjs +16 -0
- package/fesm2022/acorex-connectivity-mock-content-management.module-GQdqKsPB.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs → acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs} +29 -14
- package/fesm2022/acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-entity-create.activity-CdoUzUvF.mjs +67 -0
- package/fesm2022/acorex-connectivity-mock-entity-create.activity-CdoUzUvF.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-entity-delete.activity-ErEN1c24.mjs +60 -0
- package/fesm2022/acorex-connectivity-mock-entity-delete.activity-ErEN1c24.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-entity-read.activity-1fJW8gVe.mjs +67 -0
- package/fesm2022/acorex-connectivity-mock-entity-read.activity-1fJW8gVe.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-entity-update.activity-06HTKiQQ.mjs +68 -0
- package/fesm2022/acorex-connectivity-mock-entity-update.activity-06HTKiQQ.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-extract-document-text.command-nGfUTSf6.mjs +64 -0
- package/fesm2022/acorex-connectivity-mock-extract-document-text.command-nGfUTSf6.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-application-versions-chart-data.query-C3eQfF0A.mjs → acorex-connectivity-mock-get-application-versions-chart-data.query-DwVuYuKx.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-DwVuYuKx.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-application-versions-timeline.query-CLzDz9ob.mjs → acorex-connectivity-mock-get-application-versions-timeline.query-sFKYynZA.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-sFKYynZA.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-current-session-user.activity-CsmxwXsM.mjs +39 -0
- package/fesm2022/acorex-connectivity-mock-get-current-session-user.activity-CsmxwXsM.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-current-user-manager.activity-C1mj2bgB.mjs +69 -0
- package/fesm2022/acorex-connectivity-mock-get-current-user-manager.activity-C1mj2bgB.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs +214 -0
- package/fesm2022/acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs +209 -0
- package/fesm2022/acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-D7DBzLT-.mjs +186 -0
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-D7DBzLT-.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-product-list.query-ChtYlSTt.mjs → acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs} +111 -14
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-Cp65_mpB.mjs +192 -0
- package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-Cp65_mpB.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-subscriptions-chart-data.query-HxX_bCT8.mjs → acorex-connectivity-mock-get-subscriptions-chart-data.query-CkQnH-F_.mjs} +5 -5
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-CkQnH-F_.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-subscriptions-timeline.query-dp08JqLP.mjs → acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs} +92 -14
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-tenant-application-access.query-IATTXcAV.mjs → acorex-connectivity-mock-get-tenant-application-access.query-t4BHU8qk.mjs} +92 -14
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-t4BHU8qk.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-chart-data.query-DlXi4Rcg.mjs → acorex-connectivity-mock-get-tenant-registration-chart-data.query-CgMZxfzh.mjs} +5 -5
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-CgMZxfzh.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-timeline.query-hskw8Ioa.mjs → acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs} +92 -14
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-tenant-user-distribution.query-Bs5U5tze.mjs → acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs} +92 -14
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-if.activity-DvzuhItL.mjs +35 -0
- package/fesm2022/acorex-connectivity-mock-if.activity-DvzuhItL.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-notification-management-email-send.command-DAQfIWoD.mjs +73 -0
- package/fesm2022/acorex-connectivity-mock-notification-management-email-send.command-DAQfIWoD.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs +56 -0
- package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-CkH5bmEs.mjs → acorex-connectivity-mock-sample.command-CJmDL4pL.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-sample.command-CJmDL4pL.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-structured-text-completion.command-l31pjl9-.mjs +38 -0
- package/fesm2022/acorex-connectivity-mock-structured-text-completion.command-l31pjl9-.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-user-roles-for-list-column.query-D2QjJXu4.mjs +30 -0
- package/fesm2022/acorex-connectivity-mock-user-roles-for-list-column.query-D2QjJXu4.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +2 -50419
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +7 -7
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
- package/fesm2022/acorex-connectivity.mjs.map +1 -1
- package/package.json +8 -7
- package/{api/index.d.ts → types/acorex-connectivity-api.d.ts} +14 -60
- package/types/acorex-connectivity-mock.d.ts +4224 -0
- package/fesm2022/acorex-connectivity-api-execute.command-SGNBLcOi.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-C3eQfF0A.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-CLzDz9ob.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-DDVVFeYN.mjs +0 -97
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-DDVVFeYN.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-ChtYlSTt.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-HxX_bCT8.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-dp08JqLP.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-IATTXcAV.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-DlXi4Rcg.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-hskw8Ioa.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-Bs5U5tze.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map +0 -1
- package/mock/index.d.ts +0 -2669
- /package/{utils/index.d.ts → types/acorex-connectivity-utils.d.ts} +0 -0
- /package/{index.d.ts → types/acorex-connectivity.d.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AXP_ROOT_CONFIG_TOKEN, AXPFilterOperatorMiddlewareService, AXPFileStorageService
|
|
1
|
+
import { AXP_ROOT_CONFIG_TOKEN, AXPFilterOperatorMiddlewareService, AXPFileStorageService } from '@acorex/platform/common';
|
|
2
|
+
import { computeEntityAggregates, AXPEntityService, AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
|
2
3
|
import * as i1 from '@angular/common/http';
|
|
3
4
|
import { HttpParams, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
4
5
|
import * as i0 from '@angular/core';
|
|
@@ -7,18 +8,18 @@ import { kebabCase } from 'lodash-es';
|
|
|
7
8
|
import { firstValueFrom, catchError, of, BehaviorSubject, tap, filter, take, switchMap } from 'rxjs';
|
|
8
9
|
import * as i2 from '@acorex/platform/auth';
|
|
9
10
|
import { AXPAuthStrategy, AXPSessionService, JwtUtil, TimeUtil, PkceUtil, AXPAuthModule, AXP_TENANT_LOADER, AXP_APPLICATION_LOADER, AXP_PERMISSION_LOADER, AXP_FEATURE_LOADER } from '@acorex/platform/auth';
|
|
10
|
-
import { AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
|
11
11
|
import { AXP_USER_AVATAR_PROVIDER } from '@acorex/platform/layout/components';
|
|
12
12
|
import { STRATEGY_CONFIG_TOKEN } from '@acorex/platform/layout/widgets';
|
|
13
13
|
import * as i1$1 from 'angular-oauth2-oidc';
|
|
14
14
|
import { OAuthService, OAuthModule } from 'angular-oauth2-oidc';
|
|
15
|
+
import { AXPFileStorageStatus } from '@acorex/platform/contracts';
|
|
15
16
|
import { AXM_AUTH_CONFIG_TOKEN } from '@acorex/modules/auth';
|
|
16
17
|
import { Router } from '@angular/router';
|
|
17
|
-
import {
|
|
18
|
+
import { RootConfig } from '@acorex/modules/security-management';
|
|
18
19
|
import { AXPDataGenerator } from '@acorex/platform/core';
|
|
19
20
|
import { AXCUtilsModule, AXCExternalAuthorizationService } from '@acorex/connectivity/utils';
|
|
20
21
|
import { AXPRuntimeModule, provideCommandSetups } from '@acorex/platform/runtime';
|
|
21
|
-
import {
|
|
22
|
+
import { AXPReportViewerService } from '@acorex/modules/report-management';
|
|
22
23
|
|
|
23
24
|
class AXCApiEntityStorageService {
|
|
24
25
|
constructor(http) {
|
|
@@ -29,6 +30,9 @@ class AXCApiEntityStorageService {
|
|
|
29
30
|
// API routing constants
|
|
30
31
|
this.API_VERSION = 'v1';
|
|
31
32
|
this.DEFAULT_AREA = 'global';
|
|
33
|
+
this.defaultQueryAllPageSize = 500;
|
|
34
|
+
this.defaultQueryAllMaxRows = 100_000;
|
|
35
|
+
this.defaultAggregateMaxRows = 50_000;
|
|
32
36
|
}
|
|
33
37
|
get dbName() {
|
|
34
38
|
return 'ACoreXPlatform';
|
|
@@ -79,7 +83,7 @@ class AXCApiEntityStorageService {
|
|
|
79
83
|
async deleteOne(entityName, id) {
|
|
80
84
|
const routeElement = await this.getConfigEntity(entityName);
|
|
81
85
|
const url = `${this.mainUrl}/${routeElement.version}/${routeElement.area}/${routeElement.module}/${routeElement.entity}/${id}`;
|
|
82
|
-
firstValueFrom(this.http.delete(url));
|
|
86
|
+
await firstValueFrom(this.http.delete(url));
|
|
83
87
|
}
|
|
84
88
|
async insertOne(entityName, entityItem) {
|
|
85
89
|
const routeElement = await this.getConfigEntity(entityName);
|
|
@@ -91,7 +95,9 @@ class AXCApiEntityStorageService {
|
|
|
91
95
|
}
|
|
92
96
|
async query(entityName, request) {
|
|
93
97
|
const routeElement = await this.getConfigEntity(entityName);
|
|
94
|
-
let httpParams = new HttpParams()
|
|
98
|
+
let httpParams = new HttpParams()
|
|
99
|
+
.set('Skip', String(request.skip ?? 0))
|
|
100
|
+
.set('Take', String(request.take ?? 0));
|
|
95
101
|
if (request?.sort && request?.sort.length > 0) {
|
|
96
102
|
const sortParam = request?.sort.map((sort) => `${sort.field}:${sort.dir}`).join(',');
|
|
97
103
|
httpParams = httpParams.set('$orderby', sortParam);
|
|
@@ -140,10 +146,91 @@ class AXCApiEntityStorageService {
|
|
|
140
146
|
};
|
|
141
147
|
});
|
|
142
148
|
}
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
async count(entityName, request) {
|
|
150
|
+
const page = await this.query(entityName, { ...request, skip: 0, take: 1 });
|
|
151
|
+
return page.total;
|
|
152
|
+
}
|
|
153
|
+
async queryAll(entityName, request, options) {
|
|
154
|
+
const pageSize = options?.pageSize ?? this.defaultQueryAllPageSize;
|
|
155
|
+
const maxRows = options?.maxRows ?? this.defaultQueryAllMaxRows;
|
|
156
|
+
const items = [];
|
|
157
|
+
let skip = 0;
|
|
158
|
+
let total = 0;
|
|
159
|
+
while (items.length < maxRows) {
|
|
160
|
+
const take = Math.min(pageSize, maxRows - items.length);
|
|
161
|
+
const page = await this.query(entityName, {
|
|
162
|
+
filter: request.filter,
|
|
163
|
+
sort: request.sort,
|
|
164
|
+
skip,
|
|
165
|
+
take,
|
|
166
|
+
});
|
|
167
|
+
total = page.total;
|
|
168
|
+
if (!page.items?.length) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
items.push(...page.items);
|
|
172
|
+
skip += page.items.length;
|
|
173
|
+
if (page.items.length < take || skip >= total) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
items,
|
|
179
|
+
total,
|
|
180
|
+
truncated: total > items.length,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
async getMany(entityName, ids) {
|
|
184
|
+
return Promise.all(ids.map(async (id) => {
|
|
185
|
+
try {
|
|
186
|
+
const row = await this.getOne(entityName, id);
|
|
187
|
+
return row ?? null;
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
async exists(entityName, id) {
|
|
195
|
+
try {
|
|
196
|
+
await this.getOne(entityName, id);
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
async upsertOne(entityName, entity, options) {
|
|
204
|
+
const id = entity?.id;
|
|
205
|
+
if (id) {
|
|
206
|
+
try {
|
|
207
|
+
const existing = await this.getOne(entityName, id);
|
|
208
|
+
if (existing != null) {
|
|
209
|
+
const merge = options?.merge !== false;
|
|
210
|
+
const next = merge
|
|
211
|
+
? { ...existing, ...entity }
|
|
212
|
+
: { ...entity };
|
|
213
|
+
const { id: _omit, ...patch } = next;
|
|
214
|
+
await this.updateOne(entityName, id, patch);
|
|
215
|
+
return id;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
/* create when GET fails (e.g. 404) */
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return this.insertOne(entityName, entity);
|
|
223
|
+
}
|
|
224
|
+
async aggregate(entityName, request, options) {
|
|
225
|
+
const maxRows = options?.maxRows ?? this.defaultAggregateMaxRows;
|
|
226
|
+
const pageSize = options?.pageSize ?? this.defaultQueryAllPageSize;
|
|
227
|
+
const { items } = await this.queryAll(entityName, request, { maxRows, pageSize });
|
|
228
|
+
return { rows: computeEntityAggregates(items, request) };
|
|
229
|
+
}
|
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiEntityStorageService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
231
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiEntityStorageService }); }
|
|
145
232
|
}
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiEntityStorageService, decorators: [{
|
|
147
234
|
type: Injectable
|
|
148
235
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
149
236
|
|
|
@@ -290,10 +377,10 @@ class AXCFileStorageApiService extends AXPFileStorageService {
|
|
|
290
377
|
// Silently fail in fallback mode
|
|
291
378
|
}
|
|
292
379
|
}
|
|
293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
380
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCFileStorageApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
381
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCFileStorageApiService }); }
|
|
295
382
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCFileStorageApiService, decorators: [{
|
|
297
384
|
type: Injectable
|
|
298
385
|
}] });
|
|
299
386
|
|
|
@@ -343,10 +430,10 @@ class AXMOidcApplicationLoader {
|
|
|
343
430
|
// features: item.features || [],
|
|
344
431
|
};
|
|
345
432
|
}
|
|
346
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
347
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcApplicationLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
434
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcApplicationLoader }); }
|
|
348
435
|
}
|
|
349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcApplicationLoader, decorators: [{
|
|
350
437
|
type: Injectable
|
|
351
438
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
352
439
|
|
|
@@ -386,10 +473,10 @@ class AXMConfigurationService {
|
|
|
386
473
|
switchMap(() => of(this.applicationConfig)));
|
|
387
474
|
}
|
|
388
475
|
}
|
|
389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
390
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
476
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
477
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMConfigurationService, providedIn: 'root' }); }
|
|
391
478
|
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMConfigurationService, decorators: [{
|
|
393
480
|
type: Injectable,
|
|
394
481
|
args: [{
|
|
395
482
|
providedIn: 'root',
|
|
@@ -762,10 +849,10 @@ class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
762
849
|
get name() {
|
|
763
850
|
return 'oidc';
|
|
764
851
|
}
|
|
765
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
766
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
852
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCAPIOidcStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
853
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCAPIOidcStrategy }); }
|
|
767
854
|
}
|
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCAPIOidcStrategy, decorators: [{
|
|
769
856
|
type: Injectable
|
|
770
857
|
}] });
|
|
771
858
|
|
|
@@ -791,10 +878,10 @@ class AXMOidcPermissionLoader {
|
|
|
791
878
|
const truePolicies = Object.keys(policies).filter((key) => policies[key] === true);
|
|
792
879
|
return truePolicies;
|
|
793
880
|
}
|
|
794
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
795
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcPermissionLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
882
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcPermissionLoader }); }
|
|
796
883
|
}
|
|
797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcPermissionLoader, decorators: [{
|
|
798
885
|
type: Injectable
|
|
799
886
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
800
887
|
|
|
@@ -821,16 +908,17 @@ class AXMOidcTenantLoader {
|
|
|
821
908
|
// Add other fields and defaults as needed, and handle the logo if applicable
|
|
822
909
|
};
|
|
823
910
|
}
|
|
824
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
825
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
911
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcTenantLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
912
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcTenantLoader }); }
|
|
826
913
|
}
|
|
827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOidcTenantLoader, decorators: [{
|
|
828
915
|
type: Injectable
|
|
829
916
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
830
917
|
|
|
831
918
|
class AXCApiUserAvatarProvider {
|
|
832
919
|
constructor() {
|
|
833
|
-
this.
|
|
920
|
+
this.entityService = inject(AXPEntityService);
|
|
921
|
+
this.userService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.users.name).data();
|
|
834
922
|
this.sessionService = inject(AXPSessionService);
|
|
835
923
|
}
|
|
836
924
|
async provide(userId) {
|
|
@@ -850,7 +938,7 @@ class AXCApiUserAvatarProvider {
|
|
|
850
938
|
};
|
|
851
939
|
}
|
|
852
940
|
// Use entity service for other users
|
|
853
|
-
const user = await this.userService.
|
|
941
|
+
const user = await this.userService.byKey(userId);
|
|
854
942
|
if (!user) {
|
|
855
943
|
throw new Error(`User not found for ${userId}`);
|
|
856
944
|
}
|
|
@@ -866,15 +954,24 @@ class AXCApiUserAvatarProvider {
|
|
|
866
954
|
}
|
|
867
955
|
}
|
|
868
956
|
|
|
957
|
+
//#region ---- Imports ----
|
|
869
958
|
//#endregion
|
|
870
|
-
|
|
871
|
-
|
|
959
|
+
/**
|
|
960
|
+
* API-based Report Viewer Service
|
|
961
|
+
* Extends the base service to override data loading methods with API calls
|
|
962
|
+
*/
|
|
963
|
+
class AXCReportViewerApiService extends AXPReportViewerService {
|
|
872
964
|
constructor() {
|
|
965
|
+
super(...arguments);
|
|
873
966
|
this.http = inject(HttpClient);
|
|
874
967
|
this.configs = inject(AXP_ROOT_CONFIG_TOKEN);
|
|
875
968
|
this.baseUrl = this.configs.baseUrl;
|
|
876
969
|
}
|
|
877
|
-
|
|
970
|
+
//#region ---- Override: Category Loading ----
|
|
971
|
+
/**
|
|
972
|
+
* Override: Load categories from API instead of entity service
|
|
973
|
+
*/
|
|
974
|
+
async loadCategories(parentId) {
|
|
878
975
|
try {
|
|
879
976
|
let url;
|
|
880
977
|
if (parentId) {
|
|
@@ -898,50 +995,12 @@ class AXCReportCategoryApiProvider {
|
|
|
898
995
|
return [];
|
|
899
996
|
}
|
|
900
997
|
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
// Fallback: search in all categories
|
|
908
|
-
const allUrl = `${this.baseUrl}/v1/global/report-management/category`;
|
|
909
|
-
const params = { Skip: 0, Take: 1000 };
|
|
910
|
-
const allResponse = await firstValueFrom(this.http.get(allUrl, { params }));
|
|
911
|
-
const all = allResponse.items ?? [];
|
|
912
|
-
const found = all.find((c) => c.id === id);
|
|
913
|
-
return found ? this.mapApiCategoryToReportCategory(found) : undefined;
|
|
914
|
-
}
|
|
915
|
-
return this.mapApiCategoryToReportCategory(apiItem);
|
|
916
|
-
}
|
|
917
|
-
catch (error) {
|
|
918
|
-
console.error('Error fetching report category by ID:', error);
|
|
919
|
-
return undefined;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
mapApiCategoryToReportCategory(apiItem) {
|
|
923
|
-
return {
|
|
924
|
-
id: apiItem.id,
|
|
925
|
-
title: apiItem.title,
|
|
926
|
-
description: apiItem.description || undefined,
|
|
927
|
-
parentId: apiItem.reportCategoryParentId || undefined,
|
|
928
|
-
childrenCount: apiItem.folderCount ?? 0,
|
|
929
|
-
itemsCount: apiItem.itemCount ?? 0,
|
|
930
|
-
};
|
|
931
|
-
}
|
|
932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportCategoryApiProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
933
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportCategoryApiProvider }); }
|
|
934
|
-
}
|
|
935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportCategoryApiProvider, decorators: [{
|
|
936
|
-
type: Injectable
|
|
937
|
-
}] });
|
|
938
|
-
class AXCReportDefinitionApiProvider {
|
|
939
|
-
constructor() {
|
|
940
|
-
this.http = inject(HttpClient);
|
|
941
|
-
this.configs = inject(AXP_ROOT_CONFIG_TOKEN);
|
|
942
|
-
this.baseUrl = this.configs.baseUrl;
|
|
943
|
-
}
|
|
944
|
-
async getList(categoryId) {
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region ---- Override: Report Loading ----
|
|
1000
|
+
/**
|
|
1001
|
+
* Override: Load reports from API instead of entity service
|
|
1002
|
+
*/
|
|
1003
|
+
async loadReports(categoryId) {
|
|
945
1004
|
try {
|
|
946
1005
|
const url = `${this.baseUrl}/v1/global/report-management/category/${categoryId}`;
|
|
947
1006
|
const response = await firstValueFrom(this.http.get(url));
|
|
@@ -966,7 +1025,10 @@ class AXCReportDefinitionApiProvider {
|
|
|
966
1025
|
return [];
|
|
967
1026
|
}
|
|
968
1027
|
}
|
|
969
|
-
|
|
1028
|
+
/**
|
|
1029
|
+
* Override: Load single report from API instead of entity service
|
|
1030
|
+
*/
|
|
1031
|
+
async loadReport(id) {
|
|
970
1032
|
try {
|
|
971
1033
|
const url = `${this.baseUrl}/v1/global/report-management/report/${id}`;
|
|
972
1034
|
const response = await firstValueFrom(this.http.get(url));
|
|
@@ -977,6 +1039,33 @@ class AXCReportDefinitionApiProvider {
|
|
|
977
1039
|
return undefined;
|
|
978
1040
|
}
|
|
979
1041
|
}
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region ---- Override: Report Execution ----
|
|
1044
|
+
/**
|
|
1045
|
+
* Override: Execute report with given context
|
|
1046
|
+
* Implements report execution logic for API environment
|
|
1047
|
+
* TODO: Implement API call to execute report
|
|
1048
|
+
*/
|
|
1049
|
+
async executeReport(context) {
|
|
1050
|
+
// TODO: Implement API call to execute report
|
|
1051
|
+
// Example:
|
|
1052
|
+
// const url = `${this.baseUrl}/v1/global/report-management/report/${context.reportId}/execute`;
|
|
1053
|
+
// const response = await firstValueFrom(this.http.post<AXPExecutionReportCommandResult>(url, context));
|
|
1054
|
+
// return response;
|
|
1055
|
+
throw new Error('executeReport API implementation is not yet implemented');
|
|
1056
|
+
}
|
|
1057
|
+
//#endregion
|
|
1058
|
+
//#region ---- Private: Mapping Methods ----
|
|
1059
|
+
mapApiCategoryToReportCategory(apiItem) {
|
|
1060
|
+
return {
|
|
1061
|
+
id: apiItem.id,
|
|
1062
|
+
title: apiItem.title,
|
|
1063
|
+
description: apiItem.description || undefined,
|
|
1064
|
+
parentId: apiItem.reportCategoryParentId || undefined,
|
|
1065
|
+
childrenCount: apiItem.folderCount ?? 0,
|
|
1066
|
+
itemsCount: apiItem.itemCount ?? 0,
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
980
1069
|
mapApiReportDefinitionItemToReportDefinition(apiItem) {
|
|
981
1070
|
return {
|
|
982
1071
|
id: apiItem.id,
|
|
@@ -1019,52 +1108,47 @@ class AXCReportDefinitionApiProvider {
|
|
|
1019
1108
|
defaultLayoutId: apiResponse.defaultLayoutId,
|
|
1020
1109
|
};
|
|
1021
1110
|
}
|
|
1022
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1023
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportViewerApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1112
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportViewerApiService, providedIn: 'root' }); }
|
|
1024
1113
|
}
|
|
1025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1026
|
-
type: Injectable
|
|
1114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportViewerApiService, decorators: [{
|
|
1115
|
+
type: Injectable,
|
|
1116
|
+
args: [{
|
|
1117
|
+
providedIn: 'root',
|
|
1118
|
+
}]
|
|
1027
1119
|
}] });
|
|
1028
|
-
//#endregion
|
|
1029
|
-
//#region ---- Provider Exports ----
|
|
1030
|
-
const AXC_REPORT_CATEGORY_API_PROVIDER = {
|
|
1031
|
-
provide: AXP_REPORT_CATEGORY_PROVIDER,
|
|
1032
|
-
useClass: AXCReportCategoryApiProvider,
|
|
1033
|
-
multi: true,
|
|
1034
|
-
};
|
|
1035
|
-
const AXC_REPORT_DEFINITION_API_PROVIDER = {
|
|
1036
|
-
provide: AXP_REPORT_DEFINITION_PROVIDER,
|
|
1037
|
-
useClass: AXCReportDefinitionApiProvider,
|
|
1038
|
-
multi: true,
|
|
1039
|
-
};
|
|
1040
1120
|
|
|
1041
1121
|
class AXCReportManagementApiModule {
|
|
1042
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1043
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1044
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1045
|
-
|
|
1046
|
-
|
|
1122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportManagementApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1123
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXCReportManagementApiModule, imports: [AXPRuntimeModule] }); }
|
|
1124
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportManagementApiModule, providers: [
|
|
1125
|
+
{
|
|
1126
|
+
provide: AXPReportViewerService,
|
|
1127
|
+
useClass: AXCReportViewerApiService,
|
|
1128
|
+
},
|
|
1047
1129
|
provideCommandSetups([
|
|
1048
1130
|
{
|
|
1049
1131
|
key: 'ReportManagement.Report:Execute',
|
|
1050
|
-
command: () => import('./acorex-connectivity-api-execute.command-
|
|
1132
|
+
command: () => import('./acorex-connectivity-api-execute.command-CjCFEav4.mjs').then((c) => c.AXCReportExecuteCommand),
|
|
1051
1133
|
}
|
|
1052
1134
|
]),
|
|
1053
1135
|
], imports: [AXPRuntimeModule] }); }
|
|
1054
1136
|
}
|
|
1055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCReportManagementApiModule, decorators: [{
|
|
1056
1138
|
type: NgModule,
|
|
1057
1139
|
args: [{
|
|
1058
1140
|
imports: [AXPRuntimeModule],
|
|
1059
1141
|
exports: [],
|
|
1060
1142
|
declarations: [],
|
|
1061
1143
|
providers: [
|
|
1062
|
-
|
|
1063
|
-
|
|
1144
|
+
{
|
|
1145
|
+
provide: AXPReportViewerService,
|
|
1146
|
+
useClass: AXCReportViewerApiService,
|
|
1147
|
+
},
|
|
1064
1148
|
provideCommandSetups([
|
|
1065
1149
|
{
|
|
1066
1150
|
key: 'ReportManagement.Report:Execute',
|
|
1067
|
-
command: () => import('./acorex-connectivity-api-execute.command-
|
|
1151
|
+
command: () => import('./acorex-connectivity-api-execute.command-CjCFEav4.mjs').then((c) => c.AXCReportExecuteCommand),
|
|
1068
1152
|
}
|
|
1069
1153
|
]),
|
|
1070
1154
|
],
|
|
@@ -1072,10 +1156,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
1072
1156
|
}] });
|
|
1073
1157
|
|
|
1074
1158
|
class AXCApiModule {
|
|
1075
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1076
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1160
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXCApiModule, imports: [i1$1.OAuthModule, i2.AXPAuthModule, AXCUtilsModule,
|
|
1077
1161
|
AXCReportManagementApiModule] }); }
|
|
1078
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1162
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiModule, providers: [
|
|
1079
1163
|
{
|
|
1080
1164
|
provide: AXPEntityStorageService,
|
|
1081
1165
|
useClass: AXCApiEntityStorageService,
|
|
@@ -1118,7 +1202,7 @@ class AXCApiModule {
|
|
|
1118
1202
|
AXCUtilsModule,
|
|
1119
1203
|
AXCReportManagementApiModule] }); }
|
|
1120
1204
|
}
|
|
1121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXCApiModule, decorators: [{
|
|
1122
1206
|
type: NgModule,
|
|
1123
1207
|
args: [{
|
|
1124
1208
|
imports: [
|
|
@@ -1433,99 +1517,19 @@ class APIGoogleStrategy extends AXPAuthStrategy {
|
|
|
1433
1517
|
console.error('Authentication error:', error);
|
|
1434
1518
|
throw error;
|
|
1435
1519
|
}
|
|
1436
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1437
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1520
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: APIGoogleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1521
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: APIGoogleStrategy }); }
|
|
1438
1522
|
}
|
|
1439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: APIGoogleStrategy, decorators: [{
|
|
1440
1524
|
type: Injectable
|
|
1441
1525
|
}], ctorParameters: () => [] });
|
|
1442
1526
|
|
|
1443
|
-
//#region ----
|
|
1444
|
-
//#endregion
|
|
1445
|
-
//#region ---- API Providers ----
|
|
1446
|
-
class AXCSystemInsightReportCategoryApiProvider {
|
|
1447
|
-
constructor() {
|
|
1448
|
-
this.http = inject(HttpClient);
|
|
1449
|
-
}
|
|
1450
|
-
async getList(parentId) {
|
|
1451
|
-
try {
|
|
1452
|
-
// Call API to get report categories
|
|
1453
|
-
const params = {};
|
|
1454
|
-
if (parentId) {
|
|
1455
|
-
params.parentId = parentId;
|
|
1456
|
-
}
|
|
1457
|
-
const response = await firstValueFrom(this.http.get('/api/system-insight/report-categories', { params }));
|
|
1458
|
-
return response;
|
|
1459
|
-
}
|
|
1460
|
-
catch (error) {
|
|
1461
|
-
console.error('Failed to fetch system insight report categories from API:', error);
|
|
1462
|
-
return [];
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
async getById(id) {
|
|
1466
|
-
try {
|
|
1467
|
-
const response = await firstValueFrom(this.http.get(`/api/system-insight/report-categories/${id}`));
|
|
1468
|
-
return response;
|
|
1469
|
-
}
|
|
1470
|
-
catch (error) {
|
|
1471
|
-
console.error(`Failed to fetch system insight report category ${id} from API:`, error);
|
|
1472
|
-
return undefined;
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportCategoryApiProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1476
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportCategoryApiProvider }); }
|
|
1477
|
-
}
|
|
1478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportCategoryApiProvider, decorators: [{
|
|
1479
|
-
type: Injectable
|
|
1480
|
-
}] });
|
|
1481
|
-
class AXCSystemInsightReportDefinitionApiProvider {
|
|
1482
|
-
constructor() {
|
|
1483
|
-
this.http = inject(HttpClient);
|
|
1484
|
-
}
|
|
1485
|
-
async getList(categoryId) {
|
|
1486
|
-
try {
|
|
1487
|
-
const response = await firstValueFrom(this.http.get(`/api/system-insight/report-definitions`, {
|
|
1488
|
-
params: { categoryId }
|
|
1489
|
-
}));
|
|
1490
|
-
return response;
|
|
1491
|
-
}
|
|
1492
|
-
catch (error) {
|
|
1493
|
-
console.error(`Failed to fetch system insight report definitions for category ${categoryId} from API:`, error);
|
|
1494
|
-
return [];
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
async getById(id) {
|
|
1498
|
-
try {
|
|
1499
|
-
const response = await firstValueFrom(this.http.get(`/api/system-insight/report-definitions/${id}`));
|
|
1500
|
-
return response;
|
|
1501
|
-
}
|
|
1502
|
-
catch (error) {
|
|
1503
|
-
console.error(`Failed to fetch system insight report definition ${id} from API:`, error);
|
|
1504
|
-
return undefined;
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportDefinitionApiProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1508
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportDefinitionApiProvider }); }
|
|
1509
|
-
}
|
|
1510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCSystemInsightReportDefinitionApiProvider, decorators: [{
|
|
1511
|
-
type: Injectable
|
|
1512
|
-
}] });
|
|
1527
|
+
//#region ---- Execute Report DTO ----
|
|
1513
1528
|
//#endregion
|
|
1514
|
-
//#region ---- Provider Exports ----
|
|
1515
|
-
const AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_API_PROVIDER = {
|
|
1516
|
-
provide: AXP_REPORT_CATEGORY_PROVIDER,
|
|
1517
|
-
useClass: AXCSystemInsightReportCategoryApiProvider,
|
|
1518
|
-
multi: true,
|
|
1519
|
-
};
|
|
1520
|
-
const AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_API_PROVIDER = {
|
|
1521
|
-
provide: AXP_REPORT_DEFINITION_PROVIDER,
|
|
1522
|
-
useClass: AXCSystemInsightReportDefinitionApiProvider,
|
|
1523
|
-
multi: true,
|
|
1524
|
-
};
|
|
1525
1529
|
|
|
1526
1530
|
/**
|
|
1527
1531
|
* Generated bundle index. Do not edit.
|
|
1528
1532
|
*/
|
|
1529
1533
|
|
|
1530
|
-
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCApiUserAvatarProvider,
|
|
1534
|
+
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCApiUserAvatarProvider, AXCReportManagementApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
|
|
1531
1535
|
//# sourceMappingURL=acorex-connectivity-api.mjs.map
|