@acorex/connectivity 20.2.0-next.1 → 20.2.0-next.3
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/index.d.ts +52 -15
- package/fesm2022/acorex-connectivity-api.mjs +694 -563
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +9121 -4742
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +64 -0
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -0
- package/mock/index.d.ts +265 -17
- package/package.json +5 -1
- package/utils/README.md +3 -0
- package/utils/index.d.ts +17 -0
- package/fesm2022/acorex-connectivity-mock-countries-DHRrtbwM.mjs +0 -591
- package/fesm2022/acorex-connectivity-mock-countries-DHRrtbwM.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-currencies-B-x3Mxql.mjs +0 -13
- package/fesm2022/acorex-connectivity-mock-currencies-B-x3Mxql.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-profiles-MJ9xFTtp.mjs +0 -19
- package/fesm2022/acorex-connectivity-mock-profiles-MJ9xFTtp.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-timezones-CnNQ6EXw.mjs +0 -44
- package/fesm2022/acorex-connectivity-mock-timezones-CnNQ6EXw.mjs.map +0 -1
package/api/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import * as i0 from '@angular/core';
|
|
|
5
5
|
import * as i1 from 'angular-oauth2-oidc';
|
|
6
6
|
import { AuthConfig } from 'angular-oauth2-oidc';
|
|
7
7
|
import * as i2 from '@acorex/platform/auth';
|
|
8
|
-
import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPSessionContext,
|
|
8
|
+
import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPSessionContext, AXPPermissionLoader, AXPPermission, AXPTenantLoader, AXPTenant } from '@acorex/platform/auth';
|
|
9
|
+
import * as i3 from '@acorex/connectivity/utils';
|
|
9
10
|
import { Observable } from 'rxjs';
|
|
10
11
|
|
|
11
12
|
declare class AXCApiEntityStorageService implements AXPEntityStorageService<string, any> {
|
|
@@ -40,7 +41,7 @@ declare class AXCApiEntityStorageService implements AXPEntityStorageService<stri
|
|
|
40
41
|
|
|
41
42
|
declare class AXCApiModule {
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCApiModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApiModule, never, [typeof i1.OAuthModule, typeof i2.AXPAuthModule], never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApiModule, never, [typeof i1.OAuthModule, typeof i2.AXPAuthModule, typeof i3.AXCUtilsModule], never>;
|
|
44
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCApiModule>;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -120,33 +121,42 @@ declare class AXMOidcFeatureLoader implements AXPFeatureLoader {
|
|
|
120
121
|
getList(): Observable<AXPFeature[]>;
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
declare class
|
|
124
|
+
declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
124
125
|
private aXMAuthConfigs;
|
|
125
126
|
private oauthService;
|
|
126
127
|
private http;
|
|
128
|
+
private sessionService;
|
|
129
|
+
private router;
|
|
127
130
|
userInfo: any;
|
|
128
|
-
authConfig: AuthConfig;
|
|
129
131
|
openidConfigurationInfo: any;
|
|
130
132
|
configureOAuth(): Promise<void>;
|
|
131
|
-
signin(credentials:
|
|
133
|
+
signin(credentials: AXPBaseCredentials): Promise<AXPSignInResult | undefined>;
|
|
134
|
+
private handleOidcPasswordSignin;
|
|
135
|
+
updateToken(params: {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}): Promise<AXPSignInResult | void>;
|
|
132
138
|
signout(): Promise<void>;
|
|
133
|
-
refreshToken(context: AXPSessionContext): Promise<
|
|
134
|
-
refresh(tenantId?: string, applicationId?: string): Promise<boolean>;
|
|
135
|
-
expires_in_milisecound(expires_in_date: string): number;
|
|
136
|
-
private setServiceProps;
|
|
139
|
+
refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
|
|
137
140
|
private loadAuthData;
|
|
138
141
|
loadUserInfo(): Promise<object>;
|
|
139
|
-
calculateExpireInDate(expireInMilisecound: number): string;
|
|
140
|
-
private logout;
|
|
141
142
|
private handleError;
|
|
142
143
|
get name(): string;
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
144
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAPIOidcStrategy, never>;
|
|
145
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAPIOidcStrategy>;
|
|
145
146
|
}
|
|
146
147
|
interface AXPUserPassCredentials extends AXPBaseCredentials {
|
|
147
148
|
username: string;
|
|
148
149
|
password: string;
|
|
149
150
|
}
|
|
151
|
+
interface AXPOAuthExternalCredentials extends AXPBaseCredentials {
|
|
152
|
+
strategy: string;
|
|
153
|
+
accessToken: string;
|
|
154
|
+
refreshToken: string;
|
|
155
|
+
idToken: string;
|
|
156
|
+
user: string;
|
|
157
|
+
expiresIn: string;
|
|
158
|
+
provider: string;
|
|
159
|
+
}
|
|
150
160
|
interface IAuthenticationDataModel {
|
|
151
161
|
access_token: string;
|
|
152
162
|
applicationid: string;
|
|
@@ -191,5 +201,32 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
|
|
|
191
201
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcTenantLoader>;
|
|
192
202
|
}
|
|
193
203
|
|
|
194
|
-
|
|
195
|
-
|
|
204
|
+
declare class APIGoogleStrategy extends AXPAuthStrategy {
|
|
205
|
+
private aXMAuthConfigs;
|
|
206
|
+
private oauthService;
|
|
207
|
+
private http;
|
|
208
|
+
private sessionService;
|
|
209
|
+
private router;
|
|
210
|
+
private externalAuthorizationService;
|
|
211
|
+
private tenantLoader;
|
|
212
|
+
private applicationLoader;
|
|
213
|
+
userInfo: any;
|
|
214
|
+
authConfig: AuthConfig;
|
|
215
|
+
openidConfigurationInfo: any;
|
|
216
|
+
constructor();
|
|
217
|
+
get name(): string;
|
|
218
|
+
configureOAuth(): Promise<void>;
|
|
219
|
+
signin(credentials: AXPBaseCredentials): Promise<void>;
|
|
220
|
+
signout(): Promise<void>;
|
|
221
|
+
refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
|
|
222
|
+
updateToken(params: {
|
|
223
|
+
[key: string]: any;
|
|
224
|
+
}): Promise<AXPSignInResult | undefined>;
|
|
225
|
+
private loadAuthData;
|
|
226
|
+
private handleError;
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<APIGoogleStrategy, never>;
|
|
228
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<APIGoogleStrategy>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
|
|
232
|
+
export type { AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
|