@flusys/ng-auth 6.0.1 → 6.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-auth",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Authentication module for FLUSYS Angular applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"@angular/core": ">=22.0.0",
|
|
9
9
|
"@angular/forms": ">=22.0.0",
|
|
10
10
|
"@angular/router": ">=22.0.0",
|
|
11
|
-
"@flusys/ng-core": ">=6.0
|
|
12
|
-
"@flusys/ng-layout": ">=6.0
|
|
13
|
-
"@flusys/ng-shared": ">=6.0
|
|
14
|
-
"@flusys/ng-ui": ">=6.0
|
|
11
|
+
"@flusys/ng-core": ">=6.1.0",
|
|
12
|
+
"@flusys/ng-layout": ">=6.1.0",
|
|
13
|
+
"@flusys/ng-shared": ">=6.1.0",
|
|
14
|
+
"@flusys/ng-ui": ">=6.1.0",
|
|
15
15
|
"rxjs": "^7.8.0"
|
|
16
16
|
},
|
|
17
17
|
"sideEffects": false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISingleResponse, IMessageResponse, ApiResourceService, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserBranchPermission as IUserBranchPermission$1, IUserProvider, IUserBasicInfo, ILogicNode, RouterTabItem, BaseFormComponent, IFormField, ITableAction, ITableColumn, IProfileRoleInfo, IProfileActionInfo } from '@flusys/ng-shared';
|
|
1
|
+
import { ISingleResponse, IMessageResponse, ApiResourceService, ICompanyApiProvider, IListResponse, ICompanyBasicInfo, IAuthStateProvider, IUserPermissionProvider, IUserBranchPermission as IUserBranchPermission$1, IUserCompanyInfo, IUserProvider, IUserBasicInfo, ILogicNode, RouterTabItem, BaseFormComponent, IFormField, ITableAction, ITableColumn, IProfileRoleInfo, IProfileActionInfo } from '@flusys/ng-shared';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
@@ -265,6 +265,8 @@ declare class AuthApiService {
|
|
|
265
265
|
register(data: IRegistrationRequest): Observable<IRegistrationResponse>;
|
|
266
266
|
select(data: ISelectRequest): Observable<ILoginResponse>;
|
|
267
267
|
switchCompany(data: ISwitchCompanyRequest): Observable<ILoginResponse>;
|
|
268
|
+
getCompanies(): Observable<ISingleResponse<ICompanyInfo[]>>;
|
|
269
|
+
getCompanyBranches(companyId: string): Observable<ISingleResponse<IBranchInfo[]>>;
|
|
268
270
|
refresh(): Observable<IRefreshTokenResponse>;
|
|
269
271
|
me(): Observable<IMeResponse>;
|
|
270
272
|
logout(): Observable<IMessageResponse>;
|
|
@@ -488,6 +490,8 @@ declare class AuthLayoutApiAdapter implements ILayoutAuthApi {
|
|
|
488
490
|
switchCompany(companyId: string, branchId: string): Observable<any>;
|
|
489
491
|
getUserCompanies(): Observable<ICompanyInfo$1[]>;
|
|
490
492
|
getCompanyBranches(companyId: string): Observable<IBranchInfo$1[]>;
|
|
493
|
+
getMyCompanies(): Observable<ICompanyInfo$1[]>;
|
|
494
|
+
getMyCompanyBranches(companyId: string): Observable<IBranchInfo$1[]>;
|
|
491
495
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthLayoutApiAdapter, never>;
|
|
492
496
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthLayoutApiAdapter>;
|
|
493
497
|
}
|
|
@@ -529,6 +533,7 @@ declare class AuthCompanyApiProviderAdapter implements ICompanyApiProvider {
|
|
|
529
533
|
declare class AuthUserPermissionProviderAdapter implements IUserPermissionProvider {
|
|
530
534
|
private readonly userPermissionApi;
|
|
531
535
|
getUserBranchPermissions(userId: string, companyId?: string): Observable<ISingleResponse<IUserBranchPermission$1[]>>;
|
|
536
|
+
getUserCompanyPermissions(userId: string): Observable<ISingleResponse<IUserCompanyInfo[]>>;
|
|
532
537
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthUserPermissionProviderAdapter, never>;
|
|
533
538
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthUserPermissionProviderAdapter>;
|
|
534
539
|
}
|