@acorex/connectivity 18.2.4 → 19.0.0
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/api/README.md +3 -0
- package/api/index.d.ts +3 -0
- package/api/lib/api-storage.service.d.ts +27 -0
- package/api/lib/api.module.d.ts +8 -0
- package/api/lib/auth/oidc/application.loader.d.ts +16 -0
- package/api/lib/auth/oidc/configuration.service.d.ts +60 -0
- package/api/lib/auth/oidc/feature.loader.d.ts +6 -0
- package/api/lib/auth/oidc/index.d.ts +6 -0
- package/api/lib/auth/oidc/oidc.strategy.d.ts +50 -0
- package/api/lib/auth/oidc/permission.loader.d.ts +14 -0
- package/api/lib/auth/oidc/tenant.loader.d.ts +16 -0
- package/fesm2022/acorex-connectivity-api.mjs +533 -0
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +398 -117
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity.mjs +4 -4
- package/fesm2022/acorex-connectivity.mjs.map +1 -1
- package/mock/lib/application-management/mock-module-designer.service.d.ts +43 -0
- package/mock/lib/conversation/chat/chat.mock.service.d.ts +3 -0
- package/mock/lib/conversation/comments/comment.mock.service.d.ts +3 -0
- package/mock/lib/form-template-management/category.seeder.d.ts +8 -0
- package/mock/lib/form-template-management/form-template-management-mock.module.d.ts +6 -0
- package/mock/lib/mock.module.d.ts +4 -3
- package/mock/lib/mock.strategy.d.ts +15 -0
- package/mock/lib/scheduler-job-management/index.d.ts +1 -0
- package/mock/lib/scheduler-job-management/scheduler-job-management.mock.data.d.ts +7 -0
- package/mock/lib/scheduler-job-management/scheduler-job.seeder.d.ts +8 -0
- package/package.json +5 -5
- package/esm2022/acorex-connectivity.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/connectivity.component.mjs +0 -12
- package/esm2022/mock/acorex-connectivity-mock.mjs +0 -5
- package/esm2022/mock/index.mjs +0 -2
- package/esm2022/mock/lib/application-management/application-management-mock-data.mjs +0 -109
- package/esm2022/mock/lib/application-management/application.seeder.mjs +0 -26
- package/esm2022/mock/lib/application-management/index.mjs +0 -3
- package/esm2022/mock/lib/conversation/chat/chat.mock.data.mjs +0 -42
- package/esm2022/mock/lib/conversation/chat/chat.mock.service.mjs +0 -14
- package/esm2022/mock/lib/conversation/chat/chat.seeder.mjs +0 -19
- package/esm2022/mock/lib/conversation/chat/index.mjs +0 -3
- package/esm2022/mock/lib/conversation/comments/comment.mock.data.mjs +0 -73
- package/esm2022/mock/lib/conversation/comments/comment.mock.service.mjs +0 -78
- package/esm2022/mock/lib/conversation/comments/comment.seeder.mjs +0 -19
- package/esm2022/mock/lib/conversation/comments/index.mjs +0 -4
- package/esm2022/mock/lib/conversation/conversation.module.mjs +0 -78
- package/esm2022/mock/lib/form-management/datasource-provider.mock.service.mjs +0 -37
- package/esm2022/mock/lib/form-management/form-management-mock.module.mjs +0 -31
- package/esm2022/mock/lib/localization-management/culture/culture.mock.data.mjs +0 -16
- package/esm2022/mock/lib/localization-management/culture/culture.seeder.mjs +0 -19
- package/esm2022/mock/lib/localization-management/culture/index.mjs +0 -3
- package/esm2022/mock/lib/localization-management/index.mjs +0 -4
- package/esm2022/mock/lib/localization-management/languages/index.mjs +0 -3
- package/esm2022/mock/lib/localization-management/languages/language.mock.data.mjs +0 -14
- package/esm2022/mock/lib/localization-management/languages/language.seeder.mjs +0 -19
- package/esm2022/mock/lib/localization-management/time-zone/index.mjs +0 -3
- package/esm2022/mock/lib/localization-management/time-zone/time-zone.mock.data.mjs +0 -31
- package/esm2022/mock/lib/localization-management/time-zone/time-zone.seeder.mjs +0 -19
- package/esm2022/mock/lib/mock.module.mjs +0 -136
- package/esm2022/mock/lib/notification-management/notification/notification.mock.service.mjs +0 -75
- package/esm2022/mock/lib/platform-management/country/country.mock.data.mjs +0 -76
- package/esm2022/mock/lib/platform-management/country/country.seeder.mjs +0 -19
- package/esm2022/mock/lib/platform-management/country/index.mjs +0 -3
- package/esm2022/mock/lib/platform-management/currency/currency.mock.data.mjs +0 -22
- package/esm2022/mock/lib/platform-management/currency/currency.seeder.mjs +0 -19
- package/esm2022/mock/lib/platform-management/currency/index.mjs +0 -3
- package/esm2022/mock/lib/platform-management/global-variables/global-variable.seeder.mjs +0 -18
- package/esm2022/mock/lib/platform-management/global-variables/global-variables.mock.data.mjs +0 -18
- package/esm2022/mock/lib/platform-management/global-variables/index.mjs +0 -3
- package/esm2022/mock/lib/platform-management/index.mjs +0 -4
- package/esm2022/mock/lib/text-template-management/category.seeder.mjs +0 -19
- package/esm2022/mock/lib/text-template-management/index.mjs +0 -4
- package/esm2022/mock/lib/text-template-management/template.seeder.mjs +0 -19
- package/esm2022/mock/lib/text-template-management/text-template-management.mock.data.mjs +0 -118
- package/mock/lib/form-management/form-management-mock.module.d.ts +0 -6
- /package/mock/lib/{form-management → form-template-management}/datasource-provider.mock.service.d.ts +0 -0
package/api/README.md
ADDED
package/api/index.d.ts
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
import { AXPEntityStorageService, AXPPagedListResult, AXPQueryRequest } from '@acorex/platform/common';
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class AXCApiEntityStorageService implements AXPEntityStorageService<string, any> {
|
5
|
+
private http;
|
6
|
+
private configs;
|
7
|
+
private filterService;
|
8
|
+
private entityResolver;
|
9
|
+
private mainUrl;
|
10
|
+
constructor(http: HttpClient);
|
11
|
+
get dbName(): string;
|
12
|
+
getConfigEntity(entityName: string): {
|
13
|
+
module: string;
|
14
|
+
entity: string;
|
15
|
+
};
|
16
|
+
initial<T = any>(entityName: string, collection: T[]): Promise<void>;
|
17
|
+
getOne<T = any>(entityName: string, id: string): Promise<T>;
|
18
|
+
updateOne<T = any>(entityName: string, id: string, keyValue: {
|
19
|
+
[key: string]: any;
|
20
|
+
}): Promise<T>;
|
21
|
+
deleteOne(entityName: string, id: string): Promise<void>;
|
22
|
+
insertOne<T = any>(entityName: string, entityItem: T): Promise<string>;
|
23
|
+
getAll<T = any>(entityName: string): Promise<T[]>;
|
24
|
+
query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCApiEntityStorageService, never>;
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCApiEntityStorageService>;
|
27
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "angular-oauth2-oidc";
|
3
|
+
import * as i2 from "@acorex/platform/auth";
|
4
|
+
export declare class AXCApiModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCApiModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApiModule, never, [typeof i1.OAuthModule, typeof i2.AXPAuthModule], never>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCApiModule>;
|
8
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { AXPApplication, AXPApplicationLoader } from '@acorex/platform/auth';
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AXMOidcApplicationLoader implements AXPApplicationLoader {
|
6
|
+
private http;
|
7
|
+
private configs;
|
8
|
+
private apiGetApps;
|
9
|
+
private apiSetApp;
|
10
|
+
constructor(http: HttpClient);
|
11
|
+
getList(): Observable<AXPApplication[]>;
|
12
|
+
set(application: AXPApplication): Promise<void>;
|
13
|
+
private mapToAXPApplication;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcApplicationLoader, never>;
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcApplicationLoader>;
|
16
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export interface Localization {
|
5
|
+
values: Record<string, Record<string, string>>;
|
6
|
+
resources: Record<string, Resource>;
|
7
|
+
languages: Language[];
|
8
|
+
currentCulture: Culture;
|
9
|
+
defaultResourceName: string;
|
10
|
+
languagesMap: Record<string, NameValue[]>;
|
11
|
+
languageFilesMap: Record<string, NameValue[]>;
|
12
|
+
}
|
13
|
+
export interface Resource {
|
14
|
+
texts: Record<string, string>;
|
15
|
+
baseResources: string[];
|
16
|
+
}
|
17
|
+
export interface Language {
|
18
|
+
cultureName: string;
|
19
|
+
uiCultureName: string;
|
20
|
+
displayName: string;
|
21
|
+
twoLetterISOLanguageName: string;
|
22
|
+
flagIcon: string;
|
23
|
+
}
|
24
|
+
export interface Culture {
|
25
|
+
displayName: string;
|
26
|
+
}
|
27
|
+
export interface NameValue {
|
28
|
+
name: string;
|
29
|
+
value: string;
|
30
|
+
}
|
31
|
+
export interface Auth {
|
32
|
+
grantedPolicies: Record<string, boolean>;
|
33
|
+
}
|
34
|
+
export interface ApplicationConfiguration {
|
35
|
+
localization: Localization;
|
36
|
+
auth: Auth;
|
37
|
+
setting: Record<string, any>;
|
38
|
+
currentUser: any;
|
39
|
+
features: Record<string, any>;
|
40
|
+
globalFeatures: Record<string, any>;
|
41
|
+
multiTenancy: Record<string, any>;
|
42
|
+
currentCulture: Culture;
|
43
|
+
timing: Record<string, any>;
|
44
|
+
clock: Record<string, any>;
|
45
|
+
objectExtensions: Record<string, any>;
|
46
|
+
extraProperties: Record<string, any>;
|
47
|
+
}
|
48
|
+
export declare class AXMConfigurationService {
|
49
|
+
private http;
|
50
|
+
private configs;
|
51
|
+
private applicationConfig;
|
52
|
+
private apiGetConfig;
|
53
|
+
private fetchInProgress;
|
54
|
+
private configSubject;
|
55
|
+
constructor(http: HttpClient);
|
56
|
+
init(): Observable<ApplicationConfiguration>;
|
57
|
+
getConfig(): Observable<ApplicationConfiguration>;
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMConfigurationService, never>;
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMConfigurationService>;
|
60
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { AXPAuthStrategy, AXPBaseCredentials, AXPRefreshTokenResult, AXPSessionContext, AXPSignInResult } from '@acorex/platform/auth';
|
2
|
+
import { AuthConfig } from 'angular-oauth2-oidc';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class AXMOidcStrategy implements AXPAuthStrategy {
|
5
|
+
private aXMAuthConfigs;
|
6
|
+
private oauthService;
|
7
|
+
private http;
|
8
|
+
userInfo: any;
|
9
|
+
authConfig: AuthConfig;
|
10
|
+
openidConfigurationInfo: any;
|
11
|
+
configureOAuth(): Promise<void>;
|
12
|
+
signin(credentials: AXPUserPassCredentials): Promise<AXPSignInResult>;
|
13
|
+
signout(): Promise<void>;
|
14
|
+
refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
|
15
|
+
refresh(tenantId?: string, applicationId?: string): Promise<boolean>;
|
16
|
+
expires_in_milisecound(expires_in_date: string): number;
|
17
|
+
private setServiceProps;
|
18
|
+
private loadAuthData;
|
19
|
+
loadUserInfo(): Promise<object>;
|
20
|
+
calculateExpireInDate(expireInMilisecound: number): string;
|
21
|
+
private logout;
|
22
|
+
private handleError;
|
23
|
+
get name(): string;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcStrategy, never>;
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcStrategy>;
|
26
|
+
}
|
27
|
+
export interface AXPUserPassCredentials extends AXPBaseCredentials {
|
28
|
+
username: string;
|
29
|
+
password: string;
|
30
|
+
}
|
31
|
+
export interface IAuthenticationDataModel {
|
32
|
+
access_token: string;
|
33
|
+
applicationid: string;
|
34
|
+
applicationname: string;
|
35
|
+
applicationtitle: string;
|
36
|
+
editionid: string;
|
37
|
+
editionname: string;
|
38
|
+
editiontitle: string;
|
39
|
+
id_token: string;
|
40
|
+
refresh_token: string;
|
41
|
+
scope: string;
|
42
|
+
tenantid: string;
|
43
|
+
tenantname: string;
|
44
|
+
tenanttitle: string;
|
45
|
+
token_type: string;
|
46
|
+
expires_in?: number;
|
47
|
+
sub?: string;
|
48
|
+
fullname?: string;
|
49
|
+
picture?: string;
|
50
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { AXPPermission, AXPPermissionLoader, AXPSessionContext } from '@acorex/platform/auth';
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AXMOidcPermissionLoader implements AXPPermissionLoader {
|
6
|
+
private http;
|
7
|
+
private configs;
|
8
|
+
private apiGetConfig;
|
9
|
+
constructor(http: HttpClient);
|
10
|
+
getList(context: AXPSessionContext): Observable<AXPPermission[]>;
|
11
|
+
mapTo(jsonObj: any): string[];
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcPermissionLoader, never>;
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcPermissionLoader>;
|
14
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { AXPTenant, AXPTenantLoader } from '@acorex/platform/auth';
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AXMOidcTenantLoader implements AXPTenantLoader {
|
6
|
+
private http;
|
7
|
+
private configs;
|
8
|
+
private apiGetTenants;
|
9
|
+
private apiSetTenant;
|
10
|
+
constructor(http: HttpClient);
|
11
|
+
getList(): Observable<AXPTenant[]>;
|
12
|
+
set(tenant: AXPTenant): Promise<void>;
|
13
|
+
private mapToAXPTenant;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcTenantLoader, never>;
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcTenantLoader>;
|
16
|
+
}
|