@acorex/connectivity 20.2.0-next.4 → 20.2.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/fesm2022/acorex-connectivity-api.mjs +30 -30
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +4687 -2726
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +8 -8
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
- package/mock/index.d.ts +117 -19
- package/package.json +5 -5
|
@@ -131,10 +131,10 @@ class AXCApiEntityStorageService {
|
|
|
131
131
|
};
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
135
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiEntityStorageService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
135
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiEntityStorageService }); }
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiEntityStorageService, decorators: [{
|
|
138
138
|
type: Injectable
|
|
139
139
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
140
140
|
|
|
@@ -270,10 +270,10 @@ class AXCFileStorageApiService extends AXPFileStorageService {
|
|
|
270
270
|
// Silently fail in fallback mode
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
274
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCFileStorageApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCFileStorageApiService }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCFileStorageApiService, decorators: [{
|
|
277
277
|
type: Injectable
|
|
278
278
|
}] });
|
|
279
279
|
|
|
@@ -318,10 +318,10 @@ class AXMOidcApplicationLoader {
|
|
|
318
318
|
// features: item.features || [],
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
322
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcApplicationLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
322
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcApplicationLoader }); }
|
|
323
323
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcApplicationLoader, decorators: [{
|
|
325
325
|
type: Injectable
|
|
326
326
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
327
327
|
|
|
@@ -361,10 +361,10 @@ class AXMConfigurationService {
|
|
|
361
361
|
switchMap(() => of(this.applicationConfig)));
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
365
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
364
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
365
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMConfigurationService, providedIn: 'root' }); }
|
|
366
366
|
}
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMConfigurationService, decorators: [{
|
|
368
368
|
type: Injectable,
|
|
369
369
|
args: [{
|
|
370
370
|
providedIn: 'root',
|
|
@@ -511,7 +511,7 @@ class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
511
511
|
const clientId = params['clientId'] || this.aXMAuthConfigs.authConfig.clientId;
|
|
512
512
|
const tokenEndpoint = params['tokenEndpoint'] ||
|
|
513
513
|
this.openidConfigurationInfo?.info?.discoveryDocument?.token_endpoint ||
|
|
514
|
-
`${this.aXMAuthConfigs?.
|
|
514
|
+
`${this.aXMAuthConfigs?.baseUrl}/connect/token`;
|
|
515
515
|
// Get code_verifier from localStorage (PKCE)
|
|
516
516
|
const codeVerifier = localStorage.getItem('pkce_code_verifier');
|
|
517
517
|
localStorage.removeItem('pkce_code_verifier');
|
|
@@ -623,7 +623,7 @@ class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
623
623
|
localStorage.removeItem('pkce_code_verifier');
|
|
624
624
|
localStorage.removeItem('oauth_provider');
|
|
625
625
|
console.log(this.openidConfigurationInfo?.info?.discoveryDocument);
|
|
626
|
-
const logoutUrl = `${this.aXMAuthConfigs?.
|
|
626
|
+
const logoutUrl = `${this.aXMAuthConfigs?.baseUrl}/connect/logout`;
|
|
627
627
|
window.location.href = logoutUrl;
|
|
628
628
|
}
|
|
629
629
|
async refreshToken(context) {
|
|
@@ -707,10 +707,10 @@ class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
707
707
|
get name() {
|
|
708
708
|
return 'oidc';
|
|
709
709
|
}
|
|
710
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
711
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCAPIOidcStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
711
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCAPIOidcStrategy }); }
|
|
712
712
|
}
|
|
713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCAPIOidcStrategy, decorators: [{
|
|
714
714
|
type: Injectable
|
|
715
715
|
}] });
|
|
716
716
|
|
|
@@ -735,10 +735,10 @@ class AXMOidcPermissionLoader {
|
|
|
735
735
|
const truePolicies = Object.keys(policies).filter((key) => policies[key] === true);
|
|
736
736
|
return truePolicies;
|
|
737
737
|
}
|
|
738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
739
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcPermissionLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
739
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcPermissionLoader }); }
|
|
740
740
|
}
|
|
741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcPermissionLoader, decorators: [{
|
|
742
742
|
type: Injectable
|
|
743
743
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
744
744
|
|
|
@@ -764,17 +764,17 @@ class AXMOidcTenantLoader {
|
|
|
764
764
|
// Add other fields and defaults as needed, and handle the logo if applicable
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
768
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcTenantLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
768
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcTenantLoader }); }
|
|
769
769
|
}
|
|
770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMOidcTenantLoader, decorators: [{
|
|
771
771
|
type: Injectable
|
|
772
772
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
773
773
|
|
|
774
774
|
class AXCApiModule {
|
|
775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
776
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.
|
|
777
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.
|
|
775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
776
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXCApiModule, imports: [i1$1.OAuthModule, i2.AXPAuthModule, AXCUtilsModule] }); }
|
|
777
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiModule, providers: [
|
|
778
778
|
{
|
|
779
779
|
provide: AXPEntityStorageService,
|
|
780
780
|
useClass: AXCApiEntityStorageService,
|
|
@@ -812,7 +812,7 @@ class AXCApiModule {
|
|
|
812
812
|
}),
|
|
813
813
|
AXCUtilsModule] }); }
|
|
814
814
|
}
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXCApiModule, decorators: [{
|
|
816
816
|
type: NgModule,
|
|
817
817
|
args: [{
|
|
818
818
|
imports: [
|
|
@@ -1122,10 +1122,10 @@ class APIGoogleStrategy extends AXPAuthStrategy {
|
|
|
1122
1122
|
console.error('Authentication error:', error);
|
|
1123
1123
|
throw error;
|
|
1124
1124
|
}
|
|
1125
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
1126
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
1125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: APIGoogleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1126
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: APIGoogleStrategy }); }
|
|
1127
1127
|
}
|
|
1128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
1128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: APIGoogleStrategy, decorators: [{
|
|
1129
1129
|
type: Injectable
|
|
1130
1130
|
}], ctorParameters: () => [] });
|
|
1131
1131
|
|