@flusys/ng-auth 8.0.0-beta.1 → 8.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flusys/ng-auth",
3
- "version": "8.0.0-beta.1",
3
+ "version": "8.0.1",
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": ">=8.0.0-beta.1",
12
- "@flusys/ng-layout": ">=8.0.0-beta.1",
13
- "@flusys/ng-shared": ">=8.0.0-beta.1",
14
- "@flusys/ng-ui": ">=8.0.0-beta.1",
11
+ "@flusys/ng-core": ">=8.0.1",
12
+ "@flusys/ng-layout": ">=8.0.1",
13
+ "@flusys/ng-shared": ">=8.0.1",
14
+ "@flusys/ng-ui": ">=8.0.1",
15
15
  "rxjs": "^7.8.0"
16
16
  },
17
17
  "sideEffects": false,
@@ -223,6 +223,18 @@ interface IUserBranchPermission {
223
223
  branchSlug: string;
224
224
  companyId: string;
225
225
  }
226
+ interface ICompanyPermittedUser {
227
+ id: string;
228
+ userId: string;
229
+ userName: string;
230
+ userEmail: string;
231
+ }
232
+ interface IBranchPermittedUser {
233
+ id: string;
234
+ userId: string;
235
+ userName: string;
236
+ userEmail: string;
237
+ }
226
238
 
227
239
  interface ISocialAuthConfig extends IBaseEntity {
228
240
  provider: SocialProviderEnum;
@@ -488,6 +500,8 @@ declare class UserPermissionApiService {
488
500
  assignUserToBranch(userId: string, branchId: string): Observable<IMessageResponse>;
489
501
  revokeUserFromBranch(userId: string, branchId: string): Observable<IMessageResponse>;
490
502
  getUserBranches(userId: string, companyId?: string): Observable<ISingleResponse<IUserBranchPermission[]>>;
503
+ getCompanyUsers(companyId: string): Observable<ISingleResponse<ICompanyPermittedUser[]>>;
504
+ getBranchUsers(branchId: string): Observable<ISingleResponse<IBranchPermittedUser[]>>;
491
505
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserPermissionApiService, never>;
492
506
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<UserPermissionApiService>;
493
507
  }
@@ -586,6 +600,7 @@ declare class AuthUserProviderAdapter implements IUserProvider {
586
600
  isActive?: boolean;
587
601
  [key: string]: unknown;
588
602
  }): Observable<IListResponse<IUserBasicInfo>>;
603
+ getUsersByIds(ids: string[]): Observable<IListResponse<IUserBasicInfo>>;
589
604
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthUserProviderAdapter, never>;
590
605
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthUserProviderAdapter>;
591
606
  }
@@ -929,6 +944,13 @@ declare class BranchListComponent {
929
944
  readonly UPDATE: "branch.update";
930
945
  readonly DELETE: "branch.delete";
931
946
  };
947
+ readonly USER_PERMISSIONS: {
948
+ readonly CREATE: "user.create";
949
+ readonly READ: "user.read";
950
+ readonly UPDATE: "user.update";
951
+ readonly DELETE: "user.delete";
952
+ readonly LOOKUP: "user.lookup";
953
+ };
932
954
  private readonly router;
933
955
  private readonly route;
934
956
  private readonly messageService;
