@acorex/connectivity 20.3.0-next.9 → 20.4.1
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-CP4cZ_5M.mjs → acorex-connectivity-api-execute.command-DW9Lro_P.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-api-execute.command-CP4cZ_5M.mjs.map → acorex-connectivity-api-execute.command-DW9Lro_P.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-api.mjs +47 -59
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs → acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs.map → acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs +49 -0
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-BtkzyYby.mjs → acorex-connectivity-mock-sample.command-BghxC3n0.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-mock-sample.command-BtkzyYby.mjs.map → acorex-connectivity-mock-sample.command-BghxC3n0.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +19011 -17233
- 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/mock/index.d.ts +240 -91
- package/package.json +6 -6
- package/fesm2022/acorex-connectivity-mock-employee-structure.queries-CchlfSox.mjs +0 -66
- package/fesm2022/acorex-connectivity-mock-employee-structure.queries-CchlfSox.mjs.map +0 -1
|
@@ -36,19 +36,19 @@ class AXCExternalAuthorizationService {
|
|
|
36
36
|
// Use window.location.assign to redirect
|
|
37
37
|
window.location.assign(authUrl);
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
40
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCExternalAuthorizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
40
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCExternalAuthorizationService }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCExternalAuthorizationService, decorators: [{
|
|
43
43
|
type: Injectable
|
|
44
44
|
}] });
|
|
45
45
|
|
|
46
46
|
class AXCUtilsModule {
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
48
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
49
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCUtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
48
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: AXCUtilsModule, imports: [CommonModule] }); }
|
|
49
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCUtilsModule, providers: [AXCExternalAuthorizationService], imports: [CommonModule] }); }
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXCUtilsModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-connectivity-utils.mjs","sources":["../tmp-esm2022/utils/lib/external-authorization.service.js","../tmp-esm2022/utils/lib/utils.module.js","../tmp-esm2022/utils/acorex-connectivity-utils.js"],"sourcesContent":["import { AXM_AUTH_CONFIG_TOKEN } from '@acorex/modules/auth';\nimport { PkceUtil } from '@acorex/platform/auth';\nimport { inject, Injectable } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXCExternalAuthorizationService {\n constructor() {\n this.configs = inject(AXM_AUTH_CONFIG_TOKEN);\n }\n async signin(providerName) {\n // Get provider configuration (optional, for validation)\n const providerConfig = this.configs?.externalProviders?.[providerName];\n if (!providerConfig) {\n throw new Error(`Provider '${providerName}' is not configured`);\n }\n // Get application configuration for OIDC\n const clientId = this.configs?.authConfig?.clientId || 'spa-client';\n const redirectUri = encodeURIComponent(`${window.location.origin}/auth/axp-oauth-callback`);\n const authorizeUrl = `${this.configs?.baseUrl}/connect/authorize`;\n // Centralized PKCE code verifier logic\n const codeVerifier = PkceUtil.generateRandomString(128);\n localStorage.setItem('pkce_code_verifier', codeVerifier);\n const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);\n // Build the authorization URL according to the required format\n const authUrl = `${authorizeUrl}` +\n `?response_type=code` +\n `&client_id=${clientId}` +\n `&redirect_uri=${redirectUri}` +\n `&scope=openid profile email` +\n `&code_challenge=${codeChallenge}` +\n `&code_challenge_method=S256` +\n `&prompt=login` +\n `&acr_values=${providerName}`;\n console.log('Redirecting to:', authUrl);\n // Use window.location.assign to redirect\n window.location.assign(authUrl);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCExternalAuthorizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCExternalAuthorizationService }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCExternalAuthorizationService, decorators: [{\n type: Injectable\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtYXV0aG9yaXphdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvdXRpbHMvc3JjL2xpYi9leHRlcm5hbC1hdXRob3JpemF0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFrQixNQUFNLHNCQUFzQixDQUFDO0FBQzdFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHbkQsTUFBTSxPQUFPLCtCQUErQjtJQUQ1QztRQUVVLFlBQU8sR0FBbUIsTUFBTSxDQUFpQixxQkFBcUIsQ0FBQyxDQUFDO0tBb0NqRjtJQWxDQyxLQUFLLENBQUMsTUFBTSxDQUFDLFlBQW9CO1FBQy9CLHdEQUF3RDtRQUN4RCxNQUFNLGNBQWMsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLENBQUMsWUFBWSxDQUFD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CZjb2RlX2NoYWxsZW5nZV9tZXRob2Q9UzI1NmAgK1xuICAgICAgYCZwcm9tcHQ9bG9naW5gICtcbiAgICAgIGAmYWNyX3ZhbHVlcz0ke3Byb3ZpZGVyTmFtZX1gO1xuXG4gICAgY29uc29sZS5sb2coJ1JlZGlyZWN0aW5nIHRvOicsIGF1dGhVcmwpO1xuXG4gICAgLy8gVXNlIHdpbmRvdy5sb2NhdGlvbi5hc3NpZ24gdG8gcmVkaXJlY3RcbiAgICB3aW5kb3cubG9jYXRpb24uYXNzaWduKGF1dGhVcmwpO1xuICB9XG59XG4iXX0=","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXCExternalAuthorizationService } from './external-authorization.service';\nimport * as i0 from \"@angular/core\";\nexport class AXCUtilsModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCUtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCUtilsModule, imports: [CommonModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCUtilsModule, providers: [AXCExternalAuthorizationService], imports: [CommonModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXCUtilsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n providers: [AXCExternalAuthorizationService],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvdXRpbHMvc3JjL2xpYi91dGlscy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7O0FBTW5GLE1BQU0sT0FBTyxjQUFjOzhHQUFkLGNBQWM7K0dBQWQsY0FBYyxZQUhmLFlBQVk7K0dBR1gsY0FBYyxhQUZkLENBQUMsK0JBQStCLENBQUMsWUFEbEMsWUFBWTs7MkZBR1gsY0FBYztrQkFKMUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLFNBQVMsRUFBRSxDQUFDLCtCQUErQixDQUFDO2lCQUM3QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhDRXh0ZXJuYWxBdXRob3JpemF0aW9uU2VydmljZSB9IGZyb20gJy4vZXh0ZXJuYWwtYXV0aG9yaXphdGlvbi5zZXJ2aWNlJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIHByb3ZpZGVyczogW0FYQ0V4dGVybmFsQXV0aG9yaXphdGlvblNlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBBWENVdGlsc01vZHVsZSB7fVxuIl19","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbm5lY3Rpdml0eS11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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connectivity-utils.mjs","sources":["../tmp-esm2022/utils/lib/external-authorization.service.js","../tmp-esm2022/utils/lib/utils.module.js","../tmp-esm2022/utils/acorex-connectivity-utils.js"],"sourcesContent":["import { AXM_AUTH_CONFIG_TOKEN } from '@acorex/modules/auth';\nimport { PkceUtil } from '@acorex/platform/auth';\nimport { inject, Injectable } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXCExternalAuthorizationService {\n constructor() {\n this.configs = inject(AXM_AUTH_CONFIG_TOKEN);\n }\n async signin(providerName) {\n // Get provider configuration (optional, for validation)\n const providerConfig = this.configs?.externalProviders?.[providerName];\n if (!providerConfig) {\n throw new Error(`Provider '${providerName}' is not configured`);\n }\n // Get application configuration for OIDC\n const clientId = this.configs?.authConfig?.clientId || 'spa-client';\n const redirectUri = encodeURIComponent(`${window.location.origin}/auth/axp-oauth-callback`);\n const authorizeUrl = `${this.configs?.baseUrl}/connect/authorize`;\n // Centralized PKCE code verifier logic\n const codeVerifier = PkceUtil.generateRandomString(128);\n localStorage.setItem('pkce_code_verifier', codeVerifier);\n const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);\n // Build the authorization URL according to the required format\n const authUrl = `${authorizeUrl}` +\n `?response_type=code` +\n `&client_id=${clientId}` +\n `&redirect_uri=${redirectUri}` +\n `&scope=openid profile email` +\n `&code_challenge=${codeChallenge}` +\n `&code_challenge_method=S256` +\n `&prompt=login` +\n `&acr_values=${providerName}`;\n console.log('Redirecting to:', authUrl);\n // Use window.location.assign to redirect\n window.location.assign(authUrl);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCExternalAuthorizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCExternalAuthorizationService }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCExternalAuthorizationService, decorators: [{\n type: Injectable\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtYXV0aG9yaXphdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvdXRpbHMvc3JjL2xpYi9leHRlcm5hbC1hdXRob3JpemF0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFrQixNQUFNLHNCQUFzQixDQUFDO0FBQzdFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHbkQsTUFBTSxPQUFPLCtCQUErQjtJQUQ1QztRQUVVLFlBQU8sR0FBbUIsTUFBTSxDQUFpQixxQkFBcUIsQ0FBQyxDQUFDO0tBb0NqRjtJQWxDQyxLQUFLLENBQUMsTUFBTSxDQUFDLFlBQW9CO1FBQy9CLHdEQUF3RDtRQUN4RCxNQUFNLGNBQWMsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDdkUsSUFBSSxDQUFDLGNBQWMsRUFBRSxDQUFDO1lBQ3BCLE1BQU0sSUFBSSxLQUFLLENBQUMsYUFBYSxZQUFZLHFCQUFxQixDQUFDLENBQUM7UUFDbEUsQ0FBQztRQUVELHlDQUF5QztRQUN6QyxNQUFNLFFBQVEsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLElBQUksWUFBWSxDQUFDO1FBQ3BFLE1BQU0sV0FBVyxHQU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G9jYXRpb24uYXNzaWduKGF1dGhVcmwpO1xuICB9XG59XG4iXX0=","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXCExternalAuthorizationService } from './external-authorization.service';\nimport * as i0 from \"@angular/core\";\nexport class AXCUtilsModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCUtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCUtilsModule, imports: [CommonModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCUtilsModule, providers: [AXCExternalAuthorizationService], imports: [CommonModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.4\", ngImport: i0, type: AXCUtilsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n providers: [AXCExternalAuthorizationService],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvdXRpbHMvc3JjL2xpYi91dGlscy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7O0FBTW5GLE1BQU0sT0FBTyxjQUFjOzhHQUFkLGNBQWM7K0dBQWQsY0FBYyxZQUhmLFlBQVk7K0dBR1gsY0FBYyxhQUZkLENBQUMsK0JBQStCLENBQUMsWUFEbEMsWUFBWTs7MkZBR1gsY0FBYztrQkFKMUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLFNBQVMsRUFBRSxDQUFDLCtCQUErQixDQUFDO2lCQUM3QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhDRXh0ZXJuYWxBdXRob3JpemF0aW9uU2VydmljZSB9IGZyb20gJy4vZXh0ZXJuYWwtYXV0aG9yaXphdGlvbi5zZXJ2aWNlJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIHByb3ZpZGVyczogW0FYQ0V4dGVybmFsQXV0aG9yaXphdGlvblNlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBBWENVdGlsc01vZHVsZSB7fVxuIl19","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbm5lY3Rpdml0eS11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29ubmVjdGl2aXR5L3V0aWxzL3NyYy9hY29yZXgtY29ubmVjdGl2aXR5LXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5c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AE,CAAC,CAAC;AAC/K,IAAI,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAC1J,IAAI,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,+BAA+B,CAAC,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AACxM;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC;AACxH,YAAY,IAAI,EAAE,QAAQ;AAC1B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,OAAO,EAAE,CAAC,YAAY,CAAC;AAC3C,oBAAoB,SAAS,EAAE,CAAC,+BAA+B,CAAC;AAChE,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACfb;AACA;AACA;;;;"}
|
package/mock/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
|
|
1
|
+
import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injector } from '@angular/core';
|
|
4
4
|
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
|
@@ -9,15 +9,16 @@ import { Router } from '@angular/router';
|
|
|
9
9
|
import { AXMAuthConfigs } from '@acorex/modules/auth';
|
|
10
10
|
import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
|
|
11
11
|
import Dexie, { Table } from 'dexie';
|
|
12
|
+
import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel, AXMApplicationManagementFeatureEntityModel, AXMApplicationManagementModuleEntityModel } from '@acorex/modules/application-management';
|
|
12
13
|
import * as _acorex_modules_report_management from '@acorex/modules/report-management';
|
|
13
14
|
import { AXPReportCategoryProvider, AXPReportCategory, AXPReportDefinitionProvider, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
|
|
14
|
-
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/
|
|
15
|
+
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
|
|
15
16
|
import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
|
|
16
17
|
import { AXMMetaDataDefinitionEntityModel } from '@acorex/modules/data-management';
|
|
17
18
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
|
18
19
|
import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
|
|
19
20
|
import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
|
|
20
|
-
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo } from '@acorex/platform/common';
|
|
21
|
+
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
|
|
21
22
|
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
|
|
22
23
|
|
|
23
24
|
declare class AXCCommonMockModule {
|
|
@@ -110,6 +111,12 @@ declare class AXCPlatformManagementMockModule {
|
|
|
110
111
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCPlatformManagementMockModule>;
|
|
111
112
|
}
|
|
112
113
|
|
|
114
|
+
declare class AXCApplicationManagementMockModule {
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationManagementMockModule, never>;
|
|
116
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApplicationManagementMockModule, never, never, never>;
|
|
117
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
|
|
118
|
+
}
|
|
119
|
+
|
|
113
120
|
declare class AXCTrainingManagementMockModule {
|
|
114
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTrainingManagementMockModule, never>;
|
|
115
122
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTrainingManagementMockModule, never, never, never>;
|
|
@@ -203,7 +210,7 @@ declare class AXCMiddlewaresModule {
|
|
|
203
210
|
declare class AXCMockModule {
|
|
204
211
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
205
212
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
|
206
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCMiddlewaresModule], never>;
|
|
213
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCMiddlewaresModule], never>;
|
|
207
214
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
|
208
215
|
}
|
|
209
216
|
|
|
@@ -306,85 +313,40 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
|
|
|
306
313
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCDexieEntityStorageService>;
|
|
307
314
|
}
|
|
308
315
|
|
|
309
|
-
declare const APPLICATIONS:
|
|
310
|
-
id: string;
|
|
311
|
-
name: string;
|
|
312
|
-
title: string;
|
|
313
|
-
isArchived: boolean;
|
|
314
|
-
}[];
|
|
315
|
-
declare const MODULES: {
|
|
316
|
-
id: string;
|
|
317
|
-
name: string;
|
|
318
|
-
title: string;
|
|
319
|
-
isArchived: boolean;
|
|
320
|
-
}[];
|
|
321
|
-
declare const APPLICATIONS_MODULES: {
|
|
322
|
-
id: string;
|
|
323
|
-
application: {
|
|
324
|
-
id: string;
|
|
325
|
-
name: string;
|
|
326
|
-
title: string;
|
|
327
|
-
isArchived: boolean;
|
|
328
|
-
};
|
|
329
|
-
module: {
|
|
330
|
-
id: string;
|
|
331
|
-
name: string;
|
|
332
|
-
title: string;
|
|
333
|
-
isArchived: boolean;
|
|
334
|
-
};
|
|
335
|
-
}[];
|
|
336
|
-
declare const EDITIONS: {
|
|
337
|
-
id: string;
|
|
338
|
-
application: {
|
|
339
|
-
id: string;
|
|
340
|
-
name: string;
|
|
341
|
-
title: string;
|
|
342
|
-
isArchived: boolean;
|
|
343
|
-
};
|
|
344
|
-
name: string;
|
|
345
|
-
title: string;
|
|
346
|
-
isArchived: boolean;
|
|
347
|
-
}[];
|
|
348
|
-
declare const FEATURES: {
|
|
349
|
-
id: string;
|
|
350
|
-
moduleId: string;
|
|
351
|
-
name: string;
|
|
352
|
-
title: string;
|
|
353
|
-
isArchived: boolean;
|
|
354
|
-
}[];
|
|
355
|
-
declare const ENTITIES: {
|
|
356
|
-
id: string;
|
|
357
|
-
moduleId: string;
|
|
358
|
-
name: string;
|
|
359
|
-
title: string;
|
|
360
|
-
isArchived: boolean;
|
|
361
|
-
}[];
|
|
362
|
-
declare const PERMISSIONS: {
|
|
363
|
-
id: string;
|
|
364
|
-
moduleId: string;
|
|
365
|
-
name: string;
|
|
366
|
-
title: string;
|
|
367
|
-
isArchived: boolean;
|
|
368
|
-
}[];
|
|
369
|
-
declare const PROPERTIES: {
|
|
370
|
-
id: string;
|
|
371
|
-
entityId: string;
|
|
372
|
-
name: string;
|
|
373
|
-
title: string;
|
|
374
|
-
path: string;
|
|
375
|
-
}[];
|
|
316
|
+
declare const APPLICATIONS: AXMApplicationManagementApplicationEntityModel[];
|
|
376
317
|
|
|
377
|
-
declare class
|
|
378
|
-
private storageService;
|
|
318
|
+
declare class AXCApplicationDataSeeder implements AXPDataSeeder {
|
|
319
|
+
private readonly storageService;
|
|
379
320
|
seed(): Promise<void>;
|
|
380
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
381
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
321
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationDataSeeder, never>;
|
|
322
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationDataSeeder>;
|
|
382
323
|
}
|
|
383
324
|
|
|
384
|
-
declare
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
325
|
+
declare const EDITIONS: AXMApplicationManagementEditionEntityModel[];
|
|
326
|
+
|
|
327
|
+
declare class AXCEditionDataSeeder implements AXPDataSeeder {
|
|
328
|
+
private readonly storageService;
|
|
329
|
+
seed(): Promise<void>;
|
|
330
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCEditionDataSeeder, never>;
|
|
331
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCEditionDataSeeder>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare const FEATURES: AXMApplicationManagementFeatureEntityModel[];
|
|
335
|
+
|
|
336
|
+
declare class AXCFeatureDataSeeder implements AXPDataSeeder {
|
|
337
|
+
private readonly storageService;
|
|
338
|
+
seed(): Promise<void>;
|
|
339
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCFeatureDataSeeder, never>;
|
|
340
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCFeatureDataSeeder>;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
declare const MODULES: AXMApplicationManagementModuleEntityModel[];
|
|
344
|
+
|
|
345
|
+
declare class AXCModuleDataSeeder implements AXPDataSeeder {
|
|
346
|
+
private readonly storageService;
|
|
347
|
+
seed(): Promise<void>;
|
|
348
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCModuleDataSeeder, never>;
|
|
349
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCModuleDataSeeder>;
|
|
388
350
|
}
|
|
389
351
|
|
|
390
352
|
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
@@ -518,6 +480,7 @@ interface AXCEmployeeMockDto {
|
|
|
518
480
|
hireDate: Date;
|
|
519
481
|
managerId: string | null;
|
|
520
482
|
manager: AXCEmployeeMockDto | null;
|
|
483
|
+
imageId: string[];
|
|
521
484
|
}
|
|
522
485
|
declare const EMPLOYEES_MOCK: AXCEmployeeMockDto[];
|
|
523
486
|
|
|
@@ -789,6 +752,8 @@ declare class AXQEmployeeSkillsListQuery implements AXPQuery<ListInput, {
|
|
|
789
752
|
items: any[];
|
|
790
753
|
total: number;
|
|
791
754
|
}> {
|
|
755
|
+
private employeeSkillService;
|
|
756
|
+
private skillLevelService;
|
|
792
757
|
fetch(input: ListInput): Promise<{
|
|
793
758
|
items: any[];
|
|
794
759
|
total: number;
|
|
@@ -800,17 +765,25 @@ type StatsInput = {
|
|
|
800
765
|
skillId?: string;
|
|
801
766
|
levelId?: string;
|
|
802
767
|
minYears?: number;
|
|
768
|
+
startDate?: Date | string;
|
|
769
|
+
endDate?: Date | string;
|
|
803
770
|
};
|
|
804
771
|
declare class AXQEmployeeSkillsStatsQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
772
|
+
private employeeSkillService;
|
|
805
773
|
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
806
774
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsStatsQuery, never>;
|
|
807
775
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsStatsQuery>;
|
|
808
776
|
}
|
|
809
777
|
type LevelsInput = {
|
|
810
778
|
skillId?: string;
|
|
779
|
+
levelId?: string;
|
|
811
780
|
minYears?: number;
|
|
781
|
+
startDate?: Date | string;
|
|
782
|
+
endDate?: Date | string;
|
|
812
783
|
};
|
|
813
784
|
declare class AXQEmployeeSkillsLevelsQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
785
|
+
private employeeSkillService;
|
|
786
|
+
private skillLevelService;
|
|
814
787
|
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
815
788
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelsQuery, never>;
|
|
816
789
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelsQuery>;
|
|
@@ -825,6 +798,7 @@ declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
|
|
|
825
798
|
month: string;
|
|
826
799
|
value: number;
|
|
827
800
|
}[]> {
|
|
801
|
+
private employeeSkillService;
|
|
828
802
|
fetch(input: TrendInput): Promise<{
|
|
829
803
|
month: string;
|
|
830
804
|
value: number;
|
|
@@ -833,11 +807,14 @@ declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
|
|
|
833
807
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsTrendQuery>;
|
|
834
808
|
}
|
|
835
809
|
declare class AXQEmployeeSkillsSkillPercentagesQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
810
|
+
private employeeSkillService;
|
|
836
811
|
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
837
812
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsSkillPercentagesQuery, never>;
|
|
838
813
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsSkillPercentagesQuery>;
|
|
839
814
|
}
|
|
840
815
|
declare class AXQEmployeeSkillsLevelPercentagesQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
816
|
+
private employeeSkillService;
|
|
817
|
+
private skillLevelService;
|
|
841
818
|
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
842
819
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelPercentagesQuery, never>;
|
|
843
820
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelPercentagesQuery>;
|
|
@@ -1228,8 +1205,12 @@ declare const calendarMock: ({
|
|
|
1228
1205
|
isActive: boolean;
|
|
1229
1206
|
order: number;
|
|
1230
1207
|
notes: string;
|
|
1231
|
-
|
|
1232
|
-
|
|
1208
|
+
created: {
|
|
1209
|
+
at: Date;
|
|
1210
|
+
};
|
|
1211
|
+
updated: {
|
|
1212
|
+
at: Date;
|
|
1213
|
+
};
|
|
1233
1214
|
scope?: undefined;
|
|
1234
1215
|
scopeEntityId?: undefined;
|
|
1235
1216
|
} | {
|
|
@@ -1259,8 +1240,12 @@ declare const calendarMock: ({
|
|
|
1259
1240
|
isActive: boolean;
|
|
1260
1241
|
order: number;
|
|
1261
1242
|
notes: string;
|
|
1262
|
-
|
|
1263
|
-
|
|
1243
|
+
created: {
|
|
1244
|
+
at: Date;
|
|
1245
|
+
};
|
|
1246
|
+
updated: {
|
|
1247
|
+
at: Date;
|
|
1248
|
+
};
|
|
1264
1249
|
} | {
|
|
1265
1250
|
id: string;
|
|
1266
1251
|
name: string;
|
|
@@ -1288,8 +1273,12 @@ declare const calendarMock: ({
|
|
|
1288
1273
|
isActive: boolean;
|
|
1289
1274
|
order: number;
|
|
1290
1275
|
notes: string;
|
|
1291
|
-
|
|
1292
|
-
|
|
1276
|
+
created: {
|
|
1277
|
+
at: Date;
|
|
1278
|
+
};
|
|
1279
|
+
updated: {
|
|
1280
|
+
at: Date;
|
|
1281
|
+
};
|
|
1293
1282
|
})[];
|
|
1294
1283
|
|
|
1295
1284
|
declare class AXCCalendarDataSeeder implements AXPDataSeeder {
|
|
@@ -1315,8 +1304,12 @@ declare const calendarEventMock: ({
|
|
|
1315
1304
|
recurrenceRule: string;
|
|
1316
1305
|
isActive: boolean;
|
|
1317
1306
|
order: number;
|
|
1318
|
-
|
|
1319
|
-
|
|
1307
|
+
created: {
|
|
1308
|
+
at: Date;
|
|
1309
|
+
};
|
|
1310
|
+
updated: {
|
|
1311
|
+
at: Date;
|
|
1312
|
+
};
|
|
1320
1313
|
} | {
|
|
1321
1314
|
id: string;
|
|
1322
1315
|
calendarId: string;
|
|
@@ -1333,8 +1326,12 @@ declare const calendarEventMock: ({
|
|
|
1333
1326
|
recurrenceRule: null;
|
|
1334
1327
|
isActive: boolean;
|
|
1335
1328
|
order: number;
|
|
1336
|
-
|
|
1337
|
-
|
|
1329
|
+
created: {
|
|
1330
|
+
at: Date;
|
|
1331
|
+
};
|
|
1332
|
+
updated: {
|
|
1333
|
+
at: Date;
|
|
1334
|
+
};
|
|
1338
1335
|
})[];
|
|
1339
1336
|
|
|
1340
1337
|
declare class AXCCalendarEventDataSeeder implements AXPDataSeeder {
|
|
@@ -1667,6 +1664,108 @@ declare class AXCFileStorageService implements AXPFileStorageService {
|
|
|
1667
1664
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
|
|
1668
1665
|
}
|
|
1669
1666
|
|
|
1667
|
+
interface AXPVersionStream {
|
|
1668
|
+
id: string;
|
|
1669
|
+
entityType: string;
|
|
1670
|
+
entityId: string;
|
|
1671
|
+
createdAt: string;
|
|
1672
|
+
}
|
|
1673
|
+
declare enum AXVChangeType {
|
|
1674
|
+
Create = "Create",
|
|
1675
|
+
Update = "Update",
|
|
1676
|
+
Delete = "Delete"
|
|
1677
|
+
}
|
|
1678
|
+
type CanonicalChangeOp = 'add' | 'remove' | 'replace' | 'rename' | 'metadata';
|
|
1679
|
+
interface CanonicalChange {
|
|
1680
|
+
path: string;
|
|
1681
|
+
op: CanonicalChangeOp;
|
|
1682
|
+
oldValue?: unknown;
|
|
1683
|
+
newValue?: unknown;
|
|
1684
|
+
meta?: Record<string, unknown>;
|
|
1685
|
+
}
|
|
1686
|
+
interface AXPVersionEntry {
|
|
1687
|
+
id: string;
|
|
1688
|
+
streamId: string;
|
|
1689
|
+
versionNumber: number;
|
|
1690
|
+
changeType: AXVChangeType;
|
|
1691
|
+
changedBy: string;
|
|
1692
|
+
changedAt: string;
|
|
1693
|
+
snapshotJson: unknown;
|
|
1694
|
+
patchFromPrevJson: CanonicalChange[];
|
|
1695
|
+
summary?: string;
|
|
1696
|
+
metadataJson?: unknown;
|
|
1697
|
+
}
|
|
1698
|
+
interface AXPVersionChange {
|
|
1699
|
+
id?: number;
|
|
1700
|
+
versionEntryId: string;
|
|
1701
|
+
path: string;
|
|
1702
|
+
op: CanonicalChangeOp;
|
|
1703
|
+
oldValue?: unknown;
|
|
1704
|
+
newValue?: unknown;
|
|
1705
|
+
}
|
|
1706
|
+
interface VersionedFileInfo {
|
|
1707
|
+
id: string;
|
|
1708
|
+
name: string;
|
|
1709
|
+
size: number;
|
|
1710
|
+
mime: string;
|
|
1711
|
+
hash: string;
|
|
1712
|
+
url?: string;
|
|
1713
|
+
thumbUrl?: string;
|
|
1714
|
+
}
|
|
1715
|
+
declare class AXCVersionDB extends Dexie {
|
|
1716
|
+
version_streams: Table<AXPVersionStream, string>;
|
|
1717
|
+
version_entries: Table<AXPVersionEntry, string>;
|
|
1718
|
+
version_changes: Table<AXPVersionChange, number>;
|
|
1719
|
+
constructor();
|
|
1720
|
+
}
|
|
1721
|
+
declare const axVersionDB: AXCVersionDB;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Compute canonical JSON Patch-like changes with custom ops for file arrays.
|
|
1725
|
+
*/
|
|
1726
|
+
declare function computeDiff(prevSnapshot: unknown, nextSnapshot: unknown, basePath?: string): CanonicalChange$1[];
|
|
1727
|
+
declare class VersioningService implements AXPVersioningService {
|
|
1728
|
+
private readonly db;
|
|
1729
|
+
private readonly fileStorage;
|
|
1730
|
+
upsertStream(entityType: string, entityId: string): Promise<string>;
|
|
1731
|
+
/** Gets stream id if it exists, otherwise returns null (does not create). */
|
|
1732
|
+
getStreamIdIfExists(entityType: string, entityId: string): Promise<string | null>;
|
|
1733
|
+
getCurrentVersion(streamId: string): Promise<number>;
|
|
1734
|
+
/** Lists version entries for a given stream, newest first. */
|
|
1735
|
+
listEntries(streamId: string, options?: {
|
|
1736
|
+
limit?: number;
|
|
1737
|
+
offset?: number;
|
|
1738
|
+
}): Promise<AXPVersionEntry$1[]>;
|
|
1739
|
+
createVersion(entityType: string, entityId: string, newSnapshot: unknown, changes?: CanonicalChange$1[], options?: {
|
|
1740
|
+
changeType?: AXVChangeType$1;
|
|
1741
|
+
changedBy?: string;
|
|
1742
|
+
summary?: string;
|
|
1743
|
+
metadata?: unknown;
|
|
1744
|
+
}): Promise<AXPVersionEntry$1>;
|
|
1745
|
+
getDiffForVersions(streamId: string, v1: number, v2: number): Promise<CanonicalChange$1[]>;
|
|
1746
|
+
getUiFriendlyDiff(streamId: string, v1: number, v2: number): Promise<Array<{
|
|
1747
|
+
badge: string;
|
|
1748
|
+
path: string;
|
|
1749
|
+
summary: string;
|
|
1750
|
+
oldValue?: unknown;
|
|
1751
|
+
newValue?: unknown;
|
|
1752
|
+
}>>;
|
|
1753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VersioningService, never>;
|
|
1754
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VersioningService>;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
interface UIDiffRow {
|
|
1758
|
+
badge: 'Added' | 'Removed' | 'Replaced' | 'Renamed' | 'Metadata' | 'Updated';
|
|
1759
|
+
path: string;
|
|
1760
|
+
summary: string;
|
|
1761
|
+
oldValue?: unknown;
|
|
1762
|
+
newValue?: unknown;
|
|
1763
|
+
}
|
|
1764
|
+
declare function toUiRows(changes: CanonicalChange[]): UIDiffRow[];
|
|
1765
|
+
|
|
1766
|
+
declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileStorageService): Promise<AXPFileListItem[]>;
|
|
1767
|
+
declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
|
|
1768
|
+
|
|
1670
1769
|
declare class AXCLogReportCategoryProvider implements AXPReportCategoryProvider {
|
|
1671
1770
|
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
1672
1771
|
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
@@ -1795,11 +1894,61 @@ declare const createFileCastMiddleware: AXPEntityStorageMiddleware;
|
|
|
1795
1894
|
|
|
1796
1895
|
declare const identifierCommitMiddleware: AXPEntityStorageMiddleware;
|
|
1797
1896
|
|
|
1897
|
+
/**
|
|
1898
|
+
* Lookup Resolver Middleware
|
|
1899
|
+
*
|
|
1900
|
+
* This middleware resolves lookup field IDs to full objects based on entity property definitions or naming conventions.
|
|
1901
|
+
*
|
|
1902
|
+
* Behavior:
|
|
1903
|
+
* - Runs on 'create' and 'update' operations
|
|
1904
|
+
* - Finds fields ending with 'Id' or 'Ids' (case sensitive)
|
|
1905
|
+
* - Resolves IDs to full objects from corresponding entity
|
|
1906
|
+
* - Replaces ID values with constructed objects
|
|
1907
|
+
*
|
|
1908
|
+
* Resolution Strategy (in order):
|
|
1909
|
+
* 1. Check entity property definition for LookupBox with entity option
|
|
1910
|
+
* 2. If property contains dot (X.assignId -> X.assign)
|
|
1911
|
+
* 3. Use current module name (ModuleName.assign)
|
|
1912
|
+
* 4. Try name variants with common modules
|
|
1913
|
+
*
|
|
1914
|
+
* Naming Convention:
|
|
1915
|
+
* - testId -> creates 'test' object with full record
|
|
1916
|
+
* - testIds -> creates 'testList' array with full records
|
|
1917
|
+
* - documentId -> creates 'document' object with full record
|
|
1918
|
+
* - categoryIds -> creates 'categoryList' array with full records
|
|
1919
|
+
*
|
|
1920
|
+
* Example:
|
|
1921
|
+
* Input: { stageId: "123" } with lookup to CustomerManagement.opportunityStage
|
|
1922
|
+
* Result: { stage: { id: "123", title: "Stage Title", ... } }
|
|
1923
|
+
*/
|
|
1924
|
+
declare const lookupResolverMiddleware: AXPEntityStorageMiddleware;
|
|
1925
|
+
|
|
1798
1926
|
declare const mergeDetailRelationMiddleware: AXPEntityStorageMiddleware;
|
|
1799
1927
|
|
|
1800
1928
|
declare const primaryMiddleware: AXPEntityStorageMiddleware;
|
|
1801
1929
|
|
|
1930
|
+
declare const historyLoggerMiddleware: AXPEntityStorageMiddleware;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Signature Loader Middleware
|
|
1934
|
+
*
|
|
1935
|
+
* This middleware loads digital signatures for entities by attempting to query
|
|
1936
|
+
* the corresponding signature table ({EntityName}Signature).
|
|
1937
|
+
*
|
|
1938
|
+
* Behavior:
|
|
1939
|
+
* - Only runs on 'getOne' operation (entity details)
|
|
1940
|
+
* - Attempts to query signature table without checking plugin existence
|
|
1941
|
+
* - If signature table exists and has data, attaches signatures to result
|
|
1942
|
+
* - If table doesn't exist or query fails, silently continues
|
|
1943
|
+
*
|
|
1944
|
+
* Example:
|
|
1945
|
+
* Entity: "ContentManagement.Promotion"
|
|
1946
|
+
* Signature table: "ContentManagement.PromotionSignature"
|
|
1947
|
+
* Result: ctx.result.signatures = [{ id, signed, meta, ... }]
|
|
1948
|
+
*/
|
|
1949
|
+
declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
|
|
1950
|
+
|
|
1802
1951
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
1803
1952
|
|
|
1804
|
-
export { APPLICATIONS,
|
|
1805
|
-
export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXPLogRow, AXPRuleRow, AXPSeqRow, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, MockUserPassCredentials, PartyMockData, PositionMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType };
|
|
1953
|
+
export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder, AXCFeatureDataSeeder, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCGoogleStrategyMock, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCJsaSeeder, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCLogReportCategoryProvider, AXCLogReportDefinitionProvider, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCModuleDataSeeder, AXCNotificationManagementMockModule, AXCOrganizationManagementMockModule, AXCPartyManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXCUserPassStrategyMock, AXCVersionDB, AXCWorkflowManagementMockModule, AXC_LOG_REPORT_CATEGORY_PROVIDER, AXC_LOG_REPORT_DEFINITION_PROVIDER, AXMAiResponderService, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmployeeSkillDataSeeder, AXMEmployeeSkillsCategoryProvider, AXMEmployeeSkillsReportDefinitionProvider, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMIndustryDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMReportMockDataService, AXMResponsibilityDataSeeder, AXMRoleDataSeeder, AXMSkillDataSeeder, AXMSkillLevelDataSeeder, AXMTeamDataSeeder, AXM_EMPLOYEE_SKILLS_CATEGORY_PROVIDER, AXM_EMPLOYEE_SKILLS_DEFINITION_PROVIDER, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXQEmployeeSkillsLevelPercentagesQuery, AXQEmployeeSkillsLevelsQuery, AXQEmployeeSkillsListQuery, AXQEmployeeSkillsSkillPercentagesQuery, AXQEmployeeSkillsStatsQuery, AXQEmployeeSkillsTrendQuery, AXVChangeType, BUSINESS_UNITS_MOCK, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYEE_SKILLS_MOCK, EMPLOYMENT_TYPES_MOCK, FEATURES, GLOBAL_VARIABLES, LEAVE_REQUESTS_MOCK, MODULES, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, ROLES_CATEGORY_MOCK, ROLES_MOCK, SKILLS_CATEGORY_MOCK, SKILLS_MOCK, SKILL_LEVELS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, VersioningService, applications, auditLoggerMiddleware, axVersionDB, calendarEventMock, calendarEventTypeMockData, calendarMock, childCountMiddleware, computeDiff, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, findContactMethod, findEmployeeById, findPartyById, generateUserDashboard, historyLoggerMiddleware, identifierCommitMiddleware, lookupResolverMiddleware, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, mockRoleDefinitions, mockUsers, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, participantIds, primaryMiddleware, signatureLoaderMiddleware, tenantsMock, toUiRows };
|
|
1954
|
+
export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, MockUserPassCredentials, PartyMockData, PositionMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/connectivity",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.4.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/modules": "
|
|
5
|
+
"@acorex/modules": "20.4.1"
|
|
6
6
|
},
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"module": "fesm2022/acorex-connectivity.mjs",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
16
|
"default": "./fesm2022/acorex-connectivity.mjs"
|
|
17
17
|
},
|
|
18
|
+
"./api": {
|
|
19
|
+
"types": "./api/index.d.ts",
|
|
20
|
+
"default": "./fesm2022/acorex-connectivity-api.mjs"
|
|
21
|
+
},
|
|
18
22
|
"./mock": {
|
|
19
23
|
"types": "./mock/index.d.ts",
|
|
20
24
|
"default": "./fesm2022/acorex-connectivity-mock.mjs"
|
|
@@ -22,10 +26,6 @@
|
|
|
22
26
|
"./utils": {
|
|
23
27
|
"types": "./utils/index.d.ts",
|
|
24
28
|
"default": "./fesm2022/acorex-connectivity-utils.mjs"
|
|
25
|
-
},
|
|
26
|
-
"./api": {
|
|
27
|
-
"types": "./api/index.d.ts",
|
|
28
|
-
"default": "./fesm2022/acorex-connectivity-api.mjs"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|