@abp/ng.core 5.3.3 → 6.0.0-rc.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/esm2020/lib/directives/form-submit.directive.mjs +1 -1
- package/esm2020/lib/interceptors/api.interceptor.mjs +3 -2
- package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +3 -5
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +2 -2
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +3 -5
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.mjs +1 -2
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/http/modeling/models.mjs +1 -2
- package/esm2020/lib/proxy/volo/abp/localization/models.mjs +1 -1
- package/esm2020/lib/proxy/volo/abp/models.mjs +1 -1
- package/esm2020/lib/services/config-state.service.mjs +17 -1
- package/esm2020/lib/services/environment.service.mjs +14 -1
- package/esm2020/lib/services/multi-tenancy.service.mjs +3 -3
- package/esm2020/lib/services/rest.service.mjs +6 -2
- package/fesm2015/abp-ng.core.mjs +40 -10
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +40 -14
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.d.ts +2 -2
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +2 -2
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.d.ts +10 -4
- package/lib/proxy/volo/abp/http/modeling/models.d.ts +10 -0
- package/lib/services/config-state.service.d.ts +20 -5
- package/lib/services/environment.service.d.ts +2 -0
- package/lib/services/rest.service.d.ts +1 -0
- package/lib/strategies/auth-flow.strategy.d.ts +14 -4
- package/lib/utils/auth-utils.d.ts +7 -2
- package/lib/utils/initial-utils.d.ts +7 -2
- package/package.json +2 -2
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class AbpTenantService {
|
|
5
5
|
private restService;
|
|
6
6
|
apiName: string;
|
|
7
|
-
findTenantById: (id: string
|
|
8
|
-
findTenantByName: (name: string
|
|
7
|
+
findTenantById: (id: string) => import("rxjs").Observable<FindTenantResultDto>;
|
|
8
|
+
findTenantByName: (name: string) => import("rxjs").Observable<FindTenantResultDto>;
|
|
9
9
|
constructor(restService: RestService);
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbpTenantService, never>;
|
|
11
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbpTenantService>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RestService } from '../../../../../../services/rest.service';
|
|
2
1
|
import type { ApplicationConfigurationDto } from './models';
|
|
2
|
+
import { RestService } from '../../../../../../services/rest.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AbpApplicationConfigurationService {
|
|
5
5
|
private restService;
|
|
6
6
|
apiName: string;
|
|
7
|
-
get()
|
|
7
|
+
get: () => import("rxjs").Observable<ApplicationConfigurationDto>;
|
|
8
8
|
constructor(restService: RestService);
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationConfigurationService, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationConfigurationService>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { LanguageInfo } from '../../../localization/models';
|
|
2
|
-
import type { NameValue } from '../../../models';
|
|
3
1
|
import type { CurrentTenantDto, MultiTenancyInfoDto } from '../multi-tenancy/models';
|
|
4
2
|
import type { ObjectExtensionsDto } from './object-extending/models';
|
|
3
|
+
import type { LanguageInfo } from '../../../localization/models';
|
|
4
|
+
import type { NameValue } from '../../../models';
|
|
5
5
|
export interface ApplicationAuthConfigurationDto {
|
|
6
6
|
policies: Record<string, boolean>;
|
|
7
7
|
grantedPolicies: Record<string, boolean>;
|
|
@@ -12,6 +12,7 @@ export interface ApplicationConfigurationDto {
|
|
|
12
12
|
setting: ApplicationSettingConfigurationDto;
|
|
13
13
|
currentUser: CurrentUserDto;
|
|
14
14
|
features: ApplicationFeatureConfigurationDto;
|
|
15
|
+
globalFeatures: ApplicationGlobalFeatureConfigurationDto;
|
|
15
16
|
multiTenancy: MultiTenancyInfoDto;
|
|
16
17
|
currentTenant: CurrentTenantDto;
|
|
17
18
|
timing: TimingDto;
|
|
@@ -21,6 +22,9 @@ export interface ApplicationConfigurationDto {
|
|
|
21
22
|
export interface ApplicationFeatureConfigurationDto {
|
|
22
23
|
values: Record<string, string>;
|
|
23
24
|
}
|
|
25
|
+
export interface ApplicationGlobalFeatureConfigurationDto {
|
|
26
|
+
enabledFeatures: string[];
|
|
27
|
+
}
|
|
24
28
|
export interface ApplicationLocalizationConfigurationDto {
|
|
25
29
|
values: Record<string, Record<string, string>>;
|
|
26
30
|
languages: LanguageInfo[];
|
|
@@ -50,6 +54,10 @@ export interface CurrentUserDto {
|
|
|
50
54
|
isAuthenticated: boolean;
|
|
51
55
|
id?: string;
|
|
52
56
|
tenantId?: string;
|
|
57
|
+
impersonatorUserId?: string;
|
|
58
|
+
impersonatorTenantId?: string;
|
|
59
|
+
impersonatorUserName?: string;
|
|
60
|
+
impersonatorTenantName?: string;
|
|
53
61
|
userName?: string;
|
|
54
62
|
name?: string;
|
|
55
63
|
surName?: string;
|
|
@@ -58,8 +66,6 @@ export interface CurrentUserDto {
|
|
|
58
66
|
phoneNumber?: string;
|
|
59
67
|
phoneNumberVerified: boolean;
|
|
60
68
|
roles: string[];
|
|
61
|
-
impersonatorUserId?: string;
|
|
62
|
-
impersonatorTenantId?: string;
|
|
63
69
|
}
|
|
64
70
|
export interface DateTimeFormatDto {
|
|
65
71
|
calendarAlgorithmType?: string;
|
|
@@ -7,6 +7,8 @@ export interface ActionApiDescriptionModel {
|
|
|
7
7
|
parametersOnMethod: MethodParameterApiDescriptionModel[];
|
|
8
8
|
parameters: ParameterApiDescriptionModel[];
|
|
9
9
|
returnValue: ReturnValueApiDescriptionModel;
|
|
10
|
+
allowAnonymous?: boolean;
|
|
11
|
+
implementFrom?: string;
|
|
10
12
|
}
|
|
11
13
|
export interface ApplicationApiDescriptionModel {
|
|
12
14
|
modules: Record<string, ModuleApiDescriptionModel>;
|
|
@@ -17,6 +19,9 @@ export interface ApplicationApiDescriptionModelRequestDto {
|
|
|
17
19
|
}
|
|
18
20
|
export interface ControllerApiDescriptionModel {
|
|
19
21
|
controllerName?: string;
|
|
22
|
+
controllerGroupName?: string;
|
|
23
|
+
isRemoteService: boolean;
|
|
24
|
+
apiVersion?: string;
|
|
20
25
|
type?: string;
|
|
21
26
|
interfaces: ControllerInterfaceApiDescriptionModel[];
|
|
22
27
|
actions: Record<string, ActionApiDescriptionModel>;
|
|
@@ -55,6 +60,11 @@ export interface PropertyApiDescriptionModel {
|
|
|
55
60
|
type?: string;
|
|
56
61
|
typeSimple?: string;
|
|
57
62
|
isRequired: boolean;
|
|
63
|
+
minLength?: number;
|
|
64
|
+
maxLength?: number;
|
|
65
|
+
minimum?: string;
|
|
66
|
+
maximum?: string;
|
|
67
|
+
regex?: string;
|
|
58
68
|
}
|
|
59
69
|
export interface ReturnValueApiDescriptionModel {
|
|
60
70
|
type?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { AbpApplicationConfigurationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service';
|
|
3
|
-
import { ApplicationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
3
|
+
import { ApplicationConfigurationDto, ApplicationGlobalFeatureConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ConfigStateService {
|
|
6
6
|
private abpConfigService;
|
|
@@ -57,6 +57,10 @@ export declare class ConfigStateService {
|
|
|
57
57
|
isAuthenticated?: boolean;
|
|
58
58
|
id?: string;
|
|
59
59
|
tenantId?: string;
|
|
60
|
+
impersonatorUserId?: string;
|
|
61
|
+
impersonatorTenantId?: string;
|
|
62
|
+
impersonatorUserName?: string;
|
|
63
|
+
impersonatorTenantName?: string;
|
|
60
64
|
userName?: string;
|
|
61
65
|
name?: string;
|
|
62
66
|
surName?: string;
|
|
@@ -65,14 +69,15 @@ export declare class ConfigStateService {
|
|
|
65
69
|
phoneNumber?: string;
|
|
66
70
|
phoneNumberVerified?: boolean;
|
|
67
71
|
roles?: string[];
|
|
68
|
-
impersonatorUserId?: string;
|
|
69
|
-
impersonatorTenantId?: string;
|
|
70
72
|
};
|
|
71
73
|
features?: {
|
|
72
74
|
values?: {
|
|
73
75
|
[x: string]: string;
|
|
74
76
|
};
|
|
75
77
|
};
|
|
78
|
+
globalFeatures?: {
|
|
79
|
+
enabledFeatures?: string[];
|
|
80
|
+
};
|
|
76
81
|
multiTenancy?: {
|
|
77
82
|
isEnabled?: boolean;
|
|
78
83
|
};
|
|
@@ -216,6 +221,10 @@ export declare class ConfigStateService {
|
|
|
216
221
|
isAuthenticated?: boolean;
|
|
217
222
|
id?: string;
|
|
218
223
|
tenantId?: string;
|
|
224
|
+
impersonatorUserId?: string;
|
|
225
|
+
impersonatorTenantId?: string;
|
|
226
|
+
impersonatorUserName?: string;
|
|
227
|
+
impersonatorTenantName?: string;
|
|
219
228
|
userName?: string;
|
|
220
229
|
name?: string;
|
|
221
230
|
surName?: string;
|
|
@@ -224,14 +233,15 @@ export declare class ConfigStateService {
|
|
|
224
233
|
phoneNumber?: string;
|
|
225
234
|
phoneNumberVerified?: boolean;
|
|
226
235
|
roles?: string[];
|
|
227
|
-
impersonatorUserId?: string;
|
|
228
|
-
impersonatorTenantId?: string;
|
|
229
236
|
};
|
|
230
237
|
features?: {
|
|
231
238
|
values?: {
|
|
232
239
|
[x: string]: string;
|
|
233
240
|
};
|
|
234
241
|
};
|
|
242
|
+
globalFeatures?: {
|
|
243
|
+
enabledFeatures?: string[];
|
|
244
|
+
};
|
|
235
245
|
multiTenancy?: {
|
|
236
246
|
isEnabled?: boolean;
|
|
237
247
|
};
|
|
@@ -334,6 +344,11 @@ export declare class ConfigStateService {
|
|
|
334
344
|
getSetting$(key: string): Observable<string>;
|
|
335
345
|
getSettings(keyword?: string): Record<string, string>;
|
|
336
346
|
getSettings$(keyword?: string): Observable<Record<string, string>>;
|
|
347
|
+
getGlobalFeatures(): ApplicationGlobalFeatureConfigurationDto;
|
|
348
|
+
getGlobalFeatures$(): Observable<ApplicationGlobalFeatureConfigurationDto>;
|
|
349
|
+
private isGlobalFeatureEnabled;
|
|
350
|
+
getGlobalFeatureIsEnabled(key: string): boolean;
|
|
351
|
+
getGlobalFeatureIsEnabled$(key: string): Observable<boolean>;
|
|
337
352
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigStateService, never>;
|
|
338
353
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigStateService>;
|
|
339
354
|
}
|
|
@@ -93,6 +93,8 @@ export declare class EnvironmentService {
|
|
|
93
93
|
getApiUrl(key: string): string;
|
|
94
94
|
getApiUrl$(key: string): Observable<string>;
|
|
95
95
|
setState(environment: Environment): void;
|
|
96
|
+
getIssuer(): string;
|
|
97
|
+
getIssuer$(): Observable<string>;
|
|
96
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
|
|
97
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
|
|
98
100
|
}
|
|
@@ -15,6 +15,7 @@ export declare class RestService {
|
|
|
15
15
|
handleError(err: any): Observable<any>;
|
|
16
16
|
request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
|
|
17
17
|
private getParams;
|
|
18
|
+
private removeDuplicateSlashes;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
19
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
20
21
|
}
|
|
@@ -98,6 +98,10 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
98
98
|
isAuthenticated?: boolean;
|
|
99
99
|
id?: string;
|
|
100
100
|
tenantId?: string;
|
|
101
|
+
impersonatorUserId?: string;
|
|
102
|
+
impersonatorTenantId?: string;
|
|
103
|
+
impersonatorUserName?: string;
|
|
104
|
+
impersonatorTenantName?: string;
|
|
101
105
|
userName?: string;
|
|
102
106
|
name?: string;
|
|
103
107
|
surName?: string;
|
|
@@ -106,14 +110,15 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
106
110
|
phoneNumber?: string;
|
|
107
111
|
phoneNumberVerified?: boolean;
|
|
108
112
|
roles?: string[];
|
|
109
|
-
impersonatorUserId?: string;
|
|
110
|
-
impersonatorTenantId?: string;
|
|
111
113
|
};
|
|
112
114
|
features?: {
|
|
113
115
|
values?: {
|
|
114
116
|
[x: string]: string;
|
|
115
117
|
};
|
|
116
118
|
};
|
|
119
|
+
globalFeatures?: {
|
|
120
|
+
enabledFeatures?: string[];
|
|
121
|
+
};
|
|
117
122
|
multiTenancy?: {
|
|
118
123
|
isEnabled?: boolean;
|
|
119
124
|
};
|
|
@@ -254,6 +259,10 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
254
259
|
isAuthenticated?: boolean;
|
|
255
260
|
id?: string;
|
|
256
261
|
tenantId?: string;
|
|
262
|
+
impersonatorUserId?: string;
|
|
263
|
+
impersonatorTenantId?: string;
|
|
264
|
+
impersonatorUserName?: string;
|
|
265
|
+
impersonatorTenantName?: string;
|
|
257
266
|
userName?: string;
|
|
258
267
|
name?: string;
|
|
259
268
|
surName?: string;
|
|
@@ -262,14 +271,15 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
262
271
|
phoneNumber?: string;
|
|
263
272
|
phoneNumberVerified?: boolean;
|
|
264
273
|
roles?: string[];
|
|
265
|
-
impersonatorUserId?: string;
|
|
266
|
-
impersonatorTenantId?: string;
|
|
267
274
|
};
|
|
268
275
|
features?: {
|
|
269
276
|
values?: {
|
|
270
277
|
[x: string]: string;
|
|
271
278
|
};
|
|
272
279
|
};
|
|
280
|
+
globalFeatures?: {
|
|
281
|
+
enabledFeatures?: string[];
|
|
282
|
+
};
|
|
273
283
|
multiTenancy?: {
|
|
274
284
|
isEnabled?: boolean;
|
|
275
285
|
};
|
|
@@ -53,6 +53,10 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
53
53
|
isAuthenticated?: boolean;
|
|
54
54
|
id?: string;
|
|
55
55
|
tenantId?: string;
|
|
56
|
+
impersonatorUserId?: string;
|
|
57
|
+
impersonatorTenantId?: string;
|
|
58
|
+
impersonatorUserName?: string;
|
|
59
|
+
impersonatorTenantName?: string;
|
|
56
60
|
userName?: string;
|
|
57
61
|
name?: string;
|
|
58
62
|
surName?: string;
|
|
@@ -61,14 +65,15 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
61
65
|
phoneNumber?: string;
|
|
62
66
|
phoneNumberVerified?: boolean;
|
|
63
67
|
roles?: string[];
|
|
64
|
-
impersonatorUserId?: string;
|
|
65
|
-
impersonatorTenantId?: string;
|
|
66
68
|
};
|
|
67
69
|
features?: {
|
|
68
70
|
values?: {
|
|
69
71
|
[x: string]: string;
|
|
70
72
|
};
|
|
71
73
|
};
|
|
74
|
+
globalFeatures?: {
|
|
75
|
+
enabledFeatures?: string[];
|
|
76
|
+
};
|
|
72
77
|
multiTenancy?: {
|
|
73
78
|
isEnabled?: boolean;
|
|
74
79
|
};
|
|
@@ -51,6 +51,10 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
51
51
|
isAuthenticated?: boolean;
|
|
52
52
|
id?: string;
|
|
53
53
|
tenantId?: string;
|
|
54
|
+
impersonatorUserId?: string;
|
|
55
|
+
impersonatorTenantId?: string;
|
|
56
|
+
impersonatorUserName?: string;
|
|
57
|
+
impersonatorTenantName?: string;
|
|
54
58
|
userName?: string;
|
|
55
59
|
name?: string;
|
|
56
60
|
surName?: string;
|
|
@@ -59,14 +63,15 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
59
63
|
phoneNumber?: string;
|
|
60
64
|
phoneNumberVerified?: boolean;
|
|
61
65
|
roles?: string[];
|
|
62
|
-
impersonatorUserId?: string;
|
|
63
|
-
impersonatorTenantId?: string;
|
|
64
66
|
};
|
|
65
67
|
features?: {
|
|
66
68
|
values?: {
|
|
67
69
|
[x: string]: string;
|
|
68
70
|
};
|
|
69
71
|
};
|
|
72
|
+
globalFeatures?: {
|
|
73
|
+
enabledFeatures?: string[];
|
|
74
|
+
};
|
|
70
75
|
multiTenancy?: {
|
|
71
76
|
isEnabled?: boolean;
|
|
72
77
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-rc.1",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/abpframework/abp.git"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@abp/utils": "~
|
|
10
|
+
"@abp/utils": "~6.0.0-rc.1",
|
|
11
11
|
"angular-oauth2-oidc": "^13.0.1",
|
|
12
12
|
"just-clone": "^3.2.1",
|
|
13
13
|
"just-compare": "^1.4.0",
|