@@ -950,6 +972,8 @@ declare class BranchListComponent {
950
972
  readonly isLoading: _angular_core.Signal<boolean>;
951
973
  /** Total count from service */
952
974
  readonly total: _angular_core.Signal<number>;
975
+ readonly permittedUsersDialogVisible: _angular_core.WritableSignal<boolean>;
976
+ readonly selectedBranch: _angular_core.WritableSignal<IBranch | null>;
953
977
  constructor();
954
978
  loadBranches(page?: number, pageSize?: number): void;
955
979
  onLazyLoad(event: {
@@ -958,6 +982,7 @@ declare class BranchListComponent {
958
982
  }): void;
959
983
  onCreate(): void;
960
984
  onEdit(branch: IBranch): void;
985
+ onViewUsers(branch: IBranch): void;
961
986
  onDelete(branch: IBranch): void;
962
987
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BranchListComponent, never>;
963
988
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<BranchListComponent, "lib-branch-list", never, {}, {}, never, never, true, never>;
@@ -987,7 +1012,9 @@ declare class CompanyListComponent {
987
1012
  readonly canCreate: _angular_core.Signal<boolean>;
988
1013
  readonly canEditFn: (_item: unknown) => boolean;
989
1014
  readonly canDeleteFn: (item: unknown) => boolean;
990
- readonly viewBranchesAction: ITableAction[];
1015
+ readonly permittedUsersDialogVisible: _angular_core.WritableSignal<boolean>;
1016
+ readonly selectedCompany: _angular_core.WritableSignal<ICompany | null>;
1017
+ readonly rowActions: ITableAction[];
991
1018
  readonly columns: ITableColumn[];
992
1019
  asCompany(item: unknown): ICompany;
993
1020
  private t;
@@ -1453,6 +1480,72 @@ declare class VerifyEmailPageComponent {
1453
1480
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerifyEmailPageComponent, "lib-verify-email-page", never, {}, {}, never, never, true, never>;
1454
1481
  }
1455
1482
 
1483
+ /**
1484
+ * Read-only viewer for users permitted against a branch, with a remove-only
1485
+ * action per user. Assigning new users stays on the user-centric permission
1486
+ * flow (`UserBranchPermissionDialogComponent`) — this dialog intentionally
1487
+ * has no "add" affordance.
1488
+ */
1489
+ declare class BranchPermittedUsersDialogComponent {
1490
+ readonly USER_PERMISSIONS: {
1491
+ readonly CREATE: "user.create";
1492
+ readonly READ: "user.read";
1493
+ readonly UPDATE: "user.update";
1494
+ readonly DELETE: "user.delete";
1495
+ readonly LOOKUP: "user.lookup";
1496
+ };
1497
+ private readonly permissionApi;
1498
+ private readonly confirmationService;
1499
+ private readonly messageService;
1500
+ private readonly translateAdapter;
1501
+ private t;
1502
+ readonly visible: _angular_core.InputSignal<boolean>;
1503
+ readonly branch: _angular_core.InputSignal<IBranch | null>;
1504
+ readonly closed: _angular_core.OutputEmitterRef<void>;
1505
+ readonly isLoading: _angular_core.WritableSignal<boolean>;
1506
+ readonly isRemoving: _angular_core.WritableSignal<boolean>;
1507
+ readonly users: _angular_core.WritableSignal<IBranchPermittedUser[]>;
1508
+ constructor();
1509
+ private loadUsers;
1510
+ onRemove(user: IBranchPermittedUser): void;
1511
+ onClose(): void;
1512
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BranchPermittedUsersDialogComponent, never>;
1513
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BranchPermittedUsersDialogComponent, "lib-branch-permitted-users-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; "branch": { "alias": "branch"; "required": true; "isSignal": true; }; }, { "closed": "closed"; }, never, never, true, never>;
1514
+ }
1515
+
1516
+ /**
1517
+ * Read-only viewer for users permitted against a company, with a remove-only
1518
+ * action per user. Assigning new users stays on the user-centric permission
1519
+ * flow (`UserCompanyPermissionDialogComponent`) — this dialog intentionally
1520
+ * has no "add" affordance.
1521
+ */
1522
+ declare class CompanyPermittedUsersDialogComponent {
1523
+ readonly USER_PERMISSIONS: {
1524
+ readonly CREATE: "user.create";
1525
+ readonly READ: "user.read";
1526
+ readonly UPDATE: "user.update";
1527
+ readonly DELETE: "user.delete";
1528
+ readonly LOOKUP: "user.lookup";
1529
+ };
1530
+ private readonly permissionApi;
1531
+ private readonly confirmationService;
1532
+ private readonly messageService;
1533
+ private readonly translateAdapter;
1534
+ private t;
1535
+ readonly visible: _angular_core.InputSignal<boolean>;
1536
+ readonly company: _angular_core.InputSignal<ICompany | null>;
1537
+ readonly closed: _angular_core.OutputEmitterRef<void>;
1538
+ readonly isLoading: _angular_core.WritableSignal<boolean>;
1539
+ readonly isRemoving: _angular_core.WritableSignal<boolean>;
1540
+ readonly users: _angular_core.WritableSignal<ICompanyPermittedUser[]>;
1541
+ constructor();
1542
+ private loadUsers;
1543
+ onRemove(user: ICompanyPermittedUser): void;
1544
+ onClose(): void;
1545
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompanyPermittedUsersDialogComponent, never>;
1546
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CompanyPermittedUsersDialogComponent, "lib-company-permitted-users-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; "company": { "alias": "company"; "required": true; "isSignal": true; }; }, { "closed": "closed"; }, never, never, true, never>;
1547
+ }
1548
+
1456
1549
  declare class SocialLoginButtonsComponent {
1457
1550
  private readonly destroyRef;
1458
1551
  private readonly socialApi;
@@ -1545,5 +1638,5 @@ declare class UserCompanyPermissionDialogComponent {
1545
1638
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserCompanyPermissionDialogComponent, "lib-user-company-permission-dialog", never, { "visible": { "alias": "visible"; "required": true; "isSignal": true; }; "user": { "alias": "user"; "required": true; "isSignal": true; }; }, { "closed": "closed"; "permissionsChanged": "permissionsChanged"; }, never, never, true, never>;
1546
1639
  }
1547
1640
 
1548
- export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_MESSAGES, AUTH_PROFILE_EXTENSION, AUTH_REGISTRATION_EXTENSION, AUTH_ROUTES, AUTH_USER_DETAIL_CONFIG, AUTH_USER_FORM_EXTENSION, AUTH_USER_LIST_EXTENSION, AUTH_VALIDATION_CONFIG, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_FIELD_CONTEXT, PROFILE_ROUTES, ProfilePageComponent, REGISTRATION_FIELD_CONTEXT, RegisterPageComponent, ResetPasswordPageComponent, SOCIAL_PROVIDERS, SOCIAL_RETURN_URL_KEY, SocialAuthApiService, SocialAuthConfigApiService, SocialCallbackPageComponent, SocialConfigPageComponent, SocialLoginButtonsComponent, SocialProviderEnum, TokenRefreshStateService, USER_FORM_FIELD_CONTEXT, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, emailFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, signUpFeatureGuard, tokenRefreshInterceptor, validateEmail, validatePassword };
1549
- export type { AuthResponse, IAssignUserBranchRequest, IAssignUserCompanyRequest, IAuthValidationConfig, IBranch, IBranchInfo, IBranchSelectionInfo, IChangePasswordRequest, ICompany, ICompanyInfo, ICompanySelectionData, ICompanySelectionResponse, ICompanyWithBranches, ICreateBranchRequest, ICreateCompanyRequest, ICreateSocialAuthConfigDto, ICreateUserRequest, IEmailValidationConfig, IEmailVerificationData, ILoginData, ILoginRequest, ILoginRequiresEmailVerification, ILoginResponse, IMeData, IMeResponse, IPasswordValidationConfig, IPermissionItem, IProfileExtensionProvider, IProfileExtraField, IProfileExtraSection, IProfileFieldTemplateContext, IRefreshTokenResponse, IRegistrationData, IRegistrationExtensionProvider, IRegistrationExtraField, IRegistrationFieldTemplateContext, IRegistrationRequest, IRegistrationResponse, ISelectRequest, ISocialAuthConfig, ISocialAuthorization, ISocialCallbackRequest, ISocialProviderInfo, ISwitchCompanyRequest, IUpdateBranchRequest, IUpdateCompanyRequest, IUpdateSocialAuthConfigDto, IUpdateUserRequest, IUser, IUserBranchPermission, IUserCompanyPermission, IUserDetailViewConfig, IUserFormExtensionProvider, IUserFormExtraField, IUserFormFieldTemplateContext, IUserInfo, IUserListExtensionProvider, IUserListExtraAction, IUserListExtraColumn, UserDetailViewMode };
1641
+ export { ADMINISTRATION_ROUTES, AUTH_ENDPOINTS, AUTH_MESSAGES, AUTH_PROFILE_EXTENSION, AUTH_REGISTRATION_EXTENSION, AUTH_ROUTES, AUTH_USER_DETAIL_CONFIG, AUTH_USER_FORM_EXTENSION, AUTH_USER_LIST_EXTENSION, AUTH_VALIDATION_CONFIG, AdministrationPageComponent, AuthApiService, AuthCompanyApiProviderAdapter, AuthInitService, AuthLayoutApiAdapter, AuthLayoutStateAdapter, AuthStateProviderAdapter, AuthStateService, AuthUserPermissionProviderAdapter, AuthUserProviderAdapter, BranchApiService, BranchFormComponent, BranchListComponent, BranchPermittedUsersDialogComponent, CompanyApiService, CompanyFormComponent, CompanyListComponent, CompanyPermittedUsersDialogComponent, ForgotPasswordPageComponent, LoginPageComponent, PROFILE_FIELD_CONTEXT, PROFILE_ROUTES, ProfilePageComponent, REGISTRATION_FIELD_CONTEXT, RegisterPageComponent, ResetPasswordPageComponent, SOCIAL_PROVIDERS, SOCIAL_RETURN_URL_KEY, SocialAuthApiService, SocialAuthConfigApiService, SocialCallbackPageComponent, SocialConfigPageComponent, SocialLoginButtonsComponent, SocialProviderEnum, TokenRefreshStateService, USER_FORM_FIELD_CONTEXT, UserApiService, UserBranchPermissionDialogComponent, UserCompanyPermissionDialogComponent, UserFormComponent, UserListComponent, UserPermissionApiService, VerifyEmailPageComponent, authGuard, authInterceptor, companyFeatureGuard, emailFeatureGuard, guestGuard, isCompanySelectionResponse, isEmailVerificationRequired, isEndpoint, isLoginResponse, provideAuthLayoutIntegration, provideAuthProviders, signUpFeatureGuard, tokenRefreshInterceptor, validateEmail, validatePassword };
1642
+ export type { AuthResponse, IAssignUserBranchRequest, IAssignUserCompanyRequest, IAuthValidationConfig, IBranch, IBranchInfo, IBranchPermittedUser, IBranchSelectionInfo, IChangePasswordRequest, ICompany, ICompanyInfo, ICompanyPermittedUser, ICompanySelectionData, ICompanySelectionResponse, ICompanyWithBranches, ICreateBranchRequest, ICreateCompanyRequest, ICreateSocialAuthConfigDto, ICreateUserRequest, IEmailValidationConfig, IEmailVerificationData, ILoginData, ILoginRequest, ILoginRequiresEmailVerification, ILoginResponse, IMeData, IMeResponse, IPasswordValidationConfig, IPermissionItem, IProfileExtensionProvider, IProfileExtraField, IProfileExtraSection, IProfileFieldTemplateContext, IRefreshTokenResponse, IRegistrationData, IRegistrationExtensionProvider, IRegistrationExtraField, IRegistrationFieldTemplateContext, IRegistrationRequest, IRegistrationResponse, ISelectRequest, ISocialAuthConfig, ISocialAuthorization, ISocialCallbackRequest, ISocialProviderInfo, ISwitchCompanyRequest, IUpdateBranchRequest, IUpdateCompanyRequest, IUpdateSocialAuthConfigDto, IUpdateUserRequest, IUser, IUserBranchPermission, IUserCompanyPermission, IUserDetailViewConfig, IUserFormExtensionProvider, IUserFormExtraField, IUserFormFieldTemplateContext, IUserInfo, IUserListExtensionProvider, IUserListExtraAction, IUserListExtraColumn, UserDetailViewMode